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 Build 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.FlagsAbstractMap.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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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.GenericJsonpublic HttpBody clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.