public final class CreateTopicRequest extends GeneratedMessageV3 implements CreateTopicRequestOrBuilder
Request for CreateTopic.
Protobuf type google.cloud.pubsublite.v1.CreateTopicRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateTopicRequestImplements
CreateTopicRequestOrBuilderStatic Fields
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Type | Description |
int |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Type | Description |
int |
TOPIC_ID_FIELD_NUMBER
public static final int TOPIC_ID_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CreateTopicRequest getDefaultInstance()
Type | Description |
CreateTopicRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CreateTopicRequest.Builder newBuilder()
Type | Description |
CreateTopicRequest.Builder |
newBuilder(CreateTopicRequest prototype)
public static CreateTopicRequest.Builder newBuilder(CreateTopicRequest prototype)
Name | Description |
prototype | CreateTopicRequest |
Type | Description |
CreateTopicRequest.Builder |
parseDelimitedFrom(InputStream input)
public static CreateTopicRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CreateTopicRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CreateTopicRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CreateTopicRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CreateTopicRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CreateTopicRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTopicRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CreateTopicRequest> parser()
Type | Description |
Parser<CreateTopicRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public CreateTopicRequest getDefaultInstanceForType()
Type | Description |
CreateTopicRequest |
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getParserForType()
public Parser<CreateTopicRequest> getParserForType()
Type | Description |
Parser<CreateTopicRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTopic()
public Topic 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];
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];
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];
Type | Description |
ByteString | The bytes for topicId. |
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];
Type | Description |
TopicOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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];
Type | Description |
boolean | Whether the topic field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CreateTopicRequest.Builder newBuilderForType()
Type | Description |
CreateTopicRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateTopicRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CreateTopicRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CreateTopicRequest.Builder toBuilder()
Type | Description |
CreateTopicRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |