Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class CreateConnectorRequest.
Request for CreateConnector.
Generated from protobuf messagegoogle.cloud.managedkafka.v1.CreateConnectorRequest
Namespace
Google \ Cloud \ ManagedKafka \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent Connect cluster in which to create the connector. Structured likeprojects/{project}/locations/{location}/connectClusters/{connect_cluster_id}.
↳ connector_id
string
Required. The ID to use for the connector, which will become the final component of the connector's name. The ID must be 1-63 characters long, and match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?to comply with RFC 1035. This value is structured like:my-connector-id.
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?to comply with
RFC 1035.
This value is structured like:my-connector-id.
Returns
Type
Description
string
setConnectorId
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?to comply with
RFC 1035.
Required. The parent Connect cluster in which to create the connector.
Structured likeprojects/{project}/locations/{location}/connectClusters/{connect_cluster_id}. Please seeManagedKafkaConnectClient::connectClusterName()for help formatting this field.
Required. The ID to use for the connector, which will become the final
component of the connector's name. The ID must be 1-63 characters long, and
match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?to comply with
RFC 1035.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Managed Kafka V1 Client - Class CreateConnectorRequest (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-managedkafka/latest/V1.CreateConnectorRequest)\n- [0.6.0](/php/docs/reference/cloud-managedkafka/0.6.0/V1.CreateConnectorRequest)\n- [0.5.0](/php/docs/reference/cloud-managedkafka/0.5.0/V1.CreateConnectorRequest)\n- [0.4.1](/php/docs/reference/cloud-managedkafka/0.4.1/V1.CreateConnectorRequest)\n- [0.3.1](/php/docs/reference/cloud-managedkafka/0.3.1/V1.CreateConnectorRequest)\n- [0.2.3](/php/docs/reference/cloud-managedkafka/0.2.3/V1.CreateConnectorRequest)\n- [0.1.3](/php/docs/reference/cloud-managedkafka/0.1.3/V1.CreateConnectorRequest) \nReference documentation and code samples for the Google Cloud Managed Kafka V1 Client class CreateConnectorRequest.\n\nRequest for CreateConnector.\n\nGenerated from protobuf message `google.cloud.managedkafka.v1.CreateConnectorRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent Connect cluster in which to create the connector.\n\nStructured like\n`projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.\n\n### setParent\n\nRequired. The parent Connect cluster in which to create the connector.\n\nStructured like\n`projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.\n\n### getConnectorId\n\nRequired. The ID to use for the connector, which will become the final\ncomponent of the connector's name. The ID must be 1-63 characters long, and\nmatch the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with\nRFC 1035.\n\nThis value is structured like: `my-connector-id`.\n\n### setConnectorId\n\nRequired. The ID to use for the connector, which will become the final\ncomponent of the connector's name. The ID must be 1-63 characters long, and\nmatch the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with\nRFC 1035.\n\nThis value is structured like: `my-connector-id`.\n\n### getConnector\n\nRequired. The connector to create.\n\n### hasConnector\n\n### clearConnector\n\n### setConnector\n\nRequired. The connector to create.\n\n### static::build"]]