Class ExportConfig.PubSubConfig.Builder (1.16.5)

public static final class ExportConfig.PubSubConfig.Builder extends GeneratedMessage.Builder<ExportConfig.PubSubConfig.Builder> implements ExportConfig.PubSubConfigOrBuilder

Configuration for exporting to a Pub/Sub topic.

Protobuf type google.cloud.pubsublite.v1.ExportConfig.PubSubConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ExportConfig.PubSubConfig build()
Returns
Type Description
ExportConfig.PubSubConfig

buildPartial()

public ExportConfig.PubSubConfig buildPartial()
Returns
Type Description
ExportConfig.PubSubConfig

clear()

public ExportConfig.PubSubConfig.Builder clear()
Returns
Type Description
ExportConfig.PubSubConfig.Builder
Overrides

clearTopic()

public ExportConfig.PubSubConfig.Builder clearTopic()

The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.

string topic = 1;

Returns
Type Description
ExportConfig.PubSubConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExportConfig.PubSubConfig getDefaultInstanceForType()
Returns
Type Description
ExportConfig.PubSubConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTopic()

public String getTopic()

The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.

string topic = 1;

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.

string topic = 1;

Returns
Type Description
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportConfig.PubSubConfig other)

public ExportConfig.PubSubConfig.Builder mergeFrom(ExportConfig.PubSubConfig other)
Parameter
Name Description
other ExportConfig.PubSubConfig
Returns
Type Description
ExportConfig.PubSubConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportConfig.PubSubConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PubSubConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExportConfig.PubSubConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExportConfig.PubSubConfig.Builder
Overrides

setTopic(String value)

public ExportConfig.PubSubConfig.Builder setTopic(String value)

The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.

string topic = 1;

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
ExportConfig.PubSubConfig.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public ExportConfig.PubSubConfig.Builder setTopicBytes(ByteString value)

The name of the Pub/Sub topic. Structured like: projects/{project_number}/topics/{topic_id}. The topic may be changed.

string topic = 1;

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
ExportConfig.PubSubConfig.Builder

This builder for chaining.