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| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExportConfig.Builder |
mergeFrom(ExportConfig other) |
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.Builder builderForValue)
Messages are automatically written from the Pub/Sub Lite topic associated
with this subscription to a Pub/Sub topic.
|
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExportConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExportConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExportConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExportConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>public ExportConfig.Builder mergeFrom(ExportConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public ExportConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportConfig.Builder>IOExceptionpublic ExportConfig.DestinationCase getDestinationCase()
getDestinationCase in interface ExportConfigOrBuilderpublic ExportConfig.Builder clearDestination()
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;getDesiredStateValue in interface ExportConfigOrBuilderpublic 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;value - The enum numeric value on the wire for desiredState to set.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;getDesiredState in interface ExportConfigOrBuilderpublic 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;value - The desiredState to set.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;public int getCurrentStateValue()
Output only. The current state of the export, which may be different to the desired state due to errors.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCurrentStateValue in interface ExportConfigOrBuilderpublic ExportConfig.Builder setCurrentStateValue(int value)
Output only. The current state of the export, which may be different to the desired state due to errors.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for currentState to set.public ExportConfig.State getCurrentState()
Output only. The current state of the export, which may be different to the desired state due to errors.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCurrentState in interface ExportConfigOrBuilderpublic 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.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The currentState to set.public ExportConfig.Builder clearCurrentState()
Output only. The current state of the export, which may be different to the desired state due to errors.
.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
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) = { ... }
getDeadLetterTopic in interface ExportConfigOrBuilderpublic 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) = { ... }
getDeadLetterTopicBytes in interface ExportConfigOrBuilderpublic 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) = { ... }
value - The deadLetterTopic to set.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) = { ... }
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) = { ... }
value - The bytes for deadLetterTopic to set.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;hasPubsubConfig in interface ExportConfigOrBuilderpublic 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;getPubsubConfig in interface ExportConfigOrBuilderpublic 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;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;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;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;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;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;getPubsubConfigOrBuilder in interface ExportConfigOrBuilderpublic final ExportConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>public final ExportConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.