Class ExportConfig.PubSubConfig.Builder (1.11.2)

public static final class ExportConfig.PubSubConfig.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PubSubConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

build()

public ExportConfig.PubSubConfig build()
Returns
TypeDescription
ExportConfig.PubSubConfig

buildPartial()

public ExportConfig.PubSubConfig buildPartial()
Returns
TypeDescription
ExportConfig.PubSubConfig

clear()

public ExportConfig.PubSubConfig.Builder clear()
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExportConfig.PubSubConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportConfig.PubSubConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ExportConfig.PubSubConfig.Builder

This builder for chaining.

clone()

public ExportConfig.PubSubConfig.Builder clone()
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

getDefaultInstanceForType()

public ExportConfig.PubSubConfig getDefaultInstanceForType()
Returns
TypeDescription
ExportConfig.PubSubConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportConfig.PubSubConfig other)

public ExportConfig.PubSubConfig.Builder mergeFrom(ExportConfig.PubSubConfig other)
Parameter
NameDescription
otherExportConfig.PubSubConfig
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportConfig.PubSubConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExportConfig.PubSubConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PubSubConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PubSubConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExportConfig.PubSubConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The topic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
ExportConfig.PubSubConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PubSubConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.PubSubConfig.Builder
Overrides