Class CreateTopicRequest (1.12.4)

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
TypeDescription
int

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

TOPIC_ID_FIELD_NUMBER

public static final int TOPIC_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateTopicRequest getDefaultInstance()
Returns
TypeDescription
CreateTopicRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateTopicRequest.Builder newBuilder()
Returns
TypeDescription
CreateTopicRequest.Builder

newBuilder(CreateTopicRequest prototype)

public static CreateTopicRequest.Builder newBuilder(CreateTopicRequest prototype)
Parameter
NameDescription
prototypeCreateTopicRequest
Returns
TypeDescription
CreateTopicRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateTopicRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateTopicRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateTopicRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateTopicRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateTopicRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateTopicRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateTopicRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateTopicRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateTopicRequest> parser()
Returns
TypeDescription
Parser<CreateTopicRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateTopicRequest getDefaultInstanceForType()
Returns
TypeDescription
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) = { ... }

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateTopicRequest> getParserForType()
Returns
TypeDescription
Parser<CreateTopicRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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];

Returns
TypeDescription
TopicOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
boolean

Whether the topic field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateTopicRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateTopicRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateTopicRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateTopicRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateTopicRequest.Builder toBuilder()
Returns
TypeDescription
CreateTopicRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException