public final class CreateTopicRequest extends GeneratedMessageV3 implements CreateTopicRequestOrBuilder
Request for CreateTopic.
Protobuf type google.cloud.pubsublite.v1.CreateTopicRequest
Static Fields
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value
TOPIC_ID_FIELD_NUMBER
public static final int TOPIC_ID_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CreateTopicRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CreateTopicRequest.Builder newBuilder()
Returns
newBuilder(CreateTopicRequest prototype)
public static CreateTopicRequest.Builder newBuilder(CreateTopicRequest prototype)
Parameter
Returns
public static CreateTopicRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateTopicRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CreateTopicRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CreateTopicRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateTopicRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateTopicRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateTopicRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateTopicRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CreateTopicRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CreateTopicRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CreateTopicRequest getDefaultInstanceForType()
Returns
getParent()
public String getParent()
Required. The parent location in which to create the topic.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The parent location in which to create the topic.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getParserForType()
public Parser<CreateTopicRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTopic()
Required. Configuration of the topic to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
Topic | The topic.
|
getTopicId()
public String getTopicId()
Required. The ID to use for the topic, which will become the final
component of the topic's name.
This value is structured like: my-topic-name
.
string topic_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The topicId.
|
getTopicIdBytes()
public ByteString getTopicIdBytes()
Required. The ID to use for the topic, which will become the final
component of the topic's name.
This value is structured like: my-topic-name
.
string topic_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getTopicOrBuilder()
public TopicOrBuilder getTopicOrBuilder()
Required. Configuration of the topic to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasTopic()
public boolean hasTopic()
Required. Configuration of the topic to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the topic field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CreateTopicRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateTopicRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CreateTopicRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions