public final class HttpRule
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Service Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
HttpRule() |
| Modifier and Type | Method and Description |
|---|---|
HttpRule |
clone() |
java.util.List<HttpRule> |
getAdditionalBindings()
Additional HTTP bindings for the selector.
|
java.lang.String |
getBody()
The name of the request field whose value is mapped to the HTTP body, or `*` for mapping all
fields not captured by the path pattern to the HTTP body.
|
CustomHttpPattern |
getCustom()
Custom pattern is used for defining custom verbs.
|
java.lang.String |
getDelete()
Used for deleting a resource.
|
java.lang.String |
getGet()
Used for listing and getting information about resources.
|
MediaDownload |
getMediaDownload()
Do not use this.
|
MediaUpload |
getMediaUpload()
Do not use this.
|
java.lang.String |
getPatch()
Used for updating a resource.
|
java.lang.String |
getPost()
Used for creating a resource.
|
java.lang.String |
getPut()
Used for updating a resource.
|
java.lang.String |
getResponseBody()
The name of the response field whose value is mapped to the HTTP body of response.
|
java.lang.String |
getSelector()
Selects methods to which this rule applies.
|
HttpRule |
set(java.lang.String fieldName,
java.lang.Object value) |
HttpRule |
setAdditionalBindings(java.util.List<HttpRule> additionalBindings)
Additional HTTP bindings for the selector.
|
HttpRule |
setBody(java.lang.String body)
The name of the request field whose value is mapped to the HTTP body, or `*` for mapping all
fields not captured by the path pattern to the HTTP body.
|
HttpRule |
setCustom(CustomHttpPattern custom)
Custom pattern is used for defining custom verbs.
|
HttpRule |
setDelete(java.lang.String delete)
Used for deleting a resource.
|
HttpRule |
setGet(java.lang.String get)
Used for listing and getting information about resources.
|
HttpRule |
setMediaDownload(MediaDownload mediaDownload)
Do not use this.
|
HttpRule |
setMediaUpload(MediaUpload mediaUpload)
Do not use this.
|
HttpRule |
setPatch(java.lang.String patch)
Used for updating a resource.
|
HttpRule |
setPost(java.lang.String post)
Used for creating a resource.
|
HttpRule |
setPut(java.lang.String put)
Used for updating a resource.
|
HttpRule |
setResponseBody(java.lang.String responseBody)
The name of the response field whose value is mapped to the HTTP body of response.
|
HttpRule |
setSelector(java.lang.String selector)
Selects methods to which this rule applies.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.util.List<HttpRule> getAdditionalBindings()
null for nonepublic HttpRule setAdditionalBindings(java.util.List<HttpRule> additionalBindings)
additionalBindings - additionalBindings or null for nonepublic java.lang.String getBody()
null for nonepublic HttpRule setBody(java.lang.String body)
body - body or null for nonepublic CustomHttpPattern getCustom()
null for nonepublic HttpRule setCustom(CustomHttpPattern custom)
custom - custom or null for nonepublic java.lang.String getDelete()
null for nonepublic HttpRule setDelete(java.lang.String delete)
delete - delete or null for nonepublic java.lang.String getGet()
null for nonepublic HttpRule setGet(java.lang.String get)
get - get or null for nonepublic MediaDownload getMediaDownload()
null for nonepublic HttpRule setMediaDownload(MediaDownload mediaDownload)
mediaDownload - mediaDownload or null for nonepublic MediaUpload getMediaUpload()
null for nonepublic HttpRule setMediaUpload(MediaUpload mediaUpload)
mediaUpload - mediaUpload or null for nonepublic java.lang.String getPatch()
null for nonepublic HttpRule setPatch(java.lang.String patch)
patch - patch or null for nonepublic java.lang.String getPost()
null for nonepublic HttpRule setPost(java.lang.String post)
post - post or null for nonepublic java.lang.String getPut()
null for nonepublic HttpRule setPut(java.lang.String put)
put - put or null for nonepublic java.lang.String getResponseBody()
null for nonepublic HttpRule setResponseBody(java.lang.String responseBody)
responseBody - responseBody or null for nonepublic java.lang.String getSelector()
null for nonepublic HttpRule setSelector(java.lang.String selector)
selector - selector or null for nonepublic HttpRule set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic HttpRule clone()
clone in class com.google.api.client.json.GenericJson