Search in sources :

Example 1 with MethodKind

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();
}
Also used : HttpAttribute(com.google.api.tools.framework.aspects.http.model.HttpAttribute) MethodKind(com.google.api.tools.framework.aspects.http.model.MethodKind)

Aggregations

HttpAttribute (com.google.api.tools.framework.aspects.http.model.HttpAttribute)1 MethodKind (com.google.api.tools.framework.aspects.http.model.MethodKind)1