Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class CreateTopicRequest.
Request for CreateTopic.
Generated from protobuf message google.cloud.managedkafka.v1.CreateTopicRequest
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent cluster in which to create the topic. Structured like projects/{project}/locations/{location}/clusters/{cluster}
.
↳ topic_id
string
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
.
↳ topic
getParent
Required. The parent cluster in which to create the topic.
Structured like projects/{project}/locations/{location}/clusters/{cluster}
.
string
setParent
Required. The parent cluster in which to create the topic.
Structured like projects/{project}/locations/{location}/clusters/{cluster}
.
var
string
$this
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
setTopicId
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
.
var
string
$this
getTopic
Required. Configuration of the topic to create. Its name
field is
ignored.
hasTopic
clearTopic
setTopic
Required. Configuration of the topic to create. Its name
field is
ignored.
$this
static::build
parent
string
Required. The parent cluster in which to create the topic.
Structured like projects/{project}/locations/{location}/clusters/{cluster}
. Please see ManagedKafkaClient::clusterName()
for help formatting this field.
topic
topicId
string
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
.