use of com.google.api.tools.framework.aspects.http.model.MethodKind in project toolkit by googleapis.
the class ProtoMethodModel method isIdempotent.
@Override
public boolean isIdempotent() {
HttpAttribute httpAttr = method.getAttribute(HttpAttribute.KEY);
if (httpAttr == null) {
return false;
}
MethodKind methodKind = httpAttr.getMethodKind();
return methodKind.isIdempotent();
}
Aggregations