Class CreateTopicRequest (0.5.0)

public final class CreateTopicRequest extends GeneratedMessageV3 implements CreateTopicRequestOrBuilder

Request for CreateTopic.

Protobuf type google.cloud.managedkafka.v1.CreateTopicRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
Type Description
int

TOPIC_ID_FIELD_NUMBER

public static final int TOPIC_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateTopicRequest getDefaultInstance()
Returns
Type Description
CreateTopicRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateTopicRequest.Builder newBuilder()
Returns
Type Description
CreateTopicRequest.Builder

newBuilder(CreateTopicRequest prototype)

public static CreateTopicRequest.Builder newBuilder(CreateTopicRequest prototype)
Parameter
Name Description
prototype CreateTopicRequest
Returns
Type Description
CreateTopicRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateTopicRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateTopicRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateTopicRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateTopicRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateTopicRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateTopicRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateTopicRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateTopicRequest> parser()
Returns
Type Description
Parser<CreateTopicRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateTopicRequest getDefaultInstanceForType()
Returns
Type Description
CreateTopicRequest

getParent()

public String getParent()

Required. The parent cluster in which to create the topic. Structured like projects/{project}/locations/{location}/clusters/{cluster}.

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 cluster in which to create the topic. Structured like projects/{project}/locations/{location}/clusters/{cluster}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateTopicRequest> getParserForType()
Returns
Type Description
Parser<CreateTopicRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTopic()

public Topic getTopic()

Required. Configuration of the topic to create. Its name field is ignored.

.google.cloud.managedkafka.v1.Topic topic = 3 [(.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 = 2 [(.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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
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.managedkafka.v1.Topic topic = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TopicOrBuilder

hasTopic()

public boolean hasTopic()

Required. Configuration of the topic to create. Its name field is ignored.

.google.cloud.managedkafka.v1.Topic topic = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the topic field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateTopicRequest.Builder newBuilderForType()
Returns
Type Description
CreateTopicRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateTopicRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateTopicRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateTopicRequest.Builder toBuilder()
Returns
Type Description
CreateTopicRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException