NAME

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

SYNOPSIS

use Google::Cloud::Managedkafka::V1::Resources;

my $msg = Google::Cloud::Managedkafka::V1::Resources::Cluster->new({
    gcp_config => $gcp_config,
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/managedkafka/v1/resources.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::Resources::Cluster

An Apache Kafka cluster deployed in a location.

Inherits from Protobuf::Message.

Accessors

Enum: Cluster::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

Google::Cloud::Managedkafka::V1::Resources::CapacityConfig

A capacity configuration of a Kafka cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    Required. The number of vCPUs to provision for the cluster. Minimum: 3.

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

    Type: Int64

    Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

Google::Cloud::Managedkafka::V1::Resources::RebalanceConfig

Defines rebalancing behavior of a Kafka cluster.

Inherits from Protobuf::Message.

Accessors

Enum: RebalanceConfig::Mode

  • MODE_UNSPECIFIED => 0

  • NO_REBALANCE => 1

  • AUTO_REBALANCE_ON_SCALE_UP => 2

Google::Cloud::Managedkafka::V1::Resources::NetworkConfig

The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

    The subnet must be located in the same region as the Kafka cluster. The project may differ. Multiple subnets from the same parent network must not be specified.

Google::Cloud::Managedkafka::V1::Resources::AccessConfig

The configuration of access to the Kafka cluster.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

Google::Cloud::Managedkafka::V1::Resources::GcpConfig

Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. Access configuration for the Kafka cluster.

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

    Type: String

    Optional. Immutable. The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Structured like: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.

Google::Cloud::Managedkafka::V1::Resources::TlsConfig

The TLS configuration for the Kafka cluster.

Inherits from Protobuf::Message.

Accessors

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

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

    Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.

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

    Type: String

    Optional. A list of rules for mapping from SSL principal names to short names. These are applied in order by Kafka. Refer to the Apache Kafka documentation for `ssl.principal.mapping.rules` for the precise formatting details and syntax. Example: "RULE:^CN=(.*?),OU=ServiceUsers.*$/$1@example.com/,DEFAULT"

    This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).

Google::Cloud::Managedkafka::V1::Resources::TrustConfig

Sources of CA certificates to install in the broker's truststore.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Managedkafka::V1::Resources::Topic

A Kafka topic in a given cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the topic. The `topic` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}

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

    Type: Int32

    Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.

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

    Type: Int32

    Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.

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

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

    Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: `cleanup.policy`, `compression.type`.

Google::Cloud::Managedkafka::V1::Resources::ConsumerTopicMetadata

Metadata for a consumer group corresponding to a specific topic.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Managedkafka::V1::Resources::ConsumerPartitionMetadata

Metadata for a consumer group corresponding to a specific partition.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    Required. The current offset for this partition, or 0 if no offset has been committed.

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

    Type: String

    Optional. The associated metadata for this partition, or empty if it does not exist.

Google::Cloud::Managedkafka::V1::Resources::ConsumerGroup

A Kafka consumer group in a given cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the consumer group. The `consumer_group` segment is used when connecting directly to the cluster. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}

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

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

    Optional. Metadata for this consumer group for all topics it has metadata for. The key of the map is a topic name, structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}

Google::Cloud::Managedkafka::V1::Resources::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

Google::Cloud::Managedkafka::V1::Resources::ConnectCluster

An Apache Kafka Connect cluster deployed in a location.

Inherits from Protobuf::Message.

Accessors

Enum: ConnectCluster::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

Google::Cloud::Managedkafka::V1::Resources::ConnectNetworkConfig

The configuration of a Virtual Private Cloud (VPC) network that can access the Kafka Connect cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. VPC subnet to make available to the Kafka Connect cluster. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}

    It is used to create a Private Service Connect (PSC) interface for the Kafka Connect workers. It must be located in the same region as the Kafka Connect cluster.

    The CIDR range of the subnet must be within the IPv4 address ranges for private networks, as specified in RFC 1918. The primary subnet CIDR range must have a minimum size of /22 (1024 addresses).

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

    Type: String

    Optional. Additional subnets may be specified. They may be in another region, but must be in the same VPC network. The Connect workers can communicate with network endpoints in either the primary or additional subnets.

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

    Type: String

    Optional. Additional DNS domain names from the subnet's network to be made visible to the Connect Cluster. When using MirrorMaker2, it's necessary to add the bootstrap address's dns domain name of the target cluster to make it visible to the connector. For example: my-kafka-cluster.us-central1.managedkafka.my-project.cloud.goog

Google::Cloud::Managedkafka::V1::Resources::ConnectAccessConfig

The configuration of access to the Kafka Connect cluster.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. Virtual Private Cloud (VPC) networks that must be granted direct access to the Kafka Connect cluster. Minimum of 1 network is required. Maximum 10 networks can be specified.

Google::Cloud::Managedkafka::V1::Resources::ConnectGcpConfig

Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. Access configuration for the Kafka Connect cluster.

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

    Type: String

    Optional. Secrets to load into workers. Exact SecretVersions from Secret Manager must be provided -- aliases are not supported. Up to 32 secrets may be loaded into one cluster. Format: projects/<project-id>/secrets/<secret-name>/versions/<version-id>

Google::Cloud::Managedkafka::V1::Resources::Connector

A Kafka Connect connector in a given ConnectCluster.

Inherits from Protobuf::Message.

Accessors

Enum: Connector::State

  • STATE_UNSPECIFIED => 0

  • UNASSIGNED => 1

  • RUNNING => 2

  • PAUSED => 3

  • FAILED => 4

  • RESTARTING => 5

  • STOPPED => 6

Google::Cloud::Managedkafka::V1::Resources::TaskRetryPolicy

Task Retry Policy is implemented on a best-effort basis. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. Note that the delay between consecutive task restarts may not always precisely match the configured settings. This can happen when the ConnectCluster is in rebalancing state or if the ConnectCluster is unresponsive etc. The default values for minimum and maximum backoffs are 60 seconds and 30 minutes respectively.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.

Google::Cloud::Managedkafka::V1::Resources::Acl

Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name for the acl. Represents a single Resource Pattern. 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. `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_entries() / $msg->acl_entries($value)

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

    Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100.

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

    Type: String

    Optional. `etag` is used for concurrency control. An `etag` is returned in the response to `GetAcl` and `CreateAcl`. Callers are required to put that etag in the request to `UpdateAcl` to ensure that their change will be applied to the same version of the acl that exists in the Kafka Cluster.

    A terminal 'T' character in the etag indicates that the AclEntries were truncated; more entries for the Acl exist on the Kafka Cluster, but can't be returned in the Acl due to repeated field limits.

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

    Type: String

    Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID.

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

    Type: String

    Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*".

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

    Type: String

    Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED.

Google::Cloud::Managedkafka::V1::Resources::AclEntry

Represents the access granted for a given Resource Pattern in an ACL.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.

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

    Type: String

    Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.

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

    Type: String

    Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.

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

    Type: String

    Required. The host. Must be set to "*" for Managed Service for Apache Kafka.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.