Class GetTopicPartitionsRequest.Builder (1.10.0)

public static final class GetTopicPartitionsRequest.Builder extends GeneratedMessageV3.Builder<GetTopicPartitionsRequest.Builder> implements GetTopicPartitionsRequestOrBuilder

Request for GetTopicPartitions.

Protobuf type google.cloud.pubsublite.v1.GetTopicPartitionsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetTopicPartitionsRequest build()
Returns
TypeDescription
GetTopicPartitionsRequest

buildPartial()

public GetTopicPartitionsRequest buildPartial()
Returns
TypeDescription
GetTopicPartitionsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetTopicPartitionsRequest.Builder clearName()

Required. The topic whose partition information to return.

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

Returns
TypeDescription
GetTopicPartitionsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetTopicPartitionsRequest getDefaultInstanceForType()
Returns
TypeDescription
GetTopicPartitionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The topic whose partition information to return.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The topic whose partition information to return.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetTopicPartitionsRequest other)

public GetTopicPartitionsRequest.Builder mergeFrom(GetTopicPartitionsRequest other)
Parameter
NameDescription
otherGetTopicPartitionsRequest
Returns
TypeDescription
GetTopicPartitionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetTopicPartitionsRequest.Builder setName(String value)

Required. The topic whose partition information to return.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetTopicPartitionsRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetTopicPartitionsRequest.Builder setNameBytes(ByteString value)

Required. The topic whose partition information to return.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetTopicPartitionsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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