Package com.google.pubsub.v1
Class PushConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
- com.google.pubsub.v1.PushConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PushConfigOrBuilder,Cloneable
- Enclosing class:
- PushConfig
public static final class PushConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder> implements PushConfigOrBuilder
Configuration for a push delivery endpoint.
Protobuf typegoogle.pubsub.v1.PushConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PushConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PushConfigbuild()PushConfigbuildPartial()PushConfig.Builderclear()PushConfig.BuilderclearAttributes()PushConfig.BuilderclearAuthenticationMethod()PushConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PushConfig.BuilderclearNoWrapper()When set, the payload to the push endpoint is not wrapped.PushConfig.BuilderclearOidcToken()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.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PushConfig.BuilderclearPubsubWrapper()When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.BuilderclearPushEndpoint()A URL locating the endpoint to which messages should be pushed.PushConfig.BuilderclearWrapper()PushConfig.Builderclone()booleancontainsAttributes(String key)Endpoint configuration attributes that can be used to control different aspects of the message delivery.Map<String,String>getAttributes()Deprecated.intgetAttributesCount()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.StringgetAttributesOrDefault(String key, String defaultValue)Endpoint configuration attributes that can be used to control different aspects of the message delivery.StringgetAttributesOrThrow(String key)Endpoint configuration attributes that can be used to control different aspects of the message delivery.PushConfig.AuthenticationMethodCasegetAuthenticationMethodCase()PushConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMutableAttributes()Deprecated.PushConfig.NoWrappergetNoWrapper()When set, the payload to the push endpoint is not wrapped.PushConfig.NoWrapper.BuildergetNoWrapperBuilder()When set, the payload to the push endpoint is not wrapped.PushConfig.NoWrapperOrBuildergetNoWrapperOrBuilder()When set, the payload to the push endpoint is not wrapped.PushConfig.OidcTokengetOidcToken()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.BuildergetOidcTokenBuilder()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.OidcTokenOrBuildergetOidcTokenOrBuilder()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.PubsubWrappergetPubsubWrapper()When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.PubsubWrapper.BuildergetPubsubWrapperBuilder()When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.PubsubWrapperOrBuildergetPubsubWrapperOrBuilder()When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).StringgetPushEndpoint()A URL locating the endpoint to which messages should be pushed.com.google.protobuf.ByteStringgetPushEndpointBytes()A URL locating the endpoint to which messages should be pushed.PushConfig.WrapperCasegetWrapperCase()booleanhasNoWrapper()When set, the payload to the push endpoint is not wrapped.booleanhasOidcToken()If specified, Pub/Sub will generate and attach an OIDC JWT token as an `Authorization` header in the HTTP request for every pushed message.booleanhasPubsubWrapper()When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()PushConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PushConfig.BuildermergeFrom(com.google.protobuf.Message other)PushConfig.BuildermergeFrom(PushConfig other)PushConfig.BuildermergeNoWrapper(PushConfig.NoWrapper value)When set, the payload to the push endpoint is not wrapped.PushConfig.BuildermergeOidcToken(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.BuildermergePubsubWrapper(PushConfig.PubsubWrapper value)When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PushConfig.BuilderputAllAttributes(Map<String,String> values)Endpoint configuration attributes that can be used to control different aspects of the message delivery.PushConfig.BuilderputAttributes(String key, String value)Endpoint configuration attributes that can be used to control different aspects of the message delivery.PushConfig.BuilderremoveAttributes(String key)Endpoint configuration attributes that can be used to control different aspects of the message delivery.PushConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PushConfig.BuildersetNoWrapper(PushConfig.NoWrapper value)When set, the payload to the push endpoint is not wrapped.PushConfig.BuildersetNoWrapper(PushConfig.NoWrapper.Builder builderForValue)When set, the payload to the push endpoint is not wrapped.PushConfig.BuildersetOidcToken(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.BuildersetOidcToken(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.BuildersetPubsubWrapper(PushConfig.PubsubWrapper value)When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.BuildersetPubsubWrapper(PushConfig.PubsubWrapper.Builder builderForValue)When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).PushConfig.BuildersetPushEndpoint(String value)A URL locating the endpoint to which messages should be pushed.PushConfig.BuildersetPushEndpointBytes(com.google.protobuf.ByteString value)A URL locating the endpoint to which messages should be pushed.PushConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PushConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
clear
public PushConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
getDefaultInstanceForType
public PushConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PushConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PushConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PushConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
setField
public PushConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
clearField
public PushConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
clearOneof
public PushConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
setRepeatedField
public PushConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
addRepeatedField
public PushConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
mergeFrom
public PushConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PushConfig.Builder>
-
mergeFrom
public PushConfig.Builder mergeFrom(PushConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
mergeFrom
public PushConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PushConfig.Builder>- Throws:
IOException
-
getAuthenticationMethodCase
public PushConfig.AuthenticationMethodCase getAuthenticationMethodCase()
- Specified by:
getAuthenticationMethodCasein interfacePushConfigOrBuilder
-
clearAuthenticationMethod
public PushConfig.Builder clearAuthenticationMethod()
-
getWrapperCase
public PushConfig.WrapperCase getWrapperCase()
- Specified by:
getWrapperCasein interfacePushConfigOrBuilder
-
clearWrapper
public PushConfig.Builder clearWrapper()
-
getPushEndpoint
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;- Specified by:
getPushEndpointin interfacePushConfigOrBuilder- Returns:
- The pushEndpoint.
-
getPushEndpointBytes
public 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;- Specified by:
getPushEndpointBytesin interfacePushConfigOrBuilder- Returns:
- The bytes for pushEndpoint.
-
setPushEndpoint
public 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;- Parameters:
value- The pushEndpoint to set.- Returns:
- This builder for chaining.
-
clearPushEndpoint
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;- Returns:
- This builder for chaining.
-
setPushEndpointBytes
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;- Parameters:
value- The bytes for pushEndpoint to set.- Returns:
- This builder for chaining.
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:PushConfigOrBuilderEndpoint 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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;- Specified by:
getAttributesCountin interfacePushConfigOrBuilder
-
containsAttributes
public 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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;- Specified by:
containsAttributesin interfacePushConfigOrBuilder
-
getAttributes
@Deprecated public Map<String,String> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfacePushConfigOrBuilder
-
getAttributesMap
public 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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;- Specified by:
getAttributesMapin interfacePushConfigOrBuilder
-
getAttributesOrDefault
public 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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;- Specified by:
getAttributesOrDefaultin interfacePushConfigOrBuilder
-
getAttributesOrThrow
public 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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;- Specified by:
getAttributesOrThrowin interfacePushConfigOrBuilder
-
clearAttributes
public PushConfig.Builder clearAttributes()
-
removeAttributes
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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;
-
getMutableAttributes
@Deprecated public Map<String,String> getMutableAttributes()
Deprecated.Use alternate mutation accessors instead.
-
putAttributes
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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;
-
putAllAttributes
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: `attributes { "x-goog-version": "v1" }`map<string, string> attributes = 2;
-
hasOidcToken
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;- Specified by:
hasOidcTokenin interfacePushConfigOrBuilder- Returns:
- Whether the oidcToken field is set.
-
getOidcToken
public 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;- Specified by:
getOidcTokenin interfacePushConfigOrBuilder- Returns:
- The oidcToken.
-
setOidcToken
public 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;
-
setOidcToken
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;
-
mergeOidcToken
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;
-
clearOidcToken
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;
-
getOidcTokenBuilder
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;
-
getOidcTokenOrBuilder
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;- Specified by:
getOidcTokenOrBuilderin interfacePushConfigOrBuilder
-
hasPubsubWrapper
public boolean hasPubsubWrapper()
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;- Specified by:
hasPubsubWrapperin interfacePushConfigOrBuilder- Returns:
- Whether the pubsubWrapper field is set.
-
getPubsubWrapper
public PushConfig.PubsubWrapper getPubsubWrapper()
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;- Specified by:
getPubsubWrapperin interfacePushConfigOrBuilder- Returns:
- The pubsubWrapper.
-
setPubsubWrapper
public PushConfig.Builder setPubsubWrapper(PushConfig.PubsubWrapper value)
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;
-
setPubsubWrapper
public PushConfig.Builder setPubsubWrapper(PushConfig.PubsubWrapper.Builder builderForValue)
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;
-
mergePubsubWrapper
public PushConfig.Builder mergePubsubWrapper(PushConfig.PubsubWrapper value)
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;
-
clearPubsubWrapper
public PushConfig.Builder clearPubsubWrapper()
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;
-
getPubsubWrapperBuilder
public PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder()
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;
-
getPubsubWrapperOrBuilder
public PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder()
When set, the payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
.google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4;- Specified by:
getPubsubWrapperOrBuilderin interfacePushConfigOrBuilder
-
hasNoWrapper
public boolean hasNoWrapper()
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;- Specified by:
hasNoWrapperin interfacePushConfigOrBuilder- Returns:
- Whether the noWrapper field is set.
-
getNoWrapper
public PushConfig.NoWrapper getNoWrapper()
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;- Specified by:
getNoWrapperin interfacePushConfigOrBuilder- Returns:
- The noWrapper.
-
setNoWrapper
public PushConfig.Builder setNoWrapper(PushConfig.NoWrapper value)
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;
-
setNoWrapper
public PushConfig.Builder setNoWrapper(PushConfig.NoWrapper.Builder builderForValue)
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;
-
mergeNoWrapper
public PushConfig.Builder mergeNoWrapper(PushConfig.NoWrapper value)
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;
-
clearNoWrapper
public PushConfig.Builder clearNoWrapper()
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;
-
getNoWrapperBuilder
public PushConfig.NoWrapper.Builder getNoWrapperBuilder()
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;
-
getNoWrapperOrBuilder
public PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder()
When set, the payload to the push endpoint is not wrapped.
.google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5;- Specified by:
getNoWrapperOrBuilderin interfacePushConfigOrBuilder
-
setUnknownFields
public final PushConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
mergeUnknownFields
public final PushConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PushConfig.Builder>
-
-