public static final class GetTopicPartitionsRequest.Builder extends GeneratedMessageV3.Builder<GetTopicPartitionsRequest.Builder> implements GetTopicPartitionsRequestOrBuilder
Request for GetTopicPartitions.
Protobuf type google.cloud.pubsublite.v1.GetTopicPartitionsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GetTopicPartitionsRequest.BuilderImplements
GetTopicPartitionsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetTopicPartitionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
build()
public GetTopicPartitionsRequest build()
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest |
buildPartial()
public GetTopicPartitionsRequest buildPartial()
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest |
clear()
public GetTopicPartitionsRequest.Builder clear()
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public GetTopicPartitionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
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 | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GetTopicPartitionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
clone()
public GetTopicPartitionsRequest.Builder clone()
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
getDefaultInstanceForType()
public GetTopicPartitionsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(GetTopicPartitionsRequest other)
public GetTopicPartitionsRequest.Builder mergeFrom(GetTopicPartitionsRequest other)
Parameter | |
---|---|
Name | Description |
other | GetTopicPartitionsRequest |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetTopicPartitionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GetTopicPartitionsRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicPartitionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GetTopicPartitionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicPartitionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GetTopicPartitionsRequest.Builder |