public final class ValidateMessageRequest extends 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 Pub/Sub API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ValidateMessageRequest() |
| Modifier and Type | Method and Description |
|---|---|
ValidateMessageRequest |
clone() |
byte[] |
decodeMessage()
Message to validate against the provided `schema_spec`.
|
ValidateMessageRequest |
encodeMessage(byte[] message)
Message to validate against the provided `schema_spec`.
|
String |
getEncoding()
The encoding expected for messages
|
String |
getMessage()
Message to validate against the provided `schema_spec`.
|
String |
getName()
Name of the schema against which to validate.
|
Schema |
getSchema()
Ad-hoc schema against which to validate
|
ValidateMessageRequest |
set(String fieldName,
Object value) |
ValidateMessageRequest |
setEncoding(String encoding)
The encoding expected for messages
|
ValidateMessageRequest |
setMessage(String message)
Message to validate against the provided `schema_spec`.
|
ValidateMessageRequest |
setName(String name)
Name of the schema against which to validate.
|
ValidateMessageRequest |
setSchema(Schema schema)
Ad-hoc schema against which to validate
|
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 getEncoding()
null for nonepublic ValidateMessageRequest setEncoding(String encoding)
encoding - encoding or null for nonepublic String getMessage()
null for nonedecodeMessage()public byte[] decodeMessage()
null for nonegetMessage()public ValidateMessageRequest setMessage(String message)
message - message or null for none#encodeMessage()public ValidateMessageRequest encodeMessage(byte[] message)
The value is encoded Base64 or {@code null} for none.
public String getName()
null for nonepublic ValidateMessageRequest setName(String name)
name - name or null for nonepublic Schema getSchema()
null for nonepublic ValidateMessageRequest setSchema(Schema schema)
schema - schema or null for nonepublic ValidateMessageRequest set(String fieldName, Object value)
set in class GenericJsonpublic ValidateMessageRequest clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.