diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java index 02db90bad713..98aadc490bbd 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java @@ -68,155 +68,156 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateJob

CreateJob

Create a Job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createJob(CreateJobRequest request) + *
  • createJob(CreateJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createJob(LocationName parent, Job job, String jobId) - *
  • createJob(String parent, Job job, String jobId) + *
  • createJob(LocationName parent, Job job, String jobId) + *

  • createJob(String parent, Job job, String jobId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createJobCallable() + *
  • createJobCallable() *

*
GetJob

GetJob

Get a Job specified by its resource name.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJob(GetJobRequest request) + *
  • getJob(GetJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJob(JobName name) - *
  • getJob(String name) + *
  • getJob(JobName name) + *

  • getJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobCallable() + *
  • getJobCallable() *

*
DeleteJob

DeleteJob

Delete a Job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteJobAsync(DeleteJobRequest request) + *
  • deleteJobAsync(DeleteJobRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteJobAsync(String name) + *
  • deleteJobAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteJobOperationCallable() - *
  • deleteJobCallable() + *
  • deleteJobOperationCallable() + *

  • deleteJobCallable() *

*
ListJobs

ListJobs

List all Jobs for a project within a region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobs(ListJobsRequest request) + *
  • listJobs(ListJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobs(String parent) + *
  • listJobs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listJobsPagedCallable() - *
  • listJobsCallable() + *
  • listJobsPagedCallable() + *

  • listJobsCallable() *

*
GetTask

GetTask

Return a single Task.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTask(GetTaskRequest request) + *
  • getTask(GetTaskRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTask(TaskName name) - *
  • getTask(String name) + *
  • getTask(TaskName name) + *

  • getTask(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTaskCallable() + *
  • getTaskCallable() *

*
ListTasks

ListTasks

List Tasks associated with a job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTasks(ListTasksRequest request) + *
  • listTasks(ListTasksRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTasks(TaskGroupName parent) - *
  • listTasks(String parent) + *
  • listTasks(TaskGroupName parent) + *

  • listTasks(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTasksPagedCallable() - *
  • listTasksCallable() + *
  • listTasksPagedCallable() + *

  • listTasksCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java index 923c45f2ff0e..95df8c619079 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/BatchServiceStubSettings.java @@ -356,6 +356,15 @@ public BatchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -587,7 +596,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -600,7 +608,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -741,6 +748,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public BatchServiceStubSettings build() throws IOException { return new BatchServiceStubSettings(this); diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java index d56fe99ee7fd..9c1d02189260 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java @@ -68,155 +68,156 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * + * * * * * + * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * *
Methods
MethodDescriptionMethod Variants
CreateJob

CreateJob

Create a Job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • createJob(CreateJobRequest request) + *
  • createJob(CreateJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • createJob(LocationName parent, Job job, String jobId) - *
  • createJob(String parent, Job job, String jobId) + *
  • createJob(LocationName parent, Job job, String jobId) + *

  • createJob(String parent, Job job, String jobId) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • createJobCallable() + *
  • createJobCallable() *

*
GetJob

GetJob

Get a Job specified by its resource name.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getJob(GetJobRequest request) + *
  • getJob(GetJobRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getJob(JobName name) - *
  • getJob(String name) + *
  • getJob(JobName name) + *

  • getJob(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getJobCallable() + *
  • getJobCallable() *

*
DeleteJob

DeleteJob

Delete a Job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • deleteJobAsync(DeleteJobRequest request) + *
  • deleteJobAsync(DeleteJobRequest request) *

*

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

*
    - *
  • deleteJobAsync(String name) + *
  • deleteJobAsync(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • deleteJobOperationCallable() - *
  • deleteJobCallable() + *
  • deleteJobOperationCallable() + *

  • deleteJobCallable() *

*
ListJobs

ListJobs

List all Jobs for a project within a region.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listJobs(ListJobsRequest request) + *
  • listJobs(ListJobsRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listJobs(String parent) + *
  • listJobs(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listJobsPagedCallable() - *
  • listJobsCallable() + *
  • listJobsPagedCallable() + *

  • listJobsCallable() *

*
GetTask

GetTask

Return a single Task.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getTask(GetTaskRequest request) + *
  • getTask(GetTaskRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • getTask(TaskName name) - *
  • getTask(String name) + *
  • getTask(TaskName name) + *

  • getTask(String name) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getTaskCallable() + *
  • getTaskCallable() *

*
ListTasks

ListTasks

List Tasks associated with a job.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listTasks(ListTasksRequest request) + *
  • listTasks(ListTasksRequest request) *

*

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    - *
  • listTasks(TaskGroupName parent) - *
  • listTasks(String parent) + *
  • listTasks(TaskGroupName parent) + *

  • listTasks(String parent) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listTasksPagedCallable() - *
  • listTasksCallable() + *
  • listTasksPagedCallable() + *

  • listTasksCallable() *

*
ListLocations

ListLocations

Lists information about the supported locations for this service.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • listLocations(ListLocationsRequest request) + *
  • listLocations(ListLocationsRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • listLocationsPagedCallable() - *
  • listLocationsCallable() + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() *

*
GetLocation

GetLocation

Gets information about a location.

*

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    - *
  • getLocation(GetLocationRequest request) + *
  • getLocation(GetLocationRequest request) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    - *
  • getLocationCallable() + *
  • getLocationCallable() *

*
* *

See the individual methods for example code. diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java index 50eea212259d..e6c77210262e 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/BatchServiceStubSettings.java @@ -357,6 +357,15 @@ public BatchServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -588,7 +597,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -601,7 +609,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -742,6 +749,15 @@ public UnaryCallSettings.Builder getLocationSettin return getLocationSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public BatchServiceStubSettings build() throws IOException { return new BatchServiceStubSettings(this); diff --git a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json index b7e03047a597..53c333b275fe 100644 --- a/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json +++ b/java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json @@ -116,6 +116,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.GoSettings", "queryAllDeclaredConstructors": true, diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java index 876467e8532f..14bfabd46c67 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/BatchProto.java @@ -75,75 +75,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n&google/cloud/batch/v1alpha/batch.proto" + "\022\032google.cloud.batch.v1alpha\032\034google/api" + "/annotations.proto\032\027google/api/client.pr" - + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032$google/cloud/ba" - + "tch/v1alpha/job.proto\032%google/cloud/batc" - + "h/v1alpha/task.proto\032#google/longrunning" - + "/operations.proto\032\033google/protobuf/empty" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\243\001\n\020CreateJobRequest\0221\n\006parent\030\001 \001(\tB!\342A" - + "\001\002\372A\032\022\030batch.googleapis.com/Job\022\016\n\006job_i" - + "d\030\002 \001(\t\0222\n\003job\030\003 \001(\0132\037.google.cloud.batc" - + "h.v1alpha.JobB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB" - + "\004\342A\001\001\"@\n\rGetJobRequest\022/\n\004name\030\001 \001(\tB!\342A" - + "\001\002\372A\032\n\030batch.googleapis.com/Job\"P\n\020Delet" - + "eJobRequest\022\014\n\004name\030\001 \001(\t\022\024\n\006reason\030\002 \001(" - + "\tB\004\342A\001\001\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"p\n\017Lis" - + "tJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\020ListJobsR" - + "esponse\022-\n\004jobs\030\001 \003(\0132\037.google.cloud.bat" - + "ch.v1alpha.Job\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\224\001\n\020ListTasksReques" - + "t\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \n\036batch.google" - + "apis.com/TaskGroup\022\016\n\006filter\030\002 \001(\t\022\020\n\010or" - + "der_by\030\005 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" - + "token\030\004 \001(\t\"r\n\021ListTasksResponse\022/\n\005task" - + "s\030\001 \003(\0132 .google.cloud.batch.v1alpha.Tas" - + "k\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"B\n\016GetTaskRequest\0220\n\004name\030\001 \001(\tB" - + "\"\342A\001\002\372A\033\n\031batch.googleapis.com/Task\"\207\002\n\021" - + "OperationMetadata\0225\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\003\0222\n\010end_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\t" - + "B\004\342A\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026" - + "requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013ap" - + "i_version\030\007 \001(\tB\004\342A\001\0032\221\t\n\014BatchService\022\252" - + "\001\n\tCreateJob\022,.google.cloud.batch.v1alph" - + "a.CreateJobRequest\032\037.google.cloud.batch." - + "v1alpha.Job\"N\332A\021parent,job,job_id\202\323\344\223\0024\"" - + "-/v1alpha/{parent=projects/*/locations/*" - + "}/jobs:\003job\022\222\001\n\006GetJob\022).google.cloud.ba" - + "tch.v1alpha.GetJobRequest\032\037.google.cloud" - + ".batch.v1alpha.Job\"<\332A\004name\202\323\344\223\002/\022-/v1al" - + "pha/{name=projects/*/locations/*/jobs/*}" - + "\022\337\001\n\tDeleteJob\022,.google.cloud.batch.v1al" - + "pha.DeleteJobRequest\032\035.google.longrunnin" - + "g.Operation\"\204\001\312AE\n\025google.protobuf.Empty" - + "\022,google.cloud.batch.v1alpha.OperationMe" - + "tadata\332A\004name\202\323\344\223\002/*-/v1alpha/{name=proj" - + "ects/*/locations/*/jobs/*}\022\245\001\n\010ListJobs\022" - + "+.google.cloud.batch.v1alpha.ListJobsReq" - + "uest\032,.google.cloud.batch.v1alpha.ListJo" - + "bsResponse\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{p" - + "arent=projects/*/locations/*}/jobs\022\252\001\n\007G" - + "etTask\022*.google.cloud.batch.v1alpha.GetT" - + "askRequest\032 .google.cloud.batch.v1alpha." - + "Task\"Q\332A\004name\202\323\344\223\002D\022B/v1alpha/{name=proj" - + "ects/*/locations/*/jobs/*/taskGroups/*/t" - + "asks/*}\022\275\001\n\tListTasks\022,.google.cloud.bat" - + "ch.v1alpha.ListTasksRequest\032-.google.clo" - + "ud.batch.v1alpha.ListTasksResponse\"S\332A\006p" - + "arent\202\323\344\223\002D\022B/v1alpha/{parent=projects/*" - + "/locations/*/jobs/*/taskGroups/*}/tasks\032" - + "H\312A\024batch.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\304\001\n\036co" - + "m.google.cloud.batch.v1alphaB\nBatchProto" - + "P\001Z4cloud.google.com/go/batch/apiv1alpha" - + "/batchpb;batchpb\242\002\003GCB\252\002\032Google.Cloud.Ba" - + "tch.V1Alpha\312\002\032Google\\Cloud\\Batch\\V1alpha" - + "\352\002\035Google::Cloud::Batch::V1alphab\006proto3" + + "oto\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\031google/api/re" + + "source.proto\032$google/cloud/batch/v1alpha" + + "/job.proto\032%google/cloud/batch/v1alpha/t" + + "ask.proto\032#google/longrunning/operations" + + ".proto\032\033google/protobuf/empty.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\243\001\n\020CreateJ" + + "obRequest\0221\n\006parent\030\001 \001(\tB!\342A\001\002\372A\032\022\030batc" + + "h.googleapis.com/Job\022\016\n\006job_id\030\002 \001(\t\0222\n\003" + + "job\030\003 \001(\0132\037.google.cloud.batch.v1alpha.J" + + "obB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\"@\n\rGe" + + "tJobRequest\022/\n\004name\030\001 \001(\tB!\342A\001\002\372A\032\n\030batc" + + "h.googleapis.com/Job\"P\n\020DeleteJobRequest" + + "\022\014\n\004name\030\001 \001(\t\022\024\n\006reason\030\002 \001(\tB\004\342A\001\001\022\030\n\n" + + "request_id\030\004 \001(\tB\004\342A\001\001\"p\n\017ListJobsReques" + + "t\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\004 \001(\t\022\026\n\010ord" + + "er_by\030\005 \001(\tB\004\342A\001\001\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"o\n\020ListJobsResponse\022-\n\004" + + "jobs\030\001 \003(\0132\037.google.cloud.batch.v1alpha." + + "Job\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" + + "ble\030\003 \003(\t\"\224\001\n\020ListTasksRequest\0227\n\006parent" + + "\030\001 \001(\tB\'\342A\001\002\372A \n\036batch.googleapis.com/Ta" + + "skGroup\022\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\005 \001(" + + "\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" + + "\"r\n\021ListTasksResponse\022/\n\005tasks\030\001 \003(\0132 .g" + + "oogle.cloud.batch.v1alpha.Task\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"B\n\016" + + "GetTaskRequest\0220\n\004name\030\001 \001(\tB\"\342A\001\002\372A\033\n\031b" + + "atch.googleapis.com/Task\"\207\002\n\021OperationMe" + + "tadata\0225\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n\006tar" + + "get\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016s" + + "tatus_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requested_c" + + "ancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_version\030\007" + + " \001(\tB\004\342A\001\0032\221\t\n\014BatchService\022\252\001\n\tCreateJo" + + "b\022,.google.cloud.batch.v1alpha.CreateJob" + + "Request\032\037.google.cloud.batch.v1alpha.Job" + + "\"N\332A\021parent,job,job_id\202\323\344\223\0024\"-/v1alpha/{" + + "parent=projects/*/locations/*}/jobs:\003job" + + "\022\222\001\n\006GetJob\022).google.cloud.batch.v1alpha" + + ".GetJobRequest\032\037.google.cloud.batch.v1al" + + "pha.Job\"<\332A\004name\202\323\344\223\002/\022-/v1alpha/{name=p" + + "rojects/*/locations/*/jobs/*}\022\337\001\n\tDelete" + + "Job\022,.google.cloud.batch.v1alpha.DeleteJ" + + "obRequest\032\035.google.longrunning.Operation" + + "\"\204\001\312AE\n\025google.protobuf.Empty\022,google.cl" + + "oud.batch.v1alpha.OperationMetadata\332A\004na" + + "me\202\323\344\223\002/*-/v1alpha/{name=projects/*/loca" + + "tions/*/jobs/*}\022\245\001\n\010ListJobs\022+.google.cl" + + "oud.batch.v1alpha.ListJobsRequest\032,.goog" + + "le.cloud.batch.v1alpha.ListJobsResponse\"" + + ">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=proje" + + "cts/*/locations/*}/jobs\022\252\001\n\007GetTask\022*.go" + + "ogle.cloud.batch.v1alpha.GetTaskRequest\032" + + " .google.cloud.batch.v1alpha.Task\"Q\332A\004na" + + "me\202\323\344\223\002D\022B/v1alpha/{name=projects/*/loca" + + "tions/*/jobs/*/taskGroups/*/tasks/*}\022\275\001\n" + + "\tListTasks\022,.google.cloud.batch.v1alpha." + + "ListTasksRequest\032-.google.cloud.batch.v1" + + "alpha.ListTasksResponse\"S\332A\006parent\202\323\344\223\002D" + + "\022B/v1alpha/{parent=projects/*/locations/" + + "*/jobs/*/taskGroups/*}/tasks\032H\312A\024batch.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\304\001\n\036com.google.cl" + + "oud.batch.v1alphaB\nBatchProtoP\001Z4cloud.g" + + "oogle.com/go/batch/apiv1alpha/batchpb;ba" + + "tchpb\242\002\003GCB\252\002\032Google.Cloud.Batch.V1Alpha" + + "\312\002\032Google\\Cloud\\Batch\\V1alpha\352\002\035Google::" + + "Cloud::Batch::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -152,6 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.batch.v1alpha.JobProto.getDescriptor(), com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(), @@ -251,6 +253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.batch.v1alpha.JobProto.getDescriptor(); com.google.cloud.batch.v1alpha.TaskProto.getDescriptor(); diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java index a75e6ce12b0a..e9feb8161262 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java @@ -285,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n" + "\021ProvisioningModel\022\"\n\036PROVISIONING_MODEL" + "_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\010\n\004SPOT\020\002\022\017" - + "\n\013PREEMPTIBLE\020\003\"\270\006\n\tTaskGroup\022\022\n\004name\030\001 " + + "\n\013PREEMPTIBLE\020\003\"\230\006\n\tTaskGroup\022\022\n\004name\030\001 " + "\001(\tB\004\342A\001\003\022=\n\ttask_spec\030\003 \001(\0132$.google.cl" + "oud.batch.v1alpha.TaskSpecB\004\342A\001\002\022\022\n\ntask" + "_count\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022Q\n\021sch" @@ -298,21 +298,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003(\0132\'.google.cloud.batch.v1alpha.Environ" + "ment\022\033\n\023task_count_per_node\030\n \001(\003\022\032\n\022req" + "uire_hosts_file\030\013 \001(\010\022\026\n\016permissive_ssh\030" - + "\014 \001(\010\022\036\n\016enable_oslogin\030\r \001(\010B\006\030\001\342A\001\001\022\035\n" - + "\017run_as_non_root\030\016 \001(\010B\004\342A\001\001\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\\\n\020S" - + "chedulingPolicy\022!\n\035SCHEDULING_POLICY_UNS" - + "PECIFIED\020\000\022\027\n\023AS_SOON_AS_POSSIBLE\020\001\022\014\n\010I" - + "N_ORDER\020\002:o\352Al\n\036batch.googleapis.com/Tas" - + "kGroup\022Jprojects/{project}/locations/{lo" - + "cation}/jobs/{job}/taskGroups/{task_grou" - + "p}\"/\n\016ServiceAccount\022\r\n\005email\030\001 \001(\t\022\016\n\006s" - + "copes\030\002 \003(\tB\302\001\n\036com.google.cloud.batch.v" - + "1alphaB\010JobProtoP\001Z4cloud.google.com/go/" - + "batch/apiv1alpha/batchpb;batchpb\242\002\003GCB\252\002" - + "\032Google.Cloud.Batch.V1Alpha\312\002\032Google\\Clo" - + "ud\\Batch\\V1alpha\352\002\035Google::Cloud::Batch:" - + ":V1alphab\006proto3" + + "\014 \001(\010\022\035\n\017run_as_non_root\030\016 \001(\010B\004\342A\001\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"\\\n\020SchedulingPolicy\022!\n\035SCHEDULING_PO" + + "LICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_POSSIBL" + + "E\020\001\022\014\n\010IN_ORDER\020\002:o\352Al\n\036batch.googleapis" + + ".com/TaskGroup\022Jprojects/{project}/locat" + + "ions/{location}/jobs/{job}/taskGroups/{t" + + "ask_group}\"/\n\016ServiceAccount\022\r\n\005email\030\001 " + + "\001(\t\022\016\n\006scopes\030\002 \003(\tB\302\001\n\036com.google.cloud" + + ".batch.v1alphaB\010JobProtoP\001Z4cloud.google" + + ".com/go/batch/apiv1alpha/batchpb;batchpb" + + "\242\002\003GCB\252\002\032Google.Cloud.Batch.V1Alpha\312\002\032Go" + + "ogle\\Cloud\\Batch\\V1alpha\352\002\035Google::Cloud" + + "::Batch::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -595,7 +594,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TaskCountPerNode", "RequireHostsFile", "PermissiveSsh", - "EnableOslogin", "RunAsNonRoot", }); internal_static_google_cloud_batch_v1alpha_TaskGroup_LabelsEntry_descriptor = diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java index 03fcf88a445e..931a6c84c292 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java @@ -778,36 +778,6 @@ public boolean getPermissiveSsh() { return permissiveSsh_; } - public static final int ENABLE_OSLOGIN_FIELD_NUMBER = 13; - private boolean enableOslogin_ = false; - /** - * - * - *

-   * Optional. Deprecated: When true, Batch will use the OS Login generated
-   * POSIX account to exeucute the runnables instead of the default root user.
-   *
-   * To control root or non-root privilege for runnable execution, the project \
-   * Admin user needs to configure IAM roles according to
-   * https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
-   * Specifically, if a root execution is needed, the roles/compute.osAdminLogin
-   * should be granted to the Batch job submitter. Otherwise,
-   * roles/compute.osLogin should be granted to the Batch job submitter.
-   * 
- * - * bool enable_oslogin = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated google.cloud.batch.v1alpha.TaskGroup.enable_oslogin is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=710 - * @return The enableOslogin. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnableOslogin() { - return enableOslogin_; - } - public static final int RUN_AS_NON_ROOT_FIELD_NUMBER = 14; private boolean runAsNonRoot_ = false; /** @@ -877,9 +847,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (permissiveSsh_ != false) { output.writeBool(12, permissiveSsh_); } - if (enableOslogin_ != false) { - output.writeBool(13, enableOslogin_); - } if (runAsNonRoot_ != false) { output.writeBool(14, runAsNonRoot_); } @@ -934,9 +901,6 @@ public int getSerializedSize() { if (permissiveSsh_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, permissiveSsh_); } - if (enableOslogin_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, enableOslogin_); - } if (runAsNonRoot_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, runAsNonRoot_); } @@ -972,7 +936,6 @@ public boolean equals(final java.lang.Object obj) { if (getTaskCountPerNode() != other.getTaskCountPerNode()) return false; if (getRequireHostsFile() != other.getRequireHostsFile()) return false; if (getPermissiveSsh() != other.getPermissiveSsh()) return false; - if (getEnableOslogin() != other.getEnableOslogin()) return false; if (getRunAsNonRoot() != other.getRunAsNonRoot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1015,8 +978,6 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireHostsFile()); hash = (37 * hash) + PERMISSIVE_SSH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPermissiveSsh()); - hash = (37 * hash) + ENABLE_OSLOGIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOslogin()); hash = (37 * hash) + RUN_AS_NON_ROOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunAsNonRoot()); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1203,7 +1164,6 @@ public Builder clear() { taskCountPerNode_ = 0L; requireHostsFile_ = false; permissiveSsh_ = false; - enableOslogin_ = false; runAsNonRoot_ = false; return this; } @@ -1287,9 +1247,6 @@ private void buildPartial0(com.google.cloud.batch.v1alpha.TaskGroup result) { result.permissiveSsh_ = permissiveSsh_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.enableOslogin_ = enableOslogin_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { result.runAsNonRoot_ = runAsNonRoot_; } } @@ -1397,9 +1354,6 @@ public Builder mergeFrom(com.google.cloud.batch.v1alpha.TaskGroup other) { if (other.getPermissiveSsh() != false) { setPermissiveSsh(other.getPermissiveSsh()); } - if (other.getEnableOslogin() != false) { - setEnableOslogin(other.getEnableOslogin()); - } if (other.getRunAsNonRoot() != false) { setRunAsNonRoot(other.getRunAsNonRoot()); } @@ -1509,16 +1463,10 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 96 - case 104: - { - enableOslogin_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 104 case 112: { runAsNonRoot_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; break; } // case 112 default: @@ -3147,95 +3095,6 @@ public Builder clearPermissiveSsh() { return this; } - private boolean enableOslogin_; - /** - * - * - *
-     * Optional. Deprecated: When true, Batch will use the OS Login generated
-     * POSIX account to exeucute the runnables instead of the default root user.
-     *
-     * To control root or non-root privilege for runnable execution, the project \
-     * Admin user needs to configure IAM roles according to
-     * https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
-     * Specifically, if a root execution is needed, the roles/compute.osAdminLogin
-     * should be granted to the Batch job submitter. Otherwise,
-     * roles/compute.osLogin should be granted to the Batch job submitter.
-     * 
- * - * bool enable_oslogin = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated google.cloud.batch.v1alpha.TaskGroup.enable_oslogin is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=710 - * @return The enableOslogin. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnableOslogin() { - return enableOslogin_; - } - /** - * - * - *
-     * Optional. Deprecated: When true, Batch will use the OS Login generated
-     * POSIX account to exeucute the runnables instead of the default root user.
-     *
-     * To control root or non-root privilege for runnable execution, the project \
-     * Admin user needs to configure IAM roles according to
-     * https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
-     * Specifically, if a root execution is needed, the roles/compute.osAdminLogin
-     * should be granted to the Batch job submitter. Otherwise,
-     * roles/compute.osLogin should be granted to the Batch job submitter.
-     * 
- * - * bool enable_oslogin = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated google.cloud.batch.v1alpha.TaskGroup.enable_oslogin is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=710 - * @param value The enableOslogin to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setEnableOslogin(boolean value) { - - enableOslogin_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Deprecated: When true, Batch will use the OS Login generated
-     * POSIX account to exeucute the runnables instead of the default root user.
-     *
-     * To control root or non-root privilege for runnable execution, the project \
-     * Admin user needs to configure IAM roles according to
-     * https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
-     * Specifically, if a root execution is needed, the roles/compute.osAdminLogin
-     * should be granted to the Batch job submitter. Otherwise,
-     * roles/compute.osLogin should be granted to the Batch job submitter.
-     * 
- * - * bool enable_oslogin = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated google.cloud.batch.v1alpha.TaskGroup.enable_oslogin is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=710 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearEnableOslogin() { - bitField0_ = (bitField0_ & ~0x00000800); - enableOslogin_ = false; - onChanged(); - return this; - } - private boolean runAsNonRoot_; /** * @@ -3273,7 +3132,7 @@ public boolean getRunAsNonRoot() { public Builder setRunAsNonRoot(boolean value) { runAsNonRoot_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3292,7 +3151,7 @@ public Builder setRunAsNonRoot(boolean value) { * @return This builder for chaining. */ public Builder clearRunAsNonRoot() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000800); runAsNonRoot_ = false; onChanged(); return this; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java index a7c5cfee177f..97c30eefe099 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java @@ -409,31 +409,6 @@ java.lang.String getLabelsOrDefault( */ boolean getPermissiveSsh(); - /** - * - * - *
-   * Optional. Deprecated: When true, Batch will use the OS Login generated
-   * POSIX account to exeucute the runnables instead of the default root user.
-   *
-   * To control root or non-root privilege for runnable execution, the project \
-   * Admin user needs to configure IAM roles according to
-   * https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
-   * Specifically, if a root execution is needed, the roles/compute.osAdminLogin
-   * should be granted to the Batch job submitter. Otherwise,
-   * roles/compute.osLogin should be granted to the Batch job submitter.
-   * 
- * - * bool enable_oslogin = 13 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated google.cloud.batch.v1alpha.TaskGroup.enable_oslogin is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=710 - * @return The enableOslogin. - */ - @java.lang.Deprecated - boolean getEnableOslogin(); - /** * * diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto index 1ce48f1acea4..05d0dff3045b 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto @@ -19,6 +19,7 @@ package google.cloud.batch.v1alpha; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/cloud/batch/v1alpha/job.proto"; import "google/cloud/batch/v1alpha/task.proto"; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto index 427dfa59d600..ccec4cf30129 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto @@ -699,18 +699,6 @@ message TaskGroup { // VMs running the Batch tasks in the same TaskGroup. bool permissive_ssh = 12; - // Optional. Deprecated: When true, Batch will use the OS Login generated - // POSIX account to exeucute the runnables instead of the default root user. - // - // To control root or non-root privilege for runnable execution, the project \ - // Admin user needs to configure IAM roles according to - // https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users. - // Specifically, if a root execution is needed, the roles/compute.osAdminLogin - // should be granted to the Batch job submitter. Otherwise, - // roles/compute.osLogin should be granted to the Batch job submitter. - bool enable_oslogin = 13 - [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Optional. If not set or set to false, Batch will use root user to execute // runnables. If set to true, Batch will make sure to run the runnables using // non-root user. Currently, the non-root user Batch used is generated by OS