Service Client: Google::Cloud::Managedkafka::V1::ManagedKafka::ManagedKafkaClient

Client stub representing the remote ManagedKafka gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to managedkafka.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Managedkafka::V1::ManagedKafka - Compiled Protocol Buffers messages for google/cloud/managedkafka/v1/managed_kafka.proto

SYNOPSIS

use Google::Cloud::Managedkafka::V1::ManagedKafka;

my $msg = Google::Cloud::Managedkafka::V1::ManagedKafka::ListClustersRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
    filter => $filter,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Managedkafka::V1::ManagedKafka::ListClustersRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/managedkafka/v1/managed_kafka.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Managedkafka::V1::ManagedKafka::ListClustersRequest

Request for ListClusters.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent location whose clusters are to be listed. Structured like `projects/{project}/locations/{location}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of clusters to return. The service may return fewer than this value. If unspecified, server will pick an appropriate default.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListClusters` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListClusters` must match the call that provided the page token.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filter expression for the result.

  • $msg->order_by() / $msg->order_by($value)

    Type: String

    Optional. Order by fields for the result.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListClustersResponse

Response for ListClusters.

Inherits from Protobuf::Message.

Accessors

  • $msg->clusters() / $msg->clusters($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Cluster)

    The list of Clusters in the requested parent.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached.

Google::Cloud::Managedkafka::V1::ManagedKafka::GetClusterRequest

Request for GetCluster.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the cluster whose configuration to return.

Google::Cloud::Managedkafka::V1::ManagedKafka::CreateClusterRequest

Request for CreateCluster.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent region in which to create the cluster. Structured like `projects/{project}/locations/{location}`.

  • $msg->cluster_id() / $msg->cluster_id($value)

    Type: String

    Required. The ID to use for the cluster, which will become the final component of the cluster'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-cluster-id`.

  • $msg->cluster() / $msg->cluster($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Cluster)

    Required. Configuration of the cluster to create. Its `name` field is ignored.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

    The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Managedkafka::V1::ManagedKafka::UpdateClusterRequest

Request for UpdateCluster.

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the cluster resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.

  • $msg->cluster() / $msg->cluster($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Cluster)

    Required. The cluster to update. Its `name` field must be populated.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

    The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Managedkafka::V1::ManagedKafka::DeleteClusterRequest

Request for DeleteCluster.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the cluster to delete.

  • $msg->request_id() / $msg->request_id($value)

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

    The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Managedkafka::V1::ManagedKafka::ListTopicsRequest

Request for ListTopics.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent cluster whose topics are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the parent is returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListTopics` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListTopics` must match the call that provided the page token.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListTopicsResponse

Response for ListTopics.

Inherits from Protobuf::Message.

Accessors

  • $msg->topics() / $msg->topics($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Topic)

    The list of topics in the requested parent. The order of the topics is unspecified.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.

Google::Cloud::Managedkafka::V1::ManagedKafka::GetTopicRequest

Request for GetTopic.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the topic whose configuration to return. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.

Google::Cloud::Managedkafka::V1::ManagedKafka::CreateTopicRequest

Request for CreateTopic.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent cluster in which to create the topic. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

  • $msg->topic_id() / $msg->topic_id($value)

    Type: 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`.

  • $msg->topic() / $msg->topic($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Topic)

    Required. Configuration of the topic to create. Its `name` field is ignored.

Google::Cloud::Managedkafka::V1::ManagedKafka::UpdateTopicRequest

Request for UpdateTopic.

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the Topic resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.

  • $msg->topic() / $msg->topic($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Topic)

    Required. The topic to update. Its `name` field must be populated.

Google::Cloud::Managedkafka::V1::ManagedKafka::DeleteTopicRequest

Request for DeleteTopic.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the topic to delete. `projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}`.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListConsumerGroupsRequest

Request for ListConsumerGroups.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent cluster whose consumer groups are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of consumer groups to return. The service may return fewer than this value. If unset or zero, all consumer groups for the parent is returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListConsumerGroups` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListConsumerGroups` must match the call that provided the page token.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListConsumerGroupsResponse

Response for ListConsumerGroups.

Inherits from Protobuf::Message.

Accessors

  • $msg->consumer_groups() / $msg->consumer_groups($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::ConsumerGroup)

    The list of consumer group in the requested parent. The order of the consumer groups is unspecified.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.

Google::Cloud::Managedkafka::V1::ManagedKafka::GetConsumerGroupRequest

Request for GetConsumerGroup.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the consumer group whose configuration to return. `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`.

Google::Cloud::Managedkafka::V1::ManagedKafka::UpdateConsumerGroupRequest

Request for UpdateConsumerGroup.

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Field mask is used to specify the fields to be overwritten in the ConsumerGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The mask is required and a value of * will update all fields.

  • $msg->consumer_group() / $msg->consumer_group($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::ConsumerGroup)

    Required. The consumer group to update. Its `name` field must be populated.

Google::Cloud::Managedkafka::V1::ManagedKafka::DeleteConsumerGroupRequest

Request for DeleteConsumerGroup.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the consumer group to delete. `projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumerGroup}`.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListAclsRequest

Request for ListAcls.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent cluster whose acls are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of acls to return. The service may return fewer than this value. If unset or zero, all acls for the parent is returned.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListAcls` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListAcls` must match the call that provided the page token.

Google::Cloud::Managedkafka::V1::ManagedKafka::ListAclsResponse

Response for ListAcls.

Inherits from Protobuf::Message.

Accessors

  • $msg->acls() / $msg->acls($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Acl)

    The list of acls in the requested parent. The order of the acls is unspecified.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.

Google::Cloud::Managedkafka::V1::ManagedKafka::GetAclRequest

Request for GetAcl.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the acl to return. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.

    The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.

Google::Cloud::Managedkafka::V1::ManagedKafka::CreateAclRequest

Request for CreateAcl.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent cluster in which to create the acl. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`.

  • $msg->acl_id() / $msg->acl_id($value)

    Type: String

    Required. The ID to use for the acl, which will become the final component of the acl's name. The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. `acl_id` is structured like one of the following:

    For acls on the cluster: `cluster`

    For acls on a single resource within the cluster: `topic/{resource_name}` `consumerGroup/{resource_name}` `transactionalId/{resource_name}`

    For acls on all resources that match a prefix: `topicPrefixed/{resource_name}` `consumerGroupPrefixed/{resource_name}` `transactionalIdPrefixed/{resource_name}`

    For acls on all resources of a given type (i.e. the wildcard literal "*"): `allTopics` (represents `topic/*`) `allConsumerGroups` (represents `consumerGroup/*`) `allTransactionalIds` (represents `transactionalId/*`)

  • $msg->acl() / $msg->acl($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Acl)

    Required. Configuration of the acl to create. Its `name` field is ignored.

Google::Cloud::Managedkafka::V1::ManagedKafka::UpdateAclRequest

Request for UpdateAcl.

Inherits from Protobuf::Message.

Accessors

  • $msg->acl() / $msg->acl($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Acl)

    Required. The updated acl. Its `name` and `etag` fields must be populated. `acl_entries` must not be empty in the updated acl; to remove all acl entries for an acl, use DeleteAcl.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Field mask is used to specify the fields to be overwritten in the Acl resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask.

Google::Cloud::Managedkafka::V1::ManagedKafka::DeleteAclRequest

Request for DeleteAcl.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the acl to delete. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.

    The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.

Google::Cloud::Managedkafka::V1::ManagedKafka::AddAclEntryRequest

Request for AddAclEntry.

Inherits from Protobuf::Message.

Accessors

  • $msg->acl() / $msg->acl($value)

    Type: String

    Required. The name of the acl to add the acl entry to. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.

    The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.

  • $msg->acl_entry() / $msg->acl_entry($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::AclEntry)

    Required. The acl entry to add.

Google::Cloud::Managedkafka::V1::ManagedKafka::AddAclEntryResponse

Response for AddAclEntry.

Inherits from Protobuf::Message.

Accessors

  • $msg->acl() / $msg->acl($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Acl)

    The updated acl.

  • $msg->acl_created() / $msg->acl_created($value)

    Type: Bool

    Whether the acl was created as a result of adding the acl entry.

Google::Cloud::Managedkafka::V1::ManagedKafka::RemoveAclEntryRequest

Request for RemoveAclEntry.

Inherits from Protobuf::Message.

Accessors

  • $msg->acl() / $msg->acl($value)

    Type: String

    Required. The name of the acl to remove the acl entry from. Structured like: `projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}`.

    The structure of `acl_id` defines the Resource Pattern (resource_type, resource_name, pattern_type) of the acl. See `Acl.name` for details.

  • $msg->acl_entry() / $msg->acl_entry($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::AclEntry)

    Required. The acl entry to remove.

Google::Cloud::Managedkafka::V1::ManagedKafka::RemoveAclEntryResponse

Response for RemoveAclEntry.

Inherits from Protobuf::Message.

Accessors

  • $msg->acl() / $msg->acl($value)

    Type: Message (Google::Cloud::Managedkafka::V1::Resources::Acl)

    The updated acl. Returned if the removed acl entry was not the last entry in the acl.

  • $msg->acl_deleted() / $msg->acl_deleted($value)

    Type: Bool

    Returned with value true if the removed acl entry was the last entry in the acl, resulting in acl deletion.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Managedkafka::V1::ManagedKafka::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.