Class DeleteTopicRequest.Builder (1.132.1)

public static final class DeleteTopicRequest.Builder extends GeneratedMessageV3.Builder<DeleteTopicRequest.Builder> implements DeleteTopicRequestOrBuilder

Request for the DeleteTopic method.

Protobuf type google.pubsub.v1.DeleteTopicRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteTopicRequest build()
Returns
Type Description
DeleteTopicRequest

buildPartial()

public DeleteTopicRequest buildPartial()
Returns
Type Description
DeleteTopicRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopic()

public DeleteTopicRequest.Builder clearTopic()

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeleteTopicRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteTopicRequest getDefaultInstanceForType()
Returns
Type Description
DeleteTopicRequest

getDescriptorForType()

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

getTopic()

public String getTopic()

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

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(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DeleteTopicRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTopic(String value)

public DeleteTopicRequest.Builder setTopic(String value)

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
DeleteTopicRequest.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public DeleteTopicRequest.Builder setTopicBytes(ByteString value)

Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
DeleteTopicRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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