public static final class PubsubDestination.Builder extends GeneratedMessageV3.Builder<PubsubDestination.Builder> implements PubsubDestinationOrBuilder
A Pub/Sub destination.
Protobuf type google.cloud.asset.v1.PubsubDestination
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PubsubDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PubsubDestination build()
Returns
buildPartial()
public PubsubDestination buildPartial()
Returns
clear()
public PubsubDestination.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PubsubDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PubsubDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTopic()
public PubsubDestination.Builder clearTopic()
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
string topic = 1;
Returns
clone()
public PubsubDestination.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PubsubDestination getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTopic()
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
string topic = 1;
Returns
Type |
Description |
String |
The topic.
|
getTopicBytes()
public ByteString getTopicBytes()
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
string topic = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PubsubDestination other)
public PubsubDestination.Builder mergeFrom(PubsubDestination other)
Parameter
Returns
public PubsubDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PubsubDestination.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PubsubDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PubsubDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PubsubDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTopic(String value)
public PubsubDestination.Builder setTopic(String value)
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
string topic = 1;
Parameter
Name |
Description |
value |
String
The topic to set.
|
Returns
setTopicBytes(ByteString value)
public PubsubDestination.Builder setTopicBytes(ByteString value)
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
string topic = 1;
Parameter
Name |
Description |
value |
ByteString
The bytes for topic to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final PubsubDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides