Class ExportConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
- com.google.cloud.pubsublite.proto.ExportConfig.Builder
-
- All Implemented Interfaces:
ExportConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportConfig
public static final class ExportConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder> implements ExportConfigOrBuilder
Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.
Protobuf typegoogle.cloud.pubsublite.v1.ExportConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExportConfigbuild()ExportConfigbuildPartial()ExportConfig.Builderclear()ExportConfig.BuilderclearCurrentState()Output only.ExportConfig.BuilderclearDeadLetterTopic()Optional.ExportConfig.BuilderclearDesiredState()The desired state of this export.ExportConfig.BuilderclearDestination()ExportConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExportConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExportConfig.BuilderclearPubsubConfig()Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.Builderclone()ExportConfig.StategetCurrentState()Output only.intgetCurrentStateValue()Output only.StringgetDeadLetterTopic()Optional.com.google.protobuf.ByteStringgetDeadLetterTopicBytes()Optional.ExportConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ExportConfig.StategetDesiredState()The desired state of this export.intgetDesiredStateValue()The desired state of this export.ExportConfig.DestinationCasegetDestinationCase()ExportConfig.PubSubConfiggetPubsubConfig()Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.PubSubConfig.BuildergetPubsubConfigBuilder()Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.PubSubConfigOrBuildergetPubsubConfigOrBuilder()Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.booleanhasPubsubConfig()Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExportConfig.BuildermergeFrom(ExportConfig other)ExportConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExportConfig.BuildermergeFrom(com.google.protobuf.Message other)ExportConfig.BuildermergePubsubConfig(ExportConfig.PubSubConfig value)Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExportConfig.BuildersetCurrentState(ExportConfig.State value)Output only.ExportConfig.BuildersetCurrentStateValue(int value)Output only.ExportConfig.BuildersetDeadLetterTopic(String value)Optional.ExportConfig.BuildersetDeadLetterTopicBytes(com.google.protobuf.ByteString value)Optional.ExportConfig.BuildersetDesiredState(ExportConfig.State value)The desired state of this export.ExportConfig.BuildersetDesiredStateValue(int value)The desired state of this export.ExportConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExportConfig.BuildersetPubsubConfig(ExportConfig.PubSubConfig value)Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.BuildersetPubsubConfig(ExportConfig.PubSubConfig.Builder builderForValue)Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExportConfig.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clear
public ExportConfig.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<ExportConfig.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<ExportConfig.Builder>
-
getDefaultInstanceForType
public ExportConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExportConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExportConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExportConfig.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<ExportConfig.Builder>
-
setField
public ExportConfig.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<ExportConfig.Builder>
-
clearField
public ExportConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clearOneof
public ExportConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
setRepeatedField
public ExportConfig.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<ExportConfig.Builder>
-
addRepeatedField
public ExportConfig.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<ExportConfig.Builder>
-
mergeFrom
public ExportConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>
-
mergeFrom
public ExportConfig.Builder mergeFrom(ExportConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
mergeFrom
public ExportConfig.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<ExportConfig.Builder>- Throws:
IOException
-
getDestinationCase
public ExportConfig.DestinationCase getDestinationCase()
- Specified by:
getDestinationCasein interfaceExportConfigOrBuilder
-
clearDestination
public ExportConfig.Builder clearDestination()
-
getDesiredStateValue
public int getDesiredStateValue()
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;- Specified by:
getDesiredStateValuein interfaceExportConfigOrBuilder- Returns:
- The enum numeric value on the wire for desiredState.
-
setDesiredStateValue
public ExportConfig.Builder setDesiredStateValue(int value)
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;- Parameters:
value- The enum numeric value on the wire for desiredState to set.- Returns:
- This builder for chaining.
-
getDesiredState
public ExportConfig.State getDesiredState()
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;- Specified by:
getDesiredStatein interfaceExportConfigOrBuilder- Returns:
- The desiredState.
-
setDesiredState
public ExportConfig.Builder setDesiredState(ExportConfig.State value)
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;- Parameters:
value- The desiredState to set.- Returns:
- This builder for chaining.
-
clearDesiredState
public ExportConfig.Builder clearDesiredState()
The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;- Returns:
- This builder for chaining.
-
getCurrentStateValue
public int getCurrentStateValue()
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrentStateValuein interfaceExportConfigOrBuilder- Returns:
- The enum numeric value on the wire for currentState.
-
setCurrentStateValue
public ExportConfig.Builder setCurrentStateValue(int value)
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for currentState to set.- Returns:
- This builder for chaining.
-
getCurrentState
public ExportConfig.State getCurrentState()
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCurrentStatein interfaceExportConfigOrBuilder- Returns:
- The currentState.
-
setCurrentState
public ExportConfig.Builder setCurrentState(ExportConfig.State value)
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The currentState to set.- Returns:
- This builder for chaining.
-
clearCurrentState
public ExportConfig.Builder clearCurrentState()
Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDeadLetterTopic
public String getDeadLetterTopic()
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getDeadLetterTopicin interfaceExportConfigOrBuilder- Returns:
- The deadLetterTopic.
-
getDeadLetterTopicBytes
public com.google.protobuf.ByteString getDeadLetterTopicBytes()
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getDeadLetterTopicBytesin interfaceExportConfigOrBuilder- Returns:
- The bytes for deadLetterTopic.
-
setDeadLetterTopic
public ExportConfig.Builder setDeadLetterTopic(String value)
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The deadLetterTopic to set.- Returns:
- This builder for chaining.
-
clearDeadLetterTopic
public ExportConfig.Builder clearDeadLetterTopic()
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDeadLetterTopicBytes
public ExportConfig.Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value)
Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for deadLetterTopic to set.- Returns:
- This builder for chaining.
-
hasPubsubConfig
public boolean hasPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;- Specified by:
hasPubsubConfigin interfaceExportConfigOrBuilder- Returns:
- Whether the pubsubConfig field is set.
-
getPubsubConfig
public ExportConfig.PubSubConfig getPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;- Specified by:
getPubsubConfigin interfaceExportConfigOrBuilder- Returns:
- The pubsubConfig.
-
setPubsubConfig
public ExportConfig.Builder setPubsubConfig(ExportConfig.PubSubConfig value)
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
-
setPubsubConfig
public ExportConfig.Builder setPubsubConfig(ExportConfig.PubSubConfig.Builder builderForValue)
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
-
mergePubsubConfig
public ExportConfig.Builder mergePubsubConfig(ExportConfig.PubSubConfig value)
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
-
clearPubsubConfig
public ExportConfig.Builder clearPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
-
getPubsubConfigBuilder
public ExportConfig.PubSubConfig.Builder getPubsubConfigBuilder()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
-
getPubsubConfigOrBuilder
public ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.
.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;- Specified by:
getPubsubConfigOrBuilderin interfaceExportConfigOrBuilder
-
setUnknownFields
public final ExportConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
mergeUnknownFields
public final ExportConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
-