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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExportConfig
build()
ExportConfig
buildPartial()
ExportConfig.Builder
clear()
ExportConfig.Builder
clearCurrentState()
Output only.ExportConfig.Builder
clearDeadLetterTopic()
Optional.ExportConfig.Builder
clearDesiredState()
The desired state of this export.ExportConfig.Builder
clearDestination()
ExportConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExportConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExportConfig.Builder
clearPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.Builder
clone()
ExportConfig.State
getCurrentState()
Output only.int
getCurrentStateValue()
Output only.String
getDeadLetterTopic()
Optional.com.google.protobuf.ByteString
getDeadLetterTopicBytes()
Optional.ExportConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ExportConfig.State
getDesiredState()
The desired state of this export.int
getDesiredStateValue()
The desired state of this export.ExportConfig.DestinationCase
getDestinationCase()
ExportConfig.PubSubConfig
getPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.PubSubConfig.Builder
getPubsubConfigBuilder()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.ExportConfig.PubSubConfigOrBuilder
getPubsubConfigOrBuilder()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.boolean
hasPubsubConfig()
Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExportConfig.Builder
mergeFrom(ExportConfig other)
ExportConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExportConfig.Builder
mergeFrom(com.google.protobuf.Message other)
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.ExportConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExportConfig.Builder
setCurrentState(ExportConfig.State value)
Output only.ExportConfig.Builder
setCurrentStateValue(int value)
Output only.ExportConfig.Builder
setDeadLetterTopic(String value)
Optional.ExportConfig.Builder
setDeadLetterTopicBytes(com.google.protobuf.ByteString value)
Optional.ExportConfig.Builder
setDesiredState(ExportConfig.State value)
The desired state of this export.ExportConfig.Builder
setDesiredStateValue(int value)
The desired state of this export.ExportConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.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.ExportConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExportConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clear
public ExportConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
getDefaultInstanceForType
public ExportConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExportConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExportConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExportConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
setField
public ExportConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clearField
public ExportConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
clearOneof
public ExportConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
setRepeatedField
public ExportConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
addRepeatedField
public ExportConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
mergeFrom
public ExportConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>
-
mergeFrom
public ExportConfig.Builder mergeFrom(ExportConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>
- Throws:
IOException
-
getDestinationCase
public ExportConfig.DestinationCase getDestinationCase()
- Specified by:
getDestinationCase
in 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:
getDesiredStateValue
in 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:
getDesiredState
in 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:
getCurrentStateValue
in 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:
getCurrentState
in 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:
getDeadLetterTopic
in 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:
getDeadLetterTopicBytes
in 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:
hasPubsubConfig
in 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:
getPubsubConfig
in 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:
getPubsubConfigOrBuilder
in interfaceExportConfigOrBuilder
-
setUnknownFields
public final ExportConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
mergeUnknownFields
public final ExportConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>
-
-