@BetaApi public class ProtoMessageRequestFormatter<RequestT extends com.google.protobuf.Message> extends Object implements HttpRequestFormatter<RequestT>
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtoMessageRequestFormatter.Builder<RequestT extends com.google.protobuf.Message> |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath(RequestT apiMessage) |
com.google.api.pathtemplate.PathTemplate |
getPathTemplate()
Path template for endpoint URL path.
|
Map<String,List<String>> |
getQueryParamNames(RequestT apiMessage)
Return a map where each entry is the name of a query param mapped to the values of the param.
|
String |
getRequestBody(RequestT apiMessage)
Return the serialized inner request body of the given message.
|
static <RequestT extends com.google.protobuf.Message> |
newBuilder() |
public static <RequestT extends com.google.protobuf.Message> ProtoMessageRequestFormatter.Builder<RequestT> newBuilder()
public Map<String,List<String>> getQueryParamNames(RequestT apiMessage)
HttpRequestFormattergetQueryParamNames in interface HttpRequestFormatter<RequestT extends com.google.protobuf.Message>public String getRequestBody(RequestT apiMessage)
HttpRequestFormattergetRequestBody in interface HttpRequestFormatter<RequestT extends com.google.protobuf.Message>public String getPath(RequestT apiMessage)
getPath in interface HttpRequestFormatter<RequestT extends com.google.protobuf.Message>public com.google.api.pathtemplate.PathTemplate getPathTemplate()
HttpRequestFormattergetPathTemplate in interface HttpRequestFormatter<RequestT extends com.google.protobuf.Message>