# Interface ExportConfigOrBuilder (1.16.5)

1.16.5 (latest) 1.16.2 1.15.21 1.14.8 1.13.8 1.12.22 1.11.2 1.10.0 1.9.4 1.8.0 1.7.1 1.6.3 1.5.5 1.4.12

    public interface ExportConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCurrentState()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfig.State` | The currentState. |

### getCurrentStateValue()

    public abstract 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];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for currentState. |

### getDeadLetterTopic()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deadLetterTopic. |

### getDeadLetterTopicBytes()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deadLetterTopic. |

### getDesiredState()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfig.State` | The desiredState. |

### getDesiredStateValue()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for desiredState. |

### getDestinationCase()

    public abstract ExportConfig.DestinationCase getDestinationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfig.DestinationCase` |   |

### getPubsubConfig()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig` | The pubsubConfig. |

### getPubsubConfigOrBuilder()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsublite/latest/com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder` |   |

### hasPubsubConfig()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pubsubConfig field is set. |