The enum numeric value on the wire for currentState.
getDeadLetterTopic()
publicabstractStringgetDeadLetterTopic()
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface ExportConfigOrBuilder (1.15.13)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.13 (latest)](/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.15.12](/java/docs/reference/google-cloud-pubsublite/1.15.12/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.14.8](/java/docs/reference/google-cloud-pubsublite/1.14.8/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.13.8](/java/docs/reference/google-cloud-pubsublite/1.13.8/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.12.22](/java/docs/reference/google-cloud-pubsublite/1.12.22/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.11.2](/java/docs/reference/google-cloud-pubsublite/1.11.2/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.10.0](/java/docs/reference/google-cloud-pubsublite/1.10.0/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.9.4](/java/docs/reference/google-cloud-pubsublite/1.9.4/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.8.0](/java/docs/reference/google-cloud-pubsublite/1.8.0/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.7.1](/java/docs/reference/google-cloud-pubsublite/1.7.1/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.6.3](/java/docs/reference/google-cloud-pubsublite/1.6.3/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.5.5](/java/docs/reference/google-cloud-pubsublite/1.5.5/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder)\n- [1.4.12](/java/docs/reference/google-cloud-pubsublite/1.4.12/com.google.cloud.pubsublite.proto.ExportConfigOrBuilder) \n\n public interface ExportConfigOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCurrentState()\n\n public abstract ExportConfig.State getCurrentState()\n\nOutput only. The current state of the export, which may be different to the\ndesired state due to errors. This field is output only.\n\n`\n.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCurrentStateValue()\n\n public abstract int getCurrentStateValue()\n\nOutput only. The current state of the export, which may be different to the\ndesired state due to errors. This field is output only.\n\n`\n.google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getDeadLetterTopic()\n\n public abstract String getDeadLetterTopic()\n\nOptional. The name of an optional Pub/Sub Lite topic to publish messages\nthat can not be exported to the destination. For example, the message can\nnot be published to the Pub/Sub service because it does not satisfy the\nconstraints documented at \u003chttps://cloud.google.com/pubsub/docs/publisher\u003e.\n\nStructured like:\nprojects/{project_number}/locations/{location}/topics/{topic_id}.\nMust be within the same project and location as the subscription. The topic\nmay be changed or removed.\n\n`\nstring dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }\n`\n\n### getDeadLetterTopicBytes()\n\n public abstract ByteString getDeadLetterTopicBytes()\n\nOptional. The name of an optional Pub/Sub Lite topic to publish messages\nthat can not be exported to the destination. For example, the message can\nnot be published to the Pub/Sub service because it does not satisfy the\nconstraints documented at \u003chttps://cloud.google.com/pubsub/docs/publisher\u003e.\n\nStructured like:\nprojects/{project_number}/locations/{location}/topics/{topic_id}.\nMust be within the same project and location as the subscription. The topic\nmay be changed or removed.\n\n`\nstring dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }\n`\n\n### getDesiredState()\n\n public abstract ExportConfig.State getDesiredState()\n\nThe desired state of this export. Setting this to values other than\n`ACTIVE` and `PAUSED` will result in an error.\n\n`.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;`\n\n### getDesiredStateValue()\n\n public abstract int getDesiredStateValue()\n\nThe desired state of this export. Setting this to values other than\n`ACTIVE` and `PAUSED` will result in an error.\n\n`.google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1;`\n\n### getDestinationCase()\n\n public abstract ExportConfig.DestinationCase getDestinationCase()\n\n### getPubsubConfig()\n\n public abstract ExportConfig.PubSubConfig getPubsubConfig()\n\nMessages are automatically written from the Pub/Sub Lite topic associated\nwith this subscription to a Pub/Sub topic.\n\n`.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;`\n\n### getPubsubConfigOrBuilder()\n\n public abstract ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder()\n\nMessages are automatically written from the Pub/Sub Lite topic associated\nwith this subscription to a Pub/Sub topic.\n\n`.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;`\n\n### hasPubsubConfig()\n\n public abstract boolean hasPubsubConfig()\n\nMessages are automatically written from the Pub/Sub Lite topic associated\nwith this subscription to a Pub/Sub topic.\n\n`.google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;`"]]