Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class Connector.
A Kafka Connect connector in a given ConnectCluster.
Generated from protobuf message google.cloud.managedkafka.v1.Connector
Namespace
Google \ Cloud \ ManagedKafka \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ task_restart_policy
↳ name
string
Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
↳ configs
array| Google\Protobuf\Internal\MapField
Optional. Connector config as keys/values. The keys of the map are connector property names, for example: connector.class
, tasks.max
, key.converter
.
↳ state
int
Output only. The current state of the connector.
getTaskRestartPolicy
Optional. Restarts the individual tasks of a Connector.
hasTaskRestartPolicy
setTaskRestartPolicy
Optional. Restarts the individual tasks of a Connector.
$this
getName
Identifier. The name of the connector.
Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
string
setName
Identifier. The name of the connector.
Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
var
string
$this
getConfigs
Optional. Connector config as keys/values.
The keys of the map are connector property names, for example: connector.class
, tasks.max
, key.converter
.
setConfigs
Optional. Connector config as keys/values.
The keys of the map are connector property names, for example: connector.class
, tasks.max
, key.converter
.
$this
getState
Output only. The current state of the connector.
int
setState
Output only. The current state of the connector.
var
int
$this
getRestartPolicy
string