public static final class PushConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder> implements PushConfigOrBuilder
Configuration for a push delivery endpoint.Protobuf type
google.pubsub.v1.PushConfig| Modifier and Type | Method and Description |
|---|---|
PushConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PushConfig |
build() |
PushConfig |
buildPartial() |
PushConfig.Builder |
clear() |
PushConfig.Builder |
clearAttributes() |
PushConfig.Builder |
clearAuthenticationMethod() |
PushConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PushConfig.Builder |
clearOidcToken()
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.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PushConfig.Builder |
clearPushEndpoint()
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
clone() |
boolean |
containsAttributes(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
Map<String,String> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
Map<String,String> |
getAttributesMap()
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
String |
getAttributesOrDefault(String key,
String defaultValue)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
String |
getAttributesOrThrow(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
PushConfig.AuthenticationMethodCase |
getAuthenticationMethodCase() |
PushConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableAttributes()
Deprecated.
|
PushConfig.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.
|
PushConfig.OidcToken.Builder |
getOidcTokenBuilder()
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.OidcTokenOrBuilder |
getOidcTokenOrBuilder()
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.
|
com.google.protobuf.ByteString |
getPushEndpointBytes()
A URL locating the endpoint to which messages should be pushed.
|
boolean |
hasOidcToken()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an
`Authorization` header in the HTTP request for every pushed message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
PushConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PushConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
PushConfig.Builder |
mergeFrom(PushConfig other) |
PushConfig.Builder |
mergeOidcToken(PushConfig.OidcToken value)
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.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PushConfig.Builder |
putAllAttributes(Map<String,String> values)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
PushConfig.Builder |
putAttributes(String key,
String value)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
PushConfig.Builder |
removeAttributes(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
|
PushConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PushConfig.Builder |
setOidcToken(PushConfig.OidcToken.Builder builderForValue)
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.Builder |
setOidcToken(PushConfig.OidcToken value)
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.Builder |
setPushEndpoint(String value)
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
setPushEndpointBytes(com.google.protobuf.ByteString value)
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PushConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PushConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PushConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PushConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(PushConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PushConfig.Builder>IOExceptionpublic PushConfig.AuthenticationMethodCase getAuthenticationMethodCase()
getAuthenticationMethodCase in interface PushConfigOrBuilderpublic PushConfig.Builder clearAuthenticationMethod()
public String getPushEndpoint()
A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
string push_endpoint = 1;getPushEndpoint in interface PushConfigOrBuilderpublic com.google.protobuf.ByteString getPushEndpointBytes()
A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
string push_endpoint = 1;getPushEndpointBytes in interface PushConfigOrBuilderpublic PushConfig.Builder setPushEndpoint(String value)
A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
string push_endpoint = 1;value - The pushEndpoint to set.public PushConfig.Builder clearPushEndpoint()
A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
string push_endpoint = 1;public PushConfig.Builder setPushEndpointBytes(com.google.protobuf.ByteString value)
A URL locating the endpoint to which messages should be pushed. For example, a Webhook endpoint might use "https://example.com/push".
string push_endpoint = 1;value - The bytes for pushEndpoint to set.public int getAttributesCount()
PushConfigOrBuilder
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;getAttributesCount in interface PushConfigOrBuilderpublic boolean containsAttributes(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;containsAttributes in interface PushConfigOrBuilder@Deprecated public Map<String,String> getAttributes()
getAttributesMap() instead.getAttributes in interface PushConfigOrBuilderpublic Map<String,String> getAttributesMap()
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;getAttributesMap in interface PushConfigOrBuilderpublic String getAttributesOrDefault(String key, String defaultValue)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;getAttributesOrDefault in interface PushConfigOrBuilderpublic String getAttributesOrThrow(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;getAttributesOrThrow in interface PushConfigOrBuilderpublic PushConfig.Builder clearAttributes()
public PushConfig.Builder removeAttributes(String key)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;@Deprecated public Map<String,String> getMutableAttributes()
public PushConfig.Builder putAttributes(String key, String value)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;public PushConfig.Builder putAllAttributes(Map<String,String> values)
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is `x-goog-version`, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the `CreateSubscription` call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
`ModifyPushConfig` call, its value will not be changed. `GetSubscription`
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the `x-goog-version` attribute are:
* `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
* `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
map<string, string> attributes = 2;public boolean hasOidcToken()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;hasOidcToken in interface PushConfigOrBuilderpublic PushConfig.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.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;getOidcToken in interface PushConfigOrBuilderpublic PushConfig.Builder setOidcToken(PushConfig.OidcToken value)
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;public PushConfig.Builder setOidcToken(PushConfig.OidcToken.Builder builderForValue)
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;public PushConfig.Builder mergeOidcToken(PushConfig.OidcToken value)
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;public PushConfig.Builder clearOidcToken()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;public PushConfig.OidcToken.Builder getOidcTokenBuilder()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;public PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder()
If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.
.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;getOidcTokenOrBuilder in interface PushConfigOrBuilderpublic final PushConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>public final PushConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>Copyright © 2020 Google LLC. All rights reserved.