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 |
---|
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CreateTopicRequest.Builder newBuilder()
newBuilder(CreateTopicRequest prototype)
public static CreateTopicRequest.Builder newBuilder(CreateTopicRequest prototype)
public static CreateTopicRequest parseDelimitedFrom(InputStream input)
public static CreateTopicRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CreateTopicRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CreateTopicRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(CodedInputStream input)
public static CreateTopicRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(InputStream input)
public static CreateTopicRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CreateTopicRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateTopicRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CreateTopicRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public CreateTopicRequest getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
getParserForType()
public Parser<CreateTopicRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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 |
---|
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];
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CreateTopicRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateTopicRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public CreateTopicRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides