Class Method
- java.lang.Object
-
- com.google.api.generator.gapic.model.Method
-
public abstract class Method extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMethod.Builderstatic classMethod.Stream
-
Constructor Summary
Constructors Constructor Description Method()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Method.Builderbuilder()abstract Stringdescription()booleanhasDescription()booleanhasHttpBindings()booleanhasLro()booleanhasRoutingHeaderParams()abstract HttpBindingshttpBindings()abstract TypeNodeinputType()abstract booleanisBatching()abstract booleanisDeprecated()booleanisMixin()booleanisOperationPollingMethod()booleanisPaged()booleanisSupportedByTransport(Transport transport)Determines if method is both eligible and enabled for the Transport.abstract LongrunningOperationlro()abstract com.google.common.collect.ImmutableList<List<MethodArgument>>methodSignatures()abstract StringmixedInApiName()abstract Stringname()abstract booleanoperationPollingMethod()abstract TypeNodeoutputType()abstract StringpageSizeFieldName()abstract RoutingHeaderRuleroutingHeaderRule()booleanshouldSetParamsExtractor()abstract Method.Streamstream()abstract Method.BuildertoBuilder()static Method.StreamtoStream(boolean isClientStreaming, boolean isServerStreaming)
-
-
-
Method Detail
-
name
public abstract String name()
-
stream
public abstract Method.Stream stream()
-
inputType
public abstract TypeNode inputType()
-
outputType
public abstract TypeNode outputType()
-
isBatching
public abstract boolean isBatching()
-
isPaged
public boolean isPaged()
-
isDeprecated
public abstract boolean isDeprecated()
-
lro
@Nullable public abstract LongrunningOperation lro()
-
httpBindings
@Nullable public abstract HttpBindings httpBindings()
-
routingHeaderRule
@Nullable public abstract RoutingHeaderRule routingHeaderRule()
-
methodSignatures
public abstract com.google.common.collect.ImmutableList<List<MethodArgument>> methodSignatures()
-
operationPollingMethod
public abstract boolean operationPollingMethod()
-
hasLro
public boolean hasLro()
-
hasDescription
public boolean hasDescription()
-
hasHttpBindings
public boolean hasHttpBindings()
-
hasRoutingHeaderParams
public boolean hasRoutingHeaderParams()
-
shouldSetParamsExtractor
public boolean shouldSetParamsExtractor()
-
isMixin
public boolean isMixin()
-
isOperationPollingMethod
public boolean isOperationPollingMethod()
-
isSupportedByTransport
public boolean isSupportedByTransport(Transport transport)
Determines if method is both eligible and enabled for the Transport. GRPC+REST Transport is not supported as each transport's sub composers will invoke this method the specific transport (GRPC or REST)- Parameters:
transport- Expects either GRPC or REST Transport- Returns:
- boolean if method should be generated for the transport
-
toBuilder
public abstract Method.Builder toBuilder()
-
builder
public static Method.Builder builder()
-
toStream
public static Method.Stream toStream(boolean isClientStreaming, boolean isServerStreaming)
-
-