Class PubsubDestination.Builder (1.23.0)

public static final class PubsubDestination.Builder extends GeneratedMessageV3.Builder<PubsubDestination.Builder> implements PubsubDestinationOrBuilder

A Pub/Sub destination.

Protobuf type google.cloud.video.transcoder.v1.PubsubDestination

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PubsubDestination build()
Returns
TypeDescription
PubsubDestination

buildPartial()

public PubsubDestination buildPartial()
Returns
TypeDescription
PubsubDestination

clear()

public PubsubDestination.Builder clear()
Returns
TypeDescription
PubsubDestination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PubsubDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PubsubDestination.Builder
Overrides

clearTopic()

public PubsubDestination.Builder clearTopic()

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/{project}/topics/{topic}.

string topic = 1;

Returns
TypeDescription
PubsubDestination.Builder

This builder for chaining.

clone()

public PubsubDestination.Builder clone()
Returns
TypeDescription
PubsubDestination.Builder
Overrides

getDefaultInstanceForType()

public PubsubDestination getDefaultInstanceForType()
Returns
TypeDescription
PubsubDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTopic()

public String getTopic()

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/{project}/topics/{topic}.

string topic = 1;

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/{project}/topics/{topic}.

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(PubsubDestination other)

public PubsubDestination.Builder mergeFrom(PubsubDestination other)
Parameter
NameDescription
otherPubsubDestination
Returns
TypeDescription
PubsubDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public PubsubDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PubsubDestination.Builder
Overrides

setTopic(String value)

public PubsubDestination.Builder setTopic(String value)

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/{project}/topics/{topic}.

string topic = 1;

Parameter
NameDescription
valueString

The topic to set.

Returns
TypeDescription
PubsubDestination.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public PubsubDestination.Builder setTopicBytes(ByteString value)

The name of the Pub/Sub topic to publish job completion notification to. For example: projects/{project}/topics/{topic}.

string topic = 1;

Parameter
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
PubsubDestination.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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