Class DeleteTopicRequest.Builder (1.147.0)

public static final class DeleteTopicRequest.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.