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
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the Job. job_id is unique within the project, that is either set by the customer or defined by the service. Format: projects/{project}/locations/global/jobs/{job_id} . For example: "projects/123456/locations/global/jobs/job01".
$msg->description()/$msg->description($value)Type:
StringOptional. A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.
$msg->bucket_list()/$msg->bucket_list($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList)Specifies a list of buckets and their objects to be transformed.
$msg->put_object_hold()/$msg->put_object_hold($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold)Changes object hold status.
$msg->delete_object()/$msg->delete_object($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject)Delete objects.
$msg->put_metadata()/$msg->put_metadata($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata)Updates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, Custom-Time.
$msg->rewrite_object()/$msg->rewrite_object($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject)Rewrite the object and updates metadata like KMS key.
$msg->update_object_custom_context()/$msg->update_object_custom_context($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext)Update object custom context.
$msg->logging_config()/$msg->logging_config($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::LoggingConfig)Optional. Logging configuration.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the job was created.
$msg->schedule_time()/$msg->schedule_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the job was scheduled.
$msg->complete_time()/$msg->complete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the job was completed.
$msg->counters()/$msg->counters($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters)Output only. Information about the progress of the job.
$msg->error_summaries()/$msg->error_summaries($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary)Output only. Summarizes errors encountered with sample error log entries.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::Job::State)Output only. State of the job.
$msg->dry_run()/$msg->dry_run($value)Type:
BoolOptional. If true, the job will run in dry run mode, returning the total object count and, if the object configuration is a prefix list, the bytes found from source. No transformations will be performed.
$msg->is_multi_bucket_job()/$msg->is_multi_bucket_job($value)Type:
BoolOutput only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to different quota limits than single-bucket jobs.
Enum: Job::State
STATE_UNSPECIFIED=>0RUNNING=>1SUCCEEDED=>2CANCELED=>3FAILED=>4QUEUED=>5
Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketOperation
BucketOperation represents a bucket-level breakdown of a Job.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the BucketOperation. This is defined by the service. Format: projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.
$msg->bucket_name()/$msg->bucket_name($value)Type:
StringThe bucket name of the objects to be transformed in the BucketOperation.
$msg->prefix_list()/$msg->prefix_list($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PrefixList)Specifies objects matching a prefix set.
$msg->manifest()/$msg->manifest($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Manifest)Specifies objects in a manifest file.
$msg->put_object_hold()/$msg->put_object_hold($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutObjectHold)Changes object hold status.
$msg->delete_object()/$msg->delete_object($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::DeleteObject)Delete objects.
$msg->put_metadata()/$msg->put_metadata($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::PutMetadata)Updates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, Custom-Time.
$msg->rewrite_object()/$msg->rewrite_object($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::RewriteObject)Rewrite the object and updates metadata like KMS key.
$msg->update_object_custom_context()/$msg->update_object_custom_context($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext)Update object custom context.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the BucketOperation was created.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the BucketOperation was started.
$msg->complete_time()/$msg->complete_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the BucketOperation was completed.
$msg->counters()/$msg->counters($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::Counters)Output only. Information about the progress of the bucket operation.
$msg->error_summaries()/$msg->error_summaries($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorSummary)Output only. Summarizes errors encountered with sample error log entries.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::BucketOperation::State)Output only. State of the BucketOperation.
Enum: BucketOperation::State
STATE_UNSPECIFIED=>0QUEUED=>1RUNNING=>2SUCCEEDED=>3CANCELED=>4FAILED=>5
Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList
Describes list of buckets and their objects to be transformed.
Inherits from Protobuf::Message.
Accessors
$msg->buckets()/$msg->buckets($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::BucketList::Bucket)Required. List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned.
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:
StringRequired. `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:
StringOptional. 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
$msg->temporary_hold()/$msg->temporary_hold($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::PutObjectHold::HoldStatus)Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.
$msg->event_based_hold()/$msg->event_based_hold($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::PutObjectHold::HoldStatus)Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.
Enum: PutObjectHold::HoldStatus
HOLD_STATUS_UNSPECIFIED=>0SET=>1UNSET=>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:
BoolRequired. 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:
StringRequired. 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:
StringRequired. 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=>0LOCKED=>1UNLOCKED=>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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringThe 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
$msg->updates()/$msg->updates($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates::UpdatesEntry)Optional. Insert or update the existing custom contexts.
$msg->keys_to_clear()/$msg->keys_to_clear($value)Type:
StringOptional. Custom contexts to clear by key. A key cannot be present in both `updates` and `keys_to_clear`.
Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::UpdateObjectCustomContext
Describes options to update object custom contexts.
Inherits from Protobuf::Message.
Accessors
$msg->custom_context_updates()/$msg->custom_context_updates($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::CustomContextUpdates)A collection of updates to apply to specific custom contexts. Use this to add, update or delete individual contexts by key.
$msg->clear_all()/$msg->clear_all($value)Type:
BoolIf set, must be set to true and all existing object custom contexts will be deleted.
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
$msg->error_code()/$msg->error_code($value)Type:
Enum(Google::Rpc::Code)Required. The canonical error code.
$msg->error_count()/$msg->error_count($value)Type:
Int64Required. Number of errors encountered per `error_code`.
$msg->error_log_entries()/$msg->error_log_entries($value)Type:
Message(Google::Cloud::Storagebatchoperations::V1::StorageBatchOperationsTypes::ErrorLogEntry)Required. Sample error logs.
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:
StringRequired. Output only. Object URL. e.g. gs://my_bucket/object.txt
$msg->error_details()/$msg->error_details($value)Type:
StringOptional. 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:
Int64Output only. Number of objects listed.
$msg->succeeded_object_count()/$msg->succeeded_object_count($value)Type:
Int64Output only. Number of objects completed.
$msg->failed_object_count()/$msg->failed_object_count($value)Type:
Int64Output only. The number of objects that failed due to user errors or service errors.
$msg->total_bytes_found()/$msg->total_bytes_found($value)Type:
Int64Output 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:
Int64Output 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:
Int64Output 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:
Int64Output 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
$msg->log_actions()/$msg->log_actions($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::LoggingConfig::LoggableAction)Required. Specifies the actions to be logged.
$msg->log_action_states()/$msg->log_action_states($value)Type:
Enum(Google::Cloud::Storagebatchoperations::V1::LoggingConfig::LoggableActionState)Required. States in which Action are logged.If empty, no logs are generated.
Enum: LoggingConfig::LoggableAction
LOGGABLE_ACTION_UNSPECIFIED=>0TRANSFORM=>6
Enum: LoggingConfig::LoggableActionState
LOGGABLE_ACTION_STATE_UNSPECIFIED=>0SUCCEEDED=>1FAILED=>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.