Class ExportConfig.Builder (1.7.1)

public static final class ExportConfig.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllStatuses(Iterable<? extends ExportConfig.PartitionStatus> values)

public ExportConfig.Builder addAllStatuses(Iterable<? extends ExportConfig.PartitionStatus> values)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.pubsublite.proto.ExportConfig.PartitionStatus>
Returns
TypeDescription
ExportConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.Builder
Overrides

addStatuses(ExportConfig.PartitionStatus value)

public ExportConfig.Builder addStatuses(ExportConfig.PartitionStatus value)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueExportConfig.PartitionStatus
Returns
TypeDescription
ExportConfig.Builder

addStatuses(ExportConfig.PartitionStatus.Builder builderForValue)

public ExportConfig.Builder addStatuses(ExportConfig.PartitionStatus.Builder builderForValue)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueExportConfig.PartitionStatus.Builder
Returns
TypeDescription
ExportConfig.Builder

addStatuses(int index, ExportConfig.PartitionStatus value)

public ExportConfig.Builder addStatuses(int index, ExportConfig.PartitionStatus value)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueExportConfig.PartitionStatus
Returns
TypeDescription
ExportConfig.Builder

addStatuses(int index, ExportConfig.PartitionStatus.Builder builderForValue)

public ExportConfig.Builder addStatuses(int index, ExportConfig.PartitionStatus.Builder builderForValue)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueExportConfig.PartitionStatus.Builder
Returns
TypeDescription
ExportConfig.Builder

addStatusesBuilder()

public ExportConfig.PartitionStatus.Builder addStatusesBuilder()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

addStatusesBuilder(int index)

public ExportConfig.PartitionStatus.Builder addStatusesBuilder(int index)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

build()

public ExportConfig build()
Returns
TypeDescription
ExportConfig

buildPartial()

public ExportConfig buildPartial()
Returns
TypeDescription
ExportConfig

clear()

public ExportConfig.Builder clear()
Returns
TypeDescription
ExportConfig.Builder
Overrides

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
TypeDescription
ExportConfig.Builder

This builder for chaining.

clearDesiredState()

public ExportConfig.Builder clearDesiredState()

The desired state of this export.

.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;

Returns
TypeDescription
ExportConfig.Builder

This builder for chaining.

clearDestination()

public ExportConfig.Builder clearDestination()
Returns
TypeDescription
ExportConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public ExportConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExportConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExportConfig.Builder
Overrides

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;

Returns
TypeDescription
ExportConfig.Builder

clearStatuses()

public ExportConfig.Builder clearStatuses()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ExportConfig.Builder

clone()

public ExportConfig.Builder clone()
Returns
TypeDescription
ExportConfig.Builder
Overrides

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) = { ... }

Returns
TypeDescription
String

The deadLetterTopic.

getDeadLetterTopicBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for deadLetterTopic.

getDefaultInstanceForType()

public ExportConfig getDefaultInstanceForType()
Returns
TypeDescription
ExportConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDesiredState()

public ExportConfig.State getDesiredState()

The desired state of this export.

.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;

Returns
TypeDescription
ExportConfig.State

The desiredState.

getDesiredStateValue()

public int getDesiredStateValue()

The desired state of this export.

.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for desiredState.

getDestinationCase()

public ExportConfig.DestinationCase getDestinationCase()
Returns
TypeDescription
ExportConfig.DestinationCase

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;

Returns
TypeDescription
ExportConfig.PubSubConfig

The pubsubConfig.

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;

Returns
TypeDescription
ExportConfig.PubSubConfig.Builder

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;

Returns
TypeDescription
ExportConfig.PubSubConfigOrBuilder

getStatuses(int index)

public ExportConfig.PartitionStatus getStatuses(int index)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExportConfig.PartitionStatus

getStatusesBuilder(int index)

public ExportConfig.PartitionStatus.Builder getStatusesBuilder(int index)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

getStatusesBuilderList()

public List<ExportConfig.PartitionStatus.Builder> getStatusesBuilderList()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getStatusesCount()

public int getStatusesCount()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getStatusesList()

public List<ExportConfig.PartitionStatus> getStatusesList()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<PartitionStatus>

getStatusesOrBuilder(int index)

public ExportConfig.PartitionStatusOrBuilder getStatusesOrBuilder(int index)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExportConfig.PartitionStatusOrBuilder

getStatusesOrBuilderList()

public List<? extends ExportConfig.PartitionStatusOrBuilder> getStatusesOrBuilderList()

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.ExportConfig.PartitionStatusOrBuilder>

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;

Returns
TypeDescription
boolean

Whether the pubsubConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportConfig other)

public ExportConfig.Builder mergeFrom(ExportConfig other)
Parameter
NameDescription
otherExportConfig
Returns
TypeDescription
ExportConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExportConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExportConfig.Builder
Overrides

mergePubsubConfig(ExportConfig.PubSubConfig value)

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;

Parameter
NameDescription
valueExportConfig.PubSubConfig
Returns
TypeDescription
ExportConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.Builder
Overrides

removeStatuses(int index)

public ExportConfig.Builder removeStatuses(int index)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ExportConfig.Builder

setDeadLetterTopic(String value)

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) = { ... }

Parameter
NameDescription
valueString

The deadLetterTopic to set.

Returns
TypeDescription
ExportConfig.Builder

This builder for chaining.

setDeadLetterTopicBytes(ByteString value)

public ExportConfig.Builder setDeadLetterTopicBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for deadLetterTopic to set.

Returns
TypeDescription
ExportConfig.Builder

This builder for chaining.

setDesiredState(ExportConfig.State value)

public ExportConfig.Builder setDesiredState(ExportConfig.State value)

The desired state of this export.

.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;

Parameter
NameDescription
valueExportConfig.State

The desiredState to set.

Returns
TypeDescription
ExportConfig.Builder

This builder for chaining.

setDesiredStateValue(int value)

public ExportConfig.Builder setDesiredStateValue(int value)

The desired state of this export.

.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for desiredState to set.

Returns
TypeDescription
ExportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.Builder
Overrides

setPubsubConfig(ExportConfig.PubSubConfig value)

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;

Parameter
NameDescription
valueExportConfig.PubSubConfig
Returns
TypeDescription
ExportConfig.Builder

setPubsubConfig(ExportConfig.PubSubConfig.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueExportConfig.PubSubConfig.Builder
Returns
TypeDescription
ExportConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExportConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExportConfig.Builder
Overrides

setStatuses(int index, ExportConfig.PartitionStatus value)

public ExportConfig.Builder setStatuses(int index, ExportConfig.PartitionStatus value)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueExportConfig.PartitionStatus
Returns
TypeDescription
ExportConfig.Builder

setStatuses(int index, ExportConfig.PartitionStatus.Builder builderForValue)

public ExportConfig.Builder setStatuses(int index, ExportConfig.PartitionStatus.Builder builderForValue)

Output only. The export statuses of each partition. This field is output only.

repeated .google.cloud.pubsublite.v1.ExportConfig.PartitionStatus statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueExportConfig.PartitionStatus.Builder
Returns
TypeDescription
ExportConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.Builder
Overrides