public static final class PushConfig.Builder extends 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(Descriptors.FieldDescriptor field,
java.lang.Object value) |
PushConfig |
build() |
PushConfig |
buildPartial() |
PushConfig.Builder |
clear() |
PushConfig.Builder |
clearAttributes() |
PushConfig.Builder |
clearField(Descriptors.FieldDescriptor field) |
PushConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
PushConfig.Builder |
clearPushEndpoint()
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
clone() |
boolean |
containsAttributes(java.lang.String key)
Endpoint configuration attributes.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Endpoint configuration attributes.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributesMap()
Endpoint configuration attributes.
|
java.lang.String |
getAttributesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Endpoint configuration attributes.
|
java.lang.String |
getAttributesOrThrow(java.lang.String key)
Endpoint configuration attributes.
|
PushConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,java.lang.String> |
getMutableAttributes()
Deprecated.
|
java.lang.String |
getPushEndpoint()
A URL locating the endpoint to which messages should be pushed.
|
ByteString |
getPushEndpointBytes()
A URL locating the endpoint to which messages should be pushed.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
PushConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
PushConfig.Builder |
mergeFrom(Message other) |
PushConfig.Builder |
mergeFrom(PushConfig other) |
PushConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
PushConfig.Builder |
putAllAttributes(java.util.Map<java.lang.String,java.lang.String> values)
Endpoint configuration attributes.
|
PushConfig.Builder |
putAttributes(java.lang.String key,
java.lang.String value)
Endpoint configuration attributes.
|
PushConfig.Builder |
removeAttributes(java.lang.String key)
Endpoint configuration attributes.
|
PushConfig.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
PushConfig.Builder |
setPushEndpoint(java.lang.String value)
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
setPushEndpointBytes(ByteString value)
A URL locating the endpoint to which messages should be pushed.
|
PushConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
PushConfig.Builder |
setUnknownFields(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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<PushConfig.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<PushConfig.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<PushConfig.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic PushConfig build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic PushConfig buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic PushConfig.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(PushConfig other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<PushConfig.Builder>public PushConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<PushConfig.Builder>java.io.IOExceptionpublic java.lang.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 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(java.lang.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;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(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;public int getAttributesCount()
PushConfigOrBuilderEndpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;getAttributesCount in interface PushConfigOrBuilderpublic boolean containsAttributes(java.lang.String key)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;containsAttributes in interface PushConfigOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributesMap() instead.getAttributes in interface PushConfigOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getAttributesMap()
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;getAttributesMap in interface PushConfigOrBuilderpublic java.lang.String getAttributesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;getAttributesOrDefault in interface PushConfigOrBuilderpublic java.lang.String getAttributesOrThrow(java.lang.String key)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;getAttributesOrThrow in interface PushConfigOrBuilderpublic PushConfig.Builder clearAttributes()
public PushConfig.Builder removeAttributes(java.lang.String key)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableAttributes()
public PushConfig.Builder putAttributes(java.lang.String key, java.lang.String value)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;public PushConfig.Builder putAllAttributes(java.util.Map<java.lang.String,java.lang.String> values)
Endpoint configuration attributes. Every endpoint has a set of API supported attributes that can be used to control different aspects of the message delivery. The 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). The endpoint version is based on the version of the Pub/Sub API. If not present during the `CreateSubscription` call, it will default to the version of the API used to make such call. If not present during 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 possible values for this 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.
map<string, string> attributes = 2;public final PushConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<PushConfig.Builder>public final PushConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<PushConfig.Builder>