public final class ExportConfig extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
ExportConfig.Builder
Configuration for a Pub/Sub Lite subscription that writes messages to a
destination.
|
static class |
ExportConfig.DestinationCase |
static class |
ExportConfig.PubSubConfig
Configuration for exporting to a Pub/Sub topic.
|
static interface |
ExportConfig.PubSubConfigOrBuilder |
static class |
ExportConfig.State
The desired export state.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CURRENT_STATE_FIELD_NUMBER |
static int |
DEAD_LETTER_TOPIC_FIELD_NUMBER |
static int |
DESIRED_STATE_FIELD_NUMBER |
static int |
PUBSUB_CONFIG_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ExportConfig.State |
getCurrentState()
Output only.
|
int |
getCurrentStateValue()
Output only.
|
String |
getDeadLetterTopic()
Optional.
|
com.google.protobuf.ByteString |
getDeadLetterTopicBytes()
Optional.
|
static ExportConfig |
getDefaultInstance() |
ExportConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ExportConfig.State |
getDesiredState()
The desired state of this export.
|
int |
getDesiredStateValue()
The desired state of this export.
|
ExportConfig.DestinationCase |
getDestinationCase() |
com.google.protobuf.Parser<ExportConfig> |
getParserForType() |
ExportConfig.PubSubConfig |
getPubsubConfig()
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static ExportConfig.Builder |
newBuilder() |
static ExportConfig.Builder |
newBuilder(ExportConfig prototype) |
ExportConfig.Builder |
newBuilderForType() |
protected ExportConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ExportConfig |
parseDelimitedFrom(InputStream input) |
static ExportConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExportConfig |
parseFrom(byte[] data) |
static ExportConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExportConfig |
parseFrom(ByteBuffer data) |
static ExportConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExportConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ExportConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExportConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ExportConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ExportConfig |
parseFrom(InputStream input) |
static ExportConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ExportConfig> |
parser() |
ExportConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DESIRED_STATE_FIELD_NUMBER
public static final int CURRENT_STATE_FIELD_NUMBER
public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER
public static final int PUBSUB_CONFIG_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ExportConfig.DestinationCase getDestinationCase()
getDestinationCase in interface ExportConfigOrBuilderpublic 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.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 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.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 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 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.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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ExportConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ExportConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ExportConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExportConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ExportConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ExportConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ExportConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ExportConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ExportConfig.Builder newBuilder()
public static ExportConfig.Builder newBuilder(ExportConfig prototype)
public ExportConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ExportConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ExportConfig getDefaultInstance()
public static com.google.protobuf.Parser<ExportConfig> parser()
public com.google.protobuf.Parser<ExportConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ExportConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.