Service Client: Google::Cloud::Batch::V1::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::V1::Batch - Compiled Protocol Buffers messages for google/cloud/batch/v1/batch.proto
SYNOPSIS
use Google::Cloud::Batch::V1::Batch;
my $msg = Google::Cloud::Batch::V1::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::V1::Batch::CreateJobRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/batch/v1/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::V1::Batch::CreateJobRequest
CreateJob Request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name where the Job will be created. Pattern: "projects/{project}/locations/{location}"
$msg->job_id()/$msg->job_id($value)Type:
StringID 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::V1::Job::Job)Required. The Job to create.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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::V1::Batch::GetJobRequest
GetJob Request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Job name.
Google::Cloud::Batch::V1::Batch::DeleteJobRequest
DeleteJob Request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringJob name.
$msg->reason()/$msg->reason($value)Type:
StringOptional. Reason for this deletion.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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::V1::Batch::CancelJobRequest
CancelJob Request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Job name.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. 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::V1::Batch::CancelJobResponse
Response to the CancelJob request.
Inherits from Protobuf::Message.
Google::Cloud::Batch::V1::Batch::ListJobsRequest
ListJob Request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringParent path.
$msg->filter()/$msg->filter($value)Type:
StringList filter.
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Sort results. Supported are "name", "name desc", "create_time", and "create_time desc".
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token.
Google::Cloud::Batch::V1::Batch::ListJobsResponse
ListJob Response.
Inherits from Protobuf::Message.
Accessors
$msg->jobs()/$msg->jobs($value)Type:
Message(Google::Cloud::Batch::V1::Job::Job)Jobs.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Batch::V1::Batch::ListTasksRequest
ListTasks Request.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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:
StringTask filter, null filter matches all Tasks. Filter string should be of the format State=TaskStatus.State e.g. State=RUNNING
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token.
Google::Cloud::Batch::V1::Batch::ListTasksResponse
ListTasks Response.
Inherits from Protobuf::Message.
Accessors
$msg->tasks()/$msg->tasks($value)Type:
Message(Google::Cloud::Batch::V1::Task::Task)Tasks.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Batch::V1::Batch::GetTaskRequest
Request for a single Task by name.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Task name.
Google::Cloud::Batch::V1::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:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput 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:
StringOutput only. API version used to start the operation.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Batch::V1::Batch::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.