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

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

Inheritance

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

Type Parameters

Name Description
RequestT
ResponseT

Constructors

Builder()

public Builder()

Methods

build()

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

getRequestFormatter()

public abstract HttpRequestFormatter<RequestT> getRequestFormatter()
Returns
Type Description
HttpRequestFormatter<RequestT>

setFullMethodName(String fullMethodName)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setFullMethodName(String fullMethodName)
Parameter
Name Description
fullMethodName String
Returns
Type Description
Builder<RequestT,ResponseT>

setHttpMethod(String httpMethod)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setHttpMethod(String httpMethod)
Parameter
Name Description
httpMethod String
Returns
Type Description
Builder<RequestT,ResponseT>

setOperationSnapshotFactory(OperationSnapshotFactory<RequestT,ResponseT> operationSnapshotFactory)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setOperationSnapshotFactory(OperationSnapshotFactory<RequestT,ResponseT> operationSnapshotFactory)
Parameter
Name Description
operationSnapshotFactory OperationSnapshotFactory<RequestT,ResponseT>
Returns
Type Description
Builder<RequestT,ResponseT>

setPollingRequestFactory(PollingRequestFactory<RequestT> pollingRequestFactory)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setPollingRequestFactory(PollingRequestFactory<RequestT> pollingRequestFactory)
Parameter
Name Description
pollingRequestFactory PollingRequestFactory<RequestT>
Returns
Type Description
Builder<RequestT,ResponseT>

setRequestFormatter(HttpRequestFormatter<RequestT> requestFormatter)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setRequestFormatter(HttpRequestFormatter<RequestT> requestFormatter)
Parameter
Name Description
requestFormatter HttpRequestFormatter<RequestT>
Returns
Type Description
Builder<RequestT,ResponseT>

setResponseParser(HttpResponseParser<ResponseT> responseParser)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setResponseParser(HttpResponseParser<ResponseT> responseParser)
Parameter
Name Description
responseParser HttpResponseParser<ResponseT>
Returns
Type Description
Builder<RequestT,ResponseT>

setType(ApiMethodDescriptor.MethodType type)

public abstract ApiMethodDescriptor.Builder<RequestT,ResponseT> setType(ApiMethodDescriptor.MethodType type)
Parameter
Name Description
type ApiMethodDescriptor.MethodType
Returns
Type Description
Builder<RequestT,ResponseT>