NAME

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes - Compiled Protocol Buffers messages for google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto

SYNOPSIS

use Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes;

my $msg = Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job->new({
    name => $name,
    description => $description,
    bucket_list => $bucket_list,
    put_object_hold => $put_object_hold,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/storagebatchoperations/v1/storage_batch_operations_types.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::Storagebatchoperations::V1::StorageBatchOperationsTypes::Job

The Storage Batch Operations Job description.

Inherits from Protobuf::Message.

Accessors

Enum: Job::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • SUCCEEDED => 2

  • CANCELED => 3

  • FAILED => 4

  • QUEUED => 5

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketOperation

BucketOperation represents a bucket-level breakdown of a Job.

Inherits from Protobuf::Message.

Accessors

Enum: BucketOperation::State

  • STATE_UNSPECIFIED => 0

  • QUEUED => 1

  • RUNNING => 2

  • SUCCEEDED => 3

  • CANCELED => 4

  • FAILED => 5

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList

Describes list of buckets and their objects to be transformed.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Manifest

Describes list of objects to be transformed.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. `manifest_location` must contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Each row in the file must include the object details i.e. BucketId and Name. Generation may optionally be specified. When it is not specified the live object is acted upon. `manifest_location` should either be 1) An absolute path to the object in the format of `gs://bucket_name/path/file_name.csv`. 2) An absolute path with a single wildcard character in the file name, for example `gs://bucket_name/path/file_name*.csv`. If manifest location is specified with a wildcard, objects in all manifest files matching the pattern will be acted upon.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PrefixList

Describes prefixes of objects to be transformed.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Include prefixes of the objects to be transformed. * Supports full object name * Supports prefix of the object name * Wildcards are not supported * Supports empty string for all objects in a bucket.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold

Describes options to update object hold.

Inherits from Protobuf::Message.

Accessors

Enum: PutObjectHold::HoldStatus

  • HOLD_STATUS_UNSPECIFIED => 0

  • SET => 1

  • UNSET => 2

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject

Describes options to delete an object.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Required. Controls deletion behavior when versioning is enabled for the object's bucket. If true both live and noncurrent objects will be permanently deleted. Otherwise live objects in versioned buckets will become noncurrent and objects that were already noncurrent will be skipped. This setting doesn't have any impact on the Soft Delete feature. All objects deleted by this service can be be restored for the duration of the Soft Delete retention duration if enabled. If enabled and the manifest doesn't specify an object's generation, a GetObjectMetadata call (a Class B operation) will be made to determine the live object generation.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject

Describes options for object rewrite.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Resource name of the Cloud KMS key that will be used to encrypt the object. The Cloud KMS key must be located in same location as the object. Refer to https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys#add-object-key for additional documentation. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key} For example: "projects/123456/locations/us-central1/keyRings/my-keyring/cryptoKeys/my-key". The object will be rewritten and set with the specified KMS key.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectRetention

Describes options for object retention update.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.

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

    Type: Enum (Google::Cloud::Storagebatchoperations::V1::ObjectRetention::RetentionMode)

    Required. The retention mode of the object.

Enum: ObjectRetention::RetentionMode

  • RETENTION_MODE_UNSPECIFIED => 0

  • LOCKED => 1

  • UNLOCKED => 2

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata

Describes options for object metadata update.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Updates objects Content-Disposition fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer https://cloud.google.com/storage/docs/metadata#content-disposition for additional documentation.

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

    Type: String

    Optional. Updates objects Content-Encoding fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-encoding.

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

    Type: String

    Optional. Updates objects Content-Language fixed metadata. Refer to ISO 639-1 language codes for typical values of this metadata. Max length 100 characters. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-language.

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

    Type: String

    Optional. Updates objects Content-Type fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#content-type

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

    Type: String

    Optional. Updates objects Cache-Control fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Additionally, the value for Custom-Time cannot decrease. Refer to documentation in https://cloud.google.com/storage/docs/metadata#caching_data.

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

    Type: String

    Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-time.

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

    Type: Message (Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata::CustomMetadataEntry)

    Optional. Updates objects custom metadata. Adds or sets individual custom metadata key value pairs on objects. Keys that are set with empty custom metadata values will have its value cleared. Existing custom metadata not specified with this flag is not changed. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-metadata

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

    Type: Message (Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectRetention)

    Optional. Updates objects retention lock configuration. Unset values will be ignored. Set empty values to clear the retention for the object with existing `Unlocked` retention mode. Object with existing `Locked` retention mode cannot be cleared or reduce retain_until_time. Refer to documentation in https://cloud.google.com/storage/docs/object-lock

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ObjectCustomContextPayload

Describes the payload of a user defined object custom context.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The value of the object custom context. If set, `value` must NOT be an empty string since it is a required field in custom context. If unset, `value` will be ignored and no changes will be made to the `value` field of the custom context payload.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates

Describes a collection of updates to apply to custom contexts identified by key.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext

Describes options to update object custom contexts.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary

A summary of errors by error code, plus a count and sample error log entries.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorLogEntry

An entry describing an error that has occurred.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Output only. Object URL. e.g. gs://my_bucket/object.txt

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

    Type: String

    Optional. Output only. At most 5 error log entries are recorded for a given error code for a job.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters

Describes details about the progress of the job.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    Output only. Number of objects listed.

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

    Type: Int64

    Output only. Number of objects completed.

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

    Type: Int64

    Output only. The number of objects that failed due to user errors or service errors.

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

    Type: Int64

    Output only. Number of bytes found from source. This field is only populated for jobs with a prefix list object configuration.

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

    Type: Int64

    Output only. Number of object custom contexts created. This field is only populated for jobs with the UpdateObjectCustomContext transformation.

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

    Type: Int64

    Output only. Number of object custom contexts deleted. This field is only populated for jobs with the UpdateObjectCustomContext transformation.

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

    Type: Int64

    Output only. Number of object custom contexts updated. This counter tracks custom contexts where the key already existed, but the payload was modified. This field is only populated for jobs with the UpdateObjectCustomContext transformation.

Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::LoggingConfig

Specifies the Cloud Logging behavior.

Inherits from Protobuf::Message.

Accessors

Enum: LoggingConfig::LoggableAction

  • LOGGABLE_ACTION_UNSPECIFIED => 0

  • TRANSFORM => 6

Enum: LoggingConfig::LoggableActionState

  • LOGGABLE_ACTION_STATE_UNSPECIFIED => 0

  • SUCCEEDED => 1

  • FAILED => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.