public final class Policy
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 Pub/Sub 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 |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
Policy |
clone() |
byte[] |
decodeEtag()
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates
of a policy from overwriting each other.
|
Policy |
encodeEtag(byte[] etag)
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates
of a policy from overwriting each other.
|
java.util.List<Binding> |
getBindings()
Associates a list of `members` to a `role`.
|
java.lang.String |
getEtag()
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates
of a policy from overwriting each other.
|
java.lang.Integer |
getVersion()
Specifies the format of the policy.
|
Policy |
set(java.lang.String fieldName,
java.lang.Object value) |
Policy |
setBindings(java.util.List<Binding> bindings)
Associates a list of `members` to a `role`.
|
Policy |
setEtag(java.lang.String etag)
`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates
of a policy from overwriting each other.
|
Policy |
setVersion(java.lang.Integer version)
Specifies the format of the policy.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<Binding> getBindings()
null
for nonepublic Policy setBindings(java.util.List<Binding> bindings)
bindings
- bindings or null
for nonepublic java.lang.String getEtag()
null
for nonedecodeEtag()
public byte[] decodeEtag()
null
for nonegetEtag()
public Policy setEtag(java.lang.String etag)
etag
- etag or null
for none#encodeEtag()
public Policy encodeEtag(byte[] etag)
The value is encoded Base64 or {@code null} for none.
public java.lang.Integer getVersion()
null
for nonepublic Policy setVersion(java.lang.Integer version)
version
- version or null
for nonepublic Policy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Policy clone()
clone
in class com.google.api.client.json.GenericJson