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
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 |
build()
public ExportConfig build()
Type | Description |
ExportConfig |
buildPartial()
public ExportConfig buildPartial()
Type | Description |
ExportConfig |
clear()
public ExportConfig.Builder clear()
Type | Description |
ExportConfig.Builder |
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];
Type | Description |
ExportConfig.Builder | 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) = { ... }
Type | Description |
ExportConfig.Builder | 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;
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 |
clone()
public ExportConfig.Builder clone()
Type | Description |
ExportConfig.Builder |
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];
Type | Description |
ExportConfig.State | The currentState. |
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];
Type | Description |
int | The enum numeric value on the wire for currentState. |
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. Setting this to values other than
ACTIVE
and PAUSED
will result in an error.
.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. Setting this to values other than
ACTIVE
and PAUSED
will result in an error.
.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 |
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 |
setCurrentState(ExportConfig.State value)
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];
Name | Description |
value | ExportConfig.State The currentState to set. |
Type | Description |
ExportConfig.Builder | This builder for chaining. |
setCurrentStateValue(int value)
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];
Name | Description |
value | int The enum numeric value on the wire for currentState to set. |
Type | Description |
ExportConfig.Builder | This builder for chaining. |
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. Setting this to values other than
ACTIVE
and PAUSED
will result in an error.
.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. Setting this to values other than
ACTIVE
and PAUSED
will result in an error.
.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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ExportConfig.Builder |