NAME

Google::Cloud::Pubsublite::V1::Common - Compiled Protocol Buffers messages for google/cloud/pubsublite/v1/common.proto

SYNOPSIS

use Google::Cloud::Pubsublite::V1::Common;

my $msg = Google::Cloud::Pubsublite::V1::Common::AttributeValues->new({
    values => $values,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Pubsublite::V1::Common::AttributeValues->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/pubsublite/v1/common.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::Pubsublite::V1::Common::AttributeValues

The values associated with a key of an attribute.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    The list of values associated with a key.

Google::Cloud::Pubsublite::V1::Common::PubSubMessage

A message that is published by publishers and delivered to subscribers.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    The key used for routing messages to partitions or for compaction (e.g., keep the last N messages per key). If the key is empty, the message is routed to an arbitrary partition.

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

    Type: Bytes

    The payload of the message.

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

    Type: Message (Google::Cloud::Pubsublite::V1::Common::PubSubMessage::AttributesEntry)

    Optional attributes that can be used for message metadata/headers.

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

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

    An optional, user-specified event time.

Google::Cloud::Pubsublite::V1::Common::Cursor

A cursor that describes the position of a message within a topic partition.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    The offset of a message within a topic partition. Must be greater than or equal 0.

Google::Cloud::Pubsublite::V1::Common::SequencedMessage

A message that has been stored and sequenced by the Pub/Sub Lite system.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Common::Reservation

Metadata about a reservation resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the reservation. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}

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

    Type: Int64

    The reserved throughput capacity. Every unit of throughput capacity is equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed messages.

    Any topics which are declared as using capacity from a Reservation will consume resources from this reservation instead of being charged individually.

Google::Cloud::Pubsublite::V1::Common::Topic

Metadata about a topic resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Common::Subscription

Metadata about a subscription resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

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

    Type: String

    The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

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

    Type: Message (Google::Cloud::Pubsublite::V1::Common::Subscription::DeliveryConfig)

    The settings for this subscription's message delivery.

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

    Type: Message (Google::Cloud::Pubsublite::V1::Common::ExportConfig)

    If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.

Google::Cloud::Pubsublite::V1::Common::ExportConfig

Configuration for a Pub/Sub Lite subscription that writes messages to a destination. User subscriber clients must not connect to this subscription.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Pubsublite::V1::ExportConfig::State)

    The desired state of this export. Setting this to values other than `ACTIVE` and `PAUSED` will result in an error.

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

    Type: Enum (Google::Cloud::Pubsublite::V1::ExportConfig::State)

    Output only. The current state of the export, which may be different to the desired state due to errors. This field is output only.

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

    Type: String

    Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not be exported to the destination. For example, the message can not be published to the Pub/Sub service because it does not satisfy the constraints documented at https://cloud.google.com/pubsub/docs/publisher.

    Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}. Must be within the same project and location as the subscription. The topic may be changed or removed.

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

    Type: Message (Google::Cloud::Pubsublite::V1::Common::ExportConfig::PubSubConfig)

    Messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a Pub/Sub topic.

Enum: ExportConfig::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • PAUSED => 2

  • PERMISSION_DENIED => 3

  • NOT_FOUND => 4

Google::Cloud::Pubsublite::V1::Common::TimeTarget

A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.

Inherits from Protobuf::Message.

Accessors

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

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

    Request the cursor of the first message with publish time greater than or equal to `publish_time`. All messages thereafter are guaranteed to have publish times >= `publish_time`.

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

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

    Request the cursor of the first message with event time greater than or equal to `event_time`. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than `event_time` and should be filtered by the client, if necessary.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Pubsublite::V1::Common::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.