Class ApiMethodDescriptor.Builder<RequestT,ResponseT> (2.24.0)

public abstract static class ApiMethodDescriptor.Builder<RequestT,ResponseT>

Inheritance

java.lang.Object > ApiMethodDescriptor.Builder<RequestT,ResponseT>

Type Parameters

NameDescription
RequestT
ResponseT

Constructors

Builder()

public Builder()

Methods

build()

public abstract ApiMethodDescriptor<RequestT,ResponseT> build()
Returns
TypeDescription
ApiMethodDescriptor<RequestT,ResponseT>

getRequestFormatter()

public abstract HttpRequestFormatter<RequestT> getRequestFormatter()
Returns
TypeDescription
HttpRequestFormatter<RequestT>

setFullMethodName(String fullMethodName)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setFullMethodName(String fullMethodName)
Parameter
NameDescription
fullMethodNameString
Returns
TypeDescription
Builder<RequestT,ResponseT>

setHttpMethod(String httpMethod)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setHttpMethod(String httpMethod)
Parameter
NameDescription
httpMethodString
Returns
TypeDescription
Builder<RequestT,ResponseT>

setOperationSnapshotFactory(OperationSnapshotFactory<RequestT,ResponseT> operationSnapshotFactory)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setOperationSnapshotFactory(OperationSnapshotFactory<RequestT,ResponseT> operationSnapshotFactory)
Parameter
NameDescription
operationSnapshotFactoryOperationSnapshotFactory<RequestT,ResponseT>
Returns
TypeDescription
Builder<RequestT,ResponseT>

setPollingRequestFactory(PollingRequestFactory<RequestT> pollingRequestFactory)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setPollingRequestFactory(PollingRequestFactory<RequestT> pollingRequestFactory)
Parameter
NameDescription
pollingRequestFactoryPollingRequestFactory<RequestT>
Returns
TypeDescription
Builder<RequestT,ResponseT>

setRequestFormatter(HttpRequestFormatter<RequestT> requestFormatter)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setRequestFormatter(HttpRequestFormatter<RequestT> requestFormatter)
Parameter
NameDescription
requestFormatterHttpRequestFormatter<RequestT>
Returns
TypeDescription
Builder<RequestT,ResponseT>

setResponseParser(HttpResponseParser<ResponseT> responseParser)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setResponseParser(HttpResponseParser<ResponseT> responseParser)
Parameter
NameDescription
responseParserHttpResponseParser<ResponseT>
Returns
TypeDescription
Builder<RequestT,ResponseT>

setType(ApiMethodDescriptor.MethodType type)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setType(ApiMethodDescriptor.MethodType type)
Parameter
NameDescription
typeApiMethodDescriptor.MethodType
Returns
TypeDescription
Builder<RequestT,ResponseT>