1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/dataproc/v1/autoscaling_policies.proto
18 
19 package com.google.cloud.dataproc.v1;
20 
21 public interface BasicAutoscalingAlgorithmOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.BasicAutoscalingAlgorithm)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Required. YARN autoscaling configuration.
31    * </pre>
32    *
33    * <code>
34    * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
35    * </code>
36    *
37    * @return Whether the yarnConfig field is set.
38    */
hasYarnConfig()39   boolean hasYarnConfig();
40   /**
41    *
42    *
43    * <pre>
44    * Required. YARN autoscaling configuration.
45    * </pre>
46    *
47    * <code>
48    * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
49    * </code>
50    *
51    * @return The yarnConfig.
52    */
getYarnConfig()53   com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig getYarnConfig();
54   /**
55    *
56    *
57    * <pre>
58    * Required. YARN autoscaling configuration.
59    * </pre>
60    *
61    * <code>
62    * .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
63    * </code>
64    */
getYarnConfigOrBuilder()65   com.google.cloud.dataproc.v1.BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder();
66 
67   /**
68    *
69    *
70    * <pre>
71    * Optional. Duration between scaling events. A scaling period starts after
72    * the update operation from the previous event has completed.
73    * Bounds: [2m, 1d]. Default: 2m.
74    * </pre>
75    *
76    * <code>.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
77    * </code>
78    *
79    * @return Whether the cooldownPeriod field is set.
80    */
hasCooldownPeriod()81   boolean hasCooldownPeriod();
82   /**
83    *
84    *
85    * <pre>
86    * Optional. Duration between scaling events. A scaling period starts after
87    * the update operation from the previous event has completed.
88    * Bounds: [2m, 1d]. Default: 2m.
89    * </pre>
90    *
91    * <code>.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
92    * </code>
93    *
94    * @return The cooldownPeriod.
95    */
getCooldownPeriod()96   com.google.protobuf.Duration getCooldownPeriod();
97   /**
98    *
99    *
100    * <pre>
101    * Optional. Duration between scaling events. A scaling period starts after
102    * the update operation from the previous event has completed.
103    * Bounds: [2m, 1d]. Default: 2m.
104    * </pre>
105    *
106    * <code>.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];
107    * </code>
108    */
getCooldownPeriodOrBuilder()109   com.google.protobuf.DurationOrBuilder getCooldownPeriodOrBuilder();
110 
getConfigCase()111   public com.google.cloud.dataproc.v1.BasicAutoscalingAlgorithm.ConfigCase getConfigCase();
112 }
113