public final class HttpBody
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 Cloud Healthcare 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
HttpBody() |
Modifier and Type | Method and Description |
---|---|
HttpBody |
clone() |
byte[] |
decodeData()
The HTTP request/response body as raw binary.
|
HttpBody |
encodeData(byte[] data)
The HTTP request/response body as raw binary.
|
String |
getContentType()
The HTTP Content-Type header value specifying the content type of the body.
|
String |
getData()
The HTTP request/response body as raw binary.
|
List<Map<String,Object>> |
getExtensions()
Application specific response metadata.
|
HttpBody |
set(String fieldName,
Object value) |
HttpBody |
setContentType(String contentType)
The HTTP Content-Type header value specifying the content type of the body.
|
HttpBody |
setData(String data)
The HTTP request/response body as raw binary.
|
HttpBody |
setExtensions(List<Map<String,Object>> extensions)
Application specific response metadata.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getContentType()
null
for nonepublic HttpBody setContentType(String contentType)
contentType
- contentType or null
for nonepublic String getData()
null
for nonedecodeData()
public byte[] decodeData()
null
for nonegetData()
public HttpBody setData(String data)
data
- data or null
for none#encodeData()
public HttpBody encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public List<Map<String,Object>> getExtensions()
null
for nonepublic HttpBody setExtensions(List<Map<String,Object>> extensions)
extensions
- extensions or null
for nonepublic HttpBody set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public HttpBody clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.