Class DeleteTopicRequest.Builder (1.125.13)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteTopicRequest build()
Returns
TypeDescription
DeleteTopicRequest

buildPartial()

public DeleteTopicRequest buildPartial()
Returns
TypeDescription
DeleteTopicRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteTopicRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DeleteTopicRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteTopicRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteTopicRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
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(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DeleteTopicRequest other)

public DeleteTopicRequest.Builder mergeFrom(DeleteTopicRequest other)
Parameter
NameDescription
otherDeleteTopicRequest
Returns
TypeDescription
DeleteTopicRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DeleteTopicRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The topic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
DeleteTopicRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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