public final class PushConfig
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 |
---|
PushConfig() |
Modifier and Type | Method and Description |
---|---|
PushConfig |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Endpoint configuration attributes that can be used to control different aspects of the message
delivery.
|
OidcToken |
getOidcToken()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header
in the HTTP request for every pushed message.
|
java.lang.String |
getPushEndpoint()
A URL locating the endpoint to which messages should be pushed.
|
PushConfig |
set(java.lang.String fieldName,
java.lang.Object value) |
PushConfig |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Endpoint configuration attributes that can be used to control different aspects of the message
delivery.
|
PushConfig |
setOidcToken(OidcToken oidcToken)
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header
in the HTTP request for every pushed message.
|
PushConfig |
setPushEndpoint(java.lang.String pushEndpoint)
A URL locating the endpoint to which messages should be pushed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
null
for nonepublic PushConfig setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- attributes or null
for nonepublic OidcToken getOidcToken()
null
for nonepublic PushConfig setOidcToken(OidcToken oidcToken)
oidcToken
- oidcToken or null
for nonepublic java.lang.String getPushEndpoint()
null
for nonepublic PushConfig setPushEndpoint(java.lang.String pushEndpoint)
pushEndpoint
- pushEndpoint or null
for nonepublic PushConfig set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PushConfig clone()
clone
in class com.google.api.client.json.GenericJson