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.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent cluster in which to create the topic. Structured like |
↳ 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: |
↳ topic |
Topic
Required. Configuration of the topic to create. Its |
getParent
Required. The parent cluster in which to create the topic.
Structured like
projects/{project}/locations/{location}/clusters/{cluster}
.
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The parent cluster in which to create the topic.
Structured like
projects/{project}/locations/{location}/clusters/{cluster}
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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
.
Returns | |
---|---|
Type | Description |
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
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTopic
Required. Configuration of the topic to create. Its name
field is
ignored.
Returns | |
---|---|
Type | Description |
Topic|null |
hasTopic
clearTopic
setTopic
Required. Configuration of the topic to create. Its name
field is
ignored.
Parameter | |
---|---|
Name | Description |
var |
Topic
|
Returns | |
---|---|
Type | Description |
$this |
static::build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The parent cluster in which to create the topic.
Structured like
|
topic |
Topic
Required. Configuration of the topic to create. Its |
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: |
Returns | |
---|---|
Type | Description |
CreateTopicRequest |