Class ProtoMessageRequestFormatter<RequestT>

public class ProtoMessageRequestFormatter<RequestT> implements HttpRequestFormatter<RequestT>

Creates parts of a HTTP request from a protobuf message.

Inheritance

java.lang.Object > ProtoMessageRequestFormatter<RequestT>

Implements

com.google.api.gax.httpjson.HttpRequestFormatter<RequestT>

Type Parameter

NameDescription
RequestT

Methods

<RequestT>newBuilder()

public static ProtoMessageRequestFormatter.Builder<RequestT> <RequestT>newBuilder()
Returns
TypeDescription
Builder<RequestT>

getPath(RequestT apiMessage)

public String getPath(RequestT apiMessage)
Parameter
NameDescription
apiMessageRequestT
Returns
TypeDescription
String

getPathTemplate()

public PathTemplate getPathTemplate()

Path template for endpoint URL path.

Returns
TypeDescription
com.google.api.pathtemplate.PathTemplate

getQueryParamNames(RequestT apiMessage)

public Map<String,List<String>> getQueryParamNames(RequestT apiMessage)
Parameter
NameDescription
apiMessageRequestT
Returns
TypeDescription
Map<String,List<String>>

getRequestBody(RequestT apiMessage)

public String getRequestBody(RequestT apiMessage)
Parameter
NameDescription
apiMessageRequestT
Returns
TypeDescription
String