Skip to content

Commit

Permalink
chore: reformat protos and import empty.proto
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 502955048
  • Loading branch information
Google APIs authored and copybara-github committed Jan 18, 2023
1 parent 799696b commit 8dbaea4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
48 changes: 23 additions & 25 deletions google/cloud/batch/v1alpha/batch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ syntax = "proto3";

package google.cloud.batch.v1alpha;

import public "google/protobuf/empty.proto";

import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
Expand All @@ -39,7 +41,8 @@ option ruby_package = "Google::Cloud::Batch::V1alpha";
// Engine VM instances to run the jobs.
service BatchService {
option (google.api.default_host) = "batch.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";

// Create a Job.
rpc CreateJob(CreateJobRequest) returns (Job) {
Expand Down Expand Up @@ -101,9 +104,7 @@ message CreateJobRequest {
// Pattern: "projects/{project}/locations/{location}"
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "batch.googleapis.com/Job"
}
(google.api.resource_reference) = { child_type: "batch.googleapis.com/Job" }
];

// ID used to uniquely identify the Job within its parent scope.
Expand All @@ -120,10 +121,10 @@ message CreateJobRequest {
// Required. The Job to create.
Job job = 3 [(google.api.field_behavior) = REQUIRED];

// 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.
// 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 t
// he request times out. If you make the request again with the same request
Expand All @@ -141,9 +142,7 @@ message GetJobRequest {
// Required. Job name.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "batch.googleapis.com/Job"
}
(google.api.resource_reference) = { type: "batch.googleapis.com/Job" }
];
}

Expand All @@ -155,10 +154,10 @@ message DeleteJobRequest {
// Optional. Reason for this deletion.
string reason = 2 [(google.api.field_behavior) = OPTIONAL];

// 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.
// 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 t
// he request times out. If you make the request again with the same request
Expand Down Expand Up @@ -205,9 +204,7 @@ message ListTasksRequest {
// "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "batch.googleapis.com/TaskGroup"
}
(google.api.resource_reference) = { type: "batch.googleapis.com/TaskGroup" }
];

// Task filter, null filter matches all Tasks.
Expand Down Expand Up @@ -239,19 +236,19 @@ message GetTaskRequest {
// Required. Task name.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "batch.googleapis.com/Task"
}
(google.api.resource_reference) = { type: "batch.googleapis.com/Task" }
];
}

// Represents the metadata of the long-running operation.
message OperationMetadata {
// Output only. The time the operation was created.
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp create_time = 1
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The time the operation finished running.
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp end_time = 2
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Server-defined resource path for the target of the operation.
string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand All @@ -264,8 +261,9 @@ message OperationMetadata {

// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
// corresponding to `Code.CANCELLED`.
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. API version used to start the operation.
Expand Down
6 changes: 4 additions & 2 deletions google/cloud/batch/v1alpha/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ message Job {
JobNotification notification = 10 [deprecated = true];

// Output only. When the Job was created.
google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp create_time = 11
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The last time the Job was updated.
google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp update_time = 12
[(google.api.field_behavior) = OUTPUT_ONLY];

// Log preservation policy for the Job.
LogsPolicy logs_policy = 13;
Expand Down

0 comments on commit 8dbaea4

Please sign in to comment.