public static final class GetTopicRequest.Builder extends GeneratedMessageV3.Builder<GetTopicRequest.Builder> implements GetTopicRequestOrBuilder
Request for the GetTopic method.
Protobuf type google.pubsub.v1.GetTopicRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GetTopicRequest.BuilderImplements
GetTopicRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetTopicRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GetTopicRequest.Builder |
build()
public GetTopicRequest build()
Type | Description |
GetTopicRequest |
buildPartial()
public GetTopicRequest buildPartial()
Type | Description |
GetTopicRequest |
clear()
public GetTopicRequest.Builder clear()
Type | Description |
GetTopicRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public GetTopicRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
GetTopicRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public GetTopicRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
GetTopicRequest.Builder |
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) = { ... }
Type | Description |
GetTopicRequest.Builder | This builder for chaining. |
clone()
public GetTopicRequest.Builder clone()
Type | Description |
GetTopicRequest.Builder |
getDefaultInstanceForType()
public GetTopicRequest getDefaultInstanceForType()
Type | Description |
GetTopicRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getTopic()
public String 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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for topic. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetTopicRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
GetTopicRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GetTopicRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
GetTopicRequest.Builder |
mergeFrom(GetTopicRequest other)
public GetTopicRequest.Builder mergeFrom(GetTopicRequest other)
Name | Description |
other | GetTopicRequest |
Type | Description |
GetTopicRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GetTopicRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GetTopicRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GetTopicRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetTopicRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
GetTopicRequest.Builder |
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) = { ... }
Name | Description |
value | String The topic to set. |
Type | Description |
GetTopicRequest.Builder | This builder for chaining. |
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) = { ... }
Name | Description |
value | ByteString The bytes for topic to set. |
Type | Description |
GetTopicRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GetTopicRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GetTopicRequest.Builder |