diff --git a/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java new file mode 100644 index 000000000000..61b553620eb2 --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceGrpc.java @@ -0,0 +1,936 @@ +package com.google.cloud.dataproc.v1beta2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * The API interface for managing autoscaling policies in the + * Google Cloud Dataproc API. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto") +public final class AutoscalingPolicyServiceGrpc { + + private AutoscalingPolicyServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.dataproc.v1beta2.AutoscalingPolicyService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateAutoscalingPolicyMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + METHOD_CREATE_AUTOSCALING_POLICY = getCreateAutoscalingPolicyMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod() { + return getCreateAutoscalingPolicyMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + getCreateAutoscalingPolicyMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest, + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + getCreateAutoscalingPolicyMethod; + if ((getCreateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) + == null) { + synchronized (AutoscalingPolicyServiceGrpc.class) { + if ((getCreateAutoscalingPolicyMethod = + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod) + == null) { + AutoscalingPolicyServiceGrpc.getCreateAutoscalingPolicyMethod = + getCreateAutoscalingPolicyMethod = + io.grpc.MethodDescriptor + .
+ * The API interface for managing autoscaling policies in the + * Google Cloud Dataproc API. + *+ */ + public abstract static class AutoscalingPolicyServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Creates new autoscaling policy. + *+ */ + public void createAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Updates (replaces) autoscaling policy. + * Disabled check for update_mask, because all updates will be full + * replacements. + *+ */ + public void updateAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves autoscaling policy. + *+ */ + public void getAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Lists autoscaling policies in the project. + *+ */ + public void listAutoscalingPolicies( + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> + responseObserver) { + asyncUnimplementedUnaryCall(getListAutoscalingPoliciesMethodHelper(), responseObserver); + } + + /** + * + * + *
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling + * policy that is in use by one or more clusters. + *+ */ + public void deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The API interface for managing autoscaling policies in the + * Google Cloud Dataproc API. + *+ */ + public static final class AutoscalingPolicyServiceStub + extends io.grpc.stub.AbstractStub
+ * Creates new autoscaling policy. + *+ */ + public void createAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Updates (replaces) autoscaling policy. + * Disabled check for update_mask, because all updates will be full + * replacements. + *+ */ + public void updateAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves autoscaling policy. + *+ */ + public void getAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Lists autoscaling policies in the project. + *+ */ + public void listAutoscalingPolicies( + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling + * policy that is in use by one or more clusters. + *+ */ + public void deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request, + io.grpc.stub.StreamObserver
+ * The API interface for managing autoscaling policies in the + * Google Cloud Dataproc API. + *+ */ + public static final class AutoscalingPolicyServiceBlockingStub + extends io.grpc.stub.AbstractStub
+ * Creates new autoscaling policy. + *+ */ + public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getCreateAutoscalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates (replaces) autoscaling policy. + * Disabled check for update_mask, because all updates will be full + * replacements. + *+ */ + public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateAutoscalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves autoscaling policy. + *+ */ + public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetAutoscalingPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists autoscaling policies in the project. + *+ */ + public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse + listAutoscalingPolicies( + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { + return blockingUnaryCall( + getChannel(), getListAutoscalingPoliciesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling + * policy that is in use by one or more clusters. + *+ */ + public com.google.protobuf.Empty deleteAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteAutoscalingPolicyMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * The API interface for managing autoscaling policies in the + * Google Cloud Dataproc API. + *+ */ + public static final class AutoscalingPolicyServiceFutureStub + extends io.grpc.stub.AbstractStub
+ * Creates new autoscaling policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + createAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateAutoscalingPolicyMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+ * Updates (replaces) autoscaling policy. + * Disabled check for update_mask, because all updates will be full + * replacements. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + updateAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateAutoscalingPolicyMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+ * Retrieves autoscaling policy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> + getAutoscalingPolicy( + com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAutoscalingPolicyMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists autoscaling policies in the project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> + listAutoscalingPolicies( + com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListAutoscalingPoliciesMethodHelper(), getCallOptions()), + request); + } + + /** + * + * + *
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling + * policy that is in use by one or more clusters. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
* Instantiates a template and begins execution.
* This method is equivalent to executing the sequence
- * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
- * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
* [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
* The returned Operation can be used to track execution of
* workflow by polling
@@ -783,8 +782,7 @@ public void instantiateWorkflowTemplate(
*
* Instantiates a template and begins execution.
* This method is equivalent to executing the sequence
- * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
- * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
* [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
* The returned Operation can be used to track execution of
* workflow by polling
@@ -948,8 +946,7 @@ public com.google.longrunning.Operation instantiateWorkflowTemplate(
*
* Instantiates a template and begins execution.
* This method is equivalent to executing the sequence
- * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
- * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
* [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
* The returned Operation can be used to track execution of
* workflow by polling
@@ -1106,8 +1103,7 @@ protected WorkflowTemplateServiceFutureStub build(
*
* Instantiates a template and begins execution.
* This method is equivalent to executing the sequence
- * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
- * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
* [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
* The returned Operation can be used to track execution of
* workflow by polling
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java
index a2e1c8ea62e9..967961a9e0bf 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfig.java
@@ -104,8 +104,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -135,8 +136,9 @@ public java.lang.String getAcceleratorTypeUri() {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -517,8 +519,9 @@ public Builder mergeFrom(
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -548,8 +551,9 @@ public java.lang.String getAcceleratorTypeUri() {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -579,8 +583,9 @@ public com.google.protobuf.ByteString getAcceleratorTypeUriBytes() {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -608,8 +613,9 @@ public Builder setAcceleratorTypeUri(java.lang.String value) {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -634,8 +640,9 @@ public Builder clearAcceleratorTypeUri() {
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java
index ee42fea60fdf..550e1b1667bd 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AcceleratorConfigOrBuilder.java
@@ -13,8 +13,9 @@ public interface AcceleratorConfigOrBuilder
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -34,8 +35,9 @@ public interface AcceleratorConfigOrBuilder
*
*
* Full URL, partial URI, or short name of the accelerator type resource to
- * expose to this instance. See [Compute Engine AcceleratorTypes](
- * /compute/docs/reference/beta/acceleratorTypes)
+ * expose to this instance. See
+ * [Compute Engine
+ * AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
* Examples
* * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
* * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java
new file mode 100644
index 000000000000..d0402a4cc6af
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfig.java
@@ -0,0 +1,633 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Autoscaling Policy config associated with the cluster.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingConfig}
+ */
+public final class AutoscalingConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.AutoscalingConfig)
+ AutoscalingConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AutoscalingConfig.newBuilder() to construct.
+ private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AutoscalingConfig() {
+ policyUri_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AutoscalingConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ policyUri_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.class,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder.class);
+ }
+
+ public static final int POLICY_URI_FIELD_NUMBER = 1;
+ private volatile java.lang.Object policyUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public java.lang.String getPolicyUri() {
+ java.lang.Object ref = policyUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ policyUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public com.google.protobuf.ByteString getPolicyUriBytes() {
+ java.lang.Object ref = policyUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ policyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getPolicyUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyUri_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getPolicyUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyUri_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.AutoscalingConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig other =
+ (com.google.cloud.dataproc.v1beta2.AutoscalingConfig) obj;
+
+ if (!getPolicyUri().equals(other.getPolicyUri())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + POLICY_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getPolicyUri().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.AutoscalingConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Autoscaling Policy config associated with the cluster.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.AutoscalingConfig)
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.class,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.AutoscalingConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ policyUri_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig build() {
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig result =
+ new com.google.cloud.dataproc.v1beta2.AutoscalingConfig(this);
+ result.policyUri_ = policyUri_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.AutoscalingConfig) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.AutoscalingConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.AutoscalingConfig other) {
+ if (other == com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance())
+ return this;
+ if (!other.getPolicyUri().isEmpty()) {
+ policyUri_ = other.policyUri_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.AutoscalingConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object policyUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public java.lang.String getPolicyUri() {
+ java.lang.Object ref = policyUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ policyUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public com.google.protobuf.ByteString getPolicyUriBytes() {
+ java.lang.Object ref = policyUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ policyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public Builder setPolicyUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ policyUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public Builder clearPolicyUri() {
+
+ policyUri_ = getDefaultInstance().getPolicyUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ public Builder setPolicyUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ policyUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.AutoscalingConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AutoscalingConfig)
+ private static final com.google.cloud.dataproc.v1beta2.AutoscalingConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.AutoscalingConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AutoscalingConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AutoscalingConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java
new file mode 100644
index 000000000000..3e2a8e43142e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingConfigOrBuilder.java
@@ -0,0 +1,41 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface AutoscalingConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.AutoscalingConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ java.lang.String getPolicyUri();
+ /**
+ *
+ *
+ *
+ * Optional. The autoscaling policy used by the cluster.
+ * Only resource names including projectid and location (region) are valid.
+ * Examples:
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ * Note that the policy must be in the same project and Cloud Dataproc region.
+ *
+ *
+ * string policy_uri = 1;
+ */
+ com.google.protobuf.ByteString getPolicyUriBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java
new file mode 100644
index 000000000000..b53a8dd0e6cd
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPoliciesProto.java
@@ -0,0 +1,266 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public final class AutoscalingPoliciesProto {
+ private AutoscalingPoliciesProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n8google/cloud/dataproc/v1beta2/autoscal"
+ + "ing_policies.proto\022\035google.cloud.datapro"
+ + "c.v1beta2\032\034google/api/annotations.proto\032"
+ + ",google/cloud/dataproc/v1beta2/clusters."
+ + "proto\032(google/cloud/dataproc/v1beta2/job"
+ + "s.proto\032#google/longrunning/operations.p"
+ + "roto\032\036google/protobuf/duration.proto\032\033go"
+ + "ogle/protobuf/empty.proto\032\037google/protob"
+ + "uf/timestamp.proto\"\321\002\n\021AutoscalingPolicy"
+ + "\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022S\n\017basic_algo"
+ + "rithm\030\003 \001(\01328.google.cloud.dataproc.v1be"
+ + "ta2.BasicAutoscalingAlgorithmH\000\022Z\n\rworke"
+ + "r_config\030\004 \001(\0132C.google.cloud.dataproc.v"
+ + "1beta2.InstanceGroupAutoscalingPolicyCon"
+ + "fig\022d\n\027secondary_worker_config\030\005 \001(\0132C.g"
+ + "oogle.cloud.dataproc.v1beta2.InstanceGro"
+ + "upAutoscalingPolicyConfigB\013\n\talgorithm\"\237"
+ + "\001\n\031BasicAutoscalingAlgorithm\022N\n\013yarn_con"
+ + "fig\030\001 \001(\01329.google.cloud.dataproc.v1beta"
+ + "2.BasicYarnAutoscalingConfig\0222\n\017cooldown"
+ + "_period\030\002 \001(\0132\031.google.protobuf.Duration"
+ + "\"\340\001\n\032BasicYarnAutoscalingConfig\022@\n\035grace"
+ + "ful_decommission_timeout\030\005 \001(\0132\031.google."
+ + "protobuf.Duration\022\027\n\017scale_up_factor\030\001 \001"
+ + "(\001\022\031\n\021scale_down_factor\030\002 \001(\001\022$\n\034scale_u"
+ + "p_min_worker_fraction\030\003 \001(\001\022&\n\036scale_dow"
+ + "n_min_worker_fraction\030\004 \001(\001\"d\n$InstanceG"
+ + "roupAutoscalingPolicyConfig\022\025\n\rmin_insta"
+ + "nces\030\001 \001(\005\022\025\n\rmax_instances\030\002 \001(\005\022\016\n\006wei"
+ + "ght\030\003 \001(\005\"r\n\036CreateAutoscalingPolicyRequ"
+ + "est\022\016\n\006parent\030\001 \001(\t\022@\n\006policy\030\002 \001(\01320.go"
+ + "ogle.cloud.dataproc.v1beta2.AutoscalingP"
+ + "olicy\"+\n\033GetAutoscalingPolicyRequest\022\014\n\004"
+ + "name\030\001 \001(\t\"b\n\036UpdateAutoscalingPolicyReq"
+ + "uest\022@\n\006policy\030\001 \001(\01320.google.cloud.data"
+ + "proc.v1beta2.AutoscalingPolicy\".\n\036Delete"
+ + "AutoscalingPolicyRequest\022\014\n\004name\030\001 \001(\t\"W"
+ + "\n\036ListAutoscalingPoliciesRequest\022\016\n\006pare"
+ + "nt\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke"
+ + "n\030\003 \001(\t\"~\n\037ListAutoscalingPoliciesRespon"
+ + "se\022B\n\010policies\030\001 \003(\01320.google.cloud.data"
+ + "proc.v1beta2.AutoscalingPolicy\022\027\n\017next_p"
+ + "age_token\030\002 \001(\t2\222\013\n\030AutoscalingPolicySer"
+ + "vice\022\240\002\n\027CreateAutoscalingPolicy\022=.googl"
+ + "e.cloud.dataproc.v1beta2.CreateAutoscali"
+ + "ngPolicyRequest\0320.google.cloud.dataproc."
+ + "v1beta2.AutoscalingPolicy\"\223\001\202\323\344\223\002\214\001\".google.cloud.dataproc.v1beta2.ListAuto"
+ + "scalingPoliciesResponse\"\202\001\202\323\344\223\002|\022
+ * Describes an autoscaling policy for Dataproc cluster autoscaler.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingPolicy}
+ */
+public final class AutoscalingPolicy extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
+ AutoscalingPolicyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AutoscalingPolicy.newBuilder() to construct.
+ private AutoscalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AutoscalingPolicy() {
+ id_ = "";
+ name_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private AutoscalingPolicy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ id_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder subBuilder = null;
+ if (algorithmCase_ == 3) {
+ subBuilder =
+ ((com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_)
+ .toBuilder();
+ }
+ algorithm_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_);
+ algorithm_ = subBuilder.buildPartial();
+ }
+ algorithmCase_ = 3;
+ break;
+ }
+ case 34:
+ {
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ subBuilder = null;
+ if (workerConfig_ != null) {
+ subBuilder = workerConfig_.toBuilder();
+ }
+ workerConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(workerConfig_);
+ workerConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ subBuilder = null;
+ if (secondaryWorkerConfig_ != null) {
+ subBuilder = secondaryWorkerConfig_.toBuilder();
+ }
+ secondaryWorkerConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(secondaryWorkerConfig_);
+ secondaryWorkerConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder.class);
+ }
+
+ private int algorithmCase_ = 0;
+ private java.lang.Object algorithm_;
+
+ public enum AlgorithmCase implements com.google.protobuf.Internal.EnumLite {
+ BASIC_ALGORITHM(3),
+ ALGORITHM_NOT_SET(0);
+ private final int value;
+
+ private AlgorithmCase(int value) {
+ this.value = value;
+ }
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static AlgorithmCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static AlgorithmCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return BASIC_ALGORITHM;
+ case 0:
+ return ALGORITHM_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public AlgorithmCase getAlgorithmCase() {
+ return AlgorithmCase.forNumber(algorithmCase_);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BASIC_ALGORITHM_FIELD_NUMBER = 3;
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ public boolean hasBasicAlgorithm() {
+ return algorithmCase_ == 3;
+ }
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm() {
+ if (algorithmCase_ == 3) {
+ return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_;
+ }
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder
+ getBasicAlgorithmOrBuilder() {
+ if (algorithmCase_ == 3) {
+ return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_;
+ }
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+
+ public static final int WORKER_CONFIG_FIELD_NUMBER = 4;
+ private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig workerConfig_;
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public boolean hasWorkerConfig() {
+ return workerConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getWorkerConfig() {
+ return workerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : workerConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getWorkerConfigOrBuilder() {
+ return getWorkerConfig();
+ }
+
+ public static final int SECONDARY_WORKER_CONFIG_FIELD_NUMBER = 5;
+ private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ secondaryWorkerConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public boolean hasSecondaryWorkerConfig() {
+ return secondaryWorkerConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getSecondaryWorkerConfig() {
+ return secondaryWorkerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : secondaryWorkerConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getSecondaryWorkerConfigOrBuilder() {
+ return getSecondaryWorkerConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
+ }
+ if (algorithmCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_);
+ }
+ if (workerConfig_ != null) {
+ output.writeMessage(4, getWorkerConfig());
+ }
+ if (secondaryWorkerConfig_ != null) {
+ output.writeMessage(5, getSecondaryWorkerConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
+ }
+ if (algorithmCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_);
+ }
+ if (workerConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getWorkerConfig());
+ }
+ if (secondaryWorkerConfig_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecondaryWorkerConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.AutoscalingPolicy)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy other =
+ (com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getName().equals(other.getName())) return false;
+ if (hasWorkerConfig() != other.hasWorkerConfig()) return false;
+ if (hasWorkerConfig()) {
+ if (!getWorkerConfig().equals(other.getWorkerConfig())) return false;
+ }
+ if (hasSecondaryWorkerConfig() != other.hasSecondaryWorkerConfig()) return false;
+ if (hasSecondaryWorkerConfig()) {
+ if (!getSecondaryWorkerConfig().equals(other.getSecondaryWorkerConfig())) return false;
+ }
+ if (!getAlgorithmCase().equals(other.getAlgorithmCase())) return false;
+ switch (algorithmCase_) {
+ case 3:
+ if (!getBasicAlgorithm().equals(other.getBasicAlgorithm())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasWorkerConfig()) {
+ hash = (37 * hash) + WORKER_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkerConfig().hashCode();
+ }
+ if (hasSecondaryWorkerConfig()) {
+ hash = (37 * hash) + SECONDARY_WORKER_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryWorkerConfig().hashCode();
+ }
+ switch (algorithmCase_) {
+ case 3:
+ hash = (37 * hash) + BASIC_ALGORITHM_FIELD_NUMBER;
+ hash = (53 * hash) + getBasicAlgorithm().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Describes an autoscaling policy for Dataproc cluster autoscaler.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.AutoscalingPolicy}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.class,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ id_ = "";
+
+ name_ = "";
+
+ if (workerConfigBuilder_ == null) {
+ workerConfig_ = null;
+ } else {
+ workerConfig_ = null;
+ workerConfigBuilder_ = null;
+ }
+ if (secondaryWorkerConfigBuilder_ == null) {
+ secondaryWorkerConfig_ = null;
+ } else {
+ secondaryWorkerConfig_ = null;
+ secondaryWorkerConfigBuilder_ = null;
+ }
+ algorithmCase_ = 0;
+ algorithm_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_AutoscalingPolicy_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy build() {
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy buildPartial() {
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy result =
+ new com.google.cloud.dataproc.v1beta2.AutoscalingPolicy(this);
+ result.id_ = id_;
+ result.name_ = name_;
+ if (algorithmCase_ == 3) {
+ if (basicAlgorithmBuilder_ == null) {
+ result.algorithm_ = algorithm_;
+ } else {
+ result.algorithm_ = basicAlgorithmBuilder_.build();
+ }
+ }
+ if (workerConfigBuilder_ == null) {
+ result.workerConfig_ = workerConfig_;
+ } else {
+ result.workerConfig_ = workerConfigBuilder_.build();
+ }
+ if (secondaryWorkerConfigBuilder_ == null) {
+ result.secondaryWorkerConfig_ = secondaryWorkerConfig_;
+ } else {
+ result.secondaryWorkerConfig_ = secondaryWorkerConfigBuilder_.build();
+ }
+ result.algorithmCase_ = algorithmCase_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy other) {
+ if (other == com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance())
+ return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ if (other.hasWorkerConfig()) {
+ mergeWorkerConfig(other.getWorkerConfig());
+ }
+ if (other.hasSecondaryWorkerConfig()) {
+ mergeSecondaryWorkerConfig(other.getSecondaryWorkerConfig());
+ }
+ switch (other.getAlgorithmCase()) {
+ case BASIC_ALGORITHM:
+ {
+ mergeBasicAlgorithm(other.getBasicAlgorithm());
+ break;
+ }
+ case ALGORITHM_NOT_SET:
+ {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.AutoscalingPolicy) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int algorithmCase_ = 0;
+ private java.lang.Object algorithm_;
+
+ public AlgorithmCase getAlgorithmCase() {
+ return AlgorithmCase.forNumber(algorithmCase_);
+ }
+
+ public Builder clearAlgorithm() {
+ algorithmCase_ = 0;
+ algorithm_ = null;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object id_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder>
+ basicAlgorithmBuilder_;
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public boolean hasBasicAlgorithm() {
+ return algorithmCase_ == 3;
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm() {
+ if (basicAlgorithmBuilder_ == null) {
+ if (algorithmCase_ == 3) {
+ return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_;
+ }
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ } else {
+ if (algorithmCase_ == 3) {
+ return basicAlgorithmBuilder_.getMessage();
+ }
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public Builder setBasicAlgorithm(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm value) {
+ if (basicAlgorithmBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ algorithm_ = value;
+ onChanged();
+ } else {
+ basicAlgorithmBuilder_.setMessage(value);
+ }
+ algorithmCase_ = 3;
+ return this;
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public Builder setBasicAlgorithm(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder builderForValue) {
+ if (basicAlgorithmBuilder_ == null) {
+ algorithm_ = builderForValue.build();
+ onChanged();
+ } else {
+ basicAlgorithmBuilder_.setMessage(builderForValue.build());
+ }
+ algorithmCase_ = 3;
+ return this;
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public Builder mergeBasicAlgorithm(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm value) {
+ if (basicAlgorithmBuilder_ == null) {
+ if (algorithmCase_ == 3
+ && algorithm_
+ != com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm
+ .getDefaultInstance()) {
+ algorithm_ =
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.newBuilder(
+ (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ algorithm_ = value;
+ }
+ onChanged();
+ } else {
+ if (algorithmCase_ == 3) {
+ basicAlgorithmBuilder_.mergeFrom(value);
+ }
+ basicAlgorithmBuilder_.setMessage(value);
+ }
+ algorithmCase_ = 3;
+ return this;
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public Builder clearBasicAlgorithm() {
+ if (basicAlgorithmBuilder_ == null) {
+ if (algorithmCase_ == 3) {
+ algorithmCase_ = 0;
+ algorithm_ = null;
+ onChanged();
+ }
+ } else {
+ if (algorithmCase_ == 3) {
+ algorithmCase_ = 0;
+ algorithm_ = null;
+ }
+ basicAlgorithmBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder
+ getBasicAlgorithmBuilder() {
+ return getBasicAlgorithmFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder
+ getBasicAlgorithmOrBuilder() {
+ if ((algorithmCase_ == 3) && (basicAlgorithmBuilder_ != null)) {
+ return basicAlgorithmBuilder_.getMessageOrBuilder();
+ } else {
+ if (algorithmCase_ == 3) {
+ return (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_;
+ }
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+ }
+ /**
+ * .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder>
+ getBasicAlgorithmFieldBuilder() {
+ if (basicAlgorithmBuilder_ == null) {
+ if (!(algorithmCase_ == 3)) {
+ algorithm_ =
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+ basicAlgorithmBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder>(
+ (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) algorithm_,
+ getParentForChildren(),
+ isClean());
+ algorithm_ = null;
+ }
+ algorithmCase_ = 3;
+ onChanged();
+ ;
+ return basicAlgorithmBuilder_;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig workerConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>
+ workerConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public boolean hasWorkerConfig() {
+ return workerConfigBuilder_ != null || workerConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getWorkerConfig() {
+ if (workerConfigBuilder_ == null) {
+ return workerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : workerConfig_;
+ } else {
+ return workerConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public Builder setWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) {
+ if (workerConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ workerConfig_ = value;
+ onChanged();
+ } else {
+ workerConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public Builder setWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ builderForValue) {
+ if (workerConfigBuilder_ == null) {
+ workerConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ workerConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public Builder mergeWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) {
+ if (workerConfigBuilder_ == null) {
+ if (workerConfig_ != null) {
+ workerConfig_ =
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.newBuilder(
+ workerConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ workerConfig_ = value;
+ }
+ onChanged();
+ } else {
+ workerConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public Builder clearWorkerConfig() {
+ if (workerConfigBuilder_ == null) {
+ workerConfig_ = null;
+ onChanged();
+ } else {
+ workerConfig_ = null;
+ workerConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ getWorkerConfigBuilder() {
+
+ onChanged();
+ return getWorkerConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getWorkerConfigOrBuilder() {
+ if (workerConfigBuilder_ != null) {
+ return workerConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return workerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : workerConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>
+ getWorkerConfigFieldBuilder() {
+ if (workerConfigBuilder_ == null) {
+ workerConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>(
+ getWorkerConfig(), getParentForChildren(), isClean());
+ workerConfig_ = null;
+ }
+ return workerConfigBuilder_;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ secondaryWorkerConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>
+ secondaryWorkerConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public boolean hasSecondaryWorkerConfig() {
+ return secondaryWorkerConfigBuilder_ != null || secondaryWorkerConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getSecondaryWorkerConfig() {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ return secondaryWorkerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : secondaryWorkerConfig_;
+ } else {
+ return secondaryWorkerConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public Builder setSecondaryWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ secondaryWorkerConfig_ = value;
+ onChanged();
+ } else {
+ secondaryWorkerConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public Builder setSecondaryWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ builderForValue) {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ secondaryWorkerConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ secondaryWorkerConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public Builder mergeSecondaryWorkerConfig(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig value) {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ if (secondaryWorkerConfig_ != null) {
+ secondaryWorkerConfig_ =
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.newBuilder(
+ secondaryWorkerConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ secondaryWorkerConfig_ = value;
+ }
+ onChanged();
+ } else {
+ secondaryWorkerConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public Builder clearSecondaryWorkerConfig() {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ secondaryWorkerConfig_ = null;
+ onChanged();
+ } else {
+ secondaryWorkerConfig_ = null;
+ secondaryWorkerConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder
+ getSecondaryWorkerConfigBuilder() {
+
+ onChanged();
+ return getSecondaryWorkerConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getSecondaryWorkerConfigOrBuilder() {
+ if (secondaryWorkerConfigBuilder_ != null) {
+ return secondaryWorkerConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return secondaryWorkerConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()
+ : secondaryWorkerConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>
+ getSecondaryWorkerConfigFieldBuilder() {
+ if (secondaryWorkerConfigBuilder_ == null) {
+ secondaryWorkerConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder>(
+ getSecondaryWorkerConfig(), getParentForChildren(), isClean());
+ secondaryWorkerConfig_ = null;
+ }
+ return secondaryWorkerConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
+ private static final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.AutoscalingPolicy();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public AutoscalingPolicy parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new AutoscalingPolicy(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java
new file mode 100644
index 000000000000..d7004a24f3ff
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyName.java
@@ -0,0 +1,213 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.cloud.dataproc.v1beta2;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class AutoscalingPolicyName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding(
+ "projects/{project}/regions/{region}/autoscalingPolicies/{autoscaling_policy}");
+
+ private volatile Map fieldValuesMap;
+
+ private final String project;
+ private final String region;
+ private final String autoscalingPolicy;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getRegion() {
+ return region;
+ }
+
+ public String getAutoscalingPolicy() {
+ return autoscalingPolicy;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ private AutoscalingPolicyName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ region = Preconditions.checkNotNull(builder.getRegion());
+ autoscalingPolicy = Preconditions.checkNotNull(builder.getAutoscalingPolicy());
+ }
+
+ public static AutoscalingPolicyName of(String project, String region, String autoscalingPolicy) {
+ return newBuilder()
+ .setProject(project)
+ .setRegion(region)
+ .setAutoscalingPolicy(autoscalingPolicy)
+ .build();
+ }
+
+ public static String format(String project, String region, String autoscalingPolicy) {
+ return newBuilder()
+ .setProject(project)
+ .setRegion(region)
+ .setAutoscalingPolicy(autoscalingPolicy)
+ .build()
+ .toString();
+ }
+
+ public static AutoscalingPolicyName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PATH_TEMPLATE.validatedMatch(
+ formattedString, "AutoscalingPolicyName.parse: formattedString not in valid format");
+ return of(matchMap.get("project"), matchMap.get("region"), matchMap.get("autoscaling_policy"));
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList(values.size());
+ for (AutoscalingPolicyName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PATH_TEMPLATE.matches(formattedString);
+ }
+
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ fieldMapBuilder.put("project", project);
+ fieldMapBuilder.put("region", region);
+ fieldMapBuilder.put("autoscalingPolicy", autoscalingPolicy);
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PATH_TEMPLATE.instantiate(
+ "project", project, "region", region, "autoscaling_policy", autoscalingPolicy);
+ }
+
+ /** Builder for AutoscalingPolicyName. */
+ public static class Builder {
+
+ private String project;
+ private String region;
+ private String autoscalingPolicy;
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getRegion() {
+ return region;
+ }
+
+ public String getAutoscalingPolicy() {
+ return autoscalingPolicy;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setRegion(String region) {
+ this.region = region;
+ return this;
+ }
+
+ public Builder setAutoscalingPolicy(String autoscalingPolicy) {
+ this.autoscalingPolicy = autoscalingPolicy;
+ return this;
+ }
+
+ private Builder() {}
+
+ private Builder(AutoscalingPolicyName autoscalingPolicyName) {
+ project = autoscalingPolicyName.project;
+ region = autoscalingPolicyName.region;
+ autoscalingPolicy = autoscalingPolicyName.autoscalingPolicy;
+ }
+
+ public AutoscalingPolicyName build() {
+ return new AutoscalingPolicyName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof AutoscalingPolicyName) {
+ AutoscalingPolicyName that = (AutoscalingPolicyName) o;
+ return (this.project.equals(that.project))
+ && (this.region.equals(that.region))
+ && (this.autoscalingPolicy.equals(that.autoscalingPolicy));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= project.hashCode();
+ h *= 1000003;
+ h ^= region.hashCode();
+ h *= 1000003;
+ h ^= autoscalingPolicy.hashCode();
+ return h;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java
new file mode 100644
index 000000000000..381983aee464
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyOrBuilder.java
@@ -0,0 +1,144 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface AutoscalingPolicyOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.AutoscalingPolicy)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ *
+ * Required. The policy id.
+ * The id must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), and hyphens (-). Cannot begin or end with underscore
+ * or hyphen. Must consist of between 3 and 50 characters.
+ *
+ *
+ * string id = 1;
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Output only. The "resource name" of the policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 2;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ boolean hasBasicAlgorithm();
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getBasicAlgorithm();
+ /** .google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm basic_algorithm = 3; */
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder getBasicAlgorithmOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ boolean hasWorkerConfig();
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getWorkerConfig();
+ /**
+ *
+ *
+ *
+ * Required. Describes how the autoscaler will operate for primary workers.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+ *
+ */
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getWorkerConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ boolean hasSecondaryWorkerConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Describes how the autoscaler will operate for secondary workers.
+ *
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+ *
+ */
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder
+ getSecondaryWorkerConfigOrBuilder();
+
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.AlgorithmCase getAlgorithmCase();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java
new file mode 100644
index 000000000000..693a8fd1ed4f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithm.java
@@ -0,0 +1,1000 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Basic algorithm for autoscaling.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm}
+ */
+public final class BasicAutoscalingAlgorithm extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
+ BasicAutoscalingAlgorithmOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BasicAutoscalingAlgorithm.newBuilder() to construct.
+ private BasicAutoscalingAlgorithm(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BasicAutoscalingAlgorithm() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private BasicAutoscalingAlgorithm(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder subBuilder =
+ null;
+ if (yarnConfig_ != null) {
+ subBuilder = yarnConfig_.toBuilder();
+ }
+ yarnConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(yarnConfig_);
+ yarnConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (cooldownPeriod_ != null) {
+ subBuilder = cooldownPeriod_.toBuilder();
+ }
+ cooldownPeriod_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cooldownPeriod_);
+ cooldownPeriod_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.class,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder.class);
+ }
+
+ public static final int YARN_CONFIG_FIELD_NUMBER = 1;
+ private com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarnConfig_;
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public boolean hasYarnConfig() {
+ return yarnConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig() {
+ return yarnConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance()
+ : yarnConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder
+ getYarnConfigOrBuilder() {
+ return getYarnConfig();
+ }
+
+ public static final int COOLDOWN_PERIOD_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration cooldownPeriod_;
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public boolean hasCooldownPeriod() {
+ return cooldownPeriod_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public com.google.protobuf.Duration getCooldownPeriod() {
+ return cooldownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : cooldownPeriod_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() {
+ return getCooldownPeriod();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (yarnConfig_ != null) {
+ output.writeMessage(1, getYarnConfig());
+ }
+ if (cooldownPeriod_ != null) {
+ output.writeMessage(2, getCooldownPeriod());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (yarnConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getYarnConfig());
+ }
+ if (cooldownPeriod_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCooldownPeriod());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm other =
+ (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) obj;
+
+ if (hasYarnConfig() != other.hasYarnConfig()) return false;
+ if (hasYarnConfig()) {
+ if (!getYarnConfig().equals(other.getYarnConfig())) return false;
+ }
+ if (hasCooldownPeriod() != other.hasCooldownPeriod()) return false;
+ if (hasCooldownPeriod()) {
+ if (!getCooldownPeriod().equals(other.getCooldownPeriod())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasYarnConfig()) {
+ hash = (37 * hash) + YARN_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getYarnConfig().hashCode();
+ }
+ if (hasCooldownPeriod()) {
+ hash = (37 * hash) + COOLDOWN_PERIOD_FIELD_NUMBER;
+ hash = (53 * hash) + getCooldownPeriod().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Basic algorithm for autoscaling.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithmOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.class,
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (yarnConfigBuilder_ == null) {
+ yarnConfig_ = null;
+ } else {
+ yarnConfig_ = null;
+ yarnConfigBuilder_ = null;
+ }
+ if (cooldownPeriodBuilder_ == null) {
+ cooldownPeriod_ = null;
+ } else {
+ cooldownPeriod_ = null;
+ cooldownPeriodBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicAutoscalingAlgorithm_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm build() {
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm buildPartial() {
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm result =
+ new com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm(this);
+ if (yarnConfigBuilder_ == null) {
+ result.yarnConfig_ = yarnConfig_;
+ } else {
+ result.yarnConfig_ = yarnConfigBuilder_.build();
+ }
+ if (cooldownPeriodBuilder_ == null) {
+ result.cooldownPeriod_ = cooldownPeriod_;
+ } else {
+ result.cooldownPeriod_ = cooldownPeriodBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm other) {
+ if (other == com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm.getDefaultInstance())
+ return this;
+ if (other.hasYarnConfig()) {
+ mergeYarnConfig(other.getYarnConfig());
+ }
+ if (other.hasCooldownPeriod()) {
+ mergeCooldownPeriod(other.getCooldownPeriod());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarnConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder>
+ yarnConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public boolean hasYarnConfig() {
+ return yarnConfigBuilder_ != null || yarnConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig() {
+ if (yarnConfigBuilder_ == null) {
+ return yarnConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance()
+ : yarnConfig_;
+ } else {
+ return yarnConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public Builder setYarnConfig(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig value) {
+ if (yarnConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ yarnConfig_ = value;
+ onChanged();
+ } else {
+ yarnConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public Builder setYarnConfig(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder builderForValue) {
+ if (yarnConfigBuilder_ == null) {
+ yarnConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ yarnConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public Builder mergeYarnConfig(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig value) {
+ if (yarnConfigBuilder_ == null) {
+ if (yarnConfig_ != null) {
+ yarnConfig_ =
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.newBuilder(yarnConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ yarnConfig_ = value;
+ }
+ onChanged();
+ } else {
+ yarnConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public Builder clearYarnConfig() {
+ if (yarnConfigBuilder_ == null) {
+ yarnConfig_ = null;
+ onChanged();
+ } else {
+ yarnConfig_ = null;
+ yarnConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder
+ getYarnConfigBuilder() {
+
+ onChanged();
+ return getYarnConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder
+ getYarnConfigOrBuilder() {
+ if (yarnConfigBuilder_ != null) {
+ return yarnConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return yarnConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance()
+ : yarnConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder>
+ getYarnConfigFieldBuilder() {
+ if (yarnConfigBuilder_ == null) {
+ yarnConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder>(
+ getYarnConfig(), getParentForChildren(), isClean());
+ yarnConfig_ = null;
+ }
+ return yarnConfigBuilder_;
+ }
+
+ private com.google.protobuf.Duration cooldownPeriod_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ cooldownPeriodBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public boolean hasCooldownPeriod() {
+ return cooldownPeriodBuilder_ != null || cooldownPeriod_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public com.google.protobuf.Duration getCooldownPeriod() {
+ if (cooldownPeriodBuilder_ == null) {
+ return cooldownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : cooldownPeriod_;
+ } else {
+ return cooldownPeriodBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public Builder setCooldownPeriod(com.google.protobuf.Duration value) {
+ if (cooldownPeriodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cooldownPeriod_ = value;
+ onChanged();
+ } else {
+ cooldownPeriodBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public Builder setCooldownPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+ if (cooldownPeriodBuilder_ == null) {
+ cooldownPeriod_ = builderForValue.build();
+ onChanged();
+ } else {
+ cooldownPeriodBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public Builder mergeCooldownPeriod(com.google.protobuf.Duration value) {
+ if (cooldownPeriodBuilder_ == null) {
+ if (cooldownPeriod_ != null) {
+ cooldownPeriod_ =
+ com.google.protobuf.Duration.newBuilder(cooldownPeriod_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ cooldownPeriod_ = value;
+ }
+ onChanged();
+ } else {
+ cooldownPeriodBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public Builder clearCooldownPeriod() {
+ if (cooldownPeriodBuilder_ == null) {
+ cooldownPeriod_ = null;
+ onChanged();
+ } else {
+ cooldownPeriod_ = null;
+ cooldownPeriodBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public com.google.protobuf.Duration.Builder getCooldownPeriodBuilder() {
+
+ onChanged();
+ return getCooldownPeriodFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ public com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder() {
+ if (cooldownPeriodBuilder_ != null) {
+ return cooldownPeriodBuilder_.getMessageOrBuilder();
+ } else {
+ return cooldownPeriod_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : cooldownPeriod_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getCooldownPeriodFieldBuilder() {
+ if (cooldownPeriodBuilder_ == null) {
+ cooldownPeriodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getCooldownPeriod(), getParentForChildren(), isClean());
+ cooldownPeriod_ = null;
+ }
+ return cooldownPeriodBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
+ private static final com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BasicAutoscalingAlgorithm parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BasicAutoscalingAlgorithm(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java
new file mode 100644
index 000000000000..6c2a3a4a5c94
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicAutoscalingAlgorithmOrBuilder.java
@@ -0,0 +1,78 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface BasicAutoscalingAlgorithmOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.BasicAutoscalingAlgorithm)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ boolean hasYarnConfig();
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getYarnConfig();
+ /**
+ *
+ *
+ *
+ * Required. YARN autoscaling configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig yarn_config = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ boolean hasCooldownPeriod();
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ com.google.protobuf.Duration getCooldownPeriod();
+ /**
+ *
+ *
+ *
+ * Optional. Duration between scaling events. A scaling period starts after
+ * the update operation from the previous event has completed.
+ * Bounds: [2m, 1d]. Default: 2m.
+ *
+ *
+ * .google.protobuf.Duration cooldown_period = 2;
+ */
+ com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java
new file mode 100644
index 000000000000..fc80fdd02daf
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfig.java
@@ -0,0 +1,1170 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Basic autoscaling configurations for YARN.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig}
+ */
+public final class BasicYarnAutoscalingConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
+ BasicYarnAutoscalingConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BasicYarnAutoscalingConfig.newBuilder() to construct.
+ private BasicYarnAutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private BasicYarnAutoscalingConfig() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private BasicYarnAutoscalingConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 9:
+ {
+ scaleUpFactor_ = input.readDouble();
+ break;
+ }
+ case 17:
+ {
+ scaleDownFactor_ = input.readDouble();
+ break;
+ }
+ case 25:
+ {
+ scaleUpMinWorkerFraction_ = input.readDouble();
+ break;
+ }
+ case 33:
+ {
+ scaleDownMinWorkerFraction_ = input.readDouble();
+ break;
+ }
+ case 42:
+ {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (gracefulDecommissionTimeout_ != null) {
+ subBuilder = gracefulDecommissionTimeout_.toBuilder();
+ }
+ gracefulDecommissionTimeout_ =
+ input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(gracefulDecommissionTimeout_);
+ gracefulDecommissionTimeout_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.class,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder.class);
+ }
+
+ public static final int GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER = 5;
+ private com.google.protobuf.Duration gracefulDecommissionTimeout_;
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public boolean hasGracefulDecommissionTimeout() {
+ return gracefulDecommissionTimeout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
+ return gracefulDecommissionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : gracefulDecommissionTimeout_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() {
+ return getGracefulDecommissionTimeout();
+ }
+
+ public static final int SCALE_UP_FACTOR_FIELD_NUMBER = 1;
+ private double scaleUpFactor_;
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to add workers. A scale-up factor of 1.0 will result in scaling
+ * up so that there is no pending memory remaining after the update (more
+ * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ * magnitude of scaling up (less aggressive scaling).
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_up_factor = 1;
+ */
+ public double getScaleUpFactor() {
+ return scaleUpFactor_;
+ }
+
+ public static final int SCALE_DOWN_FACTOR_FIELD_NUMBER = 2;
+ private double scaleDownFactor_;
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to remove workers. A scale-down factor of 1 will result in
+ * scaling down so that there is no available memory remaining after the
+ * update (more aggressive scaling). A scale-down factor of 0 disables
+ * removing workers, which can be beneficial for autoscaling a single job.
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_down_factor = 2;
+ */
+ public double getScaleDownFactor() {
+ return scaleDownFactor_;
+ }
+
+ public static final int SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER = 3;
+ private double scaleUpMinWorkerFraction_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-up threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_up_min_worker_fraction = 3;
+ */
+ public double getScaleUpMinWorkerFraction() {
+ return scaleUpMinWorkerFraction_;
+ }
+
+ public static final int SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER = 4;
+ private double scaleDownMinWorkerFraction_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-down threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_down_min_worker_fraction = 4;
+ */
+ public double getScaleDownMinWorkerFraction() {
+ return scaleDownMinWorkerFraction_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (scaleUpFactor_ != 0D) {
+ output.writeDouble(1, scaleUpFactor_);
+ }
+ if (scaleDownFactor_ != 0D) {
+ output.writeDouble(2, scaleDownFactor_);
+ }
+ if (scaleUpMinWorkerFraction_ != 0D) {
+ output.writeDouble(3, scaleUpMinWorkerFraction_);
+ }
+ if (scaleDownMinWorkerFraction_ != 0D) {
+ output.writeDouble(4, scaleDownMinWorkerFraction_);
+ }
+ if (gracefulDecommissionTimeout_ != null) {
+ output.writeMessage(5, getGracefulDecommissionTimeout());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (scaleUpFactor_ != 0D) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, scaleUpFactor_);
+ }
+ if (scaleDownFactor_ != 0D) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, scaleDownFactor_);
+ }
+ if (scaleUpMinWorkerFraction_ != 0D) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, scaleUpMinWorkerFraction_);
+ }
+ if (scaleDownMinWorkerFraction_ != 0D) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(4, scaleDownMinWorkerFraction_);
+ }
+ if (gracefulDecommissionTimeout_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, getGracefulDecommissionTimeout());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig other =
+ (com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) obj;
+
+ if (hasGracefulDecommissionTimeout() != other.hasGracefulDecommissionTimeout()) return false;
+ if (hasGracefulDecommissionTimeout()) {
+ if (!getGracefulDecommissionTimeout().equals(other.getGracefulDecommissionTimeout()))
+ return false;
+ }
+ if (java.lang.Double.doubleToLongBits(getScaleUpFactor())
+ != java.lang.Double.doubleToLongBits(other.getScaleUpFactor())) return false;
+ if (java.lang.Double.doubleToLongBits(getScaleDownFactor())
+ != java.lang.Double.doubleToLongBits(other.getScaleDownFactor())) return false;
+ if (java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction())
+ != java.lang.Double.doubleToLongBits(other.getScaleUpMinWorkerFraction())) return false;
+ if (java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction())
+ != java.lang.Double.doubleToLongBits(other.getScaleDownMinWorkerFraction())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasGracefulDecommissionTimeout()) {
+ hash = (37 * hash) + GRACEFUL_DECOMMISSION_TIMEOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getGracefulDecommissionTimeout().hashCode();
+ }
+ hash = (37 * hash) + SCALE_UP_FACTOR_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getScaleUpFactor()));
+ hash = (37 * hash) + SCALE_DOWN_FACTOR_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getScaleDownFactor()));
+ hash = (37 * hash) + SCALE_UP_MIN_WORKER_FRACTION_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getScaleUpMinWorkerFraction()));
+ hash = (37 * hash) + SCALE_DOWN_MIN_WORKER_FRACTION_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getScaleDownMinWorkerFraction()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Basic autoscaling configurations for YARN.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.class,
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ gracefulDecommissionTimeout_ = null;
+ } else {
+ gracefulDecommissionTimeout_ = null;
+ gracefulDecommissionTimeoutBuilder_ = null;
+ }
+ scaleUpFactor_ = 0D;
+
+ scaleDownFactor_ = 0D;
+
+ scaleUpMinWorkerFraction_ = 0D;
+
+ scaleDownMinWorkerFraction_ = 0D;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_BasicYarnAutoscalingConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig build() {
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig result =
+ new com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig(this);
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeout_;
+ } else {
+ result.gracefulDecommissionTimeout_ = gracefulDecommissionTimeoutBuilder_.build();
+ }
+ result.scaleUpFactor_ = scaleUpFactor_;
+ result.scaleDownFactor_ = scaleDownFactor_;
+ result.scaleUpMinWorkerFraction_ = scaleUpMinWorkerFraction_;
+ result.scaleDownMinWorkerFraction_ = scaleDownMinWorkerFraction_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig.getDefaultInstance())
+ return this;
+ if (other.hasGracefulDecommissionTimeout()) {
+ mergeGracefulDecommissionTimeout(other.getGracefulDecommissionTimeout());
+ }
+ if (other.getScaleUpFactor() != 0D) {
+ setScaleUpFactor(other.getScaleUpFactor());
+ }
+ if (other.getScaleDownFactor() != 0D) {
+ setScaleDownFactor(other.getScaleDownFactor());
+ }
+ if (other.getScaleUpMinWorkerFraction() != 0D) {
+ setScaleUpMinWorkerFraction(other.getScaleUpMinWorkerFraction());
+ }
+ if (other.getScaleDownMinWorkerFraction() != 0D) {
+ setScaleDownMinWorkerFraction(other.getScaleDownMinWorkerFraction());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.protobuf.Duration gracefulDecommissionTimeout_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ gracefulDecommissionTimeoutBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public boolean hasGracefulDecommissionTimeout() {
+ return gracefulDecommissionTimeoutBuilder_ != null || gracefulDecommissionTimeout_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public com.google.protobuf.Duration getGracefulDecommissionTimeout() {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ return gracefulDecommissionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : gracefulDecommissionTimeout_;
+ } else {
+ return gracefulDecommissionTimeoutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public Builder setGracefulDecommissionTimeout(com.google.protobuf.Duration value) {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gracefulDecommissionTimeout_ = value;
+ onChanged();
+ } else {
+ gracefulDecommissionTimeoutBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public Builder setGracefulDecommissionTimeout(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ gracefulDecommissionTimeout_ = builderForValue.build();
+ onChanged();
+ } else {
+ gracefulDecommissionTimeoutBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public Builder mergeGracefulDecommissionTimeout(com.google.protobuf.Duration value) {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ if (gracefulDecommissionTimeout_ != null) {
+ gracefulDecommissionTimeout_ =
+ com.google.protobuf.Duration.newBuilder(gracefulDecommissionTimeout_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ gracefulDecommissionTimeout_ = value;
+ }
+ onChanged();
+ } else {
+ gracefulDecommissionTimeoutBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public Builder clearGracefulDecommissionTimeout() {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ gracefulDecommissionTimeout_ = null;
+ onChanged();
+ } else {
+ gracefulDecommissionTimeout_ = null;
+ gracefulDecommissionTimeoutBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder() {
+
+ onChanged();
+ return getGracefulDecommissionTimeoutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder() {
+ if (gracefulDecommissionTimeoutBuilder_ != null) {
+ return gracefulDecommissionTimeoutBuilder_.getMessageOrBuilder();
+ } else {
+ return gracefulDecommissionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : gracefulDecommissionTimeout_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getGracefulDecommissionTimeoutFieldBuilder() {
+ if (gracefulDecommissionTimeoutBuilder_ == null) {
+ gracefulDecommissionTimeoutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getGracefulDecommissionTimeout(), getParentForChildren(), isClean());
+ gracefulDecommissionTimeout_ = null;
+ }
+ return gracefulDecommissionTimeoutBuilder_;
+ }
+
+ private double scaleUpFactor_;
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to add workers. A scale-up factor of 1.0 will result in scaling
+ * up so that there is no pending memory remaining after the update (more
+ * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ * magnitude of scaling up (less aggressive scaling).
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_up_factor = 1;
+ */
+ public double getScaleUpFactor() {
+ return scaleUpFactor_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to add workers. A scale-up factor of 1.0 will result in scaling
+ * up so that there is no pending memory remaining after the update (more
+ * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ * magnitude of scaling up (less aggressive scaling).
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_up_factor = 1;
+ */
+ public Builder setScaleUpFactor(double value) {
+
+ scaleUpFactor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to add workers. A scale-up factor of 1.0 will result in scaling
+ * up so that there is no pending memory remaining after the update (more
+ * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ * magnitude of scaling up (less aggressive scaling).
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_up_factor = 1;
+ */
+ public Builder clearScaleUpFactor() {
+
+ scaleUpFactor_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double scaleDownFactor_;
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to remove workers. A scale-down factor of 1 will result in
+ * scaling down so that there is no available memory remaining after the
+ * update (more aggressive scaling). A scale-down factor of 0 disables
+ * removing workers, which can be beneficial for autoscaling a single job.
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_down_factor = 2;
+ */
+ public double getScaleDownFactor() {
+ return scaleDownFactor_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to remove workers. A scale-down factor of 1 will result in
+ * scaling down so that there is no available memory remaining after the
+ * update (more aggressive scaling). A scale-down factor of 0 disables
+ * removing workers, which can be beneficial for autoscaling a single job.
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_down_factor = 2;
+ */
+ public Builder setScaleDownFactor(double value) {
+
+ scaleDownFactor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to remove workers. A scale-down factor of 1 will result in
+ * scaling down so that there is no available memory remaining after the
+ * update (more aggressive scaling). A scale-down factor of 0 disables
+ * removing workers, which can be beneficial for autoscaling a single job.
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_down_factor = 2;
+ */
+ public Builder clearScaleDownFactor() {
+
+ scaleDownFactor_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double scaleUpMinWorkerFraction_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-up threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_up_min_worker_fraction = 3;
+ */
+ public double getScaleUpMinWorkerFraction() {
+ return scaleUpMinWorkerFraction_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-up threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_up_min_worker_fraction = 3;
+ */
+ public Builder setScaleUpMinWorkerFraction(double value) {
+
+ scaleUpMinWorkerFraction_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-up threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_up_min_worker_fraction = 3;
+ */
+ public Builder clearScaleUpMinWorkerFraction() {
+
+ scaleUpMinWorkerFraction_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double scaleDownMinWorkerFraction_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-down threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_down_min_worker_fraction = 4;
+ */
+ public double getScaleDownMinWorkerFraction() {
+ return scaleDownMinWorkerFraction_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-down threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_down_min_worker_fraction = 4;
+ */
+ public Builder setScaleDownMinWorkerFraction(double value) {
+
+ scaleDownMinWorkerFraction_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-down threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_down_min_worker_fraction = 4;
+ */
+ public Builder clearScaleDownMinWorkerFraction() {
+
+ scaleDownMinWorkerFraction_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
+ private static final com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BasicYarnAutoscalingConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BasicYarnAutoscalingConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java
new file mode 100644
index 000000000000..41b2531d09e1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/BasicYarnAutoscalingConfigOrBuilder.java
@@ -0,0 +1,117 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface BasicYarnAutoscalingConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.BasicYarnAutoscalingConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ boolean hasGracefulDecommissionTimeout();
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ com.google.protobuf.Duration getGracefulDecommissionTimeout();
+ /**
+ *
+ *
+ *
+ * Required. Timeout for YARN graceful decommissioning of Node Managers.
+ * Specifies the duration to wait for jobs to complete before forcefully
+ * removing workers (and potentially interrupting jobs). Only applicable to
+ * downscaling operations.
+ * Bounds: [0s, 1d].
+ *
+ *
+ * .google.protobuf.Duration graceful_decommission_timeout = 5;
+ */
+ com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to add workers. A scale-up factor of 1.0 will result in scaling
+ * up so that there is no pending memory remaining after the update (more
+ * aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ * magnitude of scaling up (less aggressive scaling).
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_up_factor = 1;
+ */
+ double getScaleUpFactor();
+
+ /**
+ *
+ *
+ *
+ * Required. Fraction of average pending memory in the last cooldown period
+ * for which to remove workers. A scale-down factor of 1 will result in
+ * scaling down so that there is no available memory remaining after the
+ * update (more aggressive scaling). A scale-down factor of 0 disables
+ * removing workers, which can be beneficial for autoscaling a single job.
+ * Bounds: [0.0, 1.0].
+ *
+ *
+ * double scale_down_factor = 2;
+ */
+ double getScaleDownFactor();
+
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-up threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_up_min_worker_fraction = 3;
+ */
+ double getScaleUpMinWorkerFraction();
+
+ /**
+ *
+ *
+ *
+ * Optional. Minimum scale-down threshold as a fraction of total cluster size
+ * before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ * 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ * the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ * on any recommended change.
+ * Bounds: [0.0, 1.0]. Default: 0.0.
+ *
+ *
+ * double scale_down_min_worker_fraction = 4;
+ */
+ double getScaleDownMinWorkerFraction();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java
index 2476347a02f1..1a715f9151c4 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfig.java
@@ -188,6 +188,55 @@ private ClusterConfig(
encryptionConfig_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 130:
+ {
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder subBuilder = null;
+ if (autoscalingConfig_ != null) {
+ subBuilder = autoscalingConfig_.toBuilder();
+ }
+ autoscalingConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(autoscalingConfig_);
+ autoscalingConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 138:
+ {
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder subBuilder = null;
+ if (endpointConfig_ != null) {
+ subBuilder = endpointConfig_.toBuilder();
+ }
+ endpointConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(endpointConfig_);
+ endpointConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 146:
+ {
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder subBuilder = null;
+ if (securityConfig_ != null) {
+ subBuilder = securityConfig_.toBuilder();
+ }
+ securityConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(securityConfig_);
+ securityConfig_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -234,12 +283,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -259,12 +311,15 @@ public java.lang.String getConfigBucket() {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -287,7 +342,7 @@ public com.google.protobuf.ByteString getConfigBucketBytes() {
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -300,7 +355,7 @@ public boolean hasGceClusterConfig() {
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -315,7 +370,7 @@ public com.google.cloud.dataproc.v1beta2.GceClusterConfig getGceClusterConfig()
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -717,6 +772,133 @@ public com.google.cloud.dataproc.v1beta2.EncryptionConfig getEncryptionConfig()
return getEncryptionConfig();
}
+ public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 16;
+ private com.google.cloud.dataproc.v1beta2.AutoscalingConfig autoscalingConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public boolean hasAutoscalingConfig() {
+ return autoscalingConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig() {
+ return autoscalingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder
+ getAutoscalingConfigOrBuilder() {
+ return getAutoscalingConfig();
+ }
+
+ public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 17;
+ private com.google.cloud.dataproc.v1beta2.EndpointConfig endpointConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public boolean hasEndpointConfig() {
+ return endpointConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig() {
+ return endpointConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance()
+ : endpointConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder() {
+ return getEndpointConfig();
+ }
+
+ public static final int SECURITY_CONFIG_FIELD_NUMBER = 18;
+ private com.google.cloud.dataproc.v1beta2.SecurityConfig securityConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public boolean hasSecurityConfig() {
+ return securityConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig() {
+ return securityConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance()
+ : securityConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder() {
+ return getSecurityConfig();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -758,6 +940,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (encryptionConfig_ != null) {
output.writeMessage(15, getEncryptionConfig());
}
+ if (autoscalingConfig_ != null) {
+ output.writeMessage(16, getAutoscalingConfig());
+ }
+ if (endpointConfig_ != null) {
+ output.writeMessage(17, getEndpointConfig());
+ }
+ if (securityConfig_ != null) {
+ output.writeMessage(18, getSecurityConfig());
+ }
unknownFields.writeTo(output);
}
@@ -797,6 +988,15 @@ public int getSerializedSize() {
if (encryptionConfig_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getEncryptionConfig());
}
+ if (autoscalingConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getAutoscalingConfig());
+ }
+ if (endpointConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEndpointConfig());
+ }
+ if (securityConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getSecurityConfig());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -843,6 +1043,18 @@ public boolean equals(final java.lang.Object obj) {
if (hasEncryptionConfig()) {
if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
}
+ if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false;
+ if (hasAutoscalingConfig()) {
+ if (!getAutoscalingConfig().equals(other.getAutoscalingConfig())) return false;
+ }
+ if (hasEndpointConfig() != other.hasEndpointConfig()) return false;
+ if (hasEndpointConfig()) {
+ if (!getEndpointConfig().equals(other.getEndpointConfig())) return false;
+ }
+ if (hasSecurityConfig() != other.hasSecurityConfig()) return false;
+ if (hasSecurityConfig()) {
+ if (!getSecurityConfig().equals(other.getSecurityConfig())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -888,6 +1100,18 @@ public int hashCode() {
hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEncryptionConfig().hashCode();
}
+ if (hasAutoscalingConfig()) {
+ hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getAutoscalingConfig().hashCode();
+ }
+ if (hasEndpointConfig()) {
+ hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getEndpointConfig().hashCode();
+ }
+ if (hasSecurityConfig()) {
+ hash = (37 * hash) + SECURITY_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getSecurityConfig().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1085,6 +1309,24 @@ public Builder clear() {
encryptionConfig_ = null;
encryptionConfigBuilder_ = null;
}
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfig_ = null;
+ } else {
+ autoscalingConfig_ = null;
+ autoscalingConfigBuilder_ = null;
+ }
+ if (endpointConfigBuilder_ == null) {
+ endpointConfig_ = null;
+ } else {
+ endpointConfig_ = null;
+ endpointConfigBuilder_ = null;
+ }
+ if (securityConfigBuilder_ == null) {
+ securityConfig_ = null;
+ } else {
+ securityConfig_ = null;
+ securityConfigBuilder_ = null;
+ }
return this;
}
@@ -1159,6 +1401,21 @@ public com.google.cloud.dataproc.v1beta2.ClusterConfig buildPartial() {
} else {
result.encryptionConfig_ = encryptionConfigBuilder_.build();
}
+ if (autoscalingConfigBuilder_ == null) {
+ result.autoscalingConfig_ = autoscalingConfig_;
+ } else {
+ result.autoscalingConfig_ = autoscalingConfigBuilder_.build();
+ }
+ if (endpointConfigBuilder_ == null) {
+ result.endpointConfig_ = endpointConfig_;
+ } else {
+ result.endpointConfig_ = endpointConfigBuilder_.build();
+ }
+ if (securityConfigBuilder_ == null) {
+ result.securityConfig_ = securityConfig_;
+ } else {
+ result.securityConfig_ = securityConfigBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1262,6 +1519,15 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ClusterConfig other)
if (other.hasEncryptionConfig()) {
mergeEncryptionConfig(other.getEncryptionConfig());
}
+ if (other.hasAutoscalingConfig()) {
+ mergeAutoscalingConfig(other.getAutoscalingConfig());
+ }
+ if (other.hasEndpointConfig()) {
+ mergeEndpointConfig(other.getEndpointConfig());
+ }
+ if (other.hasSecurityConfig()) {
+ mergeSecurityConfig(other.getSecurityConfig());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1298,12 +1564,15 @@ public Builder mergeFrom(
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -1323,12 +1592,15 @@ public java.lang.String getConfigBucket() {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -1348,12 +1620,15 @@ public com.google.protobuf.ByteString getConfigBucketBytes() {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -1371,12 +1646,15 @@ public Builder setConfigBucket(java.lang.String value) {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -1391,12 +1669,15 @@ public Builder clearConfigBucket() {
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -1422,7 +1703,7 @@ public Builder setConfigBucketBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1435,7 +1716,7 @@ public boolean hasGceClusterConfig() {
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1454,7 +1735,7 @@ public com.google.cloud.dataproc.v1beta2.GceClusterConfig getGceClusterConfig()
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1477,7 +1758,7 @@ public Builder setGceClusterConfig(com.google.cloud.dataproc.v1beta2.GceClusterC
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1498,7 +1779,7 @@ public Builder setGceClusterConfig(
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1525,7 +1806,7 @@ public Builder mergeGceClusterConfig(com.google.cloud.dataproc.v1beta2.GceCluste
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1546,7 +1827,7 @@ public Builder clearGceClusterConfig() {
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1561,7 +1842,7 @@ public com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder getGceClusterC
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -1581,7 +1862,7 @@ public com.google.cloud.dataproc.v1beta2.GceClusterConfig.Builder getGceClusterC
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -3337,6 +3618,564 @@ public com.google.cloud.dataproc.v1beta2.EncryptionConfig.Builder getEncryptionC
return encryptionConfigBuilder_;
}
+ private com.google.cloud.dataproc.v1beta2.AutoscalingConfig autoscalingConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder>
+ autoscalingConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public boolean hasAutoscalingConfig() {
+ return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig() {
+ if (autoscalingConfigBuilder_ == null) {
+ return autoscalingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ } else {
+ return autoscalingConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public Builder setAutoscalingConfig(com.google.cloud.dataproc.v1beta2.AutoscalingConfig value) {
+ if (autoscalingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ autoscalingConfig_ = value;
+ onChanged();
+ } else {
+ autoscalingConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public Builder setAutoscalingConfig(
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder builderForValue) {
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ autoscalingConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public Builder mergeAutoscalingConfig(
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig value) {
+ if (autoscalingConfigBuilder_ == null) {
+ if (autoscalingConfig_ != null) {
+ autoscalingConfig_ =
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.newBuilder(autoscalingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ autoscalingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ autoscalingConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public Builder clearAutoscalingConfig() {
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfig_ = null;
+ onChanged();
+ } else {
+ autoscalingConfig_ = null;
+ autoscalingConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder
+ getAutoscalingConfigBuilder() {
+
+ onChanged();
+ return getAutoscalingConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder
+ getAutoscalingConfigOrBuilder() {
+ if (autoscalingConfigBuilder_ != null) {
+ return autoscalingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return autoscalingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder>
+ getAutoscalingConfigFieldBuilder() {
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder>(
+ getAutoscalingConfig(), getParentForChildren(), isClean());
+ autoscalingConfig_ = null;
+ }
+ return autoscalingConfigBuilder_;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.EndpointConfig endpointConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.EndpointConfig,
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder>
+ endpointConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public boolean hasEndpointConfig() {
+ return endpointConfigBuilder_ != null || endpointConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig() {
+ if (endpointConfigBuilder_ == null) {
+ return endpointConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance()
+ : endpointConfig_;
+ } else {
+ return endpointConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public Builder setEndpointConfig(com.google.cloud.dataproc.v1beta2.EndpointConfig value) {
+ if (endpointConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endpointConfig_ = value;
+ onChanged();
+ } else {
+ endpointConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public Builder setEndpointConfig(
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder builderForValue) {
+ if (endpointConfigBuilder_ == null) {
+ endpointConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ endpointConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public Builder mergeEndpointConfig(com.google.cloud.dataproc.v1beta2.EndpointConfig value) {
+ if (endpointConfigBuilder_ == null) {
+ if (endpointConfig_ != null) {
+ endpointConfig_ =
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.newBuilder(endpointConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ endpointConfig_ = value;
+ }
+ onChanged();
+ } else {
+ endpointConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public Builder clearEndpointConfig() {
+ if (endpointConfigBuilder_ == null) {
+ endpointConfig_ = null;
+ onChanged();
+ } else {
+ endpointConfig_ = null;
+ endpointConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder getEndpointConfigBuilder() {
+
+ onChanged();
+ return getEndpointConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ public com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder() {
+ if (endpointConfigBuilder_ != null) {
+ return endpointConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return endpointConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance()
+ : endpointConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.EndpointConfig,
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder>
+ getEndpointConfigFieldBuilder() {
+ if (endpointConfigBuilder_ == null) {
+ endpointConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.EndpointConfig,
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder>(
+ getEndpointConfig(), getParentForChildren(), isClean());
+ endpointConfig_ = null;
+ }
+ return endpointConfigBuilder_;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.SecurityConfig securityConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SecurityConfig,
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder>
+ securityConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public boolean hasSecurityConfig() {
+ return securityConfigBuilder_ != null || securityConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig() {
+ if (securityConfigBuilder_ == null) {
+ return securityConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance()
+ : securityConfig_;
+ } else {
+ return securityConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public Builder setSecurityConfig(com.google.cloud.dataproc.v1beta2.SecurityConfig value) {
+ if (securityConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ securityConfig_ = value;
+ onChanged();
+ } else {
+ securityConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public Builder setSecurityConfig(
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder builderForValue) {
+ if (securityConfigBuilder_ == null) {
+ securityConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ securityConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public Builder mergeSecurityConfig(com.google.cloud.dataproc.v1beta2.SecurityConfig value) {
+ if (securityConfigBuilder_ == null) {
+ if (securityConfig_ != null) {
+ securityConfig_ =
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.newBuilder(securityConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ securityConfig_ = value;
+ }
+ onChanged();
+ } else {
+ securityConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public Builder clearSecurityConfig() {
+ if (securityConfigBuilder_ == null) {
+ securityConfig_ = null;
+ onChanged();
+ } else {
+ securityConfig_ = null;
+ securityConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder getSecurityConfigBuilder() {
+
+ onChanged();
+ return getSecurityConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ public com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder() {
+ if (securityConfigBuilder_ != null) {
+ return securityConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return securityConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance()
+ : securityConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SecurityConfig,
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder>
+ getSecurityConfigFieldBuilder() {
+ if (securityConfigBuilder_ == null) {
+ securityConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SecurityConfig,
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder>(
+ getSecurityConfig(), getParentForChildren(), isClean());
+ securityConfig_ = null;
+ }
+ return securityConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java
index e020cef03fcd..6804d4125236 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterConfigOrBuilder.java
@@ -12,12 +12,15 @@ public interface ClusterConfigOrBuilder
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -27,12 +30,15 @@ public interface ClusterConfigOrBuilder
*
*
*
- * Optional. A Cloud Storage staging bucket used for sharing generated
- * SSH keys and config. If you do not specify a staging bucket, Cloud
- * Dataproc will determine an appropriate Cloud Storage location (US,
+ * Optional. A Google Cloud Storage bucket used to stage job
+ * dependencies, config files, and job driver console output.
+ * If you do not specify a staging bucket, Cloud
+ * Dataproc will determine a Cloud Storage location (US,
* ASIA, or EU) for your cluster's staging bucket according to the Google
- * Compute Engine zone where your cluster is deployed, and then it will create
- * and manage this project-level, per-location bucket for you.
+ * Compute Engine zone where your cluster is deployed, and then create
+ * and manage this project-level, per-location bucket (see
+ * [Cloud Dataproc staging
+ * bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
*
*
* string config_bucket = 1;
@@ -43,7 +49,7 @@ public interface ClusterConfigOrBuilder
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -54,7 +60,7 @@ public interface ClusterConfigOrBuilder
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -65,7 +71,7 @@ public interface ClusterConfigOrBuilder
*
*
*
- * Required. The shared Compute Engine config settings for
+ * Optional. The shared Compute Engine config settings for
* all instances in a cluster.
*
*
@@ -387,4 +393,100 @@ public interface ClusterConfigOrBuilder
* .google.cloud.dataproc.v1beta2.EncryptionConfig encryption_config = 15;
*/
com.google.cloud.dataproc.v1beta2.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ boolean hasAutoscalingConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfig getAutoscalingConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Autoscaling config for the policy associated with the cluster.
+ * Cluster does not autoscale if this field is unset.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingConfig autoscaling_config = 16;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ boolean hasEndpointConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ com.google.cloud.dataproc.v1beta2.EndpointConfig getEndpointConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Port/endpoint configuration for this cluster
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.EndpointConfig endpoint_config = 17;
+ */
+ com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder getEndpointConfigOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ boolean hasSecurityConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ com.google.cloud.dataproc.v1beta2.SecurityConfig getSecurityConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Security related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SecurityConfig security_config = 18;
+ */
+ com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder getSecurityConfigOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java
index 2152b7b31e33..d202aa110754 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClustersProto.java
@@ -24,6 +24,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataproc_v1beta2_ClusterConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -56,6 +68,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -116,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -144,7 +168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "usterStatus\022\024\n\014cluster_uuid\030\006 \001(\t\022>\n\007met"
+ "rics\030\t \001(\0132-.google.cloud.dataproc.v1bet"
+ "a2.ClusterMetrics\032-\n\013LabelsEntry\022\013\n\003key\030"
- + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\005\n\rClusterConf"
+ + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\363\006\n\rClusterConf"
+ "ig\022\025\n\rconfig_bucket\030\001 \001(\t\022K\n\022gce_cluster"
+ "_config\030\010 \001(\0132/.google.cloud.dataproc.v1"
+ "beta2.GceClusterConfig\022I\n\rmaster_config\030"
@@ -161,117 +185,151 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ogle.cloud.dataproc.v1beta2.NodeInitiali"
+ "zationAction\022J\n\021encryption_config\030\017 \001(\0132"
+ "/.google.cloud.dataproc.v1beta2.Encrypti"
- + "onConfig\"/\n\020EncryptionConfig\022\033\n\023gce_pd_k"
- + "ms_key_name\030\001 \001(\t\"\264\002\n\020GceClusterConfig\022\020"
- + "\n\010zone_uri\030\001 \001(\t\022\023\n\013network_uri\030\002 \001(\t\022\026\n"
- + "\016subnetwork_uri\030\006 \001(\t\022\030\n\020internal_ip_onl"
- + "y\030\007 \001(\010\022\027\n\017service_account\030\010 \001(\t\022\036\n\026serv"
- + "ice_account_scopes\030\003 \003(\t\022\014\n\004tags\030\004 \003(\t\022O"
- + "\n\010metadata\030\005 \003(\0132=.google.cloud.dataproc"
- + ".v1beta2.GceClusterConfig.MetadataEntry\032"
- + "/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
- + " \001(\t:\0028\001\"\374\002\n\023InstanceGroupConfig\022\025\n\rnum_"
- + "instances\030\001 \001(\005\022\026\n\016instance_names\030\002 \003(\t\022"
- + "\021\n\timage_uri\030\003 \001(\t\022\030\n\020machine_type_uri\030\004"
- + " \001(\t\022>\n\013disk_config\030\005 \001(\0132).google.cloud"
- + ".dataproc.v1beta2.DiskConfig\022\026\n\016is_preem"
- + "ptible\030\006 \001(\010\022O\n\024managed_group_config\030\007 \001"
- + "(\01321.google.cloud.dataproc.v1beta2.Manag"
- + "edGroupConfig\022F\n\014accelerators\030\010 \003(\01320.go"
- + "ogle.cloud.dataproc.v1beta2.AcceleratorC"
- + "onfig\022\030\n\020min_cpu_platform\030\t \001(\t\"Y\n\022Manag"
- + "edGroupConfig\022\036\n\026instance_template_name\030"
- + "\001 \001(\t\022#\n\033instance_group_manager_name\030\002 \001"
- + "(\t\"L\n\021AcceleratorConfig\022\034\n\024accelerator_t"
- + "ype_uri\030\001 \001(\t\022\031\n\021accelerator_count\030\002 \001(\005"
- + "\"W\n\nDiskConfig\022\026\n\016boot_disk_type\030\003 \001(\t\022\031"
- + "\n\021boot_disk_size_gb\030\001 \001(\005\022\026\n\016num_local_s"
- + "sds\030\002 \001(\005\"\272\001\n\017LifecycleConfig\0222\n\017idle_de"
- + "lete_ttl\030\001 \001(\0132\031.google.protobuf.Duratio"
- + "n\0226\n\020auto_delete_time\030\002 \001(\0132\032.google.pro"
- + "tobuf.TimestampH\000\0224\n\017auto_delete_ttl\030\003 \001"
- + "(\0132\031.google.protobuf.DurationH\000B\005\n\003ttl\"i"
- + "\n\030NodeInitializationAction\022\027\n\017executable"
- + "_file\030\001 \001(\t\0224\n\021execution_timeout\030\002 \001(\0132\031"
- + ".google.protobuf.Duration\"\367\002\n\rClusterSta"
- + "tus\022A\n\005state\030\001 \001(\01622.google.cloud.datapr"
- + "oc.v1beta2.ClusterStatus.State\022\016\n\006detail"
- + "\030\002 \001(\t\0224\n\020state_start_time\030\003 \001(\0132\032.googl"
- + "e.protobuf.Timestamp\022G\n\010substate\030\004 \001(\01625"
+ + "onConfig\022L\n\022autoscaling_config\030\020 \001(\01320.g"
+ + "oogle.cloud.dataproc.v1beta2.Autoscaling"
+ + "Config\022F\n\017endpoint_config\030\021 \001(\0132-.google"
+ + ".cloud.dataproc.v1beta2.EndpointConfig\022F"
+ + "\n\017security_config\030\022 \001(\0132-.google.cloud.d"
+ + "ataproc.v1beta2.SecurityConfig\"\265\001\n\016Endpo"
+ + "intConfig\022P\n\nhttp_ports\030\001 \003(\0132<.google.c"
+ + "loud.dataproc.v1beta2.EndpointConfig.Htt"
+ + "pPortsEntry\022\037\n\027enable_http_port_access\030\002"
+ + " \001(\010\0320\n\016HttpPortsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+ + "alue\030\002 \001(\t:\0028\001\"\'\n\021AutoscalingConfig\022\022\n\np"
+ + "olicy_uri\030\001 \001(\t\"/\n\020EncryptionConfig\022\033\n\023g"
+ + "ce_pd_kms_key_name\030\001 \001(\t\"\206\003\n\020GceClusterC"
+ + "onfig\022\020\n\010zone_uri\030\001 \001(\t\022\023\n\013network_uri\030\002"
+ + " \001(\t\022\026\n\016subnetwork_uri\030\006 \001(\t\022\030\n\020internal"
+ + "_ip_only\030\007 \001(\010\022\027\n\017service_account\030\010 \001(\t\022"
+ + "\036\n\026service_account_scopes\030\003 \003(\t\022\014\n\004tags\030"
+ + "\004 \003(\t\022O\n\010metadata\030\005 \003(\0132=.google.cloud.d"
+ + "ataproc.v1beta2.GceClusterConfig.Metadat"
+ + "aEntry\022P\n\024reservation_affinity\030\013 \001(\01322.g"
+ + "oogle.cloud.dataproc.v1beta2.Reservation"
+ + "Affinity\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001\"\374\002\n\023InstanceGroupConfi"
+ + "g\022\025\n\rnum_instances\030\001 \001(\005\022\026\n\016instance_nam"
+ + "es\030\002 \003(\t\022\021\n\timage_uri\030\003 \001(\t\022\030\n\020machine_t"
+ + "ype_uri\030\004 \001(\t\022>\n\013disk_config\030\005 \001(\0132).goo"
+ + "gle.cloud.dataproc.v1beta2.DiskConfig\022\026\n"
+ + "\016is_preemptible\030\006 \001(\010\022O\n\024managed_group_c"
+ + "onfig\030\007 \001(\01321.google.cloud.dataproc.v1be"
+ + "ta2.ManagedGroupConfig\022F\n\014accelerators\030\010"
+ + " \003(\01320.google.cloud.dataproc.v1beta2.Acc"
+ + "eleratorConfig\022\030\n\020min_cpu_platform\030\t \001(\t"
+ + "\"Y\n\022ManagedGroupConfig\022\036\n\026instance_templ"
+ + "ate_name\030\001 \001(\t\022#\n\033instance_group_manager"
+ + "_name\030\002 \001(\t\"L\n\021AcceleratorConfig\022\034\n\024acce"
+ + "lerator_type_uri\030\001 \001(\t\022\031\n\021accelerator_co"
+ + "unt\030\002 \001(\005\"W\n\nDiskConfig\022\026\n\016boot_disk_typ"
+ + "e\030\003 \001(\t\022\031\n\021boot_disk_size_gb\030\001 \001(\005\022\026\n\016nu"
+ + "m_local_ssds\030\002 \001(\005\"\272\001\n\017LifecycleConfig\0222"
+ + "\n\017idle_delete_ttl\030\001 \001(\0132\031.google.protobu"
+ + "f.Duration\0226\n\020auto_delete_time\030\002 \001(\0132\032.g"
+ + "oogle.protobuf.TimestampH\000\0224\n\017auto_delet"
+ + "e_ttl\030\003 \001(\0132\031.google.protobuf.DurationH\000"
+ + "B\005\n\003ttl\"X\n\016SecurityConfig\022F\n\017kerberos_co"
+ + "nfig\030\001 \001(\0132-.google.cloud.dataproc.v1bet"
+ + "a2.KerberosConfig\"\266\003\n\016KerberosConfig\022\027\n\017"
+ + "enable_kerberos\030\001 \001(\010\022#\n\033root_principal_"
+ + "password_uri\030\002 \001(\t\022\023\n\013kms_key_uri\030\003 \001(\t\022"
+ + "\024\n\014keystore_uri\030\004 \001(\t\022\026\n\016truststore_uri\030"
+ + "\005 \001(\t\022\035\n\025keystore_password_uri\030\006 \001(\t\022\030\n\020"
+ + "key_password_uri\030\007 \001(\t\022\037\n\027truststore_pas"
+ + "sword_uri\030\010 \001(\t\022\037\n\027cross_realm_trust_rea"
+ + "lm\030\t \001(\t\022\035\n\025cross_realm_trust_kdc\030\n \001(\t\022"
+ + "&\n\036cross_realm_trust_admin_server\030\013 \001(\t\022"
+ + "-\n%cross_realm_trust_shared_password_uri"
+ + "\030\014 \001(\t\022\026\n\016kdc_db_key_uri\030\r \001(\t\022\032\n\022tgt_li"
+ + "fetime_hours\030\016 \001(\005\"i\n\030NodeInitialization"
+ + "Action\022\027\n\017executable_file\030\001 \001(\t\0224\n\021execu"
+ + "tion_timeout\030\002 \001(\0132\031.google.protobuf.Dur"
+ + "ation\"\367\002\n\rClusterStatus\022A\n\005state\030\001 \001(\01622"
+ ".google.cloud.dataproc.v1beta2.ClusterSt"
- + "atus.Substate\"V\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010C"
- + "REATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010DEL"
- + "ETING\020\004\022\014\n\010UPDATING\020\005\"<\n\010Substate\022\017\n\013UNS"
- + "PECIFIED\020\000\022\r\n\tUNHEALTHY\020\001\022\020\n\014STALE_STATU"
- + "S\020\002\"\255\001\n\016SoftwareConfig\022\025\n\rimage_version\030"
- + "\001 \001(\t\022Q\n\nproperties\030\002 \003(\0132=.google.cloud"
- + ".dataproc.v1beta2.SoftwareConfig.Propert"
- + "iesEntry\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t"
- + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\002\n\016ClusterMetrics\022T"
- + "\n\014hdfs_metrics\030\001 \003(\0132>.google.cloud.data"
- + "proc.v1beta2.ClusterMetrics.HdfsMetricsE"
- + "ntry\022T\n\014yarn_metrics\030\002 \003(\0132>.google.clou"
- + "d.dataproc.v1beta2.ClusterMetrics.YarnMe"
- + "tricsEntry\0322\n\020HdfsMetricsEntry\022\013\n\003key\030\001 "
- + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020YarnMetricsEnt"
- + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\207\001\n\024C"
- + "reateClusterRequest\022\022\n\nproject_id\030\001 \001(\t\022"
- + "\016\n\006region\030\003 \001(\t\0227\n\007cluster\030\002 \001(\0132&.googl"
- + "e.cloud.dataproc.v1beta2.Cluster\022\022\n\nrequ"
- + "est_id\030\004 \001(\t\"\220\002\n\024UpdateClusterRequest\022\022\n"
- + "\nproject_id\030\001 \001(\t\022\016\n\006region\030\005 \001(\t\022\024\n\014clu"
- + "ster_name\030\002 \001(\t\0227\n\007cluster\030\003 \001(\0132&.googl"
- + "e.cloud.dataproc.v1beta2.Cluster\022@\n\035grac"
- + "eful_decommission_timeout\030\006 \001(\0132\031.google"
- + ".protobuf.Duration\022/\n\013update_mask\030\004 \001(\0132"
- + "\032.google.protobuf.FieldMask\022\022\n\nrequest_i"
- + "d\030\007 \001(\t\"z\n\024DeleteClusterRequest\022\022\n\nproje"
- + "ct_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\024\n\014cluster_n"
- + "ame\030\002 \001(\t\022\024\n\014cluster_uuid\030\004 \001(\t\022\022\n\nreque"
- + "st_id\030\005 \001(\t\"M\n\021GetClusterRequest\022\022\n\nproj"
- + "ect_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\024\n\014cluster_"
- + "name\030\002 \001(\t\"p\n\023ListClustersRequest\022\022\n\npro"
- + "ject_id\030\001 \001(\t\022\016\n\006region\030\004 \001(\t\022\016\n\006filter\030"
- + "\005 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003"
- + " \001(\t\"i\n\024ListClustersResponse\0228\n\010clusters"
- + "\030\001 \003(\0132&.google.cloud.dataproc.v1beta2.C"
- + "luster\022\027\n\017next_page_token\030\002 \001(\t\"R\n\026Diagn"
- + "oseClusterRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n"
- + "\006region\030\003 \001(\t\022\024\n\014cluster_name\030\002 \001(\t\",\n\026D"
- + "iagnoseClusterResults\022\022\n\noutput_uri\030\001 \001("
- + "\t2\370\010\n\021ClusterController\022\256\001\n\rCreateCluste"
- + "r\0223.google.cloud.dataproc.v1beta2.Create"
- + "ClusterRequest\032\035.google.longrunning.Oper"
- + "ation\"I\202\323\344\223\002C\"8/v1beta2/projects/{projec"
- + "t_id}/regions/{region}/clusters:\007cluster"
- + "\022\275\001\n\rUpdateCluster\0223.google.cloud.datapr"
- + "oc.v1beta2.UpdateClusterRequest\032\035.google"
- + ".longrunning.Operation\"X\202\323\344\223\002R2G/v1beta2"
- + "/projects/{project_id}/regions/{region}/"
- + "clusters/{cluster_name}:\007cluster\022\264\001\n\rDel"
- + "eteCluster\0223.google.cloud.dataproc.v1bet"
- + "a2.DeleteClusterRequest\032\035.google.longrun"
- + "ning.Operation\"O\202\323\344\223\002I*G/v1beta2/project"
- + "s/{project_id}/regions/{region}/clusters"
- + "/{cluster_name}\022\267\001\n\nGetCluster\0220.google."
- + "cloud.dataproc.v1beta2.GetClusterRequest"
- + "\032&.google.cloud.dataproc.v1beta2.Cluster"
- + "\"O\202\323\344\223\002I\022G/v1beta2/projects/{project_id}"
- + "/regions/{region}/clusters/{cluster_name"
- + "}\022\271\001\n\014ListClusters\0222.google.cloud.datapr"
- + "oc.v1beta2.ListClustersRequest\0323.google."
- + "cloud.dataproc.v1beta2.ListClustersRespo"
- + "nse\"@\202\323\344\223\002:\0228/v1beta2/projects/{project_"
- + "id}/regions/{region}/clusters\022\304\001\n\017Diagno"
- + "seCluster\0225.google.cloud.dataproc.v1beta"
- + "2.DiagnoseClusterRequest\032\035.google.longru"
- + "nning.Operation\"[\202\323\344\223\002U\"P/v1beta2/projec"
+ + "atus.State\022\016\n\006detail\030\002 \001(\t\0224\n\020state_star"
+ + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp"
+ + "\022G\n\010substate\030\004 \001(\01625.google.cloud.datapr"
+ + "oc.v1beta2.ClusterStatus.Substate\"V\n\005Sta"
+ + "te\022\013\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING"
+ + "\020\002\022\t\n\005ERROR\020\003\022\014\n\010DELETING\020\004\022\014\n\010UPDATING\020"
+ + "\005\"<\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n\tUNHEAL"
+ + "THY\020\001\022\020\n\014STALE_STATUS\020\002\"\364\001\n\016SoftwareConf"
+ + "ig\022\025\n\rimage_version\030\001 \001(\t\022Q\n\nproperties\030"
+ + "\002 \003(\0132=.google.cloud.dataproc.v1beta2.So"
+ + "ftwareConfig.PropertiesEntry\022E\n\023optional"
+ + "_components\030\003 \003(\0162(.google.cloud.datapro"
+ + "c.v1beta2.Component\0321\n\017PropertiesEntry\022\013"
+ + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\002\n\016Clust"
+ + "erMetrics\022T\n\014hdfs_metrics\030\001 \003(\0132>.google"
+ + ".cloud.dataproc.v1beta2.ClusterMetrics.H"
+ + "dfsMetricsEntry\022T\n\014yarn_metrics\030\002 \003(\0132>."
+ + "google.cloud.dataproc.v1beta2.ClusterMet"
+ + "rics.YarnMetricsEntry\0322\n\020HdfsMetricsEntr"
+ + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\0322\n\020Yar"
+ + "nMetricsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
+ + "\003:\0028\001\"\207\001\n\024CreateClusterRequest\022\022\n\nprojec"
+ + "t_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\0227\n\007cluster\030\002 "
+ + "\001(\0132&.google.cloud.dataproc.v1beta2.Clus"
+ + "ter\022\022\n\nrequest_id\030\004 \001(\t\"\220\002\n\024UpdateCluste"
+ + "rRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030\005"
+ + " \001(\t\022\024\n\014cluster_name\030\002 \001(\t\0227\n\007cluster\030\003 "
+ + "\001(\0132&.google.cloud.dataproc.v1beta2.Clus"
+ + "ter\022@\n\035graceful_decommission_timeout\030\006 \001"
+ + "(\0132\031.google.protobuf.Duration\022/\n\013update_"
+ + "mask\030\004 \001(\0132\032.google.protobuf.FieldMask\022\022"
+ + "\n\nrequest_id\030\007 \001(\t\"z\n\024DeleteClusterReque"
+ + "st\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\024"
+ + "\n\014cluster_name\030\002 \001(\t\022\024\n\014cluster_uuid\030\004 \001"
+ + "(\t\022\022\n\nrequest_id\030\005 \001(\t\"M\n\021GetClusterRequ"
+ + "est\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022"
+ + "\024\n\014cluster_name\030\002 \001(\t\"p\n\023ListClustersReq"
+ + "uest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030\004 \001(\t"
+ + "\022\016\n\006filter\030\005 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np"
+ + "age_token\030\003 \001(\t\"i\n\024ListClustersResponse\022"
+ + "8\n\010clusters\030\001 \003(\0132&.google.cloud.datapro"
+ + "c.v1beta2.Cluster\022\027\n\017next_page_token\030\002 \001"
+ + "(\t\"R\n\026DiagnoseClusterRequest\022\022\n\nproject_"
+ + "id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\024\n\014cluster_name"
+ + "\030\002 \001(\t\",\n\026DiagnoseClusterResults\022\022\n\noutp"
+ + "ut_uri\030\001 \001(\t\"\356\001\n\023ReservationAffinity\022Y\n\030"
+ + "consume_reservation_type\030\001 \001(\01627.google."
+ + "cloud.dataproc.v1beta2.ReservationAffini"
+ + "ty.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"_\n\004"
+ + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_RESERVA"
+ + "TION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_"
+ + "RESERVATION\020\0032\370\010\n\021ClusterController\022\256\001\n\r"
+ + "CreateCluster\0223.google.cloud.dataproc.v1"
+ + "beta2.CreateClusterRequest\032\035.google.long"
+ + "running.Operation\"I\202\323\344\223\002C\"8/v1beta2/proj"
+ + "ects/{project_id}/regions/{region}/clust"
+ + "ers:\007cluster\022\275\001\n\rUpdateCluster\0223.google."
+ + "cloud.dataproc.v1beta2.UpdateClusterRequ"
+ + "est\032\035.google.longrunning.Operation\"X\202\323\344\223"
+ + "\002R2G/v1beta2/projects/{project_id}/regio"
+ + "ns/{region}/clusters/{cluster_name}:\007clu"
+ + "ster\022\264\001\n\rDeleteCluster\0223.google.cloud.da"
+ + "taproc.v1beta2.DeleteClusterRequest\032\035.go"
+ + "ogle.longrunning.Operation\"O\202\323\344\223\002I*G/v1b"
+ + "eta2/projects/{project_id}/regions/{regi"
+ + "on}/clusters/{cluster_name}\022\267\001\n\nGetClust"
+ + "er\0220.google.cloud.dataproc.v1beta2.GetCl"
+ + "usterRequest\032&.google.cloud.dataproc.v1b"
+ + "eta2.Cluster\"O\202\323\344\223\002I\022G/v1beta2/projects/"
+ + "{project_id}/regions/{region}/clusters/{"
+ + "cluster_name}\022\271\001\n\014ListClusters\0222.google."
+ + "cloud.dataproc.v1beta2.ListClustersReque"
+ + "st\0323.google.cloud.dataproc.v1beta2.ListC"
+ + "lustersResponse\"@\202\323\344\223\002:\0228/v1beta2/projec"
+ "ts/{project_id}/regions/{region}/cluster"
- + "s/{cluster_name}:diagnose:\001*B{\n!com.goog"
- + "le.cloud.dataproc.v1beta2B\rClustersProto"
- + "P\001ZEgoogle.golang.org/genproto/googleapi"
- + "s/cloud/dataproc/v1beta2;dataprocb\006proto"
- + "3"
+ + "s\022\304\001\n\017DiagnoseCluster\0225.google.cloud.dat"
+ + "aproc.v1beta2.DiagnoseClusterRequest\032\035.g"
+ + "oogle.longrunning.Operation\"[\202\323\344\223\002U\"P/v1"
+ + "beta2/projects/{project_id}/regions/{reg"
+ + "ion}/clusters/{cluster_name}:diagnose:\001*"
+ + "B{\n!com.google.cloud.dataproc.v1beta2B\rC"
+ + "lustersProtoP\001ZEgoogle.golang.org/genpro"
+ + "to/googleapis/cloud/dataproc/v1beta2;dat"
+ + "aprocb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -331,9 +389,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"LifecycleConfig",
"InitializationActions",
"EncryptionConfig",
+ "AutoscalingConfig",
+ "EndpointConfig",
+ "SecurityConfig",
});
- internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor =
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor =
getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor,
+ new java.lang.String[] {
+ "HttpPorts", "EnableHttpPortAccess",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor =
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_AutoscalingConfig_descriptor,
+ new java.lang.String[] {
+ "PolicyUri",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor =
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_EncryptionConfig_descriptor,
@@ -341,7 +428,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"GcePdKmsKeyName",
});
internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor,
@@ -354,6 +441,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ServiceAccountScopes",
"Tags",
"Metadata",
+ "ReservationAffinity",
});
internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_MetadataEntry_descriptor =
internal_static_google_cloud_dataproc_v1beta2_GceClusterConfig_descriptor
@@ -366,7 +454,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Key", "Value",
});
internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_InstanceGroupConfig_descriptor,
@@ -382,7 +470,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"MinCpuPlatform",
});
internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ManagedGroupConfig_descriptor,
@@ -390,7 +478,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"InstanceTemplateName", "InstanceGroupManagerName",
});
internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_AcceleratorConfig_descriptor,
@@ -398,7 +486,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"AcceleratorTypeUri", "AcceleratorCount",
});
internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_dataproc_v1beta2_DiskConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_DiskConfig_descriptor,
@@ -406,15 +494,44 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"BootDiskType", "BootDiskSizeGb", "NumLocalSsds",
});
internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_LifecycleConfig_descriptor,
new java.lang.String[] {
"IdleDeleteTtl", "AutoDeleteTime", "AutoDeleteTtl", "Ttl",
});
+ internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor,
+ new java.lang.String[] {
+ "KerberosConfig",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor,
+ new java.lang.String[] {
+ "EnableKerberos",
+ "RootPrincipalPasswordUri",
+ "KmsKeyUri",
+ "KeystoreUri",
+ "TruststoreUri",
+ "KeystorePasswordUri",
+ "KeyPasswordUri",
+ "TruststorePasswordUri",
+ "CrossRealmTrustRealm",
+ "CrossRealmTrustKdc",
+ "CrossRealmTrustAdminServer",
+ "CrossRealmTrustSharedPasswordUri",
+ "KdcDbKeyUri",
+ "TgtLifetimeHours",
+ });
internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_NodeInitializationAction_descriptor,
@@ -422,7 +539,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ExecutableFile", "ExecutionTimeout",
});
internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ClusterStatus_descriptor,
@@ -430,12 +547,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"State", "Detail", "StateStartTime", "Substate",
});
internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor,
new java.lang.String[] {
- "ImageVersion", "Properties",
+ "ImageVersion", "Properties", "OptionalComponents",
});
internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_PropertiesEntry_descriptor =
internal_static_google_cloud_dataproc_v1beta2_SoftwareConfig_descriptor
@@ -448,7 +565,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Key", "Value",
});
internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ClusterMetrics_descriptor,
@@ -476,7 +593,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Key", "Value",
});
internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(17);
internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_CreateClusterRequest_descriptor,
@@ -484,7 +601,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "Cluster", "RequestId",
});
internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(18);
internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_UpdateClusterRequest_descriptor,
@@ -498,7 +615,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"RequestId",
});
internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(19);
internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_DeleteClusterRequest_descriptor,
@@ -506,7 +623,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "ClusterName", "ClusterUuid", "RequestId",
});
internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(20);
internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_GetClusterRequest_descriptor,
@@ -514,7 +631,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "ClusterName",
});
internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor =
- getDescriptor().getMessageTypes().get(17);
+ getDescriptor().getMessageTypes().get(21);
internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ListClustersRequest_descriptor,
@@ -522,7 +639,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "Filter", "PageSize", "PageToken",
});
internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor =
- getDescriptor().getMessageTypes().get(18);
+ getDescriptor().getMessageTypes().get(22);
internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ListClustersResponse_descriptor,
@@ -530,7 +647,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Clusters", "NextPageToken",
});
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor =
- getDescriptor().getMessageTypes().get(19);
+ getDescriptor().getMessageTypes().get(23);
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterRequest_descriptor,
@@ -538,13 +655,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "ClusterName",
});
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor =
- getDescriptor().getMessageTypes().get(20);
+ getDescriptor().getMessageTypes().get(24);
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_DiagnoseClusterResults_descriptor,
new java.lang.String[] {
"OutputUri",
});
+ internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor,
+ new java.lang.String[] {
+ "ConsumeReservationType", "Key", "Values",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java
new file mode 100644
index 000000000000..5f5a70f1f729
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Component.java
@@ -0,0 +1,281 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/shared.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Cluster components that can be activated.
+ *
+ *
+ * Protobuf enum {@code google.cloud.dataproc.v1beta2.Component}
+ */
+public enum Component implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified component.
+ *
+ *
+ * COMPONENT_UNSPECIFIED = 0;
+ */
+ COMPONENT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * The Anaconda python distribution.
+ *
+ *
+ * ANACONDA = 5;
+ */
+ ANACONDA(5),
+ /**
+ *
+ *
+ *
+ * The Druid query engine.
+ *
+ *
+ * DRUID = 9;
+ */
+ DRUID(9),
+ /**
+ *
+ *
+ *
+ * The Hive Web HCatalog (the REST service for accessing HCatalog).
+ *
+ *
+ * HIVE_WEBHCAT = 3;
+ */
+ HIVE_WEBHCAT(3),
+ /**
+ *
+ *
+ *
+ * The Jupyter Notebook.
+ *
+ *
+ * JUPYTER = 1;
+ */
+ JUPYTER(1),
+ /**
+ *
+ *
+ *
+ * The Kerberos security feature.
+ *
+ *
+ * KERBEROS = 7;
+ */
+ KERBEROS(7),
+ /**
+ *
+ *
+ *
+ * The Presto query engine.
+ *
+ *
+ * PRESTO = 6;
+ */
+ PRESTO(6),
+ /**
+ *
+ *
+ *
+ * The Zeppelin notebook.
+ *
+ *
+ * ZEPPELIN = 4;
+ */
+ ZEPPELIN(4),
+ /**
+ *
+ *
+ *
+ * The Zookeeper service.
+ *
+ *
+ * ZOOKEEPER = 8;
+ */
+ ZOOKEEPER(8),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified component.
+ *
+ *
+ * COMPONENT_UNSPECIFIED = 0;
+ */
+ public static final int COMPONENT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * The Anaconda python distribution.
+ *
+ *
+ * ANACONDA = 5;
+ */
+ public static final int ANACONDA_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * The Druid query engine.
+ *
+ *
+ * DRUID = 9;
+ */
+ public static final int DRUID_VALUE = 9;
+ /**
+ *
+ *
+ *
+ * The Hive Web HCatalog (the REST service for accessing HCatalog).
+ *
+ *
+ * HIVE_WEBHCAT = 3;
+ */
+ public static final int HIVE_WEBHCAT_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * The Jupyter Notebook.
+ *
+ *
+ * JUPYTER = 1;
+ */
+ public static final int JUPYTER_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * The Kerberos security feature.
+ *
+ *
+ * KERBEROS = 7;
+ */
+ public static final int KERBEROS_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * The Presto query engine.
+ *
+ *
+ * PRESTO = 6;
+ */
+ public static final int PRESTO_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * The Zeppelin notebook.
+ *
+ *
+ * ZEPPELIN = 4;
+ */
+ public static final int ZEPPELIN_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * The Zookeeper service.
+ *
+ *
+ * ZOOKEEPER = 8;
+ */
+ public static final int ZOOKEEPER_VALUE = 8;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Component valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Component forNumber(int value) {
+ switch (value) {
+ case 0:
+ return COMPONENT_UNSPECIFIED;
+ case 5:
+ return ANACONDA;
+ case 9:
+ return DRUID;
+ case 3:
+ return HIVE_WEBHCAT;
+ case 1:
+ return JUPYTER;
+ case 7:
+ return KERBEROS;
+ case 6:
+ return PRESTO;
+ case 4:
+ return ZEPPELIN;
+ case 8:
+ return ZOOKEEPER;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Component findValueByNumber(int number) {
+ return Component.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.SharedProto.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Component[] VALUES = values();
+
+ public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Component(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.Component)
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java
new file mode 100644
index 000000000000..ddd9ae0684f0
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequest.java
@@ -0,0 +1,889 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A request to create an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest}
+ */
+public final class CreateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ CreateAutoscalingPolicyRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CreateAutoscalingPolicyRequest.newBuilder() to construct.
+ private CreateAutoscalingPolicyRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CreateAutoscalingPolicyRequest() {
+ parent_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CreateAutoscalingPolicyRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder subBuilder = null;
+ if (policy_ != null) {
+ subBuilder = policy_.toBuilder();
+ }
+ policy_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(policy_);
+ policy_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int POLICY_FIELD_NUMBER = 2;
+ private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_;
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public boolean hasPolicy() {
+ return policy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() {
+ return getPolicy();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (policy_ != null) {
+ output.writeMessage(2, getPolicy());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (policy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest other =
+ (com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasPolicy() != other.hasPolicy()) return false;
+ if (hasPolicy()) {
+ if (!getPolicy().equals(other.getPolicy())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasPolicy()) {
+ hash = (37 * hash) + POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getPolicy().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A request to create an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ parent_ = "";
+
+ if (policyBuilder_ == null) {
+ policy_ = null;
+ } else {
+ policy_ = null;
+ policyBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_CreateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest build() {
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest buildPartial() {
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest result =
+ new com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest(this);
+ result.parent_ = parent_;
+ if (policyBuilder_ == null) {
+ result.policy_ = policy_;
+ } else {
+ result.policy_ = policyBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest.getDefaultInstance())
+ return this;
+ if (!other.getParent().isEmpty()) {
+ parent_ = other.parent_;
+ onChanged();
+ }
+ if (other.hasPolicy()) {
+ mergePolicy(other.getPolicy());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ policyBuilder_;
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public boolean hasPolicy() {
+ return policyBuilder_ != null || policy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() {
+ if (policyBuilder_ == null) {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ } else {
+ return policyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public Builder setPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ policy_ = value;
+ onChanged();
+ } else {
+ policyBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public Builder setPolicy(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) {
+ if (policyBuilder_ == null) {
+ policy_ = builderForValue.build();
+ onChanged();
+ } else {
+ policyBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public Builder mergePolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policyBuilder_ == null) {
+ if (policy_ != null) {
+ policy_ =
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.newBuilder(policy_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ policy_ = value;
+ }
+ onChanged();
+ } else {
+ policyBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public Builder clearPolicy() {
+ if (policyBuilder_ == null) {
+ policy_ = null;
+ onChanged();
+ } else {
+ policy_ = null;
+ policyBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPolicyBuilder() {
+
+ onChanged();
+ return getPolicyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() {
+ if (policyBuilder_ != null) {
+ return policyBuilder_.getMessageOrBuilder();
+ } else {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPolicyFieldBuilder() {
+ if (policyBuilder_ == null) {
+ policyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>(
+ getPolicy(), getParentForChildren(), isClean());
+ policy_ = null;
+ }
+ return policyBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ private static final com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CreateAutoscalingPolicyRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CreateAutoscalingPolicyRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java
new file mode 100644
index 000000000000..7c57757588f9
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateAutoscalingPolicyRequestOrBuilder.java
@@ -0,0 +1,66 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface CreateAutoscalingPolicyRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ *
+ *
+ * string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ boolean hasPolicy();
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy();
+ /**
+ *
+ *
+ *
+ * The autoscaling policy to create.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 2;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java
index 269393f2ed94..62312f47ffa5 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequest.java
@@ -259,11 +259,10 @@ public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder()
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -288,11 +287,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1072,11 +1070,10 @@ public com.google.cloud.dataproc.v1beta2.ClusterOrBuilder getClusterOrBuilder()
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1101,11 +1098,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1130,11 +1126,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1157,11 +1152,10 @@ public Builder setRequestId(java.lang.String value) {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1181,11 +1175,10 @@ public Builder clearRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
index 1ccf73137f69..c5ad4ae2d307 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/CreateClusterRequestOrBuilder.java
@@ -88,11 +88,10 @@ public interface CreateClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -107,11 +106,10 @@ public interface CreateClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ * is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java
new file mode 100644
index 000000000000..d0062a08996d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequest.java
@@ -0,0 +1,623 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A request to delete an autoscaling policy.
+ * Autoscaling policies in use by one or more clusters will not be deleted.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest}
+ */
+public final class DeleteAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ DeleteAutoscalingPolicyRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DeleteAutoscalingPolicyRequest.newBuilder() to construct.
+ private DeleteAutoscalingPolicyRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DeleteAutoscalingPolicyRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private DeleteAutoscalingPolicyRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest other =
+ (com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A request to delete an autoscaling policy.
+ * Autoscaling policies in use by one or more clusters will not be deleted.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_DeleteAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest build() {
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest buildPartial() {
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest result =
+ new com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest(this);
+ result.name_ = name_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ private static final com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeleteAutoscalingPolicyRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DeleteAutoscalingPolicyRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java
new file mode 100644
index 000000000000..23285e65416d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteAutoscalingPolicyRequestOrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface DeleteAutoscalingPolicyRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
index 98db37fbb17b..89b9c64bc839 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequest.java
@@ -306,11 +306,10 @@ public com.google.protobuf.ByteString getClusterUuidBytes() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -335,11 +334,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1135,11 +1133,10 @@ public Builder setClusterUuidBytes(com.google.protobuf.ByteString value) {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1164,11 +1161,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1193,11 +1189,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1220,11 +1215,10 @@ public Builder setRequestId(java.lang.String value) {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1244,11 +1238,10 @@ public Builder clearRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
index a191e76fead8..37010cd48470 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/DeleteClusterRequestOrBuilder.java
@@ -101,11 +101,10 @@ public interface DeleteClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -120,11 +119,10 @@ public interface DeleteClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java
new file mode 100644
index 000000000000..e37ab7983c3b
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfig.java
@@ -0,0 +1,850 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Endpoint config for this cluster
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.EndpointConfig}
+ */
+public final class EndpointConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.EndpointConfig)
+ EndpointConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EndpointConfig.newBuilder() to construct.
+ private EndpointConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private EndpointConfig() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private EndpointConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ httpPorts_ =
+ com.google.protobuf.MapField.newMapField(
+ HttpPortsDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry httpPorts__ =
+ input.readMessage(
+ HttpPortsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ httpPorts_.getMutableMap().put(httpPorts__.getKey(), httpPorts__.getValue());
+ break;
+ }
+ case 16:
+ {
+ enableHttpPortAccess_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 1:
+ return internalGetHttpPorts();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.class,
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int HTTP_PORTS_FIELD_NUMBER = 1;
+
+ private static final class HttpPortsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry =
+ com.google.protobuf.MapEntry.newDefaultInstance(
+ com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_HttpPortsEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+
+ private com.google.protobuf.MapField httpPorts_;
+
+ private com.google.protobuf.MapField internalGetHttpPorts() {
+ if (httpPorts_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry);
+ }
+ return httpPorts_;
+ }
+
+ public int getHttpPortsCount() {
+ return internalGetHttpPorts().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public boolean containsHttpPorts(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHttpPorts().getMap().containsKey(key);
+ }
+ /** Use {@link #getHttpPortsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getHttpPorts() {
+ return getHttpPortsMap();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.util.Map getHttpPortsMap() {
+ return internalGetHttpPorts().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.lang.String getHttpPortsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHttpPorts().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.lang.String getHttpPortsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHttpPorts().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER = 2;
+ private boolean enableHttpPortAccess_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable http access to specific ports on the cluster
+ * from external sources. Defaults to false.
+ *
+ *
+ * bool enable_http_port_access = 2;
+ */
+ public boolean getEnableHttpPortAccess() {
+ return enableHttpPortAccess_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetHttpPorts(), HttpPortsDefaultEntryHolder.defaultEntry, 1);
+ if (enableHttpPortAccess_ != false) {
+ output.writeBool(2, enableHttpPortAccess_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (java.util.Map.Entry entry :
+ internalGetHttpPorts().getMap().entrySet()) {
+ com.google.protobuf.MapEntry httpPorts__ =
+ HttpPortsDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, httpPorts__);
+ }
+ if (enableHttpPortAccess_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHttpPortAccess_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.EndpointConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.EndpointConfig other =
+ (com.google.cloud.dataproc.v1beta2.EndpointConfig) obj;
+
+ if (!internalGetHttpPorts().equals(other.internalGetHttpPorts())) return false;
+ if (getEnableHttpPortAccess() != other.getEnableHttpPortAccess()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (!internalGetHttpPorts().getMap().isEmpty()) {
+ hash = (37 * hash) + HTTP_PORTS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetHttpPorts().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_HTTP_PORT_ACCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHttpPortAccess());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.EndpointConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Endpoint config for this cluster
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.EndpointConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.EndpointConfig)
+ com.google.cloud.dataproc.v1beta2.EndpointConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 1:
+ return internalGetHttpPorts();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 1:
+ return internalGetMutableHttpPorts();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.class,
+ com.google.cloud.dataproc.v1beta2.EndpointConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.EndpointConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ internalGetMutableHttpPorts().clear();
+ enableHttpPortAccess_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_EndpointConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig build() {
+ com.google.cloud.dataproc.v1beta2.EndpointConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.EndpointConfig result =
+ new com.google.cloud.dataproc.v1beta2.EndpointConfig(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.httpPorts_ = internalGetHttpPorts();
+ result.httpPorts_.makeImmutable();
+ result.enableHttpPortAccess_ = enableHttpPortAccess_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.EndpointConfig) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.EndpointConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.EndpointConfig other) {
+ if (other == com.google.cloud.dataproc.v1beta2.EndpointConfig.getDefaultInstance())
+ return this;
+ internalGetMutableHttpPorts().mergeFrom(other.internalGetHttpPorts());
+ if (other.getEnableHttpPortAccess() != false) {
+ setEnableHttpPortAccess(other.getEnableHttpPortAccess());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.EndpointConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dataproc.v1beta2.EndpointConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.MapField httpPorts_;
+
+ private com.google.protobuf.MapField
+ internalGetHttpPorts() {
+ if (httpPorts_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(HttpPortsDefaultEntryHolder.defaultEntry);
+ }
+ return httpPorts_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableHttpPorts() {
+ onChanged();
+ ;
+ if (httpPorts_ == null) {
+ httpPorts_ =
+ com.google.protobuf.MapField.newMapField(HttpPortsDefaultEntryHolder.defaultEntry);
+ }
+ if (!httpPorts_.isMutable()) {
+ httpPorts_ = httpPorts_.copy();
+ }
+ return httpPorts_;
+ }
+
+ public int getHttpPortsCount() {
+ return internalGetHttpPorts().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public boolean containsHttpPorts(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHttpPorts().getMap().containsKey(key);
+ }
+ /** Use {@link #getHttpPortsMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getHttpPorts() {
+ return getHttpPortsMap();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.util.Map getHttpPortsMap() {
+ return internalGetHttpPorts().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.lang.String getHttpPortsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHttpPorts().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public java.lang.String getHttpPortsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHttpPorts().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearHttpPorts() {
+ internalGetMutableHttpPorts().getMutableMap().clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public Builder removeHttpPorts(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHttpPorts().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableHttpPorts() {
+ return internalGetMutableHttpPorts().getMutableMap();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public Builder putHttpPorts(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHttpPorts().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ public Builder putAllHttpPorts(java.util.Map values) {
+ internalGetMutableHttpPorts().getMutableMap().putAll(values);
+ return this;
+ }
+
+ private boolean enableHttpPortAccess_;
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable http access to specific ports on the cluster
+ * from external sources. Defaults to false.
+ *
+ *
+ * bool enable_http_port_access = 2;
+ */
+ public boolean getEnableHttpPortAccess() {
+ return enableHttpPortAccess_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable http access to specific ports on the cluster
+ * from external sources. Defaults to false.
+ *
+ *
+ * bool enable_http_port_access = 2;
+ */
+ public Builder setEnableHttpPortAccess(boolean value) {
+
+ enableHttpPortAccess_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable http access to specific ports on the cluster
+ * from external sources. Defaults to false.
+ *
+ *
+ * bool enable_http_port_access = 2;
+ */
+ public Builder clearEnableHttpPortAccess() {
+
+ enableHttpPortAccess_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.EndpointConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.EndpointConfig)
+ private static final com.google.cloud.dataproc.v1beta2.EndpointConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.EndpointConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.EndpointConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public EndpointConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new EndpointConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.EndpointConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java
new file mode 100644
index 000000000000..9b989a0d7a03
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/EndpointConfigOrBuilder.java
@@ -0,0 +1,81 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface EndpointConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.EndpointConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ int getHttpPortsCount();
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ boolean containsHttpPorts(java.lang.String key);
+ /** Use {@link #getHttpPortsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map getHttpPorts();
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ java.util.Map getHttpPortsMap();
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ java.lang.String getHttpPortsOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Output only. The map of port descriptions to URLs. Will only be populated
+ * if enable_http_port_access is true.
+ *
+ *
+ * map<string, string> http_ports = 1;
+ */
+ java.lang.String getHttpPortsOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, enable http access to specific ports on the cluster
+ * from external sources. Defaults to false.
+ *
+ *
+ * bool enable_http_port_access = 2;
+ */
+ boolean getEnableHttpPortAccess();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
index 638880dbd0d9..88cf406d0d62 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfig.java
@@ -122,6 +122,23 @@ private GceClusterConfig(
java.lang.String s = input.readStringRequireUtf8();
serviceAccount_ = s;
+ break;
+ }
+ case 90:
+ {
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder subBuilder = null;
+ if (reservationAffinity_ != null) {
+ subBuilder = reservationAffinity_.toBuilder();
+ }
+ reservationAffinity_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(reservationAffinity_);
+ reservationAffinity_ = subBuilder.buildPartial();
+ }
+
break;
}
default:
@@ -303,8 +320,8 @@ public com.google.protobuf.ByteString getNetworkUriBytes() {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -328,8 +345,8 @@ public java.lang.String getSubnetworkUri() {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -674,6 +691,48 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) {
return map.get(key);
}
+ public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 11;
+ private com.google.cloud.dataproc.v1beta2.ReservationAffinity reservationAffinity_;
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public boolean hasReservationAffinity() {
+ return reservationAffinity_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity() {
+ return reservationAffinity_ == null
+ ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance()
+ : reservationAffinity_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder
+ getReservationAffinityOrBuilder() {
+ return getReservationAffinity();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -712,6 +771,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!getServiceAccountBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccount_);
}
+ if (reservationAffinity_ != null) {
+ output.writeMessage(11, getReservationAffinity());
+ }
unknownFields.writeTo(output);
}
@@ -762,6 +824,10 @@ public int getSerializedSize() {
if (!getServiceAccountBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccount_);
}
+ if (reservationAffinity_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReservationAffinity());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -786,6 +852,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false;
if (!getTagsList().equals(other.getTagsList())) return false;
if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
+ if (hasReservationAffinity() != other.hasReservationAffinity()) return false;
+ if (hasReservationAffinity()) {
+ if (!getReservationAffinity().equals(other.getReservationAffinity())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -819,6 +889,10 @@ public int hashCode() {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
+ if (hasReservationAffinity()) {
+ hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER;
+ hash = (53 * hash) + getReservationAffinity().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1000,6 +1074,12 @@ public Builder clear() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableMetadata().clear();
+ if (reservationAffinityBuilder_ == null) {
+ reservationAffinity_ = null;
+ } else {
+ reservationAffinity_ = null;
+ reservationAffinityBuilder_ = null;
+ }
return this;
}
@@ -1046,6 +1126,11 @@ public com.google.cloud.dataproc.v1beta2.GceClusterConfig buildPartial() {
result.tags_ = tags_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
+ if (reservationAffinityBuilder_ == null) {
+ result.reservationAffinity_ = reservationAffinity_;
+ } else {
+ result.reservationAffinity_ = reservationAffinityBuilder_.build();
+ }
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -1137,6 +1222,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GceClusterConfig othe
onChanged();
}
internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+ if (other.hasReservationAffinity()) {
+ mergeReservationAffinity(other.getReservationAffinity());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1445,8 +1533,8 @@ public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -1470,8 +1558,8 @@ public java.lang.String getSubnetworkUri() {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -1495,8 +1583,8 @@ public com.google.protobuf.ByteString getSubnetworkUriBytes() {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -1518,8 +1606,8 @@ public Builder setSubnetworkUri(java.lang.String value) {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -1538,8 +1626,8 @@ public Builder clearSubnetworkUri() {
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -2301,6 +2389,192 @@ public Builder putAllMetadata(java.util.Map
return this;
}
+ private com.google.cloud.dataproc.v1beta2.ReservationAffinity reservationAffinity_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder>
+ reservationAffinityBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public boolean hasReservationAffinity() {
+ return reservationAffinityBuilder_ != null || reservationAffinity_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity() {
+ if (reservationAffinityBuilder_ == null) {
+ return reservationAffinity_ == null
+ ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance()
+ : reservationAffinity_;
+ } else {
+ return reservationAffinityBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public Builder setReservationAffinity(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity value) {
+ if (reservationAffinityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ reservationAffinity_ = value;
+ onChanged();
+ } else {
+ reservationAffinityBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public Builder setReservationAffinity(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder builderForValue) {
+ if (reservationAffinityBuilder_ == null) {
+ reservationAffinity_ = builderForValue.build();
+ onChanged();
+ } else {
+ reservationAffinityBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public Builder mergeReservationAffinity(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity value) {
+ if (reservationAffinityBuilder_ == null) {
+ if (reservationAffinity_ != null) {
+ reservationAffinity_ =
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.newBuilder(reservationAffinity_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ reservationAffinity_ = value;
+ }
+ onChanged();
+ } else {
+ reservationAffinityBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public Builder clearReservationAffinity() {
+ if (reservationAffinityBuilder_ == null) {
+ reservationAffinity_ = null;
+ onChanged();
+ } else {
+ reservationAffinity_ = null;
+ reservationAffinityBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder
+ getReservationAffinityBuilder() {
+
+ onChanged();
+ return getReservationAffinityFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder
+ getReservationAffinityOrBuilder() {
+ if (reservationAffinityBuilder_ != null) {
+ return reservationAffinityBuilder_.getMessageOrBuilder();
+ } else {
+ return reservationAffinity_ == null
+ ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance()
+ : reservationAffinity_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder>
+ getReservationAffinityFieldBuilder() {
+ if (reservationAffinityBuilder_ == null) {
+ reservationAffinityBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder>(
+ getReservationAffinity(), getParentForChildren(), isClean());
+ reservationAffinity_ = null;
+ }
+ return reservationAffinityBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
index 11943a34cfa5..38628b2e4ae5 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GceClusterConfigOrBuilder.java
@@ -89,8 +89,8 @@ public interface GceClusterConfigOrBuilder
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -104,8 +104,8 @@ public interface GceClusterConfigOrBuilder
* Optional. The Compute Engine subnetwork to be used for machine
* communications. Cannot be specified with network_uri.
* A full URL, partial URI, or short name are valid. Examples:
- * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- * * `projects/[project_id]/regions/us-east1/sub0`
+ * * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ * * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
* * `sub0`
*
*
@@ -355,4 +355,35 @@ public interface GceClusterConfigOrBuilder
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ boolean hasReservationAffinity();
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity getReservationAffinity();
+ /**
+ *
+ *
+ *
+ * Optional. Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity reservation_affinity = 11;
+ */
+ com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder getReservationAffinityOrBuilder();
}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java
new file mode 100644
index 000000000000..d4ae802cfc07
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequest.java
@@ -0,0 +1,617 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A request to fetch an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest}
+ */
+public final class GetAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ GetAutoscalingPolicyRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetAutoscalingPolicyRequest.newBuilder() to construct.
+ private GetAutoscalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetAutoscalingPolicyRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GetAutoscalingPolicyRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest other =
+ (com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A request to fetch an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_GetAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest build() {
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest buildPartial() {
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest result =
+ new com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest(this);
+ result.name_ = name_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ private static final com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetAutoscalingPolicyRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetAutoscalingPolicyRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java
new file mode 100644
index 000000000000..78214bff4268
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/GetAutoscalingPolicyRequestOrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface GetAutoscalingPolicyRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the autoscaling policy, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ *
+ *
+ * string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java
new file mode 100644
index 000000000000..28473bb03ae1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfig.java
@@ -0,0 +1,774 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Configuration for the size bounds of an instance group, including its
+ * proportional size to other groups.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig}
+ */
+public final class InstanceGroupAutoscalingPolicyConfig
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ InstanceGroupAutoscalingPolicyConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use InstanceGroupAutoscalingPolicyConfig.newBuilder() to construct.
+ private InstanceGroupAutoscalingPolicyConfig(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private InstanceGroupAutoscalingPolicyConfig() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private InstanceGroupAutoscalingPolicyConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ minInstances_ = input.readInt32();
+ break;
+ }
+ case 16:
+ {
+ maxInstances_ = input.readInt32();
+ break;
+ }
+ case 24:
+ {
+ weight_ = input.readInt32();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.class,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+ }
+
+ public static final int MIN_INSTANCES_FIELD_NUMBER = 1;
+ private int minInstances_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum number of instances for this group.
+ * Primary workers - Bounds: [2, max_instances]. Default: 2.
+ * Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ *
+ *
+ * int32 min_instances = 1;
+ */
+ public int getMinInstances() {
+ return minInstances_;
+ }
+
+ public static final int MAX_INSTANCES_FIELD_NUMBER = 2;
+ private int maxInstances_;
+ /**
+ *
+ *
+ *
+ * Optional. Maximum number of instances for this group. Required for primary
+ * workers. Note that by default, clusters will not use secondary workers.
+ * Required for secondary workers if the minimum secondary instances is set.
+ * Primary workers - Bounds: [min_instances, ). Required.
+ * Secondary workers - Bounds: [min_instances, ). Default: 0.
+ *
+ *
+ * int32 max_instances = 2;
+ */
+ public int getMaxInstances() {
+ return maxInstances_;
+ }
+
+ public static final int WEIGHT_FIELD_NUMBER = 3;
+ private int weight_;
+ /**
+ *
+ *
+ *
+ * Optional. Weight for the instance group, which is used to determine the
+ * fraction of total workers in the cluster from this instance group.
+ * For example, if primary workers have weight 2, and secondary workers have
+ * weight 1, the cluster will have approximately 2 primary workers for each
+ * secondary worker.
+ * The cluster may not reach the specified balance if constrained
+ * by min/max bounds or other autoscaling settings. For example, if
+ * `max_instances` for secondary workers is 0, then only primary workers will
+ * be added. The cluster can also be out of balance when created.
+ * If weight is not set on any instance group, the cluster will default to
+ * equal weight for all groups: the cluster will attempt to maintain an equal
+ * number of workers in each group within the configured size bounds for each
+ * group. If weight is set for one group only, the cluster will default to
+ * zero weight on the unset group. For example if weight is set only on
+ * primary workers, the cluster will use primary workers only and no
+ * secondary workers.
+ *
+ *
+ * int32 weight = 3;
+ */
+ public int getWeight() {
+ return weight_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (minInstances_ != 0) {
+ output.writeInt32(1, minInstances_);
+ }
+ if (maxInstances_ != 0) {
+ output.writeInt32(2, maxInstances_);
+ }
+ if (weight_ != 0) {
+ output.writeInt32(3, weight_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (minInstances_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minInstances_);
+ }
+ if (maxInstances_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxInstances_);
+ }
+ if (weight_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, weight_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig other =
+ (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) obj;
+
+ if (getMinInstances() != other.getMinInstances()) return false;
+ if (getMaxInstances() != other.getMaxInstances()) return false;
+ if (getWeight() != other.getWeight()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MIN_INSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getMinInstances();
+ hash = (37 * hash) + MAX_INSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxInstances();
+ hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + getWeight();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration for the size bounds of an instance group, including its
+ * proportional size to other groups.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.class,
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ minInstances_ = 0;
+
+ maxInstances_ = 0;
+
+ weight_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_InstanceGroupAutoscalingPolicyConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig build() {
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig result =
+ new com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig(this);
+ result.minInstances_ = minInstances_;
+ result.maxInstances_ = maxInstances_;
+ result.weight_ = weight_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) {
+ return mergeFrom(
+ (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ .getDefaultInstance()) return this;
+ if (other.getMinInstances() != 0) {
+ setMinInstances(other.getMinInstances());
+ }
+ if (other.getMaxInstances() != 0) {
+ setMaxInstances(other.getMaxInstances());
+ }
+ if (other.getWeight() != 0) {
+ setWeight(other.getWeight());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int minInstances_;
+ /**
+ *
+ *
+ *
+ * Optional. Minimum number of instances for this group.
+ * Primary workers - Bounds: [2, max_instances]. Default: 2.
+ * Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ *
+ *
+ * int32 min_instances = 1;
+ */
+ public int getMinInstances() {
+ return minInstances_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum number of instances for this group.
+ * Primary workers - Bounds: [2, max_instances]. Default: 2.
+ * Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ *
+ *
+ * int32 min_instances = 1;
+ */
+ public Builder setMinInstances(int value) {
+
+ minInstances_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Minimum number of instances for this group.
+ * Primary workers - Bounds: [2, max_instances]. Default: 2.
+ * Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ *
+ *
+ * int32 min_instances = 1;
+ */
+ public Builder clearMinInstances() {
+
+ minInstances_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int maxInstances_;
+ /**
+ *
+ *
+ *
+ * Optional. Maximum number of instances for this group. Required for primary
+ * workers. Note that by default, clusters will not use secondary workers.
+ * Required for secondary workers if the minimum secondary instances is set.
+ * Primary workers - Bounds: [min_instances, ). Required.
+ * Secondary workers - Bounds: [min_instances, ). Default: 0.
+ *
+ *
+ * int32 max_instances = 2;
+ */
+ public int getMaxInstances() {
+ return maxInstances_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maximum number of instances for this group. Required for primary
+ * workers. Note that by default, clusters will not use secondary workers.
+ * Required for secondary workers if the minimum secondary instances is set.
+ * Primary workers - Bounds: [min_instances, ). Required.
+ * Secondary workers - Bounds: [min_instances, ). Default: 0.
+ *
+ *
+ * int32 max_instances = 2;
+ */
+ public Builder setMaxInstances(int value) {
+
+ maxInstances_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maximum number of instances for this group. Required for primary
+ * workers. Note that by default, clusters will not use secondary workers.
+ * Required for secondary workers if the minimum secondary instances is set.
+ * Primary workers - Bounds: [min_instances, ). Required.
+ * Secondary workers - Bounds: [min_instances, ). Default: 0.
+ *
+ *
+ * int32 max_instances = 2;
+ */
+ public Builder clearMaxInstances() {
+
+ maxInstances_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int weight_;
+ /**
+ *
+ *
+ *
+ * Optional. Weight for the instance group, which is used to determine the
+ * fraction of total workers in the cluster from this instance group.
+ * For example, if primary workers have weight 2, and secondary workers have
+ * weight 1, the cluster will have approximately 2 primary workers for each
+ * secondary worker.
+ * The cluster may not reach the specified balance if constrained
+ * by min/max bounds or other autoscaling settings. For example, if
+ * `max_instances` for secondary workers is 0, then only primary workers will
+ * be added. The cluster can also be out of balance when created.
+ * If weight is not set on any instance group, the cluster will default to
+ * equal weight for all groups: the cluster will attempt to maintain an equal
+ * number of workers in each group within the configured size bounds for each
+ * group. If weight is set for one group only, the cluster will default to
+ * zero weight on the unset group. For example if weight is set only on
+ * primary workers, the cluster will use primary workers only and no
+ * secondary workers.
+ *
+ *
+ * int32 weight = 3;
+ */
+ public int getWeight() {
+ return weight_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Weight for the instance group, which is used to determine the
+ * fraction of total workers in the cluster from this instance group.
+ * For example, if primary workers have weight 2, and secondary workers have
+ * weight 1, the cluster will have approximately 2 primary workers for each
+ * secondary worker.
+ * The cluster may not reach the specified balance if constrained
+ * by min/max bounds or other autoscaling settings. For example, if
+ * `max_instances` for secondary workers is 0, then only primary workers will
+ * be added. The cluster can also be out of balance when created.
+ * If weight is not set on any instance group, the cluster will default to
+ * equal weight for all groups: the cluster will attempt to maintain an equal
+ * number of workers in each group within the configured size bounds for each
+ * group. If weight is set for one group only, the cluster will default to
+ * zero weight on the unset group. For example if weight is set only on
+ * primary workers, the cluster will use primary workers only and no
+ * secondary workers.
+ *
+ *
+ * int32 weight = 3;
+ */
+ public Builder setWeight(int value) {
+
+ weight_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Weight for the instance group, which is used to determine the
+ * fraction of total workers in the cluster from this instance group.
+ * For example, if primary workers have weight 2, and secondary workers have
+ * weight 1, the cluster will have approximately 2 primary workers for each
+ * secondary worker.
+ * The cluster may not reach the specified balance if constrained
+ * by min/max bounds or other autoscaling settings. For example, if
+ * `max_instances` for secondary workers is 0, then only primary workers will
+ * be added. The cluster can also be out of balance when created.
+ * If weight is not set on any instance group, the cluster will default to
+ * equal weight for all groups: the cluster will attempt to maintain an equal
+ * number of workers in each group within the configured size bounds for each
+ * group. If weight is set for one group only, the cluster will default to
+ * zero weight on the unset group. For example if weight is set only on
+ * primary workers, the cluster will use primary workers only and no
+ * secondary workers.
+ *
+ *
+ * int32 weight = 3;
+ */
+ public Builder clearWeight() {
+
+ weight_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ private static final com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public InstanceGroupAutoscalingPolicyConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new InstanceGroupAutoscalingPolicyConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java
new file mode 100644
index 000000000000..ec59f53d04ad
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/InstanceGroupAutoscalingPolicyConfigOrBuilder.java
@@ -0,0 +1,64 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface InstanceGroupAutoscalingPolicyConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.InstanceGroupAutoscalingPolicyConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Minimum number of instances for this group.
+ * Primary workers - Bounds: [2, max_instances]. Default: 2.
+ * Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ *
+ *
+ * int32 min_instances = 1;
+ */
+ int getMinInstances();
+
+ /**
+ *
+ *
+ *
+ * Optional. Maximum number of instances for this group. Required for primary
+ * workers. Note that by default, clusters will not use secondary workers.
+ * Required for secondary workers if the minimum secondary instances is set.
+ * Primary workers - Bounds: [min_instances, ). Required.
+ * Secondary workers - Bounds: [min_instances, ). Default: 0.
+ *
+ *
+ * int32 max_instances = 2;
+ */
+ int getMaxInstances();
+
+ /**
+ *
+ *
+ *
+ * Optional. Weight for the instance group, which is used to determine the
+ * fraction of total workers in the cluster from this instance group.
+ * For example, if primary workers have weight 2, and secondary workers have
+ * weight 1, the cluster will have approximately 2 primary workers for each
+ * secondary worker.
+ * The cluster may not reach the specified balance if constrained
+ * by min/max bounds or other autoscaling settings. For example, if
+ * `max_instances` for secondary workers is 0, then only primary workers will
+ * be added. The cluster can also be out of balance when created.
+ * If weight is not set on any instance group, the cluster will default to
+ * equal weight for all groups: the cluster will attempt to maintain an equal
+ * number of workers in each group within the configured size bounds for each
+ * group. If weight is set for one group only, the cluster will default to
+ * zero weight on the unset group. For example if weight is set only on
+ * primary workers, the cluster will use primary workers only and no
+ * secondary workers.
+ *
+ *
+ * int32 weight = 3;
+ */
+ int getWeight();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java
index 1d049e8b5453..997889467bea 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/Job.java
@@ -185,10 +185,10 @@ private Job(
}
case 74:
{
- if (!((mutable_bitField0_ & 0x00000400) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000800) != 0)) {
yarnApplications_ =
new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000400;
+ mutable_bitField0_ |= 0x00000800;
}
yarnApplications_.add(
input.readMessage(
@@ -221,10 +221,10 @@ private Job(
}
case 106:
{
- if (!((mutable_bitField0_ & 0x00000200) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000400) != 0)) {
statusHistory_ =
new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000200;
+ mutable_bitField0_ |= 0x00000400;
}
statusHistory_.add(
input.readMessage(
@@ -247,10 +247,10 @@ private Job(
}
case 146:
{
- if (!((mutable_bitField0_ & 0x00004000) != 0)) {
+ if (!((mutable_bitField0_ & 0x00008000) != 0)) {
labels_ =
com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
- mutable_bitField0_ |= 0x00004000;
+ mutable_bitField0_ |= 0x00008000;
}
com.google.protobuf.MapEntry labels__ =
input.readMessage(
@@ -272,6 +272,22 @@ private Job(
scheduling_ = subBuilder.buildPartial();
}
+ break;
+ }
+ case 170:
+ {
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder subBuilder = null;
+ if (typeJobCase_ == 21) {
+ subBuilder = ((com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_).toBuilder();
+ }
+ typeJob_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.SparkRJob.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom((com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_);
+ typeJob_ = subBuilder.buildPartial();
+ }
+ typeJobCase_ = 21;
break;
}
case 178:
@@ -295,10 +311,10 @@ private Job(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000400) != 0)) {
+ if (((mutable_bitField0_ & 0x00000800) != 0)) {
yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_);
}
- if (((mutable_bitField0_ & 0x00000200) != 0)) {
+ if (((mutable_bitField0_ & 0x00000400) != 0)) {
statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_);
}
this.unknownFields = unknownFields.build();
@@ -342,6 +358,7 @@ public enum TypeJobCase implements com.google.protobuf.Internal.EnumLite {
PYSPARK_JOB(5),
HIVE_JOB(6),
PIG_JOB(7),
+ SPARK_R_JOB(21),
SPARK_SQL_JOB(12),
TYPEJOB_NOT_SET(0);
private final int value;
@@ -367,6 +384,8 @@ public static TypeJobCase forNumber(int value) {
return HIVE_JOB;
case 7:
return PIG_JOB;
+ case 21:
+ return SPARK_R_JOB;
case 12:
return SPARK_SQL_JOB;
case 0:
@@ -699,6 +718,50 @@ public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() {
return com.google.cloud.dataproc.v1beta2.PigJob.getDefaultInstance();
}
+ public static final int SPARK_R_JOB_FIELD_NUMBER = 21;
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public boolean hasSparkRJob() {
+ return typeJobCase_ == 21;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() {
+ if (typeJobCase_ == 21) {
+ return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_;
+ }
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() {
+ if (typeJobCase_ == 21) {
+ return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_;
+ }
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+
public static final int SPARK_SQL_JOB_FIELD_NUMBER = 12;
/**
*
@@ -1333,6 +1396,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (scheduling_ != null) {
output.writeMessage(20, getScheduling());
}
+ if (typeJobCase_ == 21) {
+ output.writeMessage(21, (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_);
+ }
if (!getJobUuidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, jobUuid_);
}
@@ -1413,6 +1479,11 @@ public int getSerializedSize() {
if (scheduling_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getScheduling());
}
+ if (typeJobCase_ == 21) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 21, (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_);
+ }
if (!getJobUuidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, jobUuid_);
}
@@ -1471,6 +1542,9 @@ public boolean equals(final java.lang.Object obj) {
case 7:
if (!getPigJob().equals(other.getPigJob())) return false;
break;
+ case 21:
+ if (!getSparkRJob().equals(other.getSparkRJob())) return false;
+ break;
case 12:
if (!getSparkSqlJob().equals(other.getSparkSqlJob())) return false;
break;
@@ -1545,6 +1619,10 @@ public int hashCode() {
hash = (37 * hash) + PIG_JOB_FIELD_NUMBER;
hash = (53 * hash) + getPigJob().hashCode();
break;
+ case 21:
+ hash = (37 * hash) + SPARK_R_JOB_FIELD_NUMBER;
+ hash = (53 * hash) + getSparkRJob().hashCode();
+ break;
case 12:
hash = (37 * hash) + SPARK_SQL_JOB_FIELD_NUMBER;
hash = (53 * hash) + getSparkSqlJob().hashCode();
@@ -1739,13 +1817,13 @@ public Builder clear() {
}
if (statusHistoryBuilder_ == null) {
statusHistory_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
} else {
statusHistoryBuilder_.clear();
}
if (yarnApplicationsBuilder_ == null) {
yarnApplications_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
} else {
yarnApplicationsBuilder_.clear();
}
@@ -1840,6 +1918,13 @@ public com.google.cloud.dataproc.v1beta2.Job buildPartial() {
result.typeJob_ = pigJobBuilder_.build();
}
}
+ if (typeJobCase_ == 21) {
+ if (sparkRJobBuilder_ == null) {
+ result.typeJob_ = typeJob_;
+ } else {
+ result.typeJob_ = sparkRJobBuilder_.build();
+ }
+ }
if (typeJobCase_ == 12) {
if (sparkSqlJobBuilder_ == null) {
result.typeJob_ = typeJob_;
@@ -1853,18 +1938,18 @@ public com.google.cloud.dataproc.v1beta2.Job buildPartial() {
result.status_ = statusBuilder_.build();
}
if (statusHistoryBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0)) {
+ if (((bitField0_ & 0x00000400) != 0)) {
statusHistory_ = java.util.Collections.unmodifiableList(statusHistory_);
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
}
result.statusHistory_ = statusHistory_;
} else {
result.statusHistory_ = statusHistoryBuilder_.build();
}
if (yarnApplicationsBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0)) {
+ if (((bitField0_ & 0x00000800) != 0)) {
yarnApplications_ = java.util.Collections.unmodifiableList(yarnApplications_);
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
}
result.yarnApplications_ = yarnApplications_;
} else {
@@ -1945,7 +2030,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) {
if (!other.statusHistory_.isEmpty()) {
if (statusHistory_.isEmpty()) {
statusHistory_ = other.statusHistory_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureStatusHistoryIsMutable();
statusHistory_.addAll(other.statusHistory_);
@@ -1958,7 +2043,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) {
statusHistoryBuilder_.dispose();
statusHistoryBuilder_ = null;
statusHistory_ = other.statusHistory_;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
statusHistoryBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getStatusHistoryFieldBuilder()
@@ -1972,7 +2057,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) {
if (!other.yarnApplications_.isEmpty()) {
if (yarnApplications_.isEmpty()) {
yarnApplications_ = other.yarnApplications_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureYarnApplicationsIsMutable();
yarnApplications_.addAll(other.yarnApplications_);
@@ -1985,7 +2070,7 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) {
yarnApplicationsBuilder_.dispose();
yarnApplicationsBuilder_ = null;
yarnApplications_ = other.yarnApplications_;
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
yarnApplicationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getYarnApplicationsFieldBuilder()
@@ -2041,6 +2126,11 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.Job other) {
mergePigJob(other.getPigJob());
break;
}
+ case SPARK_R_JOB:
+ {
+ mergeSparkRJob(other.getSparkRJob());
+ break;
+ }
case SPARK_SQL_JOB:
{
mergeSparkSqlJob(other.getSparkSqlJob());
@@ -3503,6 +3593,208 @@ public com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder() {
return pigJobBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SparkRJob,
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder,
+ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder>
+ sparkRJobBuilder_;
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public boolean hasSparkRJob() {
+ return typeJobCase_ == 21;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob() {
+ if (sparkRJobBuilder_ == null) {
+ if (typeJobCase_ == 21) {
+ return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_;
+ }
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ } else {
+ if (typeJobCase_ == 21) {
+ return sparkRJobBuilder_.getMessage();
+ }
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public Builder setSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) {
+ if (sparkRJobBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ typeJob_ = value;
+ onChanged();
+ } else {
+ sparkRJobBuilder_.setMessage(value);
+ }
+ typeJobCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public Builder setSparkRJob(
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder builderForValue) {
+ if (sparkRJobBuilder_ == null) {
+ typeJob_ = builderForValue.build();
+ onChanged();
+ } else {
+ sparkRJobBuilder_.setMessage(builderForValue.build());
+ }
+ typeJobCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public Builder mergeSparkRJob(com.google.cloud.dataproc.v1beta2.SparkRJob value) {
+ if (sparkRJobBuilder_ == null) {
+ if (typeJobCase_ == 21
+ && typeJob_ != com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance()) {
+ typeJob_ =
+ com.google.cloud.dataproc.v1beta2.SparkRJob.newBuilder(
+ (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ typeJob_ = value;
+ }
+ onChanged();
+ } else {
+ if (typeJobCase_ == 21) {
+ sparkRJobBuilder_.mergeFrom(value);
+ }
+ sparkRJobBuilder_.setMessage(value);
+ }
+ typeJobCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public Builder clearSparkRJob() {
+ if (sparkRJobBuilder_ == null) {
+ if (typeJobCase_ == 21) {
+ typeJobCase_ = 0;
+ typeJob_ = null;
+ onChanged();
+ }
+ } else {
+ if (typeJobCase_ == 21) {
+ typeJobCase_ = 0;
+ typeJob_ = null;
+ }
+ sparkRJobBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public com.google.cloud.dataproc.v1beta2.SparkRJob.Builder getSparkRJobBuilder() {
+ return getSparkRJobFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ public com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder() {
+ if ((typeJobCase_ == 21) && (sparkRJobBuilder_ != null)) {
+ return sparkRJobBuilder_.getMessageOrBuilder();
+ } else {
+ if (typeJobCase_ == 21) {
+ return (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_;
+ }
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SparkRJob,
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder,
+ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder>
+ getSparkRJobFieldBuilder() {
+ if (sparkRJobBuilder_ == null) {
+ if (!(typeJobCase_ == 21)) {
+ typeJob_ = com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+ sparkRJobBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.SparkRJob,
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder,
+ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder>(
+ (com.google.cloud.dataproc.v1beta2.SparkRJob) typeJob_,
+ getParentForChildren(),
+ isClean());
+ typeJob_ = null;
+ }
+ typeJobCase_ = 21;
+ onChanged();
+ ;
+ return sparkRJobBuilder_;
+ }
+
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataproc.v1beta2.SparkSqlJob,
com.google.cloud.dataproc.v1beta2.SparkSqlJob.Builder,
@@ -3908,10 +4200,10 @@ public com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder getStatusOrBuilder()
java.util.Collections.emptyList();
private void ensureStatusHistoryIsMutable() {
- if (!((bitField0_ & 0x00000200) != 0)) {
+ if (!((bitField0_ & 0x00000400) != 0)) {
statusHistory_ =
new java.util.ArrayList(statusHistory_);
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
}
}
@@ -4127,7 +4419,7 @@ public Builder addAllStatusHistory(
public Builder clearStatusHistory() {
if (statusHistoryBuilder_ == null) {
statusHistory_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
statusHistoryBuilder_.clear();
@@ -4251,7 +4543,7 @@ public com.google.cloud.dataproc.v1beta2.JobStatus.Builder addStatusHistoryBuild
com.google.cloud.dataproc.v1beta2.JobStatus.Builder,
com.google.cloud.dataproc.v1beta2.JobStatusOrBuilder>(
statusHistory_,
- ((bitField0_ & 0x00000200) != 0),
+ ((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
statusHistory_ = null;
@@ -4263,11 +4555,11 @@ public com.google.cloud.dataproc.v1beta2.JobStatus.Builder addStatusHistoryBuild
java.util.Collections.emptyList();
private void ensureYarnApplicationsIsMutable() {
- if (!((bitField0_ & 0x00000400) != 0)) {
+ if (!((bitField0_ & 0x00000800) != 0)) {
yarnApplications_ =
new java.util.ArrayList(
yarnApplications_);
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
}
}
@@ -4508,7 +4800,7 @@ public Builder addAllYarnApplications(
public Builder clearYarnApplications() {
if (yarnApplicationsBuilder_ == null) {
yarnApplications_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
yarnApplicationsBuilder_.clear();
@@ -4649,7 +4941,7 @@ public com.google.cloud.dataproc.v1beta2.YarnApplication.Builder addYarnApplicat
com.google.cloud.dataproc.v1beta2.YarnApplication.Builder,
com.google.cloud.dataproc.v1beta2.YarnApplicationOrBuilder>(
yarnApplications_,
- ((bitField0_ & 0x00000400) != 0),
+ ((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
yarnApplications_ = null;
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java
index ad3d1ea390ff..77e53ad1edd8 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobOrBuilder.java
@@ -237,6 +237,37 @@ public interface JobOrBuilder
*/
com.google.cloud.dataproc.v1beta2.PigJobOrBuilder getPigJobOrBuilder();
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ boolean hasSparkRJob();
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ com.google.cloud.dataproc.v1beta2.SparkRJob getSparkRJob();
+ /**
+ *
+ *
+ *
+ * Job is a SparkR job.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.SparkRJob spark_r_job = 21;
+ */
+ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder getSparkRJobOrBuilder();
+
/**
*
*
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java
index bdf6f3531a5c..eafe771c9454 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReference.java
@@ -150,11 +150,10 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -174,11 +173,10 @@ public java.lang.String getJobId() {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -631,11 +629,10 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -655,11 +652,10 @@ public java.lang.String getJobId() {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -679,11 +675,10 @@ public com.google.protobuf.ByteString getJobIdBytes() {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -701,11 +696,10 @@ public Builder setJobId(java.lang.String value) {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -720,11 +714,10 @@ public Builder clearJobId() {
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java
index 6a625c6e0437..09146ddae195 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobReferenceOrBuilder.java
@@ -35,11 +35,10 @@ public interface JobReferenceOrBuilder
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
@@ -49,11 +48,10 @@ public interface JobReferenceOrBuilder
*
*
*
- * Optional. The job ID, which must be unique within the project. The job ID
- * is generated by the server upon job submission or provided by the user as a
- * means to perform retries without creating duplicate jobs. The ID must
- * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- * hyphens (-). The maximum length is 100 characters.
+ * Optional. The job ID, which must be unique within the project.
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ * underscores (_), or hyphens (-). The maximum length is 100 characters.
+ * If not specified by the caller, the job ID will be provided by the server.
*
*
* string job_id = 2;
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java
index 752055511920..7430a5ce3bbc 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobsProto.java
@@ -84,6 +84,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataproc_v1beta2_PigJob_PropertiesEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -225,106 +233,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "g\0326\n\024ScriptVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ "\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n\003"
+ "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007queries\""
- + ":\n\014JobPlacement\022\024\n\014cluster_name\030\001 \001(\t\022\024\n"
- + "\014cluster_uuid\030\002 \001(\t\"\314\003\n\tJobStatus\022=\n\005sta"
- + "te\030\001 \001(\0162..google.cloud.dataproc.v1beta2"
- + ".JobStatus.State\022\017\n\007details\030\002 \001(\t\0224\n\020sta"
- + "te_start_time\030\006 \001(\0132\032.google.protobuf.Ti"
- + "mestamp\022C\n\010substate\030\007 \001(\01621.google.cloud"
- + ".dataproc.v1beta2.JobStatus.Substate\"\251\001\n"
- + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING"
- + "\020\001\022\016\n\nSETUP_DONE\020\010\022\013\n\007RUNNING\020\002\022\022\n\016CANCE"
- + "L_PENDING\020\003\022\022\n\016CANCEL_STARTED\020\007\022\r\n\tCANCE"
- + "LLED\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006\022\023\n\017ATTEMPT_F"
- + "AILURE\020\t\"H\n\010Substate\022\017\n\013UNSPECIFIED\020\000\022\r\n"
- + "\tSUBMITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n\014STALE_STATUS"
- + "\020\003\"2\n\014JobReference\022\022\n\nproject_id\030\001 \001(\t\022\016"
- + "\n\006job_id\030\002 \001(\t\"\226\002\n\017YarnApplication\022\014\n\004na"
- + "me\030\001 \001(\t\022C\n\005state\030\002 \001(\01624.google.cloud.d"
- + "ataproc.v1beta2.YarnApplication.State\022\020\n"
- + "\010progress\030\003 \001(\002\022\024\n\014tracking_url\030\004 \001(\t\"\207\001"
- + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\007\n\003NEW\020\001\022"
- + "\016\n\nNEW_SAVING\020\002\022\r\n\tSUBMITTED\020\003\022\014\n\010ACCEPT"
- + "ED\020\004\022\013\n\007RUNNING\020\005\022\014\n\010FINISHED\020\006\022\n\n\006FAILE"
- + "D\020\007\022\n\n\006KILLED\020\010\"\362\007\n\003Job\022>\n\treference\030\001 \001"
- + "(\0132+.google.cloud.dataproc.v1beta2.JobRe"
- + "ference\022>\n\tplacement\030\002 \001(\0132+.google.clou"
- + "d.dataproc.v1beta2.JobPlacement\022>\n\nhadoo"
- + "p_job\030\003 \001(\0132(.google.cloud.dataproc.v1be"
- + "ta2.HadoopJobH\000\022<\n\tspark_job\030\004 \001(\0132\'.goo"
- + "gle.cloud.dataproc.v1beta2.SparkJobH\000\022@\n"
- + "\013pyspark_job\030\005 \001(\0132).google.cloud.datapr"
- + "oc.v1beta2.PySparkJobH\000\022:\n\010hive_job\030\006 \001("
- + "\0132&.google.cloud.dataproc.v1beta2.HiveJo"
- + "bH\000\0228\n\007pig_job\030\007 \001(\0132%.google.cloud.data"
- + "proc.v1beta2.PigJobH\000\022C\n\rspark_sql_job\030\014"
- + " \001(\0132*.google.cloud.dataproc.v1beta2.Spa"
- + "rkSqlJobH\000\0228\n\006status\030\010 \001(\0132(.google.clou"
- + "d.dataproc.v1beta2.JobStatus\022@\n\016status_h"
- + "istory\030\r \003(\0132(.google.cloud.dataproc.v1b"
- + "eta2.JobStatus\022I\n\021yarn_applications\030\t \003("
- + "\0132..google.cloud.dataproc.v1beta2.YarnAp"
- + "plication\022\024\n\014submitted_by\030\n \001(\t\022\"\n\032drive"
- + "r_output_resource_uri\030\021 \001(\t\022 \n\030driver_co"
- + "ntrol_files_uri\030\017 \001(\t\022>\n\006labels\030\022 \003(\0132.."
- + "google.cloud.dataproc.v1beta2.Job.Labels"
- + "Entry\022@\n\nscheduling\030\024 \001(\0132,.google.cloud"
- + ".dataproc.v1beta2.JobScheduling\022\020\n\010job_u"
- + "uid\030\026 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
- + "\005value\030\002 \001(\t:\0028\001B\n\n\010type_job\".\n\rJobSched"
- + "uling\022\035\n\025max_failures_per_hour\030\001 \001(\005\"{\n\020"
- + "SubmitJobRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006"
- + "region\030\003 \001(\t\022/\n\003job\030\002 \001(\0132\".google.cloud"
- + ".dataproc.v1beta2.Job\022\022\n\nrequest_id\030\004 \001("
- + "\t\"C\n\rGetJobRequest\022\022\n\nproject_id\030\001 \001(\t\022\016"
- + "\n\006region\030\003 \001(\t\022\016\n\006job_id\030\002 \001(\t\"\225\002\n\017ListJ"
- + "obsRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region"
- + "\030\006 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
- + "\003 \001(\t\022\024\n\014cluster_name\030\004 \001(\t\022Y\n\021job_state"
- + "_matcher\030\005 \001(\0162>.google.cloud.dataproc.v"
- + "1beta2.ListJobsRequest.JobStateMatcher\022\016"
- + "\n\006filter\030\007 \001(\t\"6\n\017JobStateMatcher\022\007\n\003ALL"
- + "\020\000\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\250\001\n\020Updat"
- + "eJobRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006regio"
- + "n\030\002 \001(\t\022\016\n\006job_id\030\003 \001(\t\022/\n\003job\030\004 \001(\0132\".g"
- + "oogle.cloud.dataproc.v1beta2.Job\022/\n\013upda"
- + "te_mask\030\005 \001(\0132\032.google.protobuf.FieldMas"
- + "k\"]\n\020ListJobsResponse\0220\n\004jobs\030\001 \003(\0132\".go"
- + "ogle.cloud.dataproc.v1beta2.Job\022\027\n\017next_"
- + "page_token\030\002 \001(\t\"F\n\020CancelJobRequest\022\022\n\n"
- + "project_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\016\n\006job_"
- + "id\030\002 \001(\t\"F\n\020DeleteJobRequest\022\022\n\nproject_"
- + "id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\016\n\006job_id\030\002 \001(\t"
- + "2\213\010\n\rJobController\022\250\001\n\tSubmitJob\022/.googl"
- + "e.cloud.dataproc.v1beta2.SubmitJobReques"
- + "t\032\".google.cloud.dataproc.v1beta2.Job\"F\202"
- + "\323\344\223\002@\";/v1beta2/projects/{project_id}/re"
- + "gions/{region}/jobs:submit:\001*\022\241\001\n\006GetJob"
- + "\022,.google.cloud.dataproc.v1beta2.GetJobR"
- + "equest\032\".google.cloud.dataproc.v1beta2.J"
- + "ob\"E\202\323\344\223\002?\022=/v1beta2/projects/{project_i"
- + "d}/regions/{region}/jobs/{job_id}\022\251\001\n\010Li"
- + "stJobs\022..google.cloud.dataproc.v1beta2.L"
- + "istJobsRequest\032/.google.cloud.dataproc.v"
- + "1beta2.ListJobsResponse\"<\202\323\344\223\0026\0224/v1beta"
- + "2/projects/{project_id}/regions/{region}"
- + "/jobs\022\254\001\n\tUpdateJob\022/.google.cloud.datap"
- + "roc.v1beta2.UpdateJobRequest\032\".google.cl"
- + "oud.dataproc.v1beta2.Job\"J\202\323\344\223\002D2=/v1bet"
- + "a2/projects/{project_id}/regions/{region"
- + "}/jobs/{job_id}:\003job\022\261\001\n\tCancelJob\022/.goo"
- + "gle.cloud.dataproc.v1beta2.CancelJobRequ"
- + "est\032\".google.cloud.dataproc.v1beta2.Job\""
- + "O\202\323\344\223\002I\"D/v1beta2/projects/{project_id}/"
- + "regions/{region}/jobs/{job_id}:cancel:\001*"
- + "\022\233\001\n\tDeleteJob\022/.google.cloud.dataproc.v"
- + "1beta2.DeleteJobRequest\032\026.google.protobu"
- + "f.Empty\"E\202\323\344\223\002?*=/v1beta2/projects/{proj"
- + "ect_id}/regions/{region}/jobs/{job_id}Bw"
- + "\n!com.google.cloud.dataproc.v1beta2B\tJob"
- + "sProtoP\001ZEgoogle.golang.org/genproto/goo"
- + "gleapis/cloud/dataproc/v1beta2;dataprocb"
- + "\006proto3"
+ + "\242\002\n\tSparkRJob\022\027\n\017main_r_file_uri\030\001 \001(\t\022\014"
+ + "\n\004args\030\002 \003(\t\022\021\n\tfile_uris\030\003 \003(\t\022\024\n\014archi"
+ + "ve_uris\030\004 \003(\t\022L\n\nproperties\030\005 \003(\01328.goog"
+ + "le.cloud.dataproc.v1beta2.SparkRJob.Prop"
+ + "ertiesEntry\022D\n\016logging_config\030\006 \001(\0132,.go"
+ + "ogle.cloud.dataproc.v1beta2.LoggingConfi"
+ + "g\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+ + "ue\030\002 \001(\t:\0028\001\":\n\014JobPlacement\022\024\n\014cluster_"
+ + "name\030\001 \001(\t\022\024\n\014cluster_uuid\030\002 \001(\t\"\314\003\n\tJob"
+ + "Status\022=\n\005state\030\001 \001(\0162..google.cloud.dat"
+ + "aproc.v1beta2.JobStatus.State\022\017\n\007details"
+ + "\030\002 \001(\t\0224\n\020state_start_time\030\006 \001(\0132\032.googl"
+ + "e.protobuf.Timestamp\022C\n\010substate\030\007 \001(\01621"
+ + ".google.cloud.dataproc.v1beta2.JobStatus"
+ + ".Substate\"\251\001\n\005State\022\025\n\021STATE_UNSPECIFIED"
+ + "\020\000\022\013\n\007PENDING\020\001\022\016\n\nSETUP_DONE\020\010\022\013\n\007RUNNI"
+ + "NG\020\002\022\022\n\016CANCEL_PENDING\020\003\022\022\n\016CANCEL_START"
+ + "ED\020\007\022\r\n\tCANCELLED\020\004\022\010\n\004DONE\020\005\022\t\n\005ERROR\020\006"
+ + "\022\023\n\017ATTEMPT_FAILURE\020\t\"H\n\010Substate\022\017\n\013UNS"
+ + "PECIFIED\020\000\022\r\n\tSUBMITTED\020\001\022\n\n\006QUEUED\020\002\022\020\n"
+ + "\014STALE_STATUS\020\003\"2\n\014JobReference\022\022\n\nproje"
+ + "ct_id\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t\"\226\002\n\017YarnAppl"
+ + "ication\022\014\n\004name\030\001 \001(\t\022C\n\005state\030\002 \001(\01624.g"
+ + "oogle.cloud.dataproc.v1beta2.YarnApplica"
+ + "tion.State\022\020\n\010progress\030\003 \001(\002\022\024\n\014tracking"
+ + "_url\030\004 \001(\t\"\207\001\n\005State\022\025\n\021STATE_UNSPECIFIE"
+ + "D\020\000\022\007\n\003NEW\020\001\022\016\n\nNEW_SAVING\020\002\022\r\n\tSUBMITTE"
+ + "D\020\003\022\014\n\010ACCEPTED\020\004\022\013\n\007RUNNING\020\005\022\014\n\010FINISH"
+ + "ED\020\006\022\n\n\006FAILED\020\007\022\n\n\006KILLED\020\010\"\263\010\n\003Job\022>\n\t"
+ + "reference\030\001 \001(\0132+.google.cloud.dataproc."
+ + "v1beta2.JobReference\022>\n\tplacement\030\002 \001(\0132"
+ + "+.google.cloud.dataproc.v1beta2.JobPlace"
+ + "ment\022>\n\nhadoop_job\030\003 \001(\0132(.google.cloud."
+ + "dataproc.v1beta2.HadoopJobH\000\022<\n\tspark_jo"
+ + "b\030\004 \001(\0132\'.google.cloud.dataproc.v1beta2."
+ + "SparkJobH\000\022@\n\013pyspark_job\030\005 \001(\0132).google"
+ + ".cloud.dataproc.v1beta2.PySparkJobH\000\022:\n\010"
+ + "hive_job\030\006 \001(\0132&.google.cloud.dataproc.v"
+ + "1beta2.HiveJobH\000\0228\n\007pig_job\030\007 \001(\0132%.goog"
+ + "le.cloud.dataproc.v1beta2.PigJobH\000\022?\n\013sp"
+ + "ark_r_job\030\025 \001(\0132(.google.cloud.dataproc."
+ + "v1beta2.SparkRJobH\000\022C\n\rspark_sql_job\030\014 \001"
+ + "(\0132*.google.cloud.dataproc.v1beta2.Spark"
+ + "SqlJobH\000\0228\n\006status\030\010 \001(\0132(.google.cloud."
+ + "dataproc.v1beta2.JobStatus\022@\n\016status_his"
+ + "tory\030\r \003(\0132(.google.cloud.dataproc.v1bet"
+ + "a2.JobStatus\022I\n\021yarn_applications\030\t \003(\0132"
+ + "..google.cloud.dataproc.v1beta2.YarnAppl"
+ + "ication\022\024\n\014submitted_by\030\n \001(\t\022\"\n\032driver_"
+ + "output_resource_uri\030\021 \001(\t\022 \n\030driver_cont"
+ + "rol_files_uri\030\017 \001(\t\022>\n\006labels\030\022 \003(\0132..go"
+ + "ogle.cloud.dataproc.v1beta2.Job.LabelsEn"
+ + "try\022@\n\nscheduling\030\024 \001(\0132,.google.cloud.d"
+ + "ataproc.v1beta2.JobScheduling\022\020\n\010job_uui"
+ + "d\030\026 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+ + "alue\030\002 \001(\t:\0028\001B\n\n\010type_job\".\n\rJobSchedul"
+ + "ing\022\035\n\025max_failures_per_hour\030\001 \001(\005\"{\n\020Su"
+ + "bmitJobRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006re"
+ + "gion\030\003 \001(\t\022/\n\003job\030\002 \001(\0132\".google.cloud.d"
+ + "ataproc.v1beta2.Job\022\022\n\nrequest_id\030\004 \001(\t\""
+ + "C\n\rGetJobRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006"
+ + "region\030\003 \001(\t\022\016\n\006job_id\030\002 \001(\t\"\225\002\n\017ListJob"
+ + "sRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030\006"
+ + " \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 "
+ + "\001(\t\022\024\n\014cluster_name\030\004 \001(\t\022Y\n\021job_state_m"
+ + "atcher\030\005 \001(\0162>.google.cloud.dataproc.v1b"
+ + "eta2.ListJobsRequest.JobStateMatcher\022\016\n\006"
+ + "filter\030\007 \001(\t\"6\n\017JobStateMatcher\022\007\n\003ALL\020\000"
+ + "\022\n\n\006ACTIVE\020\001\022\016\n\nNON_ACTIVE\020\002\"\250\001\n\020UpdateJ"
+ + "obRequest\022\022\n\nproject_id\030\001 \001(\t\022\016\n\006region\030"
+ + "\002 \001(\t\022\016\n\006job_id\030\003 \001(\t\022/\n\003job\030\004 \001(\0132\".goo"
+ + "gle.cloud.dataproc.v1beta2.Job\022/\n\013update"
+ + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\""
+ + "]\n\020ListJobsResponse\0220\n\004jobs\030\001 \003(\0132\".goog"
+ + "le.cloud.dataproc.v1beta2.Job\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t\"F\n\020CancelJobRequest\022\022\n\npr"
+ + "oject_id\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\016\n\006job_id"
+ + "\030\002 \001(\t\"F\n\020DeleteJobRequest\022\022\n\nproject_id"
+ + "\030\001 \001(\t\022\016\n\006region\030\003 \001(\t\022\016\n\006job_id\030\002 \001(\t2\213"
+ + "\010\n\rJobController\022\250\001\n\tSubmitJob\022/.google."
+ + "cloud.dataproc.v1beta2.SubmitJobRequest\032"
+ + "\".google.cloud.dataproc.v1beta2.Job\"F\202\323\344"
+ + "\223\002@\";/v1beta2/projects/{project_id}/regi"
+ + "ons/{region}/jobs:submit:\001*\022\241\001\n\006GetJob\022,"
+ + ".google.cloud.dataproc.v1beta2.GetJobReq"
+ + "uest\032\".google.cloud.dataproc.v1beta2.Job"
+ + "\"E\202\323\344\223\002?\022=/v1beta2/projects/{project_id}"
+ + "/regions/{region}/jobs/{job_id}\022\251\001\n\010List"
+ + "Jobs\022..google.cloud.dataproc.v1beta2.Lis"
+ + "tJobsRequest\032/.google.cloud.dataproc.v1b"
+ + "eta2.ListJobsResponse\"<\202\323\344\223\0026\0224/v1beta2/"
+ + "projects/{project_id}/regions/{region}/j"
+ + "obs\022\254\001\n\tUpdateJob\022/.google.cloud.datapro"
+ + "c.v1beta2.UpdateJobRequest\032\".google.clou"
+ + "d.dataproc.v1beta2.Job\"J\202\323\344\223\002D2=/v1beta2"
+ + "/projects/{project_id}/regions/{region}/"
+ + "jobs/{job_id}:\003job\022\261\001\n\tCancelJob\022/.googl"
+ + "e.cloud.dataproc.v1beta2.CancelJobReques"
+ + "t\032\".google.cloud.dataproc.v1beta2.Job\"O\202"
+ + "\323\344\223\002I\"D/v1beta2/projects/{project_id}/re"
+ + "gions/{region}/jobs/{job_id}:cancel:\001*\022\233"
+ + "\001\n\tDeleteJob\022/.google.cloud.dataproc.v1b"
+ + "eta2.DeleteJobRequest\032\026.google.protobuf."
+ + "Empty\"E\202\323\344\223\002?*=/v1beta2/projects/{projec"
+ + "t_id}/regions/{region}/jobs/{job_id}Bw\n!"
+ + "com.google.cloud.dataproc.v1beta2B\tJobsP"
+ + "rotoP\001ZEgoogle.golang.org/genproto/googl"
+ + "eapis/cloud/dataproc/v1beta2;dataprocb\006p"
+ + "roto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -535,8 +552,24 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new java.lang.String[] {
"Key", "Value",
});
- internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor =
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor =
getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor,
+ new java.lang.String[] {
+ "MainRFileUri", "Args", "FileUris", "ArchiveUris", "Properties", "LoggingConfig",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor =
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor =
+ getDescriptor().getMessageTypes().get(9);
internal_static_google_cloud_dataproc_v1beta2_JobPlacement_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_JobPlacement_descriptor,
@@ -544,7 +577,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ClusterName", "ClusterUuid",
});
internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor =
- getDescriptor().getMessageTypes().get(9);
+ getDescriptor().getMessageTypes().get(10);
internal_static_google_cloud_dataproc_v1beta2_JobStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_JobStatus_descriptor,
@@ -552,7 +585,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"State", "Details", "StateStartTime", "Substate",
});
internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor =
- getDescriptor().getMessageTypes().get(10);
+ getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_dataproc_v1beta2_JobReference_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_JobReference_descriptor,
@@ -560,7 +593,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "JobId",
});
internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor =
- getDescriptor().getMessageTypes().get(11);
+ getDescriptor().getMessageTypes().get(12);
internal_static_google_cloud_dataproc_v1beta2_YarnApplication_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_YarnApplication_descriptor,
@@ -568,7 +601,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Name", "State", "Progress", "TrackingUrl",
});
internal_static_google_cloud_dataproc_v1beta2_Job_descriptor =
- getDescriptor().getMessageTypes().get(12);
+ getDescriptor().getMessageTypes().get(13);
internal_static_google_cloud_dataproc_v1beta2_Job_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_Job_descriptor,
@@ -580,6 +613,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"PysparkJob",
"HiveJob",
"PigJob",
+ "SparkRJob",
"SparkSqlJob",
"Status",
"StatusHistory",
@@ -601,7 +635,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Key", "Value",
});
internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor =
- getDescriptor().getMessageTypes().get(13);
+ getDescriptor().getMessageTypes().get(14);
internal_static_google_cloud_dataproc_v1beta2_JobScheduling_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_JobScheduling_descriptor,
@@ -609,7 +643,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"MaxFailuresPerHour",
});
internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(14);
+ getDescriptor().getMessageTypes().get(15);
internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_SubmitJobRequest_descriptor,
@@ -617,7 +651,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "Job", "RequestId",
});
internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(15);
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_GetJobRequest_descriptor,
@@ -625,7 +659,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "JobId",
});
internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(17);
internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ListJobsRequest_descriptor,
@@ -639,7 +673,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Filter",
});
internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(17);
+ getDescriptor().getMessageTypes().get(18);
internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_UpdateJobRequest_descriptor,
@@ -647,7 +681,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "JobId", "Job", "UpdateMask",
});
internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor =
- getDescriptor().getMessageTypes().get(18);
+ getDescriptor().getMessageTypes().get(19);
internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_ListJobsResponse_descriptor,
@@ -655,7 +689,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"Jobs", "NextPageToken",
});
internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(19);
+ getDescriptor().getMessageTypes().get(20);
internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_CancelJobRequest_descriptor,
@@ -663,7 +697,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
"ProjectId", "Region", "JobId",
});
internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor =
- getDescriptor().getMessageTypes().get(20);
+ getDescriptor().getMessageTypes().get(21);
internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataproc_v1beta2_DeleteJobRequest_descriptor,
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java
new file mode 100644
index 000000000000..ead3eea5b44a
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfig.java
@@ -0,0 +1,2668 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Specifies Kerberos related configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.KerberosConfig}
+ */
+public final class KerberosConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.KerberosConfig)
+ KerberosConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use KerberosConfig.newBuilder() to construct.
+ private KerberosConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private KerberosConfig() {
+ rootPrincipalPasswordUri_ = "";
+ kmsKeyUri_ = "";
+ keystoreUri_ = "";
+ truststoreUri_ = "";
+ keystorePasswordUri_ = "";
+ keyPasswordUri_ = "";
+ truststorePasswordUri_ = "";
+ crossRealmTrustRealm_ = "";
+ crossRealmTrustKdc_ = "";
+ crossRealmTrustAdminServer_ = "";
+ crossRealmTrustSharedPasswordUri_ = "";
+ kdcDbKeyUri_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private KerberosConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ enableKerberos_ = input.readBool();
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ rootPrincipalPasswordUri_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ kmsKeyUri_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ keystoreUri_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ truststoreUri_ = s;
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ keystorePasswordUri_ = s;
+ break;
+ }
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ keyPasswordUri_ = s;
+ break;
+ }
+ case 66:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ truststorePasswordUri_ = s;
+ break;
+ }
+ case 74:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ crossRealmTrustRealm_ = s;
+ break;
+ }
+ case 82:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ crossRealmTrustKdc_ = s;
+ break;
+ }
+ case 90:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ crossRealmTrustAdminServer_ = s;
+ break;
+ }
+ case 98:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ crossRealmTrustSharedPasswordUri_ = s;
+ break;
+ }
+ case 106:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ kdcDbKeyUri_ = s;
+ break;
+ }
+ case 112:
+ {
+ tgtLifetimeHours_ = input.readInt32();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.class,
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder.class);
+ }
+
+ public static final int ENABLE_KERBEROS_FIELD_NUMBER = 1;
+ private boolean enableKerberos_;
+ /**
+ *
+ *
+ *
+ * Optional. Flag to indicate whether to Kerberize the cluster.
+ *
+ *
+ * bool enable_kerberos = 1;
+ */
+ public boolean getEnableKerberos() {
+ return enableKerberos_;
+ }
+
+ public static final int ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER = 2;
+ private volatile java.lang.Object rootPrincipalPasswordUri_;
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public java.lang.String getRootPrincipalPasswordUri() {
+ java.lang.Object ref = rootPrincipalPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ rootPrincipalPasswordUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() {
+ java.lang.Object ref = rootPrincipalPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ rootPrincipalPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KMS_KEY_URI_FIELD_NUMBER = 3;
+ private volatile java.lang.Object kmsKeyUri_;
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public java.lang.String getKmsKeyUri() {
+ java.lang.Object ref = kmsKeyUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kmsKeyUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public com.google.protobuf.ByteString getKmsKeyUriBytes() {
+ java.lang.Object ref = kmsKeyUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KEYSTORE_URI_FIELD_NUMBER = 4;
+ private volatile java.lang.Object keystoreUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public java.lang.String getKeystoreUri() {
+ java.lang.Object ref = keystoreUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keystoreUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public com.google.protobuf.ByteString getKeystoreUriBytes() {
+ java.lang.Object ref = keystoreUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keystoreUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRUSTSTORE_URI_FIELD_NUMBER = 5;
+ private volatile java.lang.Object truststoreUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public java.lang.String getTruststoreUri() {
+ java.lang.Object ref = truststoreUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ truststoreUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public com.google.protobuf.ByteString getTruststoreUriBytes() {
+ java.lang.Object ref = truststoreUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ truststoreUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KEYSTORE_PASSWORD_URI_FIELD_NUMBER = 6;
+ private volatile java.lang.Object keystorePasswordUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public java.lang.String getKeystorePasswordUri() {
+ java.lang.Object ref = keystorePasswordUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keystorePasswordUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() {
+ java.lang.Object ref = keystorePasswordUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keystorePasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KEY_PASSWORD_URI_FIELD_NUMBER = 7;
+ private volatile java.lang.Object keyPasswordUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public java.lang.String getKeyPasswordUri() {
+ java.lang.Object ref = keyPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyPasswordUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public com.google.protobuf.ByteString getKeyPasswordUriBytes() {
+ java.lang.Object ref = keyPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER = 8;
+ private volatile java.lang.Object truststorePasswordUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public java.lang.String getTruststorePasswordUri() {
+ java.lang.Object ref = truststorePasswordUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ truststorePasswordUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public com.google.protobuf.ByteString getTruststorePasswordUriBytes() {
+ java.lang.Object ref = truststorePasswordUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ truststorePasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CROSS_REALM_TRUST_REALM_FIELD_NUMBER = 9;
+ private volatile java.lang.Object crossRealmTrustRealm_;
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public java.lang.String getCrossRealmTrustRealm() {
+ java.lang.Object ref = crossRealmTrustRealm_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustRealm_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() {
+ java.lang.Object ref = crossRealmTrustRealm_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustRealm_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CROSS_REALM_TRUST_KDC_FIELD_NUMBER = 10;
+ private volatile java.lang.Object crossRealmTrustKdc_;
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public java.lang.String getCrossRealmTrustKdc() {
+ java.lang.Object ref = crossRealmTrustKdc_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustKdc_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() {
+ java.lang.Object ref = crossRealmTrustKdc_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustKdc_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER = 11;
+ private volatile java.lang.Object crossRealmTrustAdminServer_;
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public java.lang.String getCrossRealmTrustAdminServer() {
+ java.lang.Object ref = crossRealmTrustAdminServer_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustAdminServer_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() {
+ java.lang.Object ref = crossRealmTrustAdminServer_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustAdminServer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER = 12;
+ private volatile java.lang.Object crossRealmTrustSharedPasswordUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public java.lang.String getCrossRealmTrustSharedPasswordUri() {
+ java.lang.Object ref = crossRealmTrustSharedPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustSharedPasswordUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() {
+ java.lang.Object ref = crossRealmTrustSharedPasswordUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustSharedPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KDC_DB_KEY_URI_FIELD_NUMBER = 13;
+ private volatile java.lang.Object kdcDbKeyUri_;
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public java.lang.String getKdcDbKeyUri() {
+ java.lang.Object ref = kdcDbKeyUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kdcDbKeyUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public com.google.protobuf.ByteString getKdcDbKeyUriBytes() {
+ java.lang.Object ref = kdcDbKeyUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kdcDbKeyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TGT_LIFETIME_HOURS_FIELD_NUMBER = 14;
+ private int tgtLifetimeHours_;
+ /**
+ *
+ *
+ *
+ * Optional. The lifetime of the ticket granting ticket, in hours.
+ * If not specified, or user specifies 0, then default value 10
+ * will be used.
+ *
+ *
+ * int32 tgt_lifetime_hours = 14;
+ */
+ public int getTgtLifetimeHours() {
+ return tgtLifetimeHours_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (enableKerberos_ != false) {
+ output.writeBool(1, enableKerberos_);
+ }
+ if (!getRootPrincipalPasswordUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootPrincipalPasswordUri_);
+ }
+ if (!getKmsKeyUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyUri_);
+ }
+ if (!getKeystoreUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keystoreUri_);
+ }
+ if (!getTruststoreUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, truststoreUri_);
+ }
+ if (!getKeystorePasswordUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keystorePasswordUri_);
+ }
+ if (!getKeyPasswordUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, keyPasswordUri_);
+ }
+ if (!getTruststorePasswordUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, truststorePasswordUri_);
+ }
+ if (!getCrossRealmTrustRealmBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crossRealmTrustRealm_);
+ }
+ if (!getCrossRealmTrustKdcBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, crossRealmTrustKdc_);
+ }
+ if (!getCrossRealmTrustAdminServerBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crossRealmTrustAdminServer_);
+ }
+ if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 12, crossRealmTrustSharedPasswordUri_);
+ }
+ if (!getKdcDbKeyUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, kdcDbKeyUri_);
+ }
+ if (tgtLifetimeHours_ != 0) {
+ output.writeInt32(14, tgtLifetimeHours_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enableKerberos_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableKerberos_);
+ }
+ if (!getRootPrincipalPasswordUriBytes().isEmpty()) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPrincipalPasswordUri_);
+ }
+ if (!getKmsKeyUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyUri_);
+ }
+ if (!getKeystoreUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keystoreUri_);
+ }
+ if (!getTruststoreUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, truststoreUri_);
+ }
+ if (!getKeystorePasswordUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keystorePasswordUri_);
+ }
+ if (!getKeyPasswordUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, keyPasswordUri_);
+ }
+ if (!getTruststorePasswordUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, truststorePasswordUri_);
+ }
+ if (!getCrossRealmTrustRealmBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crossRealmTrustRealm_);
+ }
+ if (!getCrossRealmTrustKdcBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, crossRealmTrustKdc_);
+ }
+ if (!getCrossRealmTrustAdminServerBytes().isEmpty()) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crossRealmTrustAdminServer_);
+ }
+ if (!getCrossRealmTrustSharedPasswordUriBytes().isEmpty()) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 12, crossRealmTrustSharedPasswordUri_);
+ }
+ if (!getKdcDbKeyUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kdcDbKeyUri_);
+ }
+ if (tgtLifetimeHours_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, tgtLifetimeHours_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.KerberosConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.KerberosConfig other =
+ (com.google.cloud.dataproc.v1beta2.KerberosConfig) obj;
+
+ if (getEnableKerberos() != other.getEnableKerberos()) return false;
+ if (!getRootPrincipalPasswordUri().equals(other.getRootPrincipalPasswordUri())) return false;
+ if (!getKmsKeyUri().equals(other.getKmsKeyUri())) return false;
+ if (!getKeystoreUri().equals(other.getKeystoreUri())) return false;
+ if (!getTruststoreUri().equals(other.getTruststoreUri())) return false;
+ if (!getKeystorePasswordUri().equals(other.getKeystorePasswordUri())) return false;
+ if (!getKeyPasswordUri().equals(other.getKeyPasswordUri())) return false;
+ if (!getTruststorePasswordUri().equals(other.getTruststorePasswordUri())) return false;
+ if (!getCrossRealmTrustRealm().equals(other.getCrossRealmTrustRealm())) return false;
+ if (!getCrossRealmTrustKdc().equals(other.getCrossRealmTrustKdc())) return false;
+ if (!getCrossRealmTrustAdminServer().equals(other.getCrossRealmTrustAdminServer()))
+ return false;
+ if (!getCrossRealmTrustSharedPasswordUri().equals(other.getCrossRealmTrustSharedPasswordUri()))
+ return false;
+ if (!getKdcDbKeyUri().equals(other.getKdcDbKeyUri())) return false;
+ if (getTgtLifetimeHours() != other.getTgtLifetimeHours()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLE_KERBEROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKerberos());
+ hash = (37 * hash) + ROOT_PRINCIPAL_PASSWORD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getRootPrincipalPasswordUri().hashCode();
+ hash = (37 * hash) + KMS_KEY_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyUri().hashCode();
+ hash = (37 * hash) + KEYSTORE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getKeystoreUri().hashCode();
+ hash = (37 * hash) + TRUSTSTORE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getTruststoreUri().hashCode();
+ hash = (37 * hash) + KEYSTORE_PASSWORD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getKeystorePasswordUri().hashCode();
+ hash = (37 * hash) + KEY_PASSWORD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getKeyPasswordUri().hashCode();
+ hash = (37 * hash) + TRUSTSTORE_PASSWORD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getTruststorePasswordUri().hashCode();
+ hash = (37 * hash) + CROSS_REALM_TRUST_REALM_FIELD_NUMBER;
+ hash = (53 * hash) + getCrossRealmTrustRealm().hashCode();
+ hash = (37 * hash) + CROSS_REALM_TRUST_KDC_FIELD_NUMBER;
+ hash = (53 * hash) + getCrossRealmTrustKdc().hashCode();
+ hash = (37 * hash) + CROSS_REALM_TRUST_ADMIN_SERVER_FIELD_NUMBER;
+ hash = (53 * hash) + getCrossRealmTrustAdminServer().hashCode();
+ hash = (37 * hash) + CROSS_REALM_TRUST_SHARED_PASSWORD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getCrossRealmTrustSharedPasswordUri().hashCode();
+ hash = (37 * hash) + KDC_DB_KEY_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getKdcDbKeyUri().hashCode();
+ hash = (37 * hash) + TGT_LIFETIME_HOURS_FIELD_NUMBER;
+ hash = (53 * hash) + getTgtLifetimeHours();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.KerberosConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies Kerberos related configuration.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.KerberosConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.KerberosConfig)
+ com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.class,
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.KerberosConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ enableKerberos_ = false;
+
+ rootPrincipalPasswordUri_ = "";
+
+ kmsKeyUri_ = "";
+
+ keystoreUri_ = "";
+
+ truststoreUri_ = "";
+
+ keystorePasswordUri_ = "";
+
+ keyPasswordUri_ = "";
+
+ truststorePasswordUri_ = "";
+
+ crossRealmTrustRealm_ = "";
+
+ crossRealmTrustKdc_ = "";
+
+ crossRealmTrustAdminServer_ = "";
+
+ crossRealmTrustSharedPasswordUri_ = "";
+
+ kdcDbKeyUri_ = "";
+
+ tgtLifetimeHours_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_KerberosConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig build() {
+ com.google.cloud.dataproc.v1beta2.KerberosConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.KerberosConfig result =
+ new com.google.cloud.dataproc.v1beta2.KerberosConfig(this);
+ result.enableKerberos_ = enableKerberos_;
+ result.rootPrincipalPasswordUri_ = rootPrincipalPasswordUri_;
+ result.kmsKeyUri_ = kmsKeyUri_;
+ result.keystoreUri_ = keystoreUri_;
+ result.truststoreUri_ = truststoreUri_;
+ result.keystorePasswordUri_ = keystorePasswordUri_;
+ result.keyPasswordUri_ = keyPasswordUri_;
+ result.truststorePasswordUri_ = truststorePasswordUri_;
+ result.crossRealmTrustRealm_ = crossRealmTrustRealm_;
+ result.crossRealmTrustKdc_ = crossRealmTrustKdc_;
+ result.crossRealmTrustAdminServer_ = crossRealmTrustAdminServer_;
+ result.crossRealmTrustSharedPasswordUri_ = crossRealmTrustSharedPasswordUri_;
+ result.kdcDbKeyUri_ = kdcDbKeyUri_;
+ result.tgtLifetimeHours_ = tgtLifetimeHours_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.KerberosConfig) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.KerberosConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.KerberosConfig other) {
+ if (other == com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance())
+ return this;
+ if (other.getEnableKerberos() != false) {
+ setEnableKerberos(other.getEnableKerberos());
+ }
+ if (!other.getRootPrincipalPasswordUri().isEmpty()) {
+ rootPrincipalPasswordUri_ = other.rootPrincipalPasswordUri_;
+ onChanged();
+ }
+ if (!other.getKmsKeyUri().isEmpty()) {
+ kmsKeyUri_ = other.kmsKeyUri_;
+ onChanged();
+ }
+ if (!other.getKeystoreUri().isEmpty()) {
+ keystoreUri_ = other.keystoreUri_;
+ onChanged();
+ }
+ if (!other.getTruststoreUri().isEmpty()) {
+ truststoreUri_ = other.truststoreUri_;
+ onChanged();
+ }
+ if (!other.getKeystorePasswordUri().isEmpty()) {
+ keystorePasswordUri_ = other.keystorePasswordUri_;
+ onChanged();
+ }
+ if (!other.getKeyPasswordUri().isEmpty()) {
+ keyPasswordUri_ = other.keyPasswordUri_;
+ onChanged();
+ }
+ if (!other.getTruststorePasswordUri().isEmpty()) {
+ truststorePasswordUri_ = other.truststorePasswordUri_;
+ onChanged();
+ }
+ if (!other.getCrossRealmTrustRealm().isEmpty()) {
+ crossRealmTrustRealm_ = other.crossRealmTrustRealm_;
+ onChanged();
+ }
+ if (!other.getCrossRealmTrustKdc().isEmpty()) {
+ crossRealmTrustKdc_ = other.crossRealmTrustKdc_;
+ onChanged();
+ }
+ if (!other.getCrossRealmTrustAdminServer().isEmpty()) {
+ crossRealmTrustAdminServer_ = other.crossRealmTrustAdminServer_;
+ onChanged();
+ }
+ if (!other.getCrossRealmTrustSharedPasswordUri().isEmpty()) {
+ crossRealmTrustSharedPasswordUri_ = other.crossRealmTrustSharedPasswordUri_;
+ onChanged();
+ }
+ if (!other.getKdcDbKeyUri().isEmpty()) {
+ kdcDbKeyUri_ = other.kdcDbKeyUri_;
+ onChanged();
+ }
+ if (other.getTgtLifetimeHours() != 0) {
+ setTgtLifetimeHours(other.getTgtLifetimeHours());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.KerberosConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dataproc.v1beta2.KerberosConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean enableKerberos_;
+ /**
+ *
+ *
+ *
+ * Optional. Flag to indicate whether to Kerberize the cluster.
+ *
+ *
+ * bool enable_kerberos = 1;
+ */
+ public boolean getEnableKerberos() {
+ return enableKerberos_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Flag to indicate whether to Kerberize the cluster.
+ *
+ *
+ * bool enable_kerberos = 1;
+ */
+ public Builder setEnableKerberos(boolean value) {
+
+ enableKerberos_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Flag to indicate whether to Kerberize the cluster.
+ *
+ *
+ * bool enable_kerberos = 1;
+ */
+ public Builder clearEnableKerberos() {
+
+ enableKerberos_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object rootPrincipalPasswordUri_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public java.lang.String getRootPrincipalPasswordUri() {
+ java.lang.Object ref = rootPrincipalPasswordUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ rootPrincipalPasswordUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes() {
+ java.lang.Object ref = rootPrincipalPasswordUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ rootPrincipalPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public Builder setRootPrincipalPasswordUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ rootPrincipalPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public Builder clearRootPrincipalPasswordUri() {
+
+ rootPrincipalPasswordUri_ = getDefaultInstance().getRootPrincipalPasswordUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ public Builder setRootPrincipalPasswordUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ rootPrincipalPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kmsKeyUri_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public java.lang.String getKmsKeyUri() {
+ java.lang.Object ref = kmsKeyUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kmsKeyUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public com.google.protobuf.ByteString getKmsKeyUriBytes() {
+ java.lang.Object ref = kmsKeyUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kmsKeyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public Builder setKmsKeyUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kmsKeyUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public Builder clearKmsKeyUri() {
+
+ kmsKeyUri_ = getDefaultInstance().getKmsKeyUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ public Builder setKmsKeyUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kmsKeyUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object keystoreUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public java.lang.String getKeystoreUri() {
+ java.lang.Object ref = keystoreUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keystoreUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public com.google.protobuf.ByteString getKeystoreUriBytes() {
+ java.lang.Object ref = keystoreUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keystoreUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public Builder setKeystoreUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ keystoreUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public Builder clearKeystoreUri() {
+
+ keystoreUri_ = getDefaultInstance().getKeystoreUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ public Builder setKeystoreUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ keystoreUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object truststoreUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public java.lang.String getTruststoreUri() {
+ java.lang.Object ref = truststoreUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ truststoreUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public com.google.protobuf.ByteString getTruststoreUriBytes() {
+ java.lang.Object ref = truststoreUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ truststoreUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public Builder setTruststoreUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ truststoreUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public Builder clearTruststoreUri() {
+
+ truststoreUri_ = getDefaultInstance().getTruststoreUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ public Builder setTruststoreUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ truststoreUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object keystorePasswordUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public java.lang.String getKeystorePasswordUri() {
+ java.lang.Object ref = keystorePasswordUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keystorePasswordUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public com.google.protobuf.ByteString getKeystorePasswordUriBytes() {
+ java.lang.Object ref = keystorePasswordUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keystorePasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public Builder setKeystorePasswordUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ keystorePasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public Builder clearKeystorePasswordUri() {
+
+ keystorePasswordUri_ = getDefaultInstance().getKeystorePasswordUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ public Builder setKeystorePasswordUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ keystorePasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object keyPasswordUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public java.lang.String getKeyPasswordUri() {
+ java.lang.Object ref = keyPasswordUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyPasswordUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public com.google.protobuf.ByteString getKeyPasswordUriBytes() {
+ java.lang.Object ref = keyPasswordUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keyPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public Builder setKeyPasswordUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ keyPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public Builder clearKeyPasswordUri() {
+
+ keyPasswordUri_ = getDefaultInstance().getKeyPasswordUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ public Builder setKeyPasswordUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ keyPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object truststorePasswordUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public java.lang.String getTruststorePasswordUri() {
+ java.lang.Object ref = truststorePasswordUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ truststorePasswordUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public com.google.protobuf.ByteString getTruststorePasswordUriBytes() {
+ java.lang.Object ref = truststorePasswordUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ truststorePasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public Builder setTruststorePasswordUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ truststorePasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public Builder clearTruststorePasswordUri() {
+
+ truststorePasswordUri_ = getDefaultInstance().getTruststorePasswordUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ public Builder setTruststorePasswordUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ truststorePasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object crossRealmTrustRealm_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public java.lang.String getCrossRealmTrustRealm() {
+ java.lang.Object ref = crossRealmTrustRealm_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustRealm_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustRealmBytes() {
+ java.lang.Object ref = crossRealmTrustRealm_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustRealm_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public Builder setCrossRealmTrustRealm(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crossRealmTrustRealm_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public Builder clearCrossRealmTrustRealm() {
+
+ crossRealmTrustRealm_ = getDefaultInstance().getCrossRealmTrustRealm();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ public Builder setCrossRealmTrustRealmBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crossRealmTrustRealm_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object crossRealmTrustKdc_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public java.lang.String getCrossRealmTrustKdc() {
+ java.lang.Object ref = crossRealmTrustKdc_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustKdc_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustKdcBytes() {
+ java.lang.Object ref = crossRealmTrustKdc_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustKdc_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public Builder setCrossRealmTrustKdc(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crossRealmTrustKdc_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public Builder clearCrossRealmTrustKdc() {
+
+ crossRealmTrustKdc_ = getDefaultInstance().getCrossRealmTrustKdc();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ public Builder setCrossRealmTrustKdcBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crossRealmTrustKdc_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object crossRealmTrustAdminServer_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public java.lang.String getCrossRealmTrustAdminServer() {
+ java.lang.Object ref = crossRealmTrustAdminServer_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustAdminServer_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes() {
+ java.lang.Object ref = crossRealmTrustAdminServer_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustAdminServer_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public Builder setCrossRealmTrustAdminServer(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crossRealmTrustAdminServer_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public Builder clearCrossRealmTrustAdminServer() {
+
+ crossRealmTrustAdminServer_ = getDefaultInstance().getCrossRealmTrustAdminServer();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ public Builder setCrossRealmTrustAdminServerBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crossRealmTrustAdminServer_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object crossRealmTrustSharedPasswordUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public java.lang.String getCrossRealmTrustSharedPasswordUri() {
+ java.lang.Object ref = crossRealmTrustSharedPasswordUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crossRealmTrustSharedPasswordUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes() {
+ java.lang.Object ref = crossRealmTrustSharedPasswordUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ crossRealmTrustSharedPasswordUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public Builder setCrossRealmTrustSharedPasswordUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crossRealmTrustSharedPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public Builder clearCrossRealmTrustSharedPasswordUri() {
+
+ crossRealmTrustSharedPasswordUri_ =
+ getDefaultInstance().getCrossRealmTrustSharedPasswordUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ public Builder setCrossRealmTrustSharedPasswordUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crossRealmTrustSharedPasswordUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kdcDbKeyUri_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public java.lang.String getKdcDbKeyUri() {
+ java.lang.Object ref = kdcDbKeyUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kdcDbKeyUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public com.google.protobuf.ByteString getKdcDbKeyUriBytes() {
+ java.lang.Object ref = kdcDbKeyUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ kdcDbKeyUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public Builder setKdcDbKeyUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kdcDbKeyUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public Builder clearKdcDbKeyUri() {
+
+ kdcDbKeyUri_ = getDefaultInstance().getKdcDbKeyUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ public Builder setKdcDbKeyUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kdcDbKeyUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int tgtLifetimeHours_;
+ /**
+ *
+ *
+ *
+ * Optional. The lifetime of the ticket granting ticket, in hours.
+ * If not specified, or user specifies 0, then default value 10
+ * will be used.
+ *
+ *
+ * int32 tgt_lifetime_hours = 14;
+ */
+ public int getTgtLifetimeHours() {
+ return tgtLifetimeHours_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The lifetime of the ticket granting ticket, in hours.
+ * If not specified, or user specifies 0, then default value 10
+ * will be used.
+ *
+ *
+ * int32 tgt_lifetime_hours = 14;
+ */
+ public Builder setTgtLifetimeHours(int value) {
+
+ tgtLifetimeHours_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The lifetime of the ticket granting ticket, in hours.
+ * If not specified, or user specifies 0, then default value 10
+ * will be used.
+ *
+ *
+ * int32 tgt_lifetime_hours = 14;
+ */
+ public Builder clearTgtLifetimeHours() {
+
+ tgtLifetimeHours_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.KerberosConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.KerberosConfig)
+ private static final com.google.cloud.dataproc.v1beta2.KerberosConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.KerberosConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.KerberosConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public KerberosConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new KerberosConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java
new file mode 100644
index 000000000000..664e94992c17
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/KerberosConfigOrBuilder.java
@@ -0,0 +1,322 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface KerberosConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.KerberosConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Flag to indicate whether to Kerberize the cluster.
+ *
+ *
+ * bool enable_kerberos = 1;
+ */
+ boolean getEnableKerberos();
+
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ java.lang.String getRootPrincipalPasswordUri();
+ /**
+ *
+ *
+ *
+ * Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ * principal password.
+ *
+ *
+ * string root_principal_password_uri = 2;
+ */
+ com.google.protobuf.ByteString getRootPrincipalPasswordUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ java.lang.String getKmsKeyUri();
+ /**
+ *
+ *
+ *
+ * Required. The uri of the KMS key used to encrypt various sensitive
+ * files.
+ *
+ *
+ * string kms_key_uri = 3;
+ */
+ com.google.protobuf.ByteString getKmsKeyUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ java.lang.String getKeystoreUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the keystore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string keystore_uri = 4;
+ */
+ com.google.protobuf.ByteString getKeystoreUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ java.lang.String getTruststoreUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of the truststore file used for SSL
+ * encryption. If not provided, Dataproc will provide a self-signed
+ * certificate.
+ *
+ *
+ * string truststore_uri = 5;
+ */
+ com.google.protobuf.ByteString getTruststoreUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ java.lang.String getKeystorePasswordUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided keystore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string keystore_password_uri = 6;
+ */
+ com.google.protobuf.ByteString getKeystorePasswordUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ java.lang.String getKeyPasswordUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided key. For the self-signed certificate, this
+ * password is generated by Dataproc.
+ *
+ *
+ * string key_password_uri = 7;
+ */
+ com.google.protobuf.ByteString getKeyPasswordUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ java.lang.String getTruststorePasswordUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * password to the user provided truststore. For the self-signed certificate,
+ * this password is generated by Dataproc.
+ *
+ *
+ * string truststore_password_uri = 8;
+ */
+ com.google.protobuf.ByteString getTruststorePasswordUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ java.lang.String getCrossRealmTrustRealm();
+ /**
+ *
+ *
+ *
+ * Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ * the user enable cross realm trust.
+ *
+ *
+ * string cross_realm_trust_realm = 9;
+ */
+ com.google.protobuf.ByteString getCrossRealmTrustRealmBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ java.lang.String getCrossRealmTrustKdc();
+ /**
+ *
+ *
+ *
+ * Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ * realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_kdc = 10;
+ */
+ com.google.protobuf.ByteString getCrossRealmTrustKdcBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ java.lang.String getCrossRealmTrustAdminServer();
+ /**
+ *
+ *
+ *
+ * Optional. The admin server (IP or hostname) for the remote trusted realm in
+ * a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_admin_server = 11;
+ */
+ com.google.protobuf.ByteString getCrossRealmTrustAdminServerBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ java.lang.String getCrossRealmTrustSharedPasswordUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * shared password between the on-cluster Kerberos realm and the remote
+ * trusted realm, in a cross realm trust relationship.
+ *
+ *
+ * string cross_realm_trust_shared_password_uri = 12;
+ */
+ com.google.protobuf.ByteString getCrossRealmTrustSharedPasswordUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ java.lang.String getKdcDbKeyUri();
+ /**
+ *
+ *
+ *
+ * Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ * master key of the KDC database.
+ *
+ *
+ * string kdc_db_key_uri = 13;
+ */
+ com.google.protobuf.ByteString getKdcDbKeyUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The lifetime of the ticket granting ticket, in hours.
+ * If not specified, or user specifies 0, then default value 10
+ * will be used.
+ *
+ *
+ * int32 tgt_lifetime_hours = 14;
+ */
+ int getTgtLifetimeHours();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java
new file mode 100644
index 000000000000..47a9384520c1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequest.java
@@ -0,0 +1,868 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A request to list autoscaling policies in a project.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest}
+ */
+public final class ListAutoscalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ ListAutoscalingPoliciesRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListAutoscalingPoliciesRequest.newBuilder() to construct.
+ private ListAutoscalingPoliciesRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListAutoscalingPoliciesRequest() {
+ parent_ = "";
+ pageToken_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListAutoscalingPoliciesRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ parent_ = s;
+ break;
+ }
+ case 16:
+ {
+ pageSize_ = input.readInt32();
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.class,
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * Optional. The maximum number of results to return in each response.
+ *
+ *
+ * int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest other =
+ (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A request to list autoscaling policies in a project.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.class,
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ parent_ = "";
+
+ pageSize_ = 0;
+
+ pageToken_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest build() {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest buildPartial() {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest result =
+ new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest(this);
+ result.parent_ = parent_;
+ result.pageSize_ = pageSize_;
+ result.pageToken_ = pageToken_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest.getDefaultInstance())
+ return this;
+ if (!other.getParent().isEmpty()) {
+ parent_ = other.parent_;
+ onChanged();
+ }
+ if (other.getPageSize() != 0) {
+ setPageSize(other.getPageSize());
+ }
+ if (!other.getPageToken().isEmpty()) {
+ pageToken_ = other.pageToken_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * Optional. The maximum number of results to return in each response.
+ *
+ *
+ * int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The maximum number of results to return in each response.
+ *
+ *
+ * int32 page_size = 2;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The maximum number of results to return in each response.
+ *
+ *
+ * int32 page_size = 2;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ private static final com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListAutoscalingPoliciesRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ListAutoscalingPoliciesRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java
new file mode 100644
index 000000000000..c5ef4140728d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesRequestOrBuilder.java
@@ -0,0 +1,69 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface ListAutoscalingPoliciesRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * Required. The "resource name" of the region, as described
+ * in https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ *
+ *
+ * string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum number of results to return in each response.
+ *
+ *
+ * int32 page_size = 2;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ *
+ * Optional. The page token, returned by a previous call, to request the
+ * next page of results.
+ *
+ *
+ * string page_token = 3;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java
new file mode 100644
index 000000000000..2f5031e15b3d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponse.java
@@ -0,0 +1,1116 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A response to a request to list autoscaling policies in a project.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse}
+ */
+public final class ListAutoscalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ ListAutoscalingPoliciesResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListAutoscalingPoliciesResponse.newBuilder() to construct.
+ private ListAutoscalingPoliciesResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListAutoscalingPoliciesResponse() {
+ policies_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListAutoscalingPoliciesResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ policies_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ policies_.add(
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ nextPageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ policies_ = java.util.Collections.unmodifiableList(policies_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.class,
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int POLICIES_FIELD_NUMBER = 1;
+ private java.util.List policies_;
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public java.util.List getPoliciesList() {
+ return policies_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public java.util.List extends com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPoliciesOrBuilderList() {
+ return policies_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public int getPoliciesCount() {
+ return policies_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index) {
+ return policies_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(
+ int index) {
+ return policies_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < policies_.size(); i++) {
+ output.writeMessage(1, policies_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < policies_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policies_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse other =
+ (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) obj;
+
+ if (!getPoliciesList().equals(other.getPoliciesList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getPoliciesCount() > 0) {
+ hash = (37 * hash) + POLICIES_FIELD_NUMBER;
+ hash = (53 * hash) + getPoliciesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A response to a request to list autoscaling policies in a project.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.class,
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getPoliciesFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (policiesBuilder_ == null) {
+ policies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ policiesBuilder_.clear();
+ }
+ nextPageToken_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_ListAutoscalingPoliciesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse build() {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse buildPartial() {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse result =
+ new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (policiesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ policies_ = java.util.Collections.unmodifiableList(policies_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.policies_ = policies_;
+ } else {
+ result.policies_ = policiesBuilder_.build();
+ }
+ result.nextPageToken_ = nextPageToken_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse.getDefaultInstance())
+ return this;
+ if (policiesBuilder_ == null) {
+ if (!other.policies_.isEmpty()) {
+ if (policies_.isEmpty()) {
+ policies_ = other.policies_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensurePoliciesIsMutable();
+ policies_.addAll(other.policies_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.policies_.isEmpty()) {
+ if (policiesBuilder_.isEmpty()) {
+ policiesBuilder_.dispose();
+ policiesBuilder_ = null;
+ policies_ = other.policies_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ policiesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getPoliciesFieldBuilder()
+ : null;
+ } else {
+ policiesBuilder_.addAllMessages(other.policies_);
+ }
+ }
+ }
+ if (!other.getNextPageToken().isEmpty()) {
+ nextPageToken_ = other.nextPageToken_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List policies_ =
+ java.util.Collections.emptyList();
+
+ private void ensurePoliciesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ policies_ =
+ new java.util.ArrayList(policies_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ policiesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public java.util.List getPoliciesList() {
+ if (policiesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(policies_);
+ } else {
+ return policiesBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public int getPoliciesCount() {
+ if (policiesBuilder_ == null) {
+ return policies_.size();
+ } else {
+ return policiesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index) {
+ if (policiesBuilder_ == null) {
+ return policies_.get(index);
+ } else {
+ return policiesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder setPolicies(
+ int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePoliciesIsMutable();
+ policies_.set(index, value);
+ onChanged();
+ } else {
+ policiesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder setPolicies(
+ int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) {
+ if (policiesBuilder_ == null) {
+ ensurePoliciesIsMutable();
+ policies_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ policiesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder addPolicies(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePoliciesIsMutable();
+ policies_.add(value);
+ onChanged();
+ } else {
+ policiesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder addPolicies(
+ int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePoliciesIsMutable();
+ policies_.add(index, value);
+ onChanged();
+ } else {
+ policiesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder addPolicies(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) {
+ if (policiesBuilder_ == null) {
+ ensurePoliciesIsMutable();
+ policies_.add(builderForValue.build());
+ onChanged();
+ } else {
+ policiesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder addPolicies(
+ int index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) {
+ if (policiesBuilder_ == null) {
+ ensurePoliciesIsMutable();
+ policies_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ policiesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder addAllPolicies(
+ java.lang.Iterable extends com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> values) {
+ if (policiesBuilder_ == null) {
+ ensurePoliciesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policies_);
+ onChanged();
+ } else {
+ policiesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder clearPolicies() {
+ if (policiesBuilder_ == null) {
+ policies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ policiesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public Builder removePolicies(int index) {
+ if (policiesBuilder_ == null) {
+ ensurePoliciesIsMutable();
+ policies_.remove(index);
+ onChanged();
+ } else {
+ policiesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPoliciesBuilder(
+ int index) {
+ return getPoliciesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(
+ int index) {
+ if (policiesBuilder_ == null) {
+ return policies_.get(index);
+ } else {
+ return policiesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public java.util.List extends com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPoliciesOrBuilderList() {
+ if (policiesBuilder_ != null) {
+ return policiesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(policies_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder addPoliciesBuilder() {
+ return getPoliciesFieldBuilder()
+ .addBuilder(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder addPoliciesBuilder(
+ int index) {
+ return getPoliciesFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ public java.util.List
+ getPoliciesBuilderList() {
+ return getPoliciesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPoliciesFieldBuilder() {
+ if (policiesBuilder_ == null) {
+ policiesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>(
+ policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ policies_ = null;
+ }
+ return policiesBuilder_;
+ }
+
+ private java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ private static final com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListAutoscalingPoliciesResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ListAutoscalingPoliciesResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java
new file mode 100644
index 000000000000..3eab0b7997a4
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ListAutoscalingPoliciesResponseOrBuilder.java
@@ -0,0 +1,85 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface ListAutoscalingPoliciesResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ java.util.List getPoliciesList();
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicies(int index);
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ int getPoliciesCount();
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ java.util.List extends com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPoliciesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Output only. Autoscaling policies list.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.AutoscalingPolicy policies = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPoliciesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ *
+ * Output only. This token is included in the response if there are more
+ * results to fetch.
+ *
+ *
+ * string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java
index 4252b713e263..29298dee1655 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJob.java
@@ -304,8 +304,8 @@ public JobTypeCase getJobTypeCase() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -332,8 +332,8 @@ public java.lang.String getStepId() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -1457,8 +1457,8 @@ public Builder clearJobType() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -1485,8 +1485,8 @@ public java.lang.String getStepId() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -1513,8 +1513,8 @@ public com.google.protobuf.ByteString getStepIdBytes() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -1539,8 +1539,8 @@ public Builder setStepId(java.lang.String value) {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -1562,8 +1562,8 @@ public Builder clearStepId() {
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java
index e5c6e1932f39..084575b7888d 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/OrderedJobOrBuilder.java
@@ -16,8 +16,8 @@ public interface OrderedJobOrBuilder
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
@@ -34,8 +34,8 @@ public interface OrderedJobOrBuilder
* within the template.
* The step id is used as prefix for job id, as job
* `goog-dataproc-workflow-step-id` label, and in
- * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- * field from other steps.
+ * [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ * steps.
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java
new file mode 100644
index 000000000000..4be77cfa4552
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinity.java
@@ -0,0 +1,1147 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ReservationAffinity}
+ */
+public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.ReservationAffinity)
+ ReservationAffinityOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReservationAffinity.newBuilder() to construct.
+ private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ReservationAffinity() {
+ consumeReservationType_ = 0;
+ key_ = "";
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ReservationAffinity(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ int rawValue = input.readEnum();
+
+ consumeReservationType_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ values_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ values_.add(s);
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ values_ = values_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.class,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Indicates whether to consume capacity from an reservation or not.
+ *
+ *
+ * Protobuf enum {@code google.cloud.dataproc.v1beta2.ReservationAffinity.Type}
+ */
+ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+ /** TYPE_UNSPECIFIED = 0; */
+ TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Do not consume from any allocated capacity.
+ *
+ *
+ * NO_RESERVATION = 1;
+ */
+ NO_RESERVATION(1),
+ /**
+ *
+ *
+ *
+ * Consume any reservation available.
+ *
+ *
+ * ANY_RESERVATION = 2;
+ */
+ ANY_RESERVATION(2),
+ /**
+ *
+ *
+ *
+ * Must consume from a specific reservation. Must specify key value fields
+ * for specifying the reservations.
+ *
+ *
+ * SPECIFIC_RESERVATION = 3;
+ */
+ SPECIFIC_RESERVATION(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /** TYPE_UNSPECIFIED = 0; */
+ public static final int TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Do not consume from any allocated capacity.
+ *
+ *
+ * NO_RESERVATION = 1;
+ */
+ public static final int NO_RESERVATION_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Consume any reservation available.
+ *
+ *
+ * ANY_RESERVATION = 2;
+ */
+ public static final int ANY_RESERVATION_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Must consume from a specific reservation. Must specify key value fields
+ * for specifying the reservations.
+ *
+ *
+ * SPECIFIC_RESERVATION = 3;
+ */
+ public static final int SPECIFIC_RESERVATION_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static Type valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Type forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TYPE_UNSPECIFIED;
+ case 1:
+ return NO_RESERVATION;
+ case 2:
+ return ANY_RESERVATION;
+ case 3:
+ return SPECIFIC_RESERVATION;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Type findValueByNumber(int number) {
+ return Type.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final Type[] VALUES = values();
+
+ public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Type(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1beta2.ReservationAffinity.Type)
+ }
+
+ private int bitField0_;
+ public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1;
+ private int consumeReservationType_;
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public int getConsumeReservationTypeValue() {
+ return consumeReservationType_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type result =
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.valueOf(consumeReservationType_);
+ return result == null
+ ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int KEY_FIELD_NUMBER = 2;
+ private volatile java.lang.Object key_;
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList values_;
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (consumeReservationType_
+ != com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, consumeReservationType_);
+ }
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (consumeReservationType_
+ != com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_);
+ }
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.ReservationAffinity)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity other =
+ (com.google.cloud.dataproc.v1beta2.ReservationAffinity) obj;
+
+ if (consumeReservationType_ != other.consumeReservationType_) return false;
+ if (!getKey().equals(other.getKey())) return false;
+ if (!getValuesList().equals(other.getValuesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CONSUME_RESERVATION_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + consumeReservationType_;
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Reservation Affinity for consuming Zonal reservation.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.ReservationAffinity}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.ReservationAffinity)
+ com.google.cloud.dataproc.v1beta2.ReservationAffinityOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.class,
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.ReservationAffinity.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ consumeReservationType_ = 0;
+
+ key_ = "";
+
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_ReservationAffinity_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity build() {
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity buildPartial() {
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity result =
+ new com.google.cloud.dataproc.v1beta2.ReservationAffinity(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.consumeReservationType_ = consumeReservationType_;
+ result.key_ = key_;
+ if (((bitField0_ & 0x00000004) != 0)) {
+ values_ = values_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.values_ = values_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.ReservationAffinity) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.ReservationAffinity) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.ReservationAffinity other) {
+ if (other == com.google.cloud.dataproc.v1beta2.ReservationAffinity.getDefaultInstance())
+ return this;
+ if (other.consumeReservationType_ != 0) {
+ setConsumeReservationTypeValue(other.getConsumeReservationTypeValue());
+ }
+ if (!other.getKey().isEmpty()) {
+ key_ = other.key_;
+ onChanged();
+ }
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.ReservationAffinity) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private int consumeReservationType_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public int getConsumeReservationTypeValue() {
+ return consumeReservationType_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public Builder setConsumeReservationTypeValue(int value) {
+ consumeReservationType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type result =
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.valueOf(
+ consumeReservationType_);
+ return result == null
+ ? com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public Builder setConsumeReservationType(
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ consumeReservationType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ public Builder clearConsumeReservationType() {
+
+ consumeReservationType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object key_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public com.google.protobuf.ByteString getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public Builder setKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList values_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public Builder addAllValues(java.lang.Iterable values) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.ReservationAffinity)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.ReservationAffinity)
+ private static final com.google.cloud.dataproc.v1beta2.ReservationAffinity DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.ReservationAffinity();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.ReservationAffinity getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReservationAffinity parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReservationAffinity(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.ReservationAffinity getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java
new file mode 100644
index 000000000000..9533e883c564
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ReservationAffinityOrBuilder.java
@@ -0,0 +1,95 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface ReservationAffinityOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.ReservationAffinity)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ int getConsumeReservationTypeValue();
+ /**
+ *
+ *
+ *
+ * Optional. Type of reservation to consume
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.ReservationAffinity.Type consume_reservation_type = 1;
+ *
+ */
+ com.google.cloud.dataproc.v1beta2.ReservationAffinity.Type getConsumeReservationType();
+
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ java.lang.String getKey();
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label key of reservation resource.
+ *
+ *
+ * string key = 2;
+ */
+ com.google.protobuf.ByteString getKeyBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ java.util.List getValuesList();
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ int getValuesCount();
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ java.lang.String getValues(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Corresponds to the label values of reservation resource.
+ *
+ *
+ * repeated string values = 3;
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java
new file mode 100644
index 000000000000..bb1bacf6af49
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfig.java
@@ -0,0 +1,702 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * Security related configuration, including encryption, Kerberos, etc.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.SecurityConfig}
+ */
+public final class SecurityConfig extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SecurityConfig)
+ SecurityConfigOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SecurityConfig.newBuilder() to construct.
+ private SecurityConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SecurityConfig() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SecurityConfig(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder subBuilder = null;
+ if (kerberosConfig_ != null) {
+ subBuilder = kerberosConfig_.toBuilder();
+ }
+ kerberosConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(kerberosConfig_);
+ kerberosConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.class,
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder.class);
+ }
+
+ public static final int KERBEROS_CONFIG_FIELD_NUMBER = 1;
+ private com.google.cloud.dataproc.v1beta2.KerberosConfig kerberosConfig_;
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public boolean hasKerberosConfig() {
+ return kerberosConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig() {
+ return kerberosConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance()
+ : kerberosConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder() {
+ return getKerberosConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (kerberosConfig_ != null) {
+ output.writeMessage(1, getKerberosConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (kerberosConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKerberosConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.SecurityConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.SecurityConfig other =
+ (com.google.cloud.dataproc.v1beta2.SecurityConfig) obj;
+
+ if (hasKerberosConfig() != other.hasKerberosConfig()) return false;
+ if (hasKerberosConfig()) {
+ if (!getKerberosConfig().equals(other.getKerberosConfig())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasKerberosConfig()) {
+ hash = (37 * hash) + KERBEROS_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getKerberosConfig().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.SecurityConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Security related configuration, including encryption, Kerberos, etc.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.SecurityConfig}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SecurityConfig)
+ com.google.cloud.dataproc.v1beta2.SecurityConfigOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.class,
+ com.google.cloud.dataproc.v1beta2.SecurityConfig.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.SecurityConfig.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (kerberosConfigBuilder_ == null) {
+ kerberosConfig_ = null;
+ } else {
+ kerberosConfig_ = null;
+ kerberosConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.ClustersProto
+ .internal_static_google_cloud_dataproc_v1beta2_SecurityConfig_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig build() {
+ com.google.cloud.dataproc.v1beta2.SecurityConfig result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig buildPartial() {
+ com.google.cloud.dataproc.v1beta2.SecurityConfig result =
+ new com.google.cloud.dataproc.v1beta2.SecurityConfig(this);
+ if (kerberosConfigBuilder_ == null) {
+ result.kerberosConfig_ = kerberosConfig_;
+ } else {
+ result.kerberosConfig_ = kerberosConfigBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.SecurityConfig) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.SecurityConfig) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SecurityConfig other) {
+ if (other == com.google.cloud.dataproc.v1beta2.SecurityConfig.getDefaultInstance())
+ return this;
+ if (other.hasKerberosConfig()) {
+ mergeKerberosConfig(other.getKerberosConfig());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.SecurityConfig parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dataproc.v1beta2.SecurityConfig) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.KerberosConfig kerberosConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.KerberosConfig,
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder>
+ kerberosConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public boolean hasKerberosConfig() {
+ return kerberosConfigBuilder_ != null || kerberosConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig() {
+ if (kerberosConfigBuilder_ == null) {
+ return kerberosConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance()
+ : kerberosConfig_;
+ } else {
+ return kerberosConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public Builder setKerberosConfig(com.google.cloud.dataproc.v1beta2.KerberosConfig value) {
+ if (kerberosConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ kerberosConfig_ = value;
+ onChanged();
+ } else {
+ kerberosConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public Builder setKerberosConfig(
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder builderForValue) {
+ if (kerberosConfigBuilder_ == null) {
+ kerberosConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ kerberosConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public Builder mergeKerberosConfig(com.google.cloud.dataproc.v1beta2.KerberosConfig value) {
+ if (kerberosConfigBuilder_ == null) {
+ if (kerberosConfig_ != null) {
+ kerberosConfig_ =
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.newBuilder(kerberosConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ kerberosConfig_ = value;
+ }
+ onChanged();
+ } else {
+ kerberosConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public Builder clearKerberosConfig() {
+ if (kerberosConfigBuilder_ == null) {
+ kerberosConfig_ = null;
+ onChanged();
+ } else {
+ kerberosConfig_ = null;
+ kerberosConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder getKerberosConfigBuilder() {
+
+ onChanged();
+ return getKerberosConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder() {
+ if (kerberosConfigBuilder_ != null) {
+ return kerberosConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return kerberosConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.KerberosConfig.getDefaultInstance()
+ : kerberosConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.KerberosConfig,
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder>
+ getKerberosConfigFieldBuilder() {
+ if (kerberosConfigBuilder_ == null) {
+ kerberosConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.KerberosConfig,
+ com.google.cloud.dataproc.v1beta2.KerberosConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder>(
+ getKerberosConfig(), getParentForChildren(), isClean());
+ kerberosConfig_ = null;
+ }
+ return kerberosConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.SecurityConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SecurityConfig)
+ private static final com.google.cloud.dataproc.v1beta2.SecurityConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SecurityConfig();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SecurityConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SecurityConfig parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SecurityConfig(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SecurityConfig getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java
new file mode 100644
index 000000000000..00e398836052
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SecurityConfigOrBuilder.java
@@ -0,0 +1,41 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/clusters.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface SecurityConfigOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SecurityConfig)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ boolean hasKerberosConfig();
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.KerberosConfig getKerberosConfig();
+ /**
+ *
+ *
+ *
+ * Kerberos related configuration.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.KerberosConfig kerberos_config = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.KerberosConfigOrBuilder getKerberosConfigOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java
index 671b8717dfd8..e029a58de659 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SharedProto.java
@@ -22,10 +22,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n*google/cloud/dataproc/v1beta2/shared.p"
+ "roto\022\035google.cloud.dataproc.v1beta2\032\034goo"
- + "gle/api/annotations.protoBy\n!com.google."
- + "cloud.dataproc.v1beta2B\013SharedProtoP\001ZEg"
- + "oogle.golang.org/genproto/googleapis/clo"
- + "ud/dataproc/v1beta2;dataprocb\006proto3"
+ + "gle/api/annotations.proto*\225\001\n\tComponent\022"
+ + "\031\n\025COMPONENT_UNSPECIFIED\020\000\022\014\n\010ANACONDA\020\005"
+ + "\022\t\n\005DRUID\020\t\022\020\n\014HIVE_WEBHCAT\020\003\022\013\n\007JUPYTER"
+ + "\020\001\022\014\n\010KERBEROS\020\007\022\n\n\006PRESTO\020\006\022\014\n\010ZEPPELIN"
+ + "\020\004\022\r\n\tZOOKEEPER\020\010By\n!com.google.cloud.da"
+ + "taproc.v1beta2B\013SharedProtoP\001ZEgoogle.go"
+ + "lang.org/genproto/googleapis/cloud/datap"
+ + "roc/v1beta2;dataprocb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java
index 61a13b657ef8..54fb584ed91e 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfig.java
@@ -24,6 +24,7 @@ private SoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder
private SoftwareConfig() {
imageVersion_ = "";
+ optionalComponents_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -72,6 +73,31 @@ private SoftwareConfig(
properties_.getMutableMap().put(properties__.getKey(), properties__.getValue());
break;
}
+ case 24:
+ {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ optionalComponents_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ optionalComponents_.add(rawValue);
+ break;
+ }
+ case 26:
+ {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while (input.getBytesUntilLimit() > 0) {
+ int rawValue = input.readEnum();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ optionalComponents_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ optionalComponents_.add(rawValue);
+ }
+ input.popLimit(oldLimit);
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -86,6 +112,9 @@ private SoftwareConfig(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -130,7 +159,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -156,7 +185,7 @@ public java.lang.String getImageVersion() {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -203,8 +232,8 @@ public int getPropertiesCount() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -237,8 +266,8 @@ public java.util.Map getProperties() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -263,8 +292,8 @@ public java.util.Map getPropertiesMap() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -294,8 +323,8 @@ public java.lang.String getPropertiesOrDefault(
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -323,6 +352,87 @@ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
return map.get(key);
}
+ public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER = 3;
+ private java.util.List optionalComponents_;
+ private static final com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>
+ optionalComponents_converter_ =
+ new com.google.protobuf.Internal.ListAdapter.Converter<
+ java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>() {
+ public com.google.cloud.dataproc.v1beta2.Component convert(java.lang.Integer from) {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.dataproc.v1beta2.Component result =
+ com.google.cloud.dataproc.v1beta2.Component.valueOf(from);
+ return result == null
+ ? com.google.cloud.dataproc.v1beta2.Component.UNRECOGNIZED
+ : result;
+ }
+ };
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public java.util.List getOptionalComponentsList() {
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>(
+ optionalComponents_, optionalComponents_converter_);
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public int getOptionalComponentsCount() {
+ return optionalComponents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index) {
+ return optionalComponents_converter_.convert(optionalComponents_.get(index));
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public java.util.List getOptionalComponentsValueList() {
+ return optionalComponents_;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public int getOptionalComponentsValue(int index) {
+ return optionalComponents_.get(index);
+ }
+
+ private int optionalComponentsMemoizedSerializedSize;
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -337,11 +447,19 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
if (!getImageVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageVersion_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 2);
+ if (getOptionalComponentsList().size() > 0) {
+ output.writeUInt32NoTag(26);
+ output.writeUInt32NoTag(optionalComponentsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < optionalComponents_.size(); i++) {
+ output.writeEnumNoTag(optionalComponents_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -364,6 +482,19 @@ public int getSerializedSize() {
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, properties__);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < optionalComponents_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(optionalComponents_.get(i));
+ }
+ size += dataSize;
+ if (!getOptionalComponentsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ optionalComponentsMemoizedSerializedSize = dataSize;
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -382,6 +513,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getImageVersion().equals(other.getImageVersion())) return false;
if (!internalGetProperties().equals(other.internalGetProperties())) return false;
+ if (!optionalComponents_.equals(other.optionalComponents_)) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -399,6 +531,10 @@ public int hashCode() {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetProperties().hashCode();
}
+ if (getOptionalComponentsCount() > 0) {
+ hash = (37 * hash) + OPTIONAL_COMPONENTS_FIELD_NUMBER;
+ hash = (53 * hash) + optionalComponents_.hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -567,6 +703,8 @@ public Builder clear() {
imageVersion_ = "";
internalGetMutableProperties().clear();
+ optionalComponents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@@ -599,6 +737,11 @@ public com.google.cloud.dataproc.v1beta2.SoftwareConfig buildPartial() {
result.imageVersion_ = imageVersion_;
result.properties_ = internalGetProperties();
result.properties_.makeImmutable();
+ if (((bitField0_ & 0x00000004) != 0)) {
+ optionalComponents_ = java.util.Collections.unmodifiableList(optionalComponents_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.optionalComponents_ = optionalComponents_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
@@ -655,6 +798,16 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SoftwareConfig other)
onChanged();
}
internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+ if (!other.optionalComponents_.isEmpty()) {
+ if (optionalComponents_.isEmpty()) {
+ optionalComponents_ = other.optionalComponents_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureOptionalComponentsIsMutable();
+ optionalComponents_.addAll(other.optionalComponents_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -697,7 +850,7 @@ public Builder mergeFrom(
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -723,7 +876,7 @@ public java.lang.String getImageVersion() {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -749,7 +902,7 @@ public com.google.protobuf.ByteString getImageVersionBytes() {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -773,7 +926,7 @@ public Builder setImageVersion(java.lang.String value) {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -794,7 +947,7 @@ public Builder clearImageVersion() {
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -843,8 +996,8 @@ public int getPropertiesCount() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -877,8 +1030,8 @@ public java.util.Map getProperties() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -903,8 +1056,8 @@ public java.util.Map getPropertiesMap() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -934,8 +1087,8 @@ public java.lang.String getPropertiesOrDefault(
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -972,8 +1125,8 @@ public Builder clearProperties() {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -1007,8 +1160,8 @@ public java.util.Map getMutableProperties()
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -1040,8 +1193,8 @@ public Builder putProperties(java.lang.String key, java.lang.String value) {
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -1063,6 +1216,195 @@ public Builder putAllProperties(java.util.Map optionalComponents_ =
+ java.util.Collections.emptyList();
+
+ private void ensureOptionalComponentsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ optionalComponents_ = new java.util.ArrayList(optionalComponents_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public java.util.List getOptionalComponentsList() {
+ return new com.google.protobuf.Internal.ListAdapter<
+ java.lang.Integer, com.google.cloud.dataproc.v1beta2.Component>(
+ optionalComponents_, optionalComponents_converter_);
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public int getOptionalComponentsCount() {
+ return optionalComponents_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index) {
+ return optionalComponents_converter_.convert(optionalComponents_.get(index));
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder setOptionalComponents(
+ int index, com.google.cloud.dataproc.v1beta2.Component value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionalComponentsIsMutable();
+ optionalComponents_.set(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder addOptionalComponents(com.google.cloud.dataproc.v1beta2.Component value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOptionalComponentsIsMutable();
+ optionalComponents_.add(value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder addAllOptionalComponents(
+ java.lang.Iterable extends com.google.cloud.dataproc.v1beta2.Component> values) {
+ ensureOptionalComponentsIsMutable();
+ for (com.google.cloud.dataproc.v1beta2.Component value : values) {
+ optionalComponents_.add(value.getNumber());
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder clearOptionalComponents() {
+ optionalComponents_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public java.util.List getOptionalComponentsValueList() {
+ return java.util.Collections.unmodifiableList(optionalComponents_);
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public int getOptionalComponentsValue(int index) {
+ return optionalComponents_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder setOptionalComponentsValue(int index, int value) {
+ ensureOptionalComponentsIsMutable();
+ optionalComponents_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder addOptionalComponentsValue(int value) {
+ ensureOptionalComponentsIsMutable();
+ optionalComponents_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ public Builder addAllOptionalComponentsValue(java.lang.Iterable values) {
+ ensureOptionalComponentsIsMutable();
+ for (int value : values) {
+ optionalComponents_.add(value);
+ }
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
index c4203a4aa010..c39e4e307541 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SoftwareConfigOrBuilder.java
@@ -18,7 +18,7 @@ public interface SoftwareConfigOrBuilder
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -34,7 +34,7 @@ public interface SoftwareConfigOrBuilder
* such as "1.2" (including a subminor version, such as "1.2.29"), or the
* ["preview"
* version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- * If unspecified, it defaults to the latest version.
+ * If unspecified, it defaults to the latest Debian version.
*
*
* string image_version = 1;
@@ -46,8 +46,8 @@ public interface SoftwareConfigOrBuilder
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -70,8 +70,8 @@ public interface SoftwareConfigOrBuilder
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -97,8 +97,8 @@ public interface SoftwareConfigOrBuilder
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -121,8 +121,8 @@ public interface SoftwareConfigOrBuilder
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -145,8 +145,8 @@ public interface SoftwareConfigOrBuilder
*
*
* Optional. The properties to set on daemon config files.
- * Property keys are specified in `prefix:property` format, such as
- * `core:fs.defaultFS`. The following are supported prefixes
+ * Property keys are specified in `prefix:property` format, for example
+ * `core:hadoop.tmp.dir`. The following are supported prefixes
* and their mappings:
* * capacity-scheduler: `capacity-scheduler.xml`
* * core: `core-site.xml`
@@ -164,4 +164,55 @@ public interface SoftwareConfigOrBuilder
* map<string, string> properties = 2;
*/
java.lang.String getPropertiesOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ java.util.List getOptionalComponentsList();
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ int getOptionalComponentsCount();
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ com.google.cloud.dataproc.v1beta2.Component getOptionalComponents(int index);
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ java.util.List getOptionalComponentsValueList();
+ /**
+ *
+ *
+ *
+ * The set of optional components to activate on the cluster.
+ *
+ *
+ * repeated .google.cloud.dataproc.v1beta2.Component optional_components = 3;
+ */
+ int getOptionalComponentsValue(int index);
}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java
new file mode 100644
index 000000000000..85def924440e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJob.java
@@ -0,0 +1,2017 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/jobs.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A Cloud Dataproc job for running
+ * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
+ * applications on YARN.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkRJob}
+ */
+public final class SparkRJob extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.SparkRJob)
+ SparkRJobOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SparkRJob.newBuilder() to construct.
+ private SparkRJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SparkRJob() {
+ mainRFileUri_ = "";
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SparkRJob(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ mainRFileUri_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ args_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ args_.add(s);
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ fileUris_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ fileUris_.add(s);
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ archiveUris_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ archiveUris_.add(s);
+ break;
+ }
+ case 42:
+ {
+ if (!((mutable_bitField0_ & 0x00000010) != 0)) {
+ properties_ =
+ com.google.protobuf.MapField.newMapField(
+ PropertiesDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000010;
+ }
+ com.google.protobuf.MapEntry properties__ =
+ input.readMessage(
+ PropertiesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ properties_.getMutableMap().put(properties__.getKey(), properties__.getValue());
+ break;
+ }
+ case 50:
+ {
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder subBuilder = null;
+ if (loggingConfig_ != null) {
+ subBuilder = loggingConfig_.toBuilder();
+ }
+ loggingConfig_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(loggingConfig_);
+ loggingConfig_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ args_ = args_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ fileUris_ = fileUris_.getUnmodifiableView();
+ }
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ archiveUris_ = archiveUris_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 5:
+ return internalGetProperties();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.SparkRJob.class,
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MAIN_R_FILE_URI_FIELD_NUMBER = 1;
+ private volatile java.lang.Object mainRFileUri_;
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public java.lang.String getMainRFileUri() {
+ java.lang.Object ref = mainRFileUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mainRFileUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public com.google.protobuf.ByteString getMainRFileUriBytes() {
+ java.lang.Object ref = mainRFileUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mainRFileUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ARGS_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList args_;
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getArgsList() {
+ return args_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public java.lang.String getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public com.google.protobuf.ByteString getArgsBytes(int index) {
+ return args_.getByteString(index);
+ }
+
+ public static final int FILE_URIS_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList fileUris_;
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public com.google.protobuf.ProtocolStringList getFileUrisList() {
+ return fileUris_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public int getFileUrisCount() {
+ return fileUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public java.lang.String getFileUris(int index) {
+ return fileUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
+ return fileUris_.getByteString(index);
+ }
+
+ public static final int ARCHIVE_URIS_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList archiveUris_;
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
+ return archiveUris_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public int getArchiveUrisCount() {
+ return archiveUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public java.lang.String getArchiveUris(int index) {
+ return archiveUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
+ return archiveUris_.getByteString(index);
+ }
+
+ public static final int PROPERTIES_FIELD_NUMBER = 5;
+
+ private static final class PropertiesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry =
+ com.google.protobuf.MapEntry.newDefaultInstance(
+ com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_PropertiesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+
+ private com.google.protobuf.MapField properties_;
+
+ private com.google.protobuf.MapField internalGetProperties() {
+ if (properties_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry);
+ }
+ return properties_;
+ }
+
+ public int getPropertiesCount() {
+ return internalGetProperties().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public boolean containsProperties(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetProperties().getMap().containsKey(key);
+ }
+ /** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getProperties() {
+ return getPropertiesMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.util.Map getPropertiesMap() {
+ return internalGetProperties().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.lang.String getPropertiesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetProperties().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetProperties().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int LOGGING_CONFIG_FIELD_NUMBER = 6;
+ private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public boolean hasLoggingConfig() {
+ return loggingConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() {
+ return loggingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance()
+ : loggingConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
+ return getLoggingConfig();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getMainRFileUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainRFileUri_);
+ }
+ for (int i = 0; i < args_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, args_.getRaw(i));
+ }
+ for (int i = 0; i < fileUris_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fileUris_.getRaw(i));
+ }
+ for (int i = 0; i < archiveUris_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, archiveUris_.getRaw(i));
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5);
+ if (loggingConfig_ != null) {
+ output.writeMessage(6, getLoggingConfig());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getMainRFileUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mainRFileUri_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < args_.size(); i++) {
+ dataSize += computeStringSizeNoTag(args_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getArgsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < fileUris_.size(); i++) {
+ dataSize += computeStringSizeNoTag(fileUris_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getFileUrisList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < archiveUris_.size(); i++) {
+ dataSize += computeStringSizeNoTag(archiveUris_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getArchiveUrisList().size();
+ }
+ for (java.util.Map.Entry entry :
+ internalGetProperties().getMap().entrySet()) {
+ com.google.protobuf.MapEntry properties__ =
+ PropertiesDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, properties__);
+ }
+ if (loggingConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLoggingConfig());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.SparkRJob)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.SparkRJob other =
+ (com.google.cloud.dataproc.v1beta2.SparkRJob) obj;
+
+ if (!getMainRFileUri().equals(other.getMainRFileUri())) return false;
+ if (!getArgsList().equals(other.getArgsList())) return false;
+ if (!getFileUrisList().equals(other.getFileUrisList())) return false;
+ if (!getArchiveUrisList().equals(other.getArchiveUrisList())) return false;
+ if (!internalGetProperties().equals(other.internalGetProperties())) return false;
+ if (hasLoggingConfig() != other.hasLoggingConfig()) return false;
+ if (hasLoggingConfig()) {
+ if (!getLoggingConfig().equals(other.getLoggingConfig())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MAIN_R_FILE_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getMainRFileUri().hashCode();
+ if (getArgsCount() > 0) {
+ hash = (37 * hash) + ARGS_FIELD_NUMBER;
+ hash = (53 * hash) + getArgsList().hashCode();
+ }
+ if (getFileUrisCount() > 0) {
+ hash = (37 * hash) + FILE_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getFileUrisList().hashCode();
+ }
+ if (getArchiveUrisCount() > 0) {
+ hash = (37 * hash) + ARCHIVE_URIS_FIELD_NUMBER;
+ hash = (53 * hash) + getArchiveUrisList().hashCode();
+ }
+ if (!internalGetProperties().getMap().isEmpty()) {
+ hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetProperties().hashCode();
+ }
+ if (hasLoggingConfig()) {
+ hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getLoggingConfig().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataproc.v1beta2.SparkRJob prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A Cloud Dataproc job for running
+ * [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
+ * applications on YARN.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.SparkRJob}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.SparkRJob)
+ com.google.cloud.dataproc.v1beta2.SparkRJobOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 5:
+ return internalGetProperties();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 5:
+ return internalGetMutableProperties();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.SparkRJob.class,
+ com.google.cloud.dataproc.v1beta2.SparkRJob.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.SparkRJob.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ mainRFileUri_ = "";
+
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ internalGetMutableProperties().clear();
+ if (loggingConfigBuilder_ == null) {
+ loggingConfig_ = null;
+ } else {
+ loggingConfig_ = null;
+ loggingConfigBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.JobsProto
+ .internal_static_google_cloud_dataproc_v1beta2_SparkRJob_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SparkRJob getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SparkRJob build() {
+ com.google.cloud.dataproc.v1beta2.SparkRJob result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SparkRJob buildPartial() {
+ com.google.cloud.dataproc.v1beta2.SparkRJob result =
+ new com.google.cloud.dataproc.v1beta2.SparkRJob(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.mainRFileUri_ = mainRFileUri_;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ args_ = args_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.args_ = args_;
+ if (((bitField0_ & 0x00000004) != 0)) {
+ fileUris_ = fileUris_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.fileUris_ = fileUris_;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ archiveUris_ = archiveUris_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.archiveUris_ = archiveUris_;
+ result.properties_ = internalGetProperties();
+ result.properties_.makeImmutable();
+ if (loggingConfigBuilder_ == null) {
+ result.loggingConfig_ = loggingConfig_;
+ } else {
+ result.loggingConfig_ = loggingConfigBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.SparkRJob) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.SparkRJob) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.dataproc.v1beta2.SparkRJob other) {
+ if (other == com.google.cloud.dataproc.v1beta2.SparkRJob.getDefaultInstance()) return this;
+ if (!other.getMainRFileUri().isEmpty()) {
+ mainRFileUri_ = other.mainRFileUri_;
+ onChanged();
+ }
+ if (!other.args_.isEmpty()) {
+ if (args_.isEmpty()) {
+ args_ = other.args_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureArgsIsMutable();
+ args_.addAll(other.args_);
+ }
+ onChanged();
+ }
+ if (!other.fileUris_.isEmpty()) {
+ if (fileUris_.isEmpty()) {
+ fileUris_ = other.fileUris_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureFileUrisIsMutable();
+ fileUris_.addAll(other.fileUris_);
+ }
+ onChanged();
+ }
+ if (!other.archiveUris_.isEmpty()) {
+ if (archiveUris_.isEmpty()) {
+ archiveUris_ = other.archiveUris_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureArchiveUrisIsMutable();
+ archiveUris_.addAll(other.archiveUris_);
+ }
+ onChanged();
+ }
+ internalGetMutableProperties().mergeFrom(other.internalGetProperties());
+ if (other.hasLoggingConfig()) {
+ mergeLoggingConfig(other.getLoggingConfig());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.SparkRJob parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.dataproc.v1beta2.SparkRJob) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object mainRFileUri_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public java.lang.String getMainRFileUri() {
+ java.lang.Object ref = mainRFileUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mainRFileUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public com.google.protobuf.ByteString getMainRFileUriBytes() {
+ java.lang.Object ref = mainRFileUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ mainRFileUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public Builder setMainRFileUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mainRFileUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public Builder clearMainRFileUri() {
+
+ mainRFileUri_ = getDefaultInstance().getMainRFileUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ public Builder setMainRFileUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mainRFileUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList args_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureArgsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ args_ = new com.google.protobuf.LazyStringArrayList(args_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getArgsList() {
+ return args_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public int getArgsCount() {
+ return args_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public java.lang.String getArgs(int index) {
+ return args_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public com.google.protobuf.ByteString getArgsBytes(int index) {
+ return args_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public Builder setArgs(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public Builder addArgs(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public Builder addAllArgs(java.lang.Iterable values) {
+ ensureArgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public Builder clearArgs() {
+ args_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ public Builder addArgsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureArgsIsMutable();
+ args_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList fileUris_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureFileUrisIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ fileUris_ = new com.google.protobuf.LazyStringArrayList(fileUris_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public com.google.protobuf.ProtocolStringList getFileUrisList() {
+ return fileUris_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public int getFileUrisCount() {
+ return fileUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public java.lang.String getFileUris(int index) {
+ return fileUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public com.google.protobuf.ByteString getFileUrisBytes(int index) {
+ return fileUris_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public Builder setFileUris(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileUrisIsMutable();
+ fileUris_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public Builder addFileUris(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFileUrisIsMutable();
+ fileUris_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public Builder addAllFileUris(java.lang.Iterable values) {
+ ensureFileUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fileUris_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public Builder clearFileUris() {
+ fileUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ public Builder addFileUrisBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureFileUrisIsMutable();
+ fileUris_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList archiveUris_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureArchiveUrisIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ archiveUris_ = new com.google.protobuf.LazyStringArrayList(archiveUris_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public com.google.protobuf.ProtocolStringList getArchiveUrisList() {
+ return archiveUris_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public int getArchiveUrisCount() {
+ return archiveUris_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public java.lang.String getArchiveUris(int index) {
+ return archiveUris_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public com.google.protobuf.ByteString getArchiveUrisBytes(int index) {
+ return archiveUris_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public Builder setArchiveUris(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArchiveUrisIsMutable();
+ archiveUris_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public Builder addArchiveUris(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureArchiveUrisIsMutable();
+ archiveUris_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public Builder addAllArchiveUris(java.lang.Iterable values) {
+ ensureArchiveUrisIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, archiveUris_);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public Builder clearArchiveUris() {
+ archiveUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ public Builder addArchiveUrisBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureArchiveUrisIsMutable();
+ archiveUris_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField properties_;
+
+ private com.google.protobuf.MapField
+ internalGetProperties() {
+ if (properties_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ PropertiesDefaultEntryHolder.defaultEntry);
+ }
+ return properties_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableProperties() {
+ onChanged();
+ ;
+ if (properties_ == null) {
+ properties_ =
+ com.google.protobuf.MapField.newMapField(PropertiesDefaultEntryHolder.defaultEntry);
+ }
+ if (!properties_.isMutable()) {
+ properties_ = properties_.copy();
+ }
+ return properties_;
+ }
+
+ public int getPropertiesCount() {
+ return internalGetProperties().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public boolean containsProperties(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetProperties().getMap().containsKey(key);
+ }
+ /** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getProperties() {
+ return getPropertiesMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.util.Map getPropertiesMap() {
+ return internalGetProperties().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.lang.String getPropertiesOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetProperties().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public java.lang.String getPropertiesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetProperties().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearProperties() {
+ internalGetMutableProperties().getMutableMap().clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public Builder removeProperties(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableProperties().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableProperties() {
+ return internalGetMutableProperties().getMutableMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public Builder putProperties(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableProperties().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ public Builder putAllProperties(java.util.Map values) {
+ internalGetMutableProperties().getMutableMap().putAll(values);
+ return this;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.LoggingConfig loggingConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.LoggingConfig,
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>
+ loggingConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public boolean hasLoggingConfig() {
+ return loggingConfigBuilder_ != null || loggingConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig() {
+ if (loggingConfigBuilder_ == null) {
+ return loggingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance()
+ : loggingConfig_;
+ } else {
+ return loggingConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public Builder setLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) {
+ if (loggingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ loggingConfig_ = value;
+ onChanged();
+ } else {
+ loggingConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public Builder setLoggingConfig(
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder builderForValue) {
+ if (loggingConfigBuilder_ == null) {
+ loggingConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ loggingConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public Builder mergeLoggingConfig(com.google.cloud.dataproc.v1beta2.LoggingConfig value) {
+ if (loggingConfigBuilder_ == null) {
+ if (loggingConfig_ != null) {
+ loggingConfig_ =
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.newBuilder(loggingConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ loggingConfig_ = value;
+ }
+ onChanged();
+ } else {
+ loggingConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public Builder clearLoggingConfig() {
+ if (loggingConfigBuilder_ == null) {
+ loggingConfig_ = null;
+ onChanged();
+ } else {
+ loggingConfig_ = null;
+ loggingConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder getLoggingConfigBuilder() {
+
+ onChanged();
+ return getLoggingConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ public com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
+ if (loggingConfigBuilder_ != null) {
+ return loggingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return loggingConfig_ == null
+ ? com.google.cloud.dataproc.v1beta2.LoggingConfig.getDefaultInstance()
+ : loggingConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.LoggingConfig,
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>
+ getLoggingConfigFieldBuilder() {
+ if (loggingConfigBuilder_ == null) {
+ loggingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.LoggingConfig,
+ com.google.cloud.dataproc.v1beta2.LoggingConfig.Builder,
+ com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder>(
+ getLoggingConfig(), getParentForChildren(), isClean());
+ loggingConfig_ = null;
+ }
+ return loggingConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.SparkRJob)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.SparkRJob)
+ private static final com.google.cloud.dataproc.v1beta2.SparkRJob DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.SparkRJob();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.SparkRJob getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SparkRJob parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SparkRJob(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.SparkRJob getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java
new file mode 100644
index 000000000000..de1fb704ccd3
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SparkRJobOrBuilder.java
@@ -0,0 +1,276 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/jobs.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface SparkRJobOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.SparkRJob)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ java.lang.String getMainRFileUri();
+ /**
+ *
+ *
+ *
+ * Required. The HCFS URI of the main R file to use as the driver.
+ * Must be a .R file.
+ *
+ *
+ * string main_r_file_uri = 1;
+ */
+ com.google.protobuf.ByteString getMainRFileUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ java.util.List getArgsList();
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ int getArgsCount();
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ java.lang.String getArgs(int index);
+ /**
+ *
+ *
+ *
+ * Optional. The arguments to pass to the driver. Do not include arguments,
+ * such as `--conf`, that can be set as job properties, since a collision may
+ * occur that causes an incorrect job submission.
+ *
+ *
+ * repeated string args = 2;
+ */
+ com.google.protobuf.ByteString getArgsBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ java.util.List getFileUrisList();
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ int getFileUrisCount();
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ java.lang.String getFileUris(int index);
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of files to be copied to the working directory of
+ * R drivers and distributed tasks. Useful for naively parallel tasks.
+ *
+ *
+ * repeated string file_uris = 3;
+ */
+ com.google.protobuf.ByteString getFileUrisBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ java.util.List getArchiveUrisList();
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ int getArchiveUrisCount();
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ java.lang.String getArchiveUris(int index);
+ /**
+ *
+ *
+ *
+ * Optional. HCFS URIs of archives to be extracted in the working directory of
+ * Spark drivers and tasks. Supported file types:
+ * .jar, .tar, .tar.gz, .tgz, and .zip.
+ *
+ *
+ * repeated string archive_uris = 4;
+ */
+ com.google.protobuf.ByteString getArchiveUrisBytes(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ int getPropertiesCount();
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ boolean containsProperties(java.lang.String key);
+ /** Use {@link #getPropertiesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map getProperties();
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ java.util.Map getPropertiesMap();
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ java.lang.String getPropertiesOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ *
+ * Optional. A mapping of property names to values, used to configure SparkR.
+ * Properties that conflict with values set by the Cloud Dataproc API may be
+ * overwritten. Can include properties set in
+ * /etc/spark/conf/spark-defaults.conf and classes in user code.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ java.lang.String getPropertiesOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ boolean hasLoggingConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ com.google.cloud.dataproc.v1beta2.LoggingConfig getLoggingConfig();
+ /**
+ *
+ *
+ *
+ * Optional. The runtime log config for job execution.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.LoggingConfig logging_config = 6;
+ */
+ com.google.cloud.dataproc.v1beta2.LoggingConfigOrBuilder getLoggingConfigOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java
index df33469f0d40..2bb258f2a707 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequest.java
@@ -257,10 +257,9 @@ public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -286,10 +285,9 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -1065,10 +1063,9 @@ public com.google.cloud.dataproc.v1beta2.JobOrBuilder getJobOrBuilder() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -1094,10 +1091,9 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -1123,10 +1119,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -1150,10 +1145,9 @@ public Builder setRequestId(java.lang.String value) {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -1174,10 +1168,9 @@ public Builder clearRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java
index f20b98e53fcd..f214ee434bbe 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/SubmitJobRequestOrBuilder.java
@@ -88,10 +88,9 @@ public interface SubmitJobRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -107,10 +106,9 @@ public interface SubmitJobRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- * with the same id, then the second request will be ignored and the first
- * [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ * receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
* is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java
index 76f00b455326..e5df35adad87 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameter.java
@@ -203,10 +203,10 @@ public com.google.protobuf.ByteString getNameBytes() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -250,10 +250,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -297,10 +297,10 @@ public int getFieldsCount() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -344,10 +344,10 @@ public java.lang.String getFields(int index) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1019,10 +1019,10 @@ private void ensureFieldsIsMutable() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1066,10 +1066,10 @@ public com.google.protobuf.ProtocolStringList getFieldsList() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1113,10 +1113,10 @@ public int getFieldsCount() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1160,10 +1160,10 @@ public java.lang.String getFields(int index) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1207,10 +1207,10 @@ public com.google.protobuf.ByteString getFieldsBytes(int index) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1260,10 +1260,10 @@ public Builder setFields(int index, java.lang.String value) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1313,10 +1313,10 @@ public Builder addFields(java.lang.String value) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1363,10 +1363,10 @@ public Builder addAllFields(java.lang.Iterable values) {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -1413,10 +1413,10 @@ public Builder clearFields() {
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java
index 7d6d18ddcdd6..01113db79ef5 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/TemplateParameterOrBuilder.java
@@ -48,10 +48,10 @@ public interface TemplateParameterOrBuilder
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -93,10 +93,10 @@ public interface TemplateParameterOrBuilder
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -138,10 +138,10 @@ public interface TemplateParameterOrBuilder
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
@@ -183,10 +183,10 @@ public interface TemplateParameterOrBuilder
* Required. Paths to all fields that the parameter replaces.
* A field is allowed to appear in at most one parameter's list of field
* paths.
- * A field path is similar in syntax to a
- * [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- * field path that references the zone field of a workflow template's cluster
- * selector would be specified as `placement.clusterSelector.zone`.
+ * A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ * For example, a field path that references the zone field of a workflow
+ * template's cluster selector would be specified as
+ * `placement.clusterSelector.zone`.
* Also, field paths can reference fields using the following syntax:
* * Values in maps can be referenced by key:
* * labels['key']
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java
new file mode 100644
index 000000000000..40c72e858d0d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequest.java
@@ -0,0 +1,713 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+/**
+ *
+ *
+ *
+ * A request to update an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest}
+ */
+public final class UpdateAutoscalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ UpdateAutoscalingPolicyRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use UpdateAutoscalingPolicyRequest.newBuilder() to construct.
+ private UpdateAutoscalingPolicyRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private UpdateAutoscalingPolicyRequest() {}
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private UpdateAutoscalingPolicyRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder subBuilder = null;
+ if (policy_ != null) {
+ subBuilder = policy_.toBuilder();
+ }
+ policy_ =
+ input.readMessage(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(policy_);
+ policy_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.Builder.class);
+ }
+
+ public static final int POLICY_FIELD_NUMBER = 1;
+ private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_;
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public boolean hasPolicy() {
+ return policy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() {
+ return getPolicy();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (policy_ != null) {
+ output.writeMessage(1, getPolicy());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (policy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPolicy());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest other =
+ (com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) obj;
+
+ if (hasPolicy() != other.hasPolicy()) return false;
+ if (hasPolicy()) {
+ if (!getPolicy().equals(other.getPolicy())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPolicy()) {
+ hash = (37 * hash) + POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getPolicy().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A request to update an autoscaling policy.
+ *
+ *
+ * Protobuf type {@code google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.class,
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.Builder.class);
+ }
+
+ // Construct using com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (policyBuilder_ == null) {
+ policy_ = null;
+ } else {
+ policy_ = null;
+ policyBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.dataproc.v1beta2.AutoscalingPoliciesProto
+ .internal_static_google_cloud_dataproc_v1beta2_UpdateAutoscalingPolicyRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest build() {
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest buildPartial() {
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest result =
+ new com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest(this);
+ if (policyBuilder_ == null) {
+ result.policy_ = policy_;
+ } else {
+ result.policy_ = policyBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) {
+ return mergeFrom((com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest other) {
+ if (other
+ == com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest.getDefaultInstance())
+ return this;
+ if (other.hasPolicy()) {
+ mergePolicy(other.getPolicy());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ policyBuilder_;
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public boolean hasPolicy() {
+ return policyBuilder_ != null || policy_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy() {
+ if (policyBuilder_ == null) {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ } else {
+ return policyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public Builder setPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ policy_ = value;
+ onChanged();
+ } else {
+ policyBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public Builder setPolicy(
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder builderForValue) {
+ if (policyBuilder_ == null) {
+ policy_ = builderForValue.build();
+ onChanged();
+ } else {
+ policyBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public Builder mergePolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy value) {
+ if (policyBuilder_ == null) {
+ if (policy_ != null) {
+ policy_ =
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.newBuilder(policy_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ policy_ = value;
+ }
+ onChanged();
+ } else {
+ policyBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public Builder clearPolicy() {
+ if (policyBuilder_ == null) {
+ policy_ = null;
+ onChanged();
+ } else {
+ policy_ = null;
+ policyBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder getPolicyBuilder() {
+
+ onChanged();
+ return getPolicyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ public com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder() {
+ if (policyBuilder_ != null) {
+ return policyBuilder_.getMessageOrBuilder();
+ } else {
+ return policy_ == null
+ ? com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.getDefaultInstance()
+ : policy_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>
+ getPolicyFieldBuilder() {
+ if (policyBuilder_ == null) {
+ policyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy.Builder,
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder>(
+ getPolicy(), getParentForChildren(), isClean());
+ policy_ = null;
+ }
+ return policyBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ private static final com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest();
+ }
+
+ public static com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public UpdateAutoscalingPolicyRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new UpdateAutoscalingPolicyRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java
new file mode 100644
index 000000000000..d83bb7014d17
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateAutoscalingPolicyRequestOrBuilder.java
@@ -0,0 +1,41 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/dataproc/v1beta2/autoscaling_policies.proto
+
+package com.google.cloud.dataproc.v1beta2;
+
+public interface UpdateAutoscalingPolicyRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ boolean hasPolicy();
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getPolicy();
+ /**
+ *
+ *
+ *
+ * Required. The updated autoscaling policy.
+ *
+ *
+ * .google.cloud.dataproc.v1beta2.AutoscalingPolicy policy = 1;
+ */
+ com.google.cloud.dataproc.v1beta2.AutoscalingPolicyOrBuilder getPolicyOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java
index 01bc36986f05..6ecc133e612c 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequest.java
@@ -449,6 +449,10 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -512,6 +516,10 @@ public boolean hasUpdateMask() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -575,6 +583,10 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -591,11 +603,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -620,11 +631,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -1864,6 +1874,10 @@ public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBui
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -1927,6 +1941,10 @@ public boolean hasUpdateMask() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -1996,6 +2014,10 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2069,6 +2091,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2139,6 +2165,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2214,6 +2244,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2285,6 +2319,10 @@ public Builder clearUpdateMask() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2350,6 +2388,10 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2419,6 +2461,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -2447,11 +2493,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2476,11 +2521,10 @@ public java.lang.String getRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2505,11 +2549,10 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2532,11 +2575,10 @@ public Builder setRequestId(java.lang.String value) {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -2556,11 +2598,10 @@ public Builder clearRequestId() {
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
index 61d34bbd8056..f6277201ae75 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/UpdateClusterRequestOrBuilder.java
@@ -208,6 +208,10 @@ public interface UpdateClusterRequestOrBuilder
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -269,6 +273,10 @@ public interface UpdateClusterRequestOrBuilder
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -330,6 +338,10 @@ public interface UpdateClusterRequestOrBuilder
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
* duration</td>
* </tr>
+ * <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or change
+ * autoscaling policies</td>
+ * </tr>
* </table>
*
*
@@ -342,11 +354,10 @@ public interface UpdateClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
@@ -361,11 +372,10 @@ public interface UpdateClusterRequestOrBuilder
*
*
* Optional. A unique id used to identify the request. If the server
- * receives two
- * [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- * requests with the same id, then the second request will be ignored and the
- * first [google.longrunning.Operation][google.longrunning.Operation] created
- * and stored in the backend is returned.
+ * receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ * id, then the second request will be ignored and the
+ * first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ * backend is returned.
* It is recommended to always set this value to a
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
* The id must contain only letters (a-z, A-Z), numbers (0-9),
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java
index ba50894f3031..5ea9ea50d364 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplate.java
@@ -218,6 +218,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -241,6 +242,7 @@ public java.lang.String getId() {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -1307,6 +1309,7 @@ public Builder mergeFrom(
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -1330,6 +1333,7 @@ public java.lang.String getId() {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -1353,6 +1357,7 @@ public com.google.protobuf.ByteString getIdBytes() {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -1374,6 +1379,7 @@ public Builder setId(java.lang.String value) {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -1392,6 +1398,7 @@ public Builder clearId() {
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java
index c677f84a2f9d..2ab0189d899e 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateOrBuilder.java
@@ -16,6 +16,7 @@ public interface WorkflowTemplateOrBuilder
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
@@ -29,6 +30,7 @@ public interface WorkflowTemplateOrBuilder
* The id must contain only letters (a-z, A-Z), numbers (0-9),
* underscores (_), and hyphens (-). Cannot begin or end with underscore
* or hyphen. Must consist of between 3 and 50 characters.
+ * .
*
*
* string id = 2;
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto
new file mode 100644
index 000000000000..0c3efbd067ae
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/autoscaling_policies.proto
@@ -0,0 +1,276 @@
+// Copyright 2019 Google LLC.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+syntax = "proto3";
+
+package google.cloud.dataproc.v1beta2;
+
+import "google/api/annotations.proto";
+import "google/cloud/dataproc/v1beta2/clusters.proto";
+import "google/cloud/dataproc/v1beta2/jobs.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/timestamp.proto";
+
+option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2;dataproc";
+option java_multiple_files = true;
+option java_outer_classname = "AutoscalingPoliciesProto";
+option java_package = "com.google.cloud.dataproc.v1beta2";
+
+// The API interface for managing autoscaling policies in the
+// Google Cloud Dataproc API.
+service AutoscalingPolicyService {
+ // Creates new autoscaling policy.
+ rpc CreateAutoscalingPolicy(CreateAutoscalingPolicyRequest) returns (AutoscalingPolicy) {
+ option (google.api.http) = {
+ post: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies"
+ body: "policy"
+ additional_bindings {
+ post: "/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies"
+ body: "policy"
+ }
+ };
+ }
+
+ // Updates (replaces) autoscaling policy.
+ //
+ // Disabled check for update_mask, because all updates will be full
+ // replacements.
+ rpc UpdateAutoscalingPolicy(UpdateAutoscalingPolicyRequest) returns (AutoscalingPolicy) {
+ option (google.api.http) = {
+ put: "/v1beta2/{policy.name=projects/*/locations/*/autoscalingPolicies/*}"
+ body: "policy"
+ additional_bindings {
+ put: "/v1beta2/{policy.name=projects/*/regions/*/autoscalingPolicies/*}"
+ body: "policy"
+ }
+ };
+ }
+
+ // Retrieves autoscaling policy.
+ rpc GetAutoscalingPolicy(GetAutoscalingPolicyRequest) returns (AutoscalingPolicy) {
+ option (google.api.http) = {
+ get: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}"
+ additional_bindings {
+ get: "/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}"
+ }
+ };
+ }
+
+ // Lists autoscaling policies in the project.
+ rpc ListAutoscalingPolicies(ListAutoscalingPoliciesRequest) returns (ListAutoscalingPoliciesResponse) {
+ option (google.api.http) = {
+ get: "/v1beta2/{parent=projects/*/locations/*}/autoscalingPolicies"
+ additional_bindings {
+ get: "/v1beta2/{parent=projects/*/regions/*}/autoscalingPolicies"
+ }
+ };
+ }
+
+ // Deletes an autoscaling policy. It is an error to delete an autoscaling
+ // policy that is in use by one or more clusters.
+ rpc DeleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {
+ delete: "/v1beta2/{name=projects/*/locations/*/autoscalingPolicies/*}"
+ additional_bindings {
+ delete: "/v1beta2/{name=projects/*/regions/*/autoscalingPolicies/*}"
+ }
+ };
+ }
+}
+
+// Describes an autoscaling policy for Dataproc cluster autoscaler.
+message AutoscalingPolicy {
+ // Required. The policy id.
+ //
+ // The id must contain only letters (a-z, A-Z), numbers (0-9),
+ // underscores (_), and hyphens (-). Cannot begin or end with underscore
+ // or hyphen. Must consist of between 3 and 50 characters.
+ string id = 1;
+
+ // Output only. The "resource name" of the policy, as described
+ // in https://cloud.google.com/apis/design/resource_names of the form
+ // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ string name = 2;
+
+ // Required. Autoscaling algorithm for policy.
+ oneof algorithm {
+ BasicAutoscalingAlgorithm basic_algorithm = 3;
+ }
+
+ // Required. Describes how the autoscaler will operate for primary workers.
+ InstanceGroupAutoscalingPolicyConfig worker_config = 4;
+
+ // Optional. Describes how the autoscaler will operate for secondary workers.
+ InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5;
+}
+
+// Basic algorithm for autoscaling.
+message BasicAutoscalingAlgorithm {
+ // Required. YARN autoscaling configuration.
+ BasicYarnAutoscalingConfig yarn_config = 1;
+
+ // Optional. Duration between scaling events. A scaling period starts after
+ // the update operation from the previous event has completed.
+ //
+ // Bounds: [2m, 1d]. Default: 2m.
+ google.protobuf.Duration cooldown_period = 2;
+}
+
+// Basic autoscaling configurations for YARN.
+message BasicYarnAutoscalingConfig {
+ // Required. Timeout for YARN graceful decommissioning of Node Managers.
+ // Specifies the duration to wait for jobs to complete before forcefully
+ // removing workers (and potentially interrupting jobs). Only applicable to
+ // downscaling operations.
+ //
+ // Bounds: [0s, 1d].
+ google.protobuf.Duration graceful_decommission_timeout = 5;
+
+ // Required. Fraction of average pending memory in the last cooldown period
+ // for which to add workers. A scale-up factor of 1.0 will result in scaling
+ // up so that there is no pending memory remaining after the update (more
+ // aggressive scaling). A scale-up factor closer to 0 will result in a smaller
+ // magnitude of scaling up (less aggressive scaling).
+ //
+ // Bounds: [0.0, 1.0].
+ double scale_up_factor = 1;
+
+ // Required. Fraction of average pending memory in the last cooldown period
+ // for which to remove workers. A scale-down factor of 1 will result in
+ // scaling down so that there is no available memory remaining after the
+ // update (more aggressive scaling). A scale-down factor of 0 disables
+ // removing workers, which can be beneficial for autoscaling a single job.
+ //
+ // Bounds: [0.0, 1.0].
+ double scale_down_factor = 2;
+
+ // Optional. Minimum scale-up threshold as a fraction of total cluster size
+ // before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ // 0.1 means the autoscaler must recommend at least a 2-worker scale-up for
+ // the cluster to scale. A threshold of 0 means the autoscaler will scale up
+ // on any recommended change.
+ //
+ // Bounds: [0.0, 1.0]. Default: 0.0.
+ double scale_up_min_worker_fraction = 3;
+
+ // Optional. Minimum scale-down threshold as a fraction of total cluster size
+ // before scaling occurs. For example, in a 20-worker cluster, a threshold of
+ // 0.1 means the autoscaler must recommend at least a 2 worker scale-down for
+ // the cluster to scale. A threshold of 0 means the autoscaler will scale down
+ // on any recommended change.
+ //
+ // Bounds: [0.0, 1.0]. Default: 0.0.
+ double scale_down_min_worker_fraction = 4;
+}
+
+// Configuration for the size bounds of an instance group, including its
+// proportional size to other groups.
+message InstanceGroupAutoscalingPolicyConfig {
+ // Optional. Minimum number of instances for this group.
+ //
+ // Primary workers - Bounds: [2, max_instances]. Default: 2.
+ // Secondary workers - Bounds: [0, max_instances]. Default: 0.
+ int32 min_instances = 1;
+
+ // Optional. Maximum number of instances for this group. Required for primary
+ // workers. Note that by default, clusters will not use secondary workers.
+ // Required for secondary workers if the minimum secondary instances is set.
+ //
+ // Primary workers - Bounds: [min_instances, ). Required.
+ // Secondary workers - Bounds: [min_instances, ). Default: 0.
+ int32 max_instances = 2;
+
+ // Optional. Weight for the instance group, which is used to determine the
+ // fraction of total workers in the cluster from this instance group.
+ // For example, if primary workers have weight 2, and secondary workers have
+ // weight 1, the cluster will have approximately 2 primary workers for each
+ // secondary worker.
+ //
+ // The cluster may not reach the specified balance if constrained
+ // by min/max bounds or other autoscaling settings. For example, if
+ // `max_instances` for secondary workers is 0, then only primary workers will
+ // be added. The cluster can also be out of balance when created.
+ //
+ // If weight is not set on any instance group, the cluster will default to
+ // equal weight for all groups: the cluster will attempt to maintain an equal
+ // number of workers in each group within the configured size bounds for each
+ // group. If weight is set for one group only, the cluster will default to
+ // zero weight on the unset group. For example if weight is set only on
+ // primary workers, the cluster will use primary workers only and no
+ // secondary workers.
+ int32 weight = 3;
+}
+
+// A request to create an autoscaling policy.
+message CreateAutoscalingPolicyRequest {
+ // Required. The "resource name" of the region, as described
+ // in https://cloud.google.com/apis/design/resource_names of the form
+ // `projects/{project_id}/regions/{region}`.
+ string parent = 1;
+
+ // The autoscaling policy to create.
+ AutoscalingPolicy policy = 2;
+}
+
+// A request to fetch an autoscaling policy.
+message GetAutoscalingPolicyRequest {
+ // Required. The "resource name" of the autoscaling policy, as described
+ // in https://cloud.google.com/apis/design/resource_names of the form
+ // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ string name = 1;
+}
+
+// A request to update an autoscaling policy.
+message UpdateAutoscalingPolicyRequest {
+ // Required. The updated autoscaling policy.
+ AutoscalingPolicy policy = 1;
+}
+
+// A request to delete an autoscaling policy.
+//
+// Autoscaling policies in use by one or more clusters will not be deleted.
+message DeleteAutoscalingPolicyRequest {
+ // Required. The "resource name" of the autoscaling policy, as described
+ // in https://cloud.google.com/apis/design/resource_names of the form
+ // `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ string name = 1;
+}
+
+// A request to list autoscaling policies in a project.
+message ListAutoscalingPoliciesRequest {
+ // Required. The "resource name" of the region, as described
+ // in https://cloud.google.com/apis/design/resource_names of the form
+ // `projects/{project_id}/regions/{region}`
+ string parent = 1;
+
+ // Optional. The maximum number of results to return in each response.
+ int32 page_size = 2;
+
+ // Optional. The page token, returned by a previous call, to request the
+ // next page of results.
+ string page_token = 3;
+}
+
+// A response to a request to list autoscaling policies in a project.
+message ListAutoscalingPoliciesResponse {
+ // Output only. Autoscaling policies list.
+ repeated AutoscalingPolicy policies = 1;
+
+ // Output only. This token is included in the response if there are more
+ // results to fetch.
+ string next_page_token = 2;
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto
index fd89fbffed0e..d3bed6b3f244 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -34,8 +34,7 @@ option java_package = "com.google.cloud.dataproc.v1beta2";
// of Compute Engine instances.
service ClusterController {
// Creates a cluster in a project.
- rpc CreateCluster(CreateClusterRequest)
- returns (google.longrunning.Operation) {
+ rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta2/projects/{project_id}/regions/{region}/clusters"
body: "cluster"
@@ -43,8 +42,7 @@ service ClusterController {
}
// Updates a cluster in a project.
- rpc UpdateCluster(UpdateClusterRequest)
- returns (google.longrunning.Operation) {
+ rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}"
body: "cluster"
@@ -52,8 +50,7 @@ service ClusterController {
}
// Deletes a cluster in a project.
- rpc DeleteCluster(DeleteClusterRequest)
- returns (google.longrunning.Operation) {
+ rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}"
};
@@ -76,8 +73,7 @@ service ClusterController {
// Gets cluster diagnostic information.
// After the operation completes, the Operation.response field
// contains `DiagnoseClusterOutputLocation`.
- rpc DiagnoseCluster(DiagnoseClusterRequest)
- returns (google.longrunning.Operation) {
+ rpc DiagnoseCluster(DiagnoseClusterRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta2/projects/{project_id}/regions/{region}/clusters/{cluster_name}:diagnose"
body: "*"
@@ -127,15 +123,18 @@ message Cluster {
// The cluster config.
message ClusterConfig {
- // Optional. A Cloud Storage staging bucket used for sharing generated
- // SSH keys and config. If you do not specify a staging bucket, Cloud
- // Dataproc will determine an appropriate Cloud Storage location (US,
+ // Optional. A Google Cloud Storage bucket used to stage job
+ // dependencies, config files, and job driver console output.
+ // If you do not specify a staging bucket, Cloud
+ // Dataproc will determine a Cloud Storage location (US,
// ASIA, or EU) for your cluster's staging bucket according to the Google
- // Compute Engine zone where your cluster is deployed, and then it will create
- // and manage this project-level, per-location bucket for you.
+ // Compute Engine zone where your cluster is deployed, and then create
+ // and manage this project-level, per-location bucket (see
+ // [Cloud Dataproc staging
+ // bucket](/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
string config_bucket = 1;
- // Required. The shared Compute Engine config settings for
+ // Optional. The shared Compute Engine config settings for
// all instances in a cluster.
GceClusterConfig gce_cluster_config = 8;
@@ -174,6 +173,41 @@ message ClusterConfig {
// Optional. Encryption settings for the cluster.
EncryptionConfig encryption_config = 15;
+
+ // Optional. Autoscaling config for the policy associated with the cluster.
+ // Cluster does not autoscale if this field is unset.
+ AutoscalingConfig autoscaling_config = 16;
+
+ // Optional. Port/endpoint configuration for this cluster
+ EndpointConfig endpoint_config = 17;
+
+ // Optional. Security related configuration.
+ SecurityConfig security_config = 18;
+}
+
+// Endpoint config for this cluster
+message EndpointConfig {
+ // Output only. The map of port descriptions to URLs. Will only be populated
+ // if enable_http_port_access is true.
+ map http_ports = 1;
+
+ // Optional. If true, enable http access to specific ports on the cluster
+ // from external sources. Defaults to false.
+ bool enable_http_port_access = 2;
+}
+
+// Autoscaling Policy config associated with the cluster.
+message AutoscalingConfig {
+ // Optional. The autoscaling policy used by the cluster.
+ //
+ // Only resource names including projectid and location (region) are valid.
+ // Examples:
+ //
+ // * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ // * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
+ //
+ // Note that the policy must be in the same project and Cloud Dataproc region.
+ string policy_uri = 1;
}
// Encryption settings for the cluster.
@@ -217,8 +251,8 @@ message GceClusterConfig {
//
// A full URL, partial URI, or short name are valid. Examples:
//
- // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`
- // * `projects/[project_id]/regions/us-east1/sub0`
+ // * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`
+ // * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
// * `sub0`
string subnetwork_uri = 6;
@@ -267,6 +301,9 @@ message GceClusterConfig {
// [Project and instance
// metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map metadata = 5;
+
+ // Optional. Reservation Affinity for consuming Zonal reservation.
+ ReservationAffinity reservation_affinity = 11;
}
// Optional. The config settings for Compute Engine resources in
@@ -339,8 +376,9 @@ message ManagedGroupConfig {
// of an instance group (see [GPUs on Compute Engine](/compute/docs/gpus/)).
message AcceleratorConfig {
// Full URL, partial URI, or short name of the accelerator type resource to
- // expose to this instance. See [Compute Engine AcceleratorTypes](
- // /compute/docs/reference/beta/acceleratorTypes)
+ // expose to this instance. See
+ // [Compute Engine
+ // AcceleratorTypes](/compute/docs/reference/beta/acceleratorTypes)
//
// Examples
// * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`
@@ -401,6 +439,77 @@ message LifecycleConfig {
}
}
+// Security related configuration, including encryption, Kerberos, etc.
+message SecurityConfig {
+ // Kerberos related configuration.
+ KerberosConfig kerberos_config = 1;
+}
+
+// Specifies Kerberos related configuration.
+message KerberosConfig {
+ // Optional. Flag to indicate whether to Kerberize the cluster.
+ bool enable_kerberos = 1;
+
+ // Required. The Cloud Storage URI of a KMS encrypted file containing the root
+ // principal password.
+ string root_principal_password_uri = 2;
+
+ // Required. The uri of the KMS key used to encrypt various sensitive
+ // files.
+ string kms_key_uri = 3;
+
+ // Optional. The Cloud Storage URI of the keystore file used for SSL
+ // encryption. If not provided, Dataproc will provide a self-signed
+ // certificate.
+ string keystore_uri = 4;
+
+ // Optional. The Cloud Storage URI of the truststore file used for SSL
+ // encryption. If not provided, Dataproc will provide a self-signed
+ // certificate.
+ string truststore_uri = 5;
+
+ // Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ // password to the user provided keystore. For the self-signed certificate,
+ // this password is generated by Dataproc.
+ string keystore_password_uri = 6;
+
+ // Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ // password to the user provided key. For the self-signed certificate, this
+ // password is generated by Dataproc.
+ string key_password_uri = 7;
+
+ // Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ // password to the user provided truststore. For the self-signed certificate,
+ // this password is generated by Dataproc.
+ string truststore_password_uri = 8;
+
+ // Optional. The remote realm the Dataproc on-cluster KDC will trust, should
+ // the user enable cross realm trust.
+ string cross_realm_trust_realm = 9;
+
+ // Optional. The KDC (IP or hostname) for the remote trusted realm in a cross
+ // realm trust relationship.
+ string cross_realm_trust_kdc = 10;
+
+ // Optional. The admin server (IP or hostname) for the remote trusted realm in
+ // a cross realm trust relationship.
+ string cross_realm_trust_admin_server = 11;
+
+ // Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ // shared password between the on-cluster Kerberos realm and the remote
+ // trusted realm, in a cross realm trust relationship.
+ string cross_realm_trust_shared_password_uri = 12;
+
+ // Optional. The Cloud Storage URI of a KMS encrypted file containing the
+ // master key of the KDC database.
+ string kdc_db_key_uri = 13;
+
+ // Optional. The lifetime of the ticket granting ticket, in hours.
+ // If not specified, or user specifies 0, then default value 10
+ // will be used.
+ int32 tgt_lifetime_hours = 14;
+}
+
// Specifies an executable to run on a fully configured node and a
// timeout period for executable completion.
message NodeInitializationAction {
@@ -478,13 +587,13 @@ message SoftwareConfig {
// such as "1.2" (including a subminor version, such as "1.2.29"), or the
// ["preview"
// version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
- // If unspecified, it defaults to the latest version.
+ // If unspecified, it defaults to the latest Debian version.
string image_version = 1;
// Optional. The properties to set on daemon config files.
//
- // Property keys are specified in `prefix:property` format, such as
- // `core:fs.defaultFS`. The following are supported prefixes
+ // Property keys are specified in `prefix:property` format, for example
+ // `core:hadoop.tmp.dir`. The following are supported prefixes
// and their mappings:
//
// * capacity-scheduler: `capacity-scheduler.xml`
@@ -500,6 +609,9 @@ message SoftwareConfig {
// For more information, see
// [Cluster properties](/dataproc/docs/concepts/cluster-properties).
map properties = 2;
+
+ // The set of optional components to activate on the cluster.
+ repeated Component optional_components = 3;
}
// Contains cluster daemon metrics, such as HDFS and YARN stats.
@@ -527,11 +639,10 @@ message CreateClusterRequest {
Cluster cluster = 2;
// Optional. A unique id used to identify the request. If the server
- // receives two
- // [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest]
- // requests with the same id, then the second request will be ignored and the
- // first [google.longrunning.Operation][google.longrunning.Operation] created
- // and stored in the backend is returned.
+ // receives two [CreateClusterRequest][google.cloud.dataproc.v1beta2.CreateClusterRequest] requests with the same
+ // id, then the second request will be ignored and the
+ // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
+ // is returned.
//
// It is recommended to always set this value to a
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -621,15 +732,18 @@ message UpdateClusterRequest {
// config.lifecycle_config.idle_delete_ttl Update Idle TTL
// duration
//
+ //
+ // config.autoscaling_config.policy_uri Use, stop using, or change
+ // autoscaling policies
+ //
//
google.protobuf.FieldMask update_mask = 4;
// Optional. A unique id used to identify the request. If the server
- // receives two
- // [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest]
- // requests with the same id, then the second request will be ignored and the
- // first [google.longrunning.Operation][google.longrunning.Operation] created
- // and stored in the backend is returned.
+ // receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.UpdateClusterRequest] requests with the same
+ // id, then the second request will be ignored and the
+ // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ // backend is returned.
//
// It is recommended to always set this value to a
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -656,11 +770,10 @@ message DeleteClusterRequest {
string cluster_uuid = 4;
// Optional. A unique id used to identify the request. If the server
- // receives two
- // [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest]
- // requests with the same id, then the second request will be ignored and the
- // first [google.longrunning.Operation][google.longrunning.Operation] created
- // and stored in the backend is returned.
+ // receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.DeleteClusterRequest] requests with the same
+ // id, then the second request will be ignored and the
+ // first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the
+ // backend is returned.
//
// It is recommended to always set this value to a
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
@@ -751,3 +864,30 @@ message DiagnoseClusterResults {
// diagnostics.
string output_uri = 1;
}
+
+// Reservation Affinity for consuming Zonal reservation.
+message ReservationAffinity {
+ // Indicates whether to consume capacity from an reservation or not.
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+
+ // Do not consume from any allocated capacity.
+ NO_RESERVATION = 1;
+
+ // Consume any reservation available.
+ ANY_RESERVATION = 2;
+
+ // Must consume from a specific reservation. Must specify key value fields
+ // for specifying the reservations.
+ SPECIFIC_RESERVATION = 3;
+ }
+
+ // Optional. Type of reservation to consume
+ Type consume_reservation_type = 1;
+
+ // Optional. Corresponds to the label key of reservation resource.
+ string key = 2;
+
+ // Optional. Corresponds to the label values of reservation resource.
+ repeated string values = 3;
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto
index 4f949ba9452f..4d888dafc011 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -377,6 +377,38 @@ message PigJob {
LoggingConfig logging_config = 7;
}
+// A Cloud Dataproc job for running
+// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
+// applications on YARN.
+message SparkRJob {
+ // Required. The HCFS URI of the main R file to use as the driver.
+ // Must be a .R file.
+ string main_r_file_uri = 1;
+
+ // Optional. The arguments to pass to the driver. Do not include arguments,
+ // such as `--conf`, that can be set as job properties, since a collision may
+ // occur that causes an incorrect job submission.
+ repeated string args = 2;
+
+ // Optional. HCFS URIs of files to be copied to the working directory of
+ // R drivers and distributed tasks. Useful for naively parallel tasks.
+ repeated string file_uris = 3;
+
+ // Optional. HCFS URIs of archives to be extracted in the working directory of
+ // Spark drivers and tasks. Supported file types:
+ // .jar, .tar, .tar.gz, .tgz, and .zip.
+ repeated string archive_uris = 4;
+
+ // Optional. A mapping of property names to values, used to configure SparkR.
+ // Properties that conflict with values set by the Cloud Dataproc API may be
+ // overwritten. Can include properties set in
+ // /etc/spark/conf/spark-defaults.conf and classes in user code.
+ map properties = 5;
+
+ // Optional. The runtime log config for job execution.
+ LoggingConfig logging_config = 6;
+}
+
// Cloud Dataproc job config.
message JobPlacement {
// Required. The name of the cluster where the job will be submitted.
@@ -473,11 +505,12 @@ message JobReference {
// belongs to.
string project_id = 1;
- // Optional. The job ID, which must be unique within the project. The job ID
- // is generated by the server upon job submission or provided by the user as a
- // means to perform retries without creating duplicate jobs. The ID must
- // contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or
- // hyphens (-). The maximum length is 100 characters.
+ // Optional. The job ID, which must be unique within the project.
+ //
+ // The ID must contain only letters (a-z, A-Z), numbers (0-9),
+ // underscores (_), or hyphens (-). The maximum length is 100 characters.
+ //
+ // If not specified by the caller, the job ID will be provided by the server.
string job_id = 2;
}
@@ -563,6 +596,9 @@ message Job {
// Job is a Pig job.
PigJob pig_job = 7;
+ // Job is a SparkR job.
+ SparkRJob spark_r_job = 21;
+
// Job is a SparkSql job.
SparkSqlJob spark_sql_job = 12;
}
@@ -638,10 +674,9 @@ message SubmitJobRequest {
Job job = 2;
// Optional. A unique id used to identify the request. If the server
- // receives two
- // [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests
- // with the same id, then the second request will be ignored and the first
- // [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
+ // receives two [SubmitJobRequest][google.cloud.dataproc.v1beta2.SubmitJobRequest] requests with the same
+ // id, then the second request will be ignored and the
+ // first [Job][google.cloud.dataproc.v1beta2.Job] created and stored in the backend
// is returned.
//
// It is recommended to always set this value to a
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto
index b77eeddee354..8f9252a46716 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/operations.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto
index c9bea686ae34..de1130d9c0b1 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/shared.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -23,3 +23,33 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta
option java_multiple_files = true;
option java_outer_classname = "SharedProto";
option java_package = "com.google.cloud.dataproc.v1beta2";
+
+// Cluster components that can be activated.
+enum Component {
+ // Unspecified component.
+ COMPONENT_UNSPECIFIED = 0;
+
+ // The Anaconda python distribution.
+ ANACONDA = 5;
+
+ // The Druid query engine.
+ DRUID = 9;
+
+ // The Hive Web HCatalog (the REST service for accessing HCatalog).
+ HIVE_WEBHCAT = 3;
+
+ // The Jupyter Notebook.
+ JUPYTER = 1;
+
+ // The Kerberos security feature.
+ KERBEROS = 7;
+
+ // The Presto query engine.
+ PRESTO = 6;
+
+ // The Zeppelin notebook.
+ ZEPPELIN = 4;
+
+ // The Zookeeper service.
+ ZOOKEEPER = 8;
+}
diff --git a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto
index cb2584496568..edaf357cc6c5 100644
--- a/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto
+++ b/google-api-grpc/proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google LLC.
+// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -33,8 +33,7 @@ option java_package = "com.google.cloud.dataproc.v1beta2";
// Cloud Dataproc API.
service WorkflowTemplateService {
// Creates new workflow template.
- rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest)
- returns (WorkflowTemplate) {
+ rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) {
option (google.api.http) = {
post: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates"
body: "template"
@@ -49,8 +48,7 @@ service WorkflowTemplateService {
//
// Can retrieve previously instantiated template by specifying optional
// version parameter.
- rpc GetWorkflowTemplate(GetWorkflowTemplateRequest)
- returns (WorkflowTemplate) {
+ rpc GetWorkflowTemplate(GetWorkflowTemplateRequest) returns (WorkflowTemplate) {
option (google.api.http) = {
get: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}"
additional_bindings {
@@ -77,8 +75,7 @@ service WorkflowTemplateService {
// On successful completion,
// [Operation.response][google.longrunning.Operation.response] will be
// [Empty][google.protobuf.Empty].
- rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest)
- returns (google.longrunning.Operation) {
+ rpc InstantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate"
body: "*"
@@ -92,8 +89,7 @@ service WorkflowTemplateService {
// Instantiates a template and begins execution.
//
// This method is equivalent to executing the sequence
- // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
- // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
// [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
//
// The returned Operation can be used to track execution of
@@ -112,9 +108,7 @@ service WorkflowTemplateService {
// On successful completion,
// [Operation.response][google.longrunning.Operation.response] will be
// [Empty][google.protobuf.Empty].
- rpc InstantiateInlineWorkflowTemplate(
- InstantiateInlineWorkflowTemplateRequest)
- returns (google.longrunning.Operation) {
+ rpc InstantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline"
body: "template"
@@ -127,8 +121,7 @@ service WorkflowTemplateService {
// Updates (replaces) workflow template. The updated template
// must contain version that matches the current server version.
- rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest)
- returns (WorkflowTemplate) {
+ rpc UpdateWorkflowTemplate(UpdateWorkflowTemplateRequest) returns (WorkflowTemplate) {
option (google.api.http) = {
put: "/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}"
body: "template"
@@ -140,8 +133,7 @@ service WorkflowTemplateService {
}
// Lists workflows that match the specified filter in the request.
- rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest)
- returns (ListWorkflowTemplatesResponse) {
+ rpc ListWorkflowTemplates(ListWorkflowTemplatesRequest) returns (ListWorkflowTemplatesResponse) {
option (google.api.http) = {
get: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates"
additional_bindings {
@@ -151,8 +143,7 @@ service WorkflowTemplateService {
}
// Deletes a workflow template. It does not cancel in-progress workflows.
- rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest)
- returns (google.protobuf.Empty) {
+ rpc DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}"
additional_bindings {
@@ -169,6 +160,8 @@ message WorkflowTemplate {
// The id must contain only letters (a-z, A-Z), numbers (0-9),
// underscores (_), and hyphens (-). Cannot begin or end with underscore
// or hyphen. Must consist of between 3 and 50 characters.
+ //
+ // .
string id = 2;
// Output only. The "resource name" of the template, as described
@@ -284,8 +277,8 @@ message OrderedJob {
//
// The step id is used as prefix for job id, as job
// `goog-dataproc-workflow-step-id` label, and in
- // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids]
- // field from other steps.
+ // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.OrderedJob.prerequisite_step_ids] field from other
+ // steps.
//
// The id must contain only letters (a-z, A-Z), numbers (0-9),
// underscores (_), and hyphens (-). Cannot begin or end with underscore
@@ -356,10 +349,10 @@ message TemplateParameter {
// A field is allowed to appear in at most one parameter's list of field
// paths.
//
- // A field path is similar in syntax to a
- // [google.protobuf.FieldMask][google.protobuf.FieldMask]. For example, a
- // field path that references the zone field of a workflow template's cluster
- // selector would be specified as `placement.clusterSelector.zone`.
+ // A field path is similar in syntax to a [google.protobuf.FieldMask][google.protobuf.FieldMask].
+ // For example, a field path that references the zone field of a workflow
+ // template's cluster selector would be specified as
+ // `placement.clusterSelector.zone`.
//
// Also, field paths can reference fields using the following syntax:
//
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
new file mode 100644
index 000000000000..b7791b2a596e
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
@@ -0,0 +1,804 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dataproc.v1beta2.stub.AutoscalingPolicyServiceStub;
+import com.google.cloud.dataproc.v1beta2.stub.AutoscalingPolicyServiceStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND SERVICE
+/**
+ * Service Description: The API interface for managing autoscaling policies in the Google Cloud
+ * Dataproc API.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
+ * }
+ *
+ *
+ *
+ * Note: close() needs to be called on the autoscalingPolicyServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ *
The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ *
+ * - A "flattened" method. With this type of method, the fields of the request type have been
+ * converted into function parameters. It may be the case that not all fields are available as
+ * parameters, and not every API method will have a flattened method entry point.
+ *
- A "request object" method. This type of method only takes one parameter, a request object,
+ * which must be constructed before the call. Not every API method will have a request object
+ * method.
+ *
- A "callable" method. This type of method takes no parameters and returns an immutable API
+ * callable object, which can be used to initiate calls to the service.
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of
+ * AutoscalingPolicyServiceSettings to create(). For example:
+ *
+ *
To customize credentials:
+ *
+ *
+ *
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
+ * AutoscalingPolicyServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
+ * AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
+ *
+ *
+ *
+ * To customize the endpoint:
+ *
+ *
+ *
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
+ * AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
+ * AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class AutoscalingPolicyServiceClient implements BackgroundResource {
+ private final AutoscalingPolicyServiceSettings settings;
+ private final AutoscalingPolicyServiceStub stub;
+
+ /** Constructs an instance of AutoscalingPolicyServiceClient with default settings. */
+ public static final AutoscalingPolicyServiceClient create() throws IOException {
+ return create(AutoscalingPolicyServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of AutoscalingPolicyServiceClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final AutoscalingPolicyServiceClient create(
+ AutoscalingPolicyServiceSettings settings) throws IOException {
+ return new AutoscalingPolicyServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making
+ * calls. This is for advanced usage - prefer to use AutoscalingPolicyServiceSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub) {
+ return new AutoscalingPolicyServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of AutoscalingPolicyServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((AutoscalingPolicyServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final AutoscalingPolicyServiceSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public AutoscalingPolicyServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates new autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
+ * }
+ *
+ *
+ * @param parent Required. The "resource name" of the region, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ * @param policy The autoscaling policy to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy createAutoscalingPolicy(
+ RegionName parent, AutoscalingPolicy policy) {
+
+ CreateAutoscalingPolicyRequest request =
+ CreateAutoscalingPolicyRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPolicy(policy)
+ .build();
+ return createAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates new autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent.toString(), policy);
+ * }
+ *
+ *
+ * @param parent Required. The "resource name" of the region, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`.
+ * @param policy The autoscaling policy to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy createAutoscalingPolicy(String parent, AutoscalingPolicy policy) {
+
+ CreateAutoscalingPolicyRequest request =
+ CreateAutoscalingPolicyRequest.newBuilder().setParent(parent).setPolicy(policy).build();
+ return createAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates new autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .setPolicy(policy)
+ * .build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy createAutoscalingPolicy(CreateAutoscalingPolicyRequest request) {
+ return createAutoscalingPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates new autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .setPolicy(policy)
+ * .build();
+ * ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
+ * // Do something
+ * AutoscalingPolicy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallable
+ createAutoscalingPolicyCallable() {
+ return stub.createAutoscalingPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates (replaces) autoscaling policy.
+ *
+ * Disabled check for update_mask, because all updates will be full replacements.
+ *
+ *
Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
+ * }
+ *
+ *
+ * @param policy Required. The updated autoscaling policy.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy updateAutoscalingPolicy(AutoscalingPolicy policy) {
+
+ UpdateAutoscalingPolicyRequest request =
+ UpdateAutoscalingPolicyRequest.newBuilder().setPolicy(policy).build();
+ return updateAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates (replaces) autoscaling policy.
+ *
+ * Disabled check for update_mask, because all updates will be full replacements.
+ *
+ *
Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
+ * .setPolicy(policy)
+ * .build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request) {
+ return updateAutoscalingPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates (replaces) autoscaling policy.
+ *
+ * Disabled check for update_mask, because all updates will be full replacements.
+ *
+ *
Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
+ * .setPolicy(policy)
+ * .build();
+ * ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
+ * // Do something
+ * AutoscalingPolicy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallable
+ updateAutoscalingPolicyCallable() {
+ return stub.updateAutoscalingPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
+ * }
+ *
+ *
+ * @param name Required. The "resource name" of the autoscaling policy, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy getAutoscalingPolicy(AutoscalingPolicyName name) {
+
+ GetAutoscalingPolicyRequest request =
+ GetAutoscalingPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name.toString());
+ * }
+ *
+ *
+ * @param name Required. The "resource name" of the autoscaling policy, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy getAutoscalingPolicy(String name) {
+
+ GetAutoscalingPolicyRequest request =
+ GetAutoscalingPolicyRequest.newBuilder().setName(name).build();
+ return getAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AutoscalingPolicy getAutoscalingPolicy(GetAutoscalingPolicyRequest request) {
+ return getAutoscalingPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves autoscaling policy.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
+ * // Do something
+ * AutoscalingPolicy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallable
+ getAutoscalingPolicyCallable() {
+ return stub.getAutoscalingPolicyCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists autoscaling policies in the project.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param parent Required. The "resource name" of the region, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(RegionName parent) {
+ ListAutoscalingPoliciesRequest request =
+ ListAutoscalingPoliciesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listAutoscalingPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists autoscaling policies in the project.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent.toString()).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param parent Required. The "resource name" of the region, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent) {
+ ListAutoscalingPoliciesRequest request =
+ ListAutoscalingPoliciesRequest.newBuilder().setParent(parent).build();
+ return listAutoscalingPolicies(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists autoscaling policies in the project.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(
+ ListAutoscalingPoliciesRequest request) {
+ return listAutoscalingPoliciesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists autoscaling policies in the project.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * ApiFuture<ListAutoscalingPoliciesPagedResponse> future = autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
+ * // Do something
+ * for (AutoscalingPolicy element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ public final UnaryCallable
+ listAutoscalingPoliciesPagedCallable() {
+ return stub.listAutoscalingPoliciesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists autoscaling policies in the project.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * while (true) {
+ * ListAutoscalingPoliciesResponse response = autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
+ * for (AutoscalingPolicy element : response.getPoliciesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ public final UnaryCallable
+ listAutoscalingPoliciesCallable() {
+ return stub.listAutoscalingPoliciesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by
+ * one or more clusters.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
+ * }
+ *
+ *
+ * @param name Required. The "resource name" of the autoscaling policy, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAutoscalingPolicy(AutoscalingPolicyName name) {
+
+ DeleteAutoscalingPolicyRequest request =
+ DeleteAutoscalingPolicyRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by
+ * one or more clusters.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name.toString());
+ * }
+ *
+ *
+ * @param name Required. The "resource name" of the autoscaling policy, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAutoscalingPolicy(String name) {
+
+ DeleteAutoscalingPolicyRequest request =
+ DeleteAutoscalingPolicyRequest.newBuilder().setName(name).build();
+ deleteAutoscalingPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by
+ * one or more clusters.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) {
+ deleteAutoscalingPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by
+ * one or more clusters.
+ *
+ * Sample code:
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ * DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Void> future = autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallable
+ deleteAutoscalingPolicyCallable() {
+ return stub.deleteAutoscalingPolicyCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListAutoscalingPoliciesPagedResponse
+ extends AbstractPagedListResponse<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ AutoscalingPolicy,
+ ListAutoscalingPoliciesPage,
+ ListAutoscalingPoliciesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction() {
+ @Override
+ public ListAutoscalingPoliciesPagedResponse apply(ListAutoscalingPoliciesPage input) {
+ return new ListAutoscalingPoliciesPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListAutoscalingPoliciesPagedResponse(ListAutoscalingPoliciesPage page) {
+ super(page, ListAutoscalingPoliciesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListAutoscalingPoliciesPage
+ extends AbstractPage<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ AutoscalingPolicy,
+ ListAutoscalingPoliciesPage> {
+
+ private ListAutoscalingPoliciesPage(
+ PageContext<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy>
+ context,
+ ListAutoscalingPoliciesResponse response) {
+ super(context, response);
+ }
+
+ private static ListAutoscalingPoliciesPage createEmptyPage() {
+ return new ListAutoscalingPoliciesPage(null, null);
+ }
+
+ @Override
+ protected ListAutoscalingPoliciesPage createPage(
+ PageContext<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy>
+ context,
+ ListAutoscalingPoliciesResponse response) {
+ return new ListAutoscalingPoliciesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListAutoscalingPoliciesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ AutoscalingPolicy,
+ ListAutoscalingPoliciesPage,
+ ListAutoscalingPoliciesFixedSizeCollection> {
+
+ private ListAutoscalingPoliciesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListAutoscalingPoliciesFixedSizeCollection createEmptyCollection() {
+ return new ListAutoscalingPoliciesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListAutoscalingPoliciesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListAutoscalingPoliciesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java
new file mode 100644
index 000000000000..a0e9fa440129
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java
@@ -0,0 +1,241 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2;
+
+import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.dataproc.v1beta2.stub.AutoscalingPolicyServiceStubSettings;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Settings class to configure an instance of {@link AutoscalingPolicyServiceClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (dataproc.googleapis.com) and default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object. For
+ * example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
+ *
+ *
+ *
+ * AutoscalingPolicyServiceSettings.Builder autoscalingPolicyServiceSettingsBuilder =
+ * AutoscalingPolicyServiceSettings.newBuilder();
+ * autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class AutoscalingPolicyServiceSettings
+ extends ClientSettings {
+ /** Returns the object with the settings used for calls to createAutoscalingPolicy. */
+ public UnaryCallSettings
+ createAutoscalingPolicySettings() {
+ return ((AutoscalingPolicyServiceStubSettings) getStubSettings())
+ .createAutoscalingPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */
+ public UnaryCallSettings
+ updateAutoscalingPolicySettings() {
+ return ((AutoscalingPolicyServiceStubSettings) getStubSettings())
+ .updateAutoscalingPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to getAutoscalingPolicy. */
+ public UnaryCallSettings
+ getAutoscalingPolicySettings() {
+ return ((AutoscalingPolicyServiceStubSettings) getStubSettings())
+ .getAutoscalingPolicySettings();
+ }
+
+ /** Returns the object with the settings used for calls to listAutoscalingPolicies. */
+ public PagedCallSettings<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings() {
+ return ((AutoscalingPolicyServiceStubSettings) getStubSettings())
+ .listAutoscalingPoliciesSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */
+ public UnaryCallSettings
+ deleteAutoscalingPolicySettings() {
+ return ((AutoscalingPolicyServiceStubSettings) getStubSettings())
+ .deleteAutoscalingPolicySettings();
+ }
+
+ public static final AutoscalingPolicyServiceSettings create(
+ AutoscalingPolicyServiceStubSettings stub) throws IOException {
+ return new AutoscalingPolicyServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return AutoscalingPolicyServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return AutoscalingPolicyServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return AutoscalingPolicyServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return AutoscalingPolicyServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return AutoscalingPolicyServiceStubSettings.defaultGrpcTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return AutoscalingPolicyServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return AutoscalingPolicyServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected AutoscalingPolicyServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for AutoscalingPolicyServiceSettings. */
+ public static class Builder
+ extends ClientSettings.Builder {
+ protected Builder() throws IOException {
+ this((ClientContext) null);
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(AutoscalingPolicyServiceStubSettings.newBuilder(clientContext));
+ }
+
+ private static Builder createDefault() {
+ return new Builder(AutoscalingPolicyServiceStubSettings.newBuilder());
+ }
+
+ protected Builder(AutoscalingPolicyServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(AutoscalingPolicyServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
+ }
+
+ // NEXT_MAJOR_VER: remove 'throws Exception'
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) throws Exception {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ createAutoscalingPolicySettings() {
+ return getStubSettingsBuilder().createAutoscalingPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ updateAutoscalingPolicySettings() {
+ return getStubSettingsBuilder().updateAutoscalingPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ getAutoscalingPolicySettings() {
+ return getStubSettingsBuilder().getAutoscalingPolicySettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */
+ public PagedCallSettings.Builder<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings() {
+ return getStubSettingsBuilder().listAutoscalingPoliciesSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ deleteAutoscalingPolicySettings() {
+ return getStubSettingsBuilder().deleteAutoscalingPolicySettings();
+ }
+
+ @Override
+ public AutoscalingPolicyServiceSettings build() throws IOException {
+ return new AutoscalingPolicyServiceSettings(this);
+ }
+ }
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
index c0433f2cacce..b40b0796d6bb 100644
--- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
@@ -339,7 +339,9 @@ public final UnaryCallable createClusterCallabl
* <td>config.lifecycle_config.auto_delete_time</td><td>Update MAX TTL
* deletion timestamp</td> </tr> <tr>
* <td>config.lifecycle_config.idle_delete_ttl</td><td>Update Idle TTL
- * duration</td> </tr> </table>
+ * duration</td> </tr> <tr>
+ * <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
+ * change autoscaling policies</td> </tr> </table>
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi(
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
index ef6683081b02..3890264db6b7 100644
--- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
@@ -658,9 +658,61 @@ public final OperationFuture instantiateWorkflowTemplat
*
*
* try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- * String formattedParent = RegionName.format("[PROJECT]", "[REGION]");
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
+ * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent, template).get();
+ * }
+ *
+ *
+ * @param parent Required. The "resource name" of the workflow template region, as described in
+ * https://cloud.google.com/apis/design/resource_names of the form
+ * `projects/{project_id}/regions/{region}`
+ * @param template Required. The workflow template to instantiate.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFuture instantiateInlineWorkflowTemplateAsync(
+ RegionName parent, WorkflowTemplate template) {
+
+ InstantiateInlineWorkflowTemplateRequest request =
+ InstantiateInlineWorkflowTemplateRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setTemplate(template)
+ .build();
+ return instantiateInlineWorkflowTemplateAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Instantiates a template and begins execution.
+ *
+ * This method is equivalent to executing the sequence
+ * [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
+ * [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
+ * [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
+ *
+ *
The returned Operation can be used to track execution of workflow by polling
+ * [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when
+ * entire workflow is finished.
+ *
+ *
The running workflow can be aborted via
+ * [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any
+ * inflight jobs to be cancelled and workflow-owned clusters to be deleted.
+ *
+ *
The [Operation.metadata][google.longrunning.Operation.metadata] will be
+ * [WorkflowMetadata][google.cloud.dataproc.v1beta2.WorkflowMetadata].
+ *
+ *
On successful completion, [Operation.response][google.longrunning.Operation.response] will
+ * be [Empty][google.protobuf.Empty].
+ *
+ *
Sample code:
+ *
+ *
+ * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
* WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
- * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(formattedParent, template).get();
+ * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(parent.toString(), template).get();
* }
*
*
@@ -710,10 +762,10 @@ public final OperationFuture instantiateInlineWorkflowT
*
*
* try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- * String formattedParent = RegionName.format("[PROJECT]", "[REGION]");
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
* WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
* InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
- * .setParent(formattedParent)
+ * .setParent(parent.toString())
* .setTemplate(template)
* .build();
* workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get();
@@ -757,10 +809,10 @@ public final OperationFuture instantiateInlineWorkflowT
*
*
* try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- * String formattedParent = RegionName.format("[PROJECT]", "[REGION]");
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
* WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
* InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
- * .setParent(formattedParent)
+ * .setParent(parent.toString())
* .setTemplate(template)
* .build();
* OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request);
@@ -802,10 +854,10 @@ public final OperationFuture instantiateInlineWorkflowT
*
*
* try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
- * String formattedParent = RegionName.format("[PROJECT]", "[REGION]");
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
* WorkflowTemplate template = WorkflowTemplate.newBuilder().build();
* InstantiateInlineWorkflowTemplateRequest request = InstantiateInlineWorkflowTemplateRequest.newBuilder()
- * .setParent(formattedParent)
+ * .setParent(parent.toString())
* .setTemplate(template)
* .build();
* ApiFuture<Operation> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateCallable().futureCall(request);
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java
index 447f877a62fa..2b8358ea1f84 100644
--- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/package-info.java
@@ -19,7 +19,24 @@
*
* The interfaces provided are listed below, along with usage samples.
*
- *
======================= ClusterControllerClient =======================
+ *
============================== AutoscalingPolicyServiceClient ==============================
+ *
+ *
Service Description: The API interface for managing autoscaling policies in the Google Cloud
+ * Dataproc API.
+ *
+ *
Sample for AutoscalingPolicyServiceClient:
+ *
+ *
+ *
+ * try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
+ * RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ * AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+ * AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
+ * }
+ *
+ *
+ *
+ * ======================= ClusterControllerClient =======================
*
* Service Description: The ClusterControllerService provides methods to manage clusters of
* Compute Engine instances.
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java
new file mode 100644
index 000000000000..215b91084b00
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStub.java
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2.stub;
+
+import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy;
+import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse;
+import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest;
+import com.google.protobuf.Empty;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Base stub class for Google Cloud Dataproc API.
+ *
+ *
This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public abstract class AutoscalingPolicyServiceStub implements BackgroundResource {
+
+ public UnaryCallable
+ createAutoscalingPolicyCallable() {
+ throw new UnsupportedOperationException("Not implemented: createAutoscalingPolicyCallable()");
+ }
+
+ public UnaryCallable
+ updateAutoscalingPolicyCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateAutoscalingPolicyCallable()");
+ }
+
+ public UnaryCallable
+ getAutoscalingPolicyCallable() {
+ throw new UnsupportedOperationException("Not implemented: getAutoscalingPolicyCallable()");
+ }
+
+ public UnaryCallable
+ listAutoscalingPoliciesPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listAutoscalingPoliciesPagedCallable()");
+ }
+
+ public UnaryCallable
+ listAutoscalingPoliciesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listAutoscalingPoliciesCallable()");
+ }
+
+ public UnaryCallable deleteAutoscalingPolicyCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteAutoscalingPolicyCallable()");
+ }
+
+ @Override
+ public abstract void close();
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java
new file mode 100644
index 000000000000..ecb1e014ea44
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java
@@ -0,0 +1,480 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2.stub;
+
+import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GaxProperties;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
+import com.google.api.gax.grpc.GrpcTransportChannel;
+import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
+import com.google.api.gax.retrying.RetrySettings;
+import com.google.api.gax.rpc.ApiCallContext;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.PagedListDescriptor;
+import com.google.api.gax.rpc.PagedListResponseFactory;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.StubSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy;
+import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse;
+import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Lists;
+import com.google.protobuf.Empty;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+import org.threeten.bp.Duration;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Settings class to configure an instance of {@link AutoscalingPolicyServiceStub}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (dataproc.googleapis.com) and default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object. For
+ * example, to set the total timeout of createAutoscalingPolicy to 30 seconds:
+ *
+ *
+ *
+ * AutoscalingPolicyServiceStubSettings.Builder autoscalingPolicyServiceSettingsBuilder =
+ * AutoscalingPolicyServiceStubSettings.newBuilder();
+ * autoscalingPolicyServiceSettingsBuilder.createAutoscalingPolicySettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * AutoscalingPolicyServiceStubSettings autoscalingPolicyServiceSettings = autoscalingPolicyServiceSettingsBuilder.build();
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class AutoscalingPolicyServiceStubSettings
+ extends StubSettings {
+ /** The default scopes of the service. */
+ private static final ImmutableList DEFAULT_SERVICE_SCOPES =
+ ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
+
+ private final UnaryCallSettings
+ createAutoscalingPolicySettings;
+ private final UnaryCallSettings
+ updateAutoscalingPolicySettings;
+ private final UnaryCallSettings
+ getAutoscalingPolicySettings;
+ private final PagedCallSettings<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings;
+ private final UnaryCallSettings
+ deleteAutoscalingPolicySettings;
+
+ /** Returns the object with the settings used for calls to createAutoscalingPolicy. */
+ public UnaryCallSettings
+ createAutoscalingPolicySettings() {
+ return createAutoscalingPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateAutoscalingPolicy. */
+ public UnaryCallSettings
+ updateAutoscalingPolicySettings() {
+ return updateAutoscalingPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to getAutoscalingPolicy. */
+ public UnaryCallSettings
+ getAutoscalingPolicySettings() {
+ return getAutoscalingPolicySettings;
+ }
+
+ /** Returns the object with the settings used for calls to listAutoscalingPolicies. */
+ public PagedCallSettings<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings() {
+ return listAutoscalingPoliciesSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteAutoscalingPolicy. */
+ public UnaryCallSettings
+ deleteAutoscalingPolicySettings() {
+ return deleteAutoscalingPolicySettings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public AutoscalingPolicyServiceStub createStub() throws IOException {
+ if (getTransportChannelProvider()
+ .getTransportName()
+ .equals(GrpcTransportChannel.getGrpcTransportName())) {
+ return GrpcAutoscalingPolicyServiceStub.create(this);
+ } else {
+ throw new UnsupportedOperationException(
+ "Transport not supported: " + getTransportChannelProvider().getTransportName());
+ }
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstantiatingExecutorProvider.newBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return "dataproc.googleapis.com:443";
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return DEFAULT_SERVICE_SCOPES;
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
+ return InstantiatingGrpcChannelProvider.newBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return defaultGrpcTransportProviderBuilder().build();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return ApiClientHeaderProvider.newBuilder()
+ .setGeneratedLibToken(
+ "gapic", GaxProperties.getLibraryVersion(AutoscalingPolicyServiceStubSettings.class))
+ .setTransportToken(
+ GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected AutoscalingPolicyServiceStubSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+
+ createAutoscalingPolicySettings = settingsBuilder.createAutoscalingPolicySettings().build();
+ updateAutoscalingPolicySettings = settingsBuilder.updateAutoscalingPolicySettings().build();
+ getAutoscalingPolicySettings = settingsBuilder.getAutoscalingPolicySettings().build();
+ listAutoscalingPoliciesSettings = settingsBuilder.listAutoscalingPoliciesSettings().build();
+ deleteAutoscalingPolicySettings = settingsBuilder.deleteAutoscalingPolicySettings().build();
+ }
+
+ private static final PagedListDescriptor<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse, AutoscalingPolicy>
+ LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ AutoscalingPolicy>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListAutoscalingPoliciesRequest injectToken(
+ ListAutoscalingPoliciesRequest payload, String token) {
+ return ListAutoscalingPoliciesRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListAutoscalingPoliciesRequest injectPageSize(
+ ListAutoscalingPoliciesRequest payload, int pageSize) {
+ return ListAutoscalingPoliciesRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListAutoscalingPoliciesRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListAutoscalingPoliciesResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListAutoscalingPoliciesResponse payload) {
+ return payload.getPoliciesList() != null
+ ? payload.getPoliciesList()
+ : ImmutableList.of();
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable
+ callable,
+ ListAutoscalingPoliciesRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ AutoscalingPolicy>
+ pageContext =
+ PageContext.create(
+ callable, LIST_AUTOSCALING_POLICIES_PAGE_STR_DESC, request, context);
+ return ListAutoscalingPoliciesPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
+ /** Builder for AutoscalingPolicyServiceStubSettings. */
+ public static class Builder
+ extends StubSettings.Builder {
+ private final ImmutableList> unaryMethodSettingsBuilders;
+
+ private final UnaryCallSettings.Builder
+ createAutoscalingPolicySettings;
+ private final UnaryCallSettings.Builder
+ updateAutoscalingPolicySettings;
+ private final UnaryCallSettings.Builder
+ getAutoscalingPolicySettings;
+ private final PagedCallSettings.Builder<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings;
+ private final UnaryCallSettings.Builder
+ deleteAutoscalingPolicySettings;
+
+ private static final ImmutableMap>
+ RETRYABLE_CODE_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder> definitions =
+ ImmutableMap.builder();
+ definitions.put(
+ "idempotent",
+ ImmutableSet.copyOf(
+ Lists.newArrayList(
+ StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
+ definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+ RETRYABLE_CODE_DEFINITIONS = definitions.build();
+ }
+
+ private static final ImmutableMap RETRY_PARAM_DEFINITIONS;
+
+ static {
+ ImmutableMap.Builder definitions = ImmutableMap.builder();
+ RetrySettings settings = null;
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(100L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(60000L))
+ .setInitialRpcTimeout(Duration.ofMillis(20000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(20000L))
+ .setTotalTimeout(Duration.ofMillis(600000L))
+ .build();
+ definitions.put("default", settings);
+ RETRY_PARAM_DEFINITIONS = definitions.build();
+ }
+
+ protected Builder() {
+ this((ClientContext) null);
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(clientContext);
+
+ createAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ updateAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ getAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ listAutoscalingPoliciesSettings =
+ PagedCallSettings.newBuilder(LIST_AUTOSCALING_POLICIES_PAGE_STR_FACT);
+
+ deleteAutoscalingPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(
+ createAutoscalingPolicySettings,
+ updateAutoscalingPolicySettings,
+ getAutoscalingPolicySettings,
+ listAutoscalingPoliciesSettings,
+ deleteAutoscalingPolicySettings);
+
+ initDefaults(this);
+ }
+
+ private static Builder createDefault() {
+ Builder builder = new Builder((ClientContext) null);
+ builder.setTransportChannelProvider(defaultTransportChannelProvider());
+ builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
+ builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
+ builder.setEndpoint(getDefaultEndpoint());
+ return initDefaults(builder);
+ }
+
+ private static Builder initDefaults(Builder builder) {
+
+ builder
+ .createAutoscalingPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .updateAutoscalingPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .getAutoscalingPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .listAutoscalingPoliciesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ builder
+ .deleteAutoscalingPolicySettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+ return builder;
+ }
+
+ protected Builder(AutoscalingPolicyServiceStubSettings settings) {
+ super(settings);
+
+ createAutoscalingPolicySettings = settings.createAutoscalingPolicySettings.toBuilder();
+ updateAutoscalingPolicySettings = settings.updateAutoscalingPolicySettings.toBuilder();
+ getAutoscalingPolicySettings = settings.getAutoscalingPolicySettings.toBuilder();
+ listAutoscalingPoliciesSettings = settings.listAutoscalingPoliciesSettings.toBuilder();
+ deleteAutoscalingPolicySettings = settings.deleteAutoscalingPolicySettings.toBuilder();
+
+ unaryMethodSettingsBuilders =
+ ImmutableList.>of(
+ createAutoscalingPolicySettings,
+ updateAutoscalingPolicySettings,
+ getAutoscalingPolicySettings,
+ listAutoscalingPoliciesSettings,
+ deleteAutoscalingPolicySettings);
+ }
+
+ // NEXT_MAJOR_VER: remove 'throws Exception'
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) throws Exception {
+ super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
+ return this;
+ }
+
+ public ImmutableList> unaryMethodSettingsBuilders() {
+ return unaryMethodSettingsBuilders;
+ }
+
+ /** Returns the builder for the settings used for calls to createAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ createAutoscalingPolicySettings() {
+ return createAutoscalingPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ updateAutoscalingPolicySettings() {
+ return updateAutoscalingPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ getAutoscalingPolicySettings() {
+ return getAutoscalingPolicySettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listAutoscalingPolicies. */
+ public PagedCallSettings.Builder<
+ ListAutoscalingPoliciesRequest,
+ ListAutoscalingPoliciesResponse,
+ ListAutoscalingPoliciesPagedResponse>
+ listAutoscalingPoliciesSettings() {
+ return listAutoscalingPoliciesSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteAutoscalingPolicy. */
+ public UnaryCallSettings.Builder
+ deleteAutoscalingPolicySettings() {
+ return deleteAutoscalingPolicySettings;
+ }
+
+ @Override
+ public AutoscalingPolicyServiceStubSettings build() throws IOException {
+ return new AutoscalingPolicyServiceStubSettings(this);
+ }
+ }
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java
new file mode 100644
index 000000000000..a79a3ec83fb9
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * gRPC callable factory implementation for Google Cloud Dataproc API.
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator")
+@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+public class GrpcAutoscalingPolicyServiceCallableFactory implements GrpcStubCallableFactory {
+ @Override
+ public UnaryCallable createUnaryCallable(
+ GrpcCallSettings grpcCallSettings,
+ UnaryCallSettings callSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
+ }
+
+ @Override
+ public
+ UnaryCallable createPagedCallable(
+ GrpcCallSettings grpcCallSettings,
+ PagedCallSettings pagedCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createPagedCallable(
+ grpcCallSettings, pagedCallSettings, clientContext);
+ }
+
+ @Override
+ public UnaryCallable createBatchingCallable(
+ GrpcCallSettings grpcCallSettings,
+ BatchingCallSettings batchingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBatchingCallable(
+ grpcCallSettings, batchingCallSettings, clientContext);
+ }
+
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ @Override
+ public
+ OperationCallable createOperationCallable(
+ GrpcCallSettings grpcCallSettings,
+ OperationCallSettings operationCallSettings,
+ ClientContext clientContext,
+ OperationsStub operationsStub) {
+ return GrpcCallableFactory.createOperationCallable(
+ grpcCallSettings, operationCallSettings, clientContext, operationsStub);
+ }
+
+ @Override
+ public
+ BidiStreamingCallable createBidiStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createBidiStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+
+ @Override
+ public
+ ServerStreamingCallable createServerStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ ServerStreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createServerStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+
+ @Override
+ public
+ ClientStreamingCallable createClientStreamingCallable(
+ GrpcCallSettings grpcCallSettings,
+ StreamingCallSettings streamingCallSettings,
+ ClientContext clientContext) {
+ return GrpcCallableFactory.createClientStreamingCallable(
+ grpcCallSettings, streamingCallSettings, clientContext);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java
new file mode 100644
index 000000000000..7dbe942313ee
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java
@@ -0,0 +1,329 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2.stub;
+
+import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.core.BackgroundResourceAggregation;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.RequestParamsExtractor;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dataproc.v1beta2.AutoscalingPolicy;
+import com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest;
+import com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse;
+import com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest;
+import com.google.common.collect.ImmutableMap;
+import com.google.protobuf.Empty;
+import io.grpc.MethodDescriptor;
+import io.grpc.protobuf.ProtoUtils;
+import java.io.IOException;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * gRPC stub implementation for Google Cloud Dataproc API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public class GrpcAutoscalingPolicyServiceStub extends AutoscalingPolicyServiceStub {
+
+ private static final MethodDescriptor
+ createAutoscalingPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/CreateAutoscalingPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateAutoscalingPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ updateAutoscalingPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/UpdateAutoscalingPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateAutoscalingPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ getAutoscalingPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/GetAutoscalingPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetAutoscalingPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(AutoscalingPolicy.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor<
+ ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse>
+ listAutoscalingPoliciesMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/ListAutoscalingPolicies")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListAutoscalingPoliciesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListAutoscalingPoliciesResponse.getDefaultInstance()))
+ .build();
+ private static final MethodDescriptor
+ deleteAutoscalingPolicyMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.dataproc.v1beta2.AutoscalingPolicyService/DeleteAutoscalingPolicy")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteAutoscalingPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private final BackgroundResource backgroundResources;
+
+ private final UnaryCallable
+ createAutoscalingPolicyCallable;
+ private final UnaryCallable
+ updateAutoscalingPolicyCallable;
+ private final UnaryCallable
+ getAutoscalingPolicyCallable;
+ private final UnaryCallable
+ listAutoscalingPoliciesCallable;
+ private final UnaryCallable
+ listAutoscalingPoliciesPagedCallable;
+ private final UnaryCallable
+ deleteAutoscalingPolicyCallable;
+
+ private final GrpcStubCallableFactory callableFactory;
+
+ public static final GrpcAutoscalingPolicyServiceStub create(
+ AutoscalingPolicyServiceStubSettings settings) throws IOException {
+ return new GrpcAutoscalingPolicyServiceStub(settings, ClientContext.create(settings));
+ }
+
+ public static final GrpcAutoscalingPolicyServiceStub create(ClientContext clientContext)
+ throws IOException {
+ return new GrpcAutoscalingPolicyServiceStub(
+ AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext);
+ }
+
+ public static final GrpcAutoscalingPolicyServiceStub create(
+ ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
+ return new GrpcAutoscalingPolicyServiceStub(
+ AutoscalingPolicyServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
+ }
+
+ /**
+ * Constructs an instance of GrpcAutoscalingPolicyServiceStub, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected GrpcAutoscalingPolicyServiceStub(
+ AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext)
+ throws IOException {
+ this(settings, clientContext, new GrpcAutoscalingPolicyServiceCallableFactory());
+ }
+
+ /**
+ * Constructs an instance of GrpcAutoscalingPolicyServiceStub, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected GrpcAutoscalingPolicyServiceStub(
+ AutoscalingPolicyServiceStubSettings settings,
+ ClientContext clientContext,
+ GrpcStubCallableFactory callableFactory)
+ throws IOException {
+ this.callableFactory = callableFactory;
+
+ GrpcCallSettings
+ createAutoscalingPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createAutoscalingPolicyMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(CreateAutoscalingPolicyRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ }
+ })
+ .build();
+ GrpcCallSettings
+ updateAutoscalingPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(UpdateAutoscalingPolicyRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("policy.name", String.valueOf(request.getPolicy().getName()));
+ return params.build();
+ }
+ })
+ .build();
+ GrpcCallSettings
+ getAutoscalingPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getAutoscalingPolicyMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(GetAutoscalingPolicyRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ }
+ })
+ .build();
+ GrpcCallSettings
+ listAutoscalingPoliciesTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(ListAutoscalingPoliciesRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("parent", String.valueOf(request.getParent()));
+ return params.build();
+ }
+ })
+ .build();
+ GrpcCallSettings
+ deleteAutoscalingPolicyTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(DeleteAutoscalingPolicyRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ }
+ })
+ .build();
+
+ this.createAutoscalingPolicyCallable =
+ callableFactory.createUnaryCallable(
+ createAutoscalingPolicyTransportSettings,
+ settings.createAutoscalingPolicySettings(),
+ clientContext);
+ this.updateAutoscalingPolicyCallable =
+ callableFactory.createUnaryCallable(
+ updateAutoscalingPolicyTransportSettings,
+ settings.updateAutoscalingPolicySettings(),
+ clientContext);
+ this.getAutoscalingPolicyCallable =
+ callableFactory.createUnaryCallable(
+ getAutoscalingPolicyTransportSettings,
+ settings.getAutoscalingPolicySettings(),
+ clientContext);
+ this.listAutoscalingPoliciesCallable =
+ callableFactory.createUnaryCallable(
+ listAutoscalingPoliciesTransportSettings,
+ settings.listAutoscalingPoliciesSettings(),
+ clientContext);
+ this.listAutoscalingPoliciesPagedCallable =
+ callableFactory.createPagedCallable(
+ listAutoscalingPoliciesTransportSettings,
+ settings.listAutoscalingPoliciesSettings(),
+ clientContext);
+ this.deleteAutoscalingPolicyCallable =
+ callableFactory.createUnaryCallable(
+ deleteAutoscalingPolicyTransportSettings,
+ settings.deleteAutoscalingPolicySettings(),
+ clientContext);
+
+ backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
+ }
+
+ public UnaryCallable
+ createAutoscalingPolicyCallable() {
+ return createAutoscalingPolicyCallable;
+ }
+
+ public UnaryCallable
+ updateAutoscalingPolicyCallable() {
+ return updateAutoscalingPolicyCallable;
+ }
+
+ public UnaryCallable
+ getAutoscalingPolicyCallable() {
+ return getAutoscalingPolicyCallable;
+ }
+
+ public UnaryCallable
+ listAutoscalingPoliciesPagedCallable() {
+ return listAutoscalingPoliciesPagedCallable;
+ }
+
+ public UnaryCallable
+ listAutoscalingPoliciesCallable() {
+ return listAutoscalingPoliciesCallable;
+ }
+
+ public UnaryCallable deleteAutoscalingPolicyCallable() {
+ return deleteAutoscalingPolicyCallable;
+ }
+
+ @Override
+ public final void close() {
+ shutdown();
+ }
+
+ @Override
+ public void shutdown() {
+ backgroundResources.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return backgroundResources.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return backgroundResources.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ backgroundResources.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return backgroundResources.awaitTermination(duration, unit);
+ }
+}
diff --git a/google-cloud-clients/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java b/google-cloud-clients/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java
new file mode 100644
index 000000000000..5d08edbd45ee
--- /dev/null
+++ b/google-cloud-clients/google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClientTest.java
@@ -0,0 +1,312 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.dataproc.v1beta2;
+
+import static com.google.cloud.dataproc.v1beta2.AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.grpc.GaxGrpcProperties;
+import com.google.api.gax.grpc.testing.LocalChannelProvider;
+import com.google.api.gax.grpc.testing.MockGrpcService;
+import com.google.api.gax.grpc.testing.MockServiceHelper;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.common.collect.Lists;
+import com.google.protobuf.AbstractMessage;
+import com.google.protobuf.Empty;
+import io.grpc.Status;
+import io.grpc.StatusRuntimeException;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@javax.annotation.Generated("by GAPIC")
+public class AutoscalingPolicyServiceClientTest {
+ private static MockAutoscalingPolicyService mockAutoscalingPolicyService;
+ private static MockClusterController mockClusterController;
+ private static MockJobController mockJobController;
+ private static MockWorkflowTemplateService mockWorkflowTemplateService;
+ private static MockServiceHelper serviceHelper;
+ private AutoscalingPolicyServiceClient client;
+ private LocalChannelProvider channelProvider;
+
+ @BeforeClass
+ public static void startStaticServer() {
+ mockAutoscalingPolicyService = new MockAutoscalingPolicyService();
+ mockClusterController = new MockClusterController();
+ mockJobController = new MockJobController();
+ mockWorkflowTemplateService = new MockWorkflowTemplateService();
+ serviceHelper =
+ new MockServiceHelper(
+ "in-process-1",
+ Arrays.asList(
+ mockAutoscalingPolicyService,
+ mockClusterController,
+ mockJobController,
+ mockWorkflowTemplateService));
+ serviceHelper.start();
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ serviceHelper.stop();
+ }
+
+ @Before
+ public void setUp() throws IOException {
+ serviceHelper.reset();
+ channelProvider = serviceHelper.createChannelProvider();
+ AutoscalingPolicyServiceSettings settings =
+ AutoscalingPolicyServiceSettings.newBuilder()
+ .setTransportChannelProvider(channelProvider)
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = AutoscalingPolicyServiceClient.create(settings);
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ client.close();
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void createAutoscalingPolicyTest() {
+ String id = "id3355";
+ AutoscalingPolicyName name =
+ AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ AutoscalingPolicy expectedResponse =
+ AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build();
+ mockAutoscalingPolicyService.addResponse(expectedResponse);
+
+ RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+ AutoscalingPolicy actualResponse = client.createAutoscalingPolicy(parent, policy);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAutoscalingPolicyService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ CreateAutoscalingPolicyRequest actualRequest =
+ (CreateAutoscalingPolicyRequest) actualRequests.get(0);
+
+ Assert.assertEquals(parent, RegionName.parse(actualRequest.getParent()));
+ Assert.assertEquals(policy, actualRequest.getPolicy());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void createAutoscalingPolicyExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+ mockAutoscalingPolicyService.addException(exception);
+
+ try {
+ RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
+ AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+ client.createAutoscalingPolicy(parent, policy);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception
+ }
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void updateAutoscalingPolicyTest() {
+ String id = "id3355";
+ AutoscalingPolicyName name =
+ AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ AutoscalingPolicy expectedResponse =
+ AutoscalingPolicy.newBuilder().setId(id).setName(name.toString()).build();
+ mockAutoscalingPolicyService.addResponse(expectedResponse);
+
+ AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+ AutoscalingPolicy actualResponse = client.updateAutoscalingPolicy(policy);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAutoscalingPolicyService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ UpdateAutoscalingPolicyRequest actualRequest =
+ (UpdateAutoscalingPolicyRequest) actualRequests.get(0);
+
+ Assert.assertEquals(policy, actualRequest.getPolicy());
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void updateAutoscalingPolicyExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+ mockAutoscalingPolicyService.addException(exception);
+
+ try {
+ AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
+
+ client.updateAutoscalingPolicy(policy);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception
+ }
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void getAutoscalingPolicyTest() {
+ String id = "id3355";
+ AutoscalingPolicyName name2 =
+ AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+ AutoscalingPolicy expectedResponse =
+ AutoscalingPolicy.newBuilder().setId(id).setName(name2.toString()).build();
+ mockAutoscalingPolicyService.addResponse(expectedResponse);
+
+ AutoscalingPolicyName name =
+ AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+
+ AutoscalingPolicy actualResponse = client.getAutoscalingPolicy(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAutoscalingPolicyService.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetAutoscalingPolicyRequest actualRequest = (GetAutoscalingPolicyRequest) actualRequests.get(0);
+
+ Assert.assertEquals(name, AutoscalingPolicyName.parse(actualRequest.getName()));
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void getAutoscalingPolicyExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+ mockAutoscalingPolicyService.addException(exception);
+
+ try {
+ AutoscalingPolicyName name =
+ AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
+
+ client.getAutoscalingPolicy(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception
+ }
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void listAutoscalingPoliciesTest() {
+ String nextPageToken = "";
+ AutoscalingPolicy policiesElement = AutoscalingPolicy.newBuilder().build();
+ List