public static final class GetTopicRequest.Builder extends GeneratedMessageV3.Builder<GetTopicRequest.Builder> implements GetTopicRequestOrBuilder
Request for the GetTopic method.
Protobuf type google.pubsub.v1.GetTopicRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetTopicRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetTopicRequest build()
Returns
buildPartial()
public GetTopicRequest buildPartial()
Returns
clear()
public GetTopicRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetTopicRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GetTopicRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTopic()
public GetTopicRequest.Builder clearTopic()
Required. The name of the topic to get.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public GetTopicRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetTopicRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTopic()
Required. The name of the topic to get.
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. The name of the topic to get.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public GetTopicRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetTopicRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(GetTopicRequest other)
public GetTopicRequest.Builder mergeFrom(GetTopicRequest other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetTopicRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetTopicRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTopic(String value)
public GetTopicRequest.Builder setTopic(String value)
Required. The name of the topic to get.
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
setTopicBytes(ByteString value)
public GetTopicRequest.Builder setTopicBytes(ByteString value)
Required. The name of the topic to get.
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
setUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides