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 type
google.cloud.pubsublite.v1.ExportConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.Optional.The desired state of this export.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.clone()Output only.intOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe desired state of this export.intThe desired state of this export.Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.booleanMessages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ExportConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.final ExportConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Output only.setCurrentStateValue(int value) Output only.setDeadLetterTopic(String value) Optional.setDeadLetterTopicBytes(com.google.protobuf.ByteString value) Optional.The desired state of this export.setDesiredStateValue(int value) The desired state of this export.Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.setPubsubConfig(ExportConfig.PubSubConfig.Builder builderForValue) Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>
-
mergeFrom
-
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
- Specified by:
getDestinationCasein interfaceExportConfigOrBuilder
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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>
-