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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExportConfig.BuilderImplements
ExportConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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];
Name | Description |
values | Iterable<? extends com.google.cloud.pubsublite.proto.ExportConfig.PartitionStatus> |
Type | Description |
ExportConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ExportConfig.Builder |
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];
Name | Description |
value | ExportConfig.PartitionStatus |
Type | Description |
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];
Name | Description |
builderForValue | ExportConfig.PartitionStatus.Builder |
Type | Description |
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];
Name | Description |
index | int |
value | ExportConfig.PartitionStatus |
Type | Description |
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];
Name | Description |
index | int |
builderForValue | ExportConfig.PartitionStatus.Builder |
Type | Description |
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];
Type | Description |
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];
Name | Description |
index | int |
Type | Description |
ExportConfig.PartitionStatus.Builder |
build()
public ExportConfig build()
Type | Description |
ExportConfig |
buildPartial()
public ExportConfig buildPartial()
Type | Description |
ExportConfig |
clear()
public ExportConfig.Builder clear()
Type | Description |
ExportConfig.Builder |
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) = { ... }
Type | Description |
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;
Type | Description |
ExportConfig.Builder | This builder for chaining. |
clearDestination()
public ExportConfig.Builder clearDestination()
Type | Description |
ExportConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public ExportConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ExportConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ExportConfig.Builder |
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;
Type | Description |
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];
Type | Description |
ExportConfig.Builder |
clone()
public ExportConfig.Builder clone()
Type | Description |
ExportConfig.Builder |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
ByteString | The bytes for deadLetterTopic. |
getDefaultInstanceForType()
public ExportConfig getDefaultInstanceForType()
Type | Description |
ExportConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDesiredState()
public ExportConfig.State getDesiredState()
The desired state of this export.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;
Type | Description |
ExportConfig.State | The desiredState. |
getDesiredStateValue()
public int getDesiredStateValue()
The desired state of this export.
.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;
Type | Description |
int | The enum numeric value on the wire for desiredState. |
getDestinationCase()
public ExportConfig.DestinationCase getDestinationCase()
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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];
Name | Description |
index | int |
Type | Description |
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];
Name | Description |
index | int |
Type | Description |
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];
Type | Description |
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];
Type | Description |
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];
Type | Description |
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];
Name | Description |
index | int |
Type | Description |
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];
Type | Description |
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;
Type | Description |
boolean | Whether the pubsubConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ExportConfig other)
public ExportConfig.Builder mergeFrom(ExportConfig other)
Name | Description |
other | ExportConfig |
Type | Description |
ExportConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ExportConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ExportConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ExportConfig.Builder |
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;
Name | Description |
value | ExportConfig.PubSubConfig |
Type | Description |
ExportConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ExportConfig.Builder |
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];
Name | Description |
index | int |
Type | Description |
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) = { ... }
Name | Description |
value | String The deadLetterTopic to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for deadLetterTopic to set. |
Type | Description |
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;
Name | Description |
value | ExportConfig.State The desiredState to set. |
Type | Description |
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;
Name | Description |
value | int The enum numeric value on the wire for desiredState to set. |
Type | Description |
ExportConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ExportConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ExportConfig.Builder |
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;
Name | Description |
value | ExportConfig.PubSubConfig |
Type | Description |
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;
Name | Description |
builderForValue | ExportConfig.PubSubConfig.Builder |
Type | Description |
ExportConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ExportConfig.Builder |
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];
Name | Description |
index | int |
value | ExportConfig.PartitionStatus |
Type | Description |
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];
Name | Description |
index | int |
builderForValue | ExportConfig.PartitionStatus.Builder |
Type | Description |
ExportConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ExportConfig.Builder |