Class EventPublishConfig.Builder (0.16.0)

public static final class EventPublishConfig.Builder extends GeneratedMessageV3.Builder<EventPublishConfig.Builder> implements EventPublishConfigOrBuilder

Confirguration of PubSubEventWriter.

Protobuf type google.events.cloud.datafusion.v1.EventPublishConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EventPublishConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventPublishConfig.Builder
Overrides

build()

public EventPublishConfig build()
Returns
Type Description
EventPublishConfig

buildPartial()

public EventPublishConfig buildPartial()
Returns
Type Description
EventPublishConfig

clear()

public EventPublishConfig.Builder clear()
Returns
Type Description
EventPublishConfig.Builder
Overrides

clearEnabled()

public EventPublishConfig.Builder clearEnabled()

Required. Option to enable Event Publishing.

bool enabled = 1;

Returns
Type Description
EventPublishConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventPublishConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EventPublishConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EventPublishConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EventPublishConfig.Builder
Overrides

clearTopic()

public EventPublishConfig.Builder clearTopic()

Required. The resource name of the Pub/Sub topic. Format: projects/{project_id}/topics/{topic_id}

string topic = 2;

Returns
Type Description
EventPublishConfig.Builder

This builder for chaining.

clone()

public EventPublishConfig.Builder clone()
Returns
Type Description
EventPublishConfig.Builder
Overrides

getDefaultInstanceForType()

public EventPublishConfig getDefaultInstanceForType()
Returns
Type Description
EventPublishConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Required. Option to enable Event Publishing.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getTopic()

public String getTopic()

Required. The resource name of the Pub/Sub topic. Format: projects/{project_id}/topics/{topic_id}

string topic = 2;

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. The resource name of the Pub/Sub topic. Format: projects/{project_id}/topics/{topic_id}

string topic = 2;

Returns
Type Description
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventPublishConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventPublishConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventPublishConfig.Builder
Overrides

setEnabled(boolean value)

public EventPublishConfig.Builder setEnabled(boolean value)

Required. Option to enable Event Publishing.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
EventPublishConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventPublishConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventPublishConfig.Builder
Overrides

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

public EventPublishConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EventPublishConfig.Builder
Overrides

setTopic(String value)

public EventPublishConfig.Builder setTopic(String value)

Required. The resource name of the Pub/Sub topic. Format: projects/{project_id}/topics/{topic_id}

string topic = 2;

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
EventPublishConfig.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public EventPublishConfig.Builder setTopicBytes(ByteString value)

Required. The resource name of the Pub/Sub topic. Format: projects/{project_id}/topics/{topic_id}

string topic = 2;

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
EventPublishConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EventPublishConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventPublishConfig.Builder
Overrides