Service Client: Google::Cloud::Batch::V1alpha::Batch::BatchServiceClient

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

target

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

credentials

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

NAME

Google::Cloud::Batch::V1alpha::Batch - Compiled Protocol Buffers messages for google/cloud/batch/v1alpha/batch.proto

SYNOPSIS

use Google::Cloud::Batch::V1alpha::Batch;

my $msg = Google::Cloud::Batch::V1alpha::Batch::CreateJobRequest->new({
    parent => $parent,
    job_id => $job_id,
    job => $job,
    request_id => $request_id,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Batch::V1alpha::Batch::CreateJobRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/batch/v1alpha/batch.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::Batch::V1alpha::Batch::CreateJobRequest

CreateJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource name where the Job will be created. Pattern: "projects/{project}/locations/{location}"

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

    Type: String

    ID used to uniquely identify the Job within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

    The job.name field in the request will be ignored and the created resource name of the Job will be "{parent}/jobs/{job_id}".

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

    Type: Message (Google::Cloud::Batch::V1alpha::Job::Job)

    Required. The Job to create.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::GetJobRequest

GetJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Job name.

Google::Cloud::Batch::V1alpha::Batch::DeleteJobRequest

DeleteJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Job name.

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

    Type: String

    Optional. Reason for this deletion.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::CancelJobRequest

CancelJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Job name.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::CancelJobResponse

Response to the CancelJob request.

Inherits from Protobuf::Message.

Google::Cloud::Batch::V1alpha::Batch::UpdateJobRequest

UpdateJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Batch::V1alpha::Job::Job)

    Required. The Job to update. Only fields specified in `updateMask` are updated.

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

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

    Required. Mask of fields to update.

    The `jobs.patch` method can only be used while a job is in the `QUEUED`, `SCHEDULED`, or `RUNNING` state and currently only supports increasing the value of the first `taskCount` field in the job's `taskGroups` field. Therefore, you must set the value of `updateMask` to `taskGroups`. Any other job fields in the update request will be ignored.

    For example, to update a job's `taskCount` to `2`, set `updateMask` to `taskGroups` and use the following request body: ``` { "taskGroups":[{ "taskCount": 2 }] } ```

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::ListJobsRequest

ListJob Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Parent path.

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

    Type: String

    List filter.

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

    Type: String

    Optional. Sort results. Supported are "name", "name desc", "create_time", and "create_time desc".

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

    Type: Int32

    Page size.

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

    Type: String

    Page token.

Google::Cloud::Batch::V1alpha::Batch::ListJobsResponse

ListJob Response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Batch::V1alpha::Job::Job)

    Jobs.

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

    Type: String

    Next page token.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Batch::V1alpha::Batch::ListTasksRequest

ListTasks Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of a TaskGroup from which Tasks are being requested. Pattern: "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"

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

    Type: String

    Task filter, null filter matches all Tasks. Filter string should be of the format State=TaskStatus.State e.g. State=RUNNING

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

    Type: String

    Not implemented.

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

    Type: Int32

    Page size.

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

    Type: String

    Page token.

Google::Cloud::Batch::V1alpha::Batch::ListTasksResponse

ListTasks Response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Batch::V1alpha::Task::Task)

    Tasks.

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

    Type: String

    Next page token.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Batch::V1alpha::Batch::GetTaskRequest

Request for a single Task by name.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Task name.

Google::Cloud::Batch::V1alpha::Batch::CreateResourceAllowanceRequest

CreateResourceAllowance Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource name where the ResourceAllowance will be created. Pattern: "projects/{project}/locations/{location}"

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

    Type: String

    ID used to uniquely identify the ResourceAllowance within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and '-' are accepted. The '-' character cannot be the first or the last one. A system generated ID will be used if the field is not set.

    The resource_allowance.name field in the request will be ignored and the created resource name of the ResourceAllowance will be "{parent}/resourceAllowances/{resource_allowance_id}".

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

    Type: Message (Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance)

    Required. The ResourceAllowance to create.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::GetResourceAllowanceRequest

GetResourceAllowance Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. ResourceAllowance name.

Google::Cloud::Batch::V1alpha::Batch::DeleteResourceAllowanceRequest

DeleteResourceAllowance Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. ResourceAllowance name.

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

    Type: String

    Optional. Reason for this deletion.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::ListResourceAllowancesRequest

ListResourceAllowances Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent path.

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

    Type: Int32

    Optional. Page size.

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

    Type: String

    Optional. Page token.

Google::Cloud::Batch::V1alpha::Batch::ListResourceAllowancesResponse

ListResourceAllowances Response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance)

    ResourceAllowances.

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

    Type: String

    Next page token.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Batch::V1alpha::Batch::UpdateResourceAllowanceRequest

UpdateResourceAllowance Request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Batch::V1alpha::ResourceAllowance::ResourceAllowance)

    Required. The ResourceAllowance to update. Update description. Only fields specified in `update_mask` are updated.

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

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

    Required. Mask of fields to update.

    Field mask is used to specify the fields to be overwritten in the ResourceAllowance 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. If the user does not provide a mask then all fields will be overwritten.

    UpdateResourceAllowance request now only supports update on `limit` field.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

    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, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Batch::V1alpha::Batch::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 successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.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.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Batch::V1alpha::Batch::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.