public final class PushConfig 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 |
|---|
PushConfig() |
| Modifier and Type | Method and Description |
|---|---|
PushConfig |
clone() |
Map<String,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.
|
String |
getPushEndpoint()
A URL locating the endpoint to which messages should be pushed.
|
PushConfig |
set(String fieldName,
Object value) |
PushConfig |
setAttributes(Map<String,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(String pushEndpoint)
A URL locating the endpoint to which messages should be pushed.
|
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 Map<String,String> getAttributes()
null for nonepublic PushConfig setAttributes(Map<String,String> attributes)
attributes - attributes or null for nonepublic OidcToken getOidcToken()
null for nonepublic PushConfig setOidcToken(OidcToken oidcToken)
oidcToken - oidcToken or null for nonepublic String getPushEndpoint()
null for nonepublic PushConfig setPushEndpoint(String pushEndpoint)
pushEndpoint - pushEndpoint or null for nonepublic PushConfig set(String fieldName, Object value)
set in class GenericJsonpublic PushConfig clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.