• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 public interface SchedulingOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Scheduling)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
31    * </pre>
32    *
33    * <code>optional bool automatic_restart = 350821371;</code>
34    *
35    * @return Whether the automaticRestart field is set.
36    */
hasAutomaticRestart()37   boolean hasAutomaticRestart();
38   /**
39    *
40    *
41    * <pre>
42    * Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
43    * </pre>
44    *
45    * <code>optional bool automatic_restart = 350821371;</code>
46    *
47    * @return The automaticRestart.
48    */
getAutomaticRestart()49   boolean getAutomaticRestart();
50 
51   /**
52    *
53    *
54    * <pre>
55    * Specifies the termination action for the instance.
56    * Check the InstanceTerminationAction enum for the list of possible values.
57    * </pre>
58    *
59    * <code>optional string instance_termination_action = 107380667;</code>
60    *
61    * @return Whether the instanceTerminationAction field is set.
62    */
hasInstanceTerminationAction()63   boolean hasInstanceTerminationAction();
64   /**
65    *
66    *
67    * <pre>
68    * Specifies the termination action for the instance.
69    * Check the InstanceTerminationAction enum for the list of possible values.
70    * </pre>
71    *
72    * <code>optional string instance_termination_action = 107380667;</code>
73    *
74    * @return The instanceTerminationAction.
75    */
getInstanceTerminationAction()76   java.lang.String getInstanceTerminationAction();
77   /**
78    *
79    *
80    * <pre>
81    * Specifies the termination action for the instance.
82    * Check the InstanceTerminationAction enum for the list of possible values.
83    * </pre>
84    *
85    * <code>optional string instance_termination_action = 107380667;</code>
86    *
87    * @return The bytes for instanceTerminationAction.
88    */
getInstanceTerminationActionBytes()89   com.google.protobuf.ByteString getInstanceTerminationActionBytes();
90 
91   /**
92    *
93    *
94    * <pre>
95    * An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
96    * </pre>
97    *
98    * <code>optional string location_hint = 350519505;</code>
99    *
100    * @return Whether the locationHint field is set.
101    */
hasLocationHint()102   boolean hasLocationHint();
103   /**
104    *
105    *
106    * <pre>
107    * An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
108    * </pre>
109    *
110    * <code>optional string location_hint = 350519505;</code>
111    *
112    * @return The locationHint.
113    */
getLocationHint()114   java.lang.String getLocationHint();
115   /**
116    *
117    *
118    * <pre>
119    * An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
120    * </pre>
121    *
122    * <code>optional string location_hint = 350519505;</code>
123    *
124    * @return The bytes for locationHint.
125    */
getLocationHintBytes()126   com.google.protobuf.ByteString getLocationHintBytes();
127 
128   /**
129    *
130    *
131    * <pre>
132    * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
133    * </pre>
134    *
135    * <code>optional int32 min_node_cpus = 317231675;</code>
136    *
137    * @return Whether the minNodeCpus field is set.
138    */
hasMinNodeCpus()139   boolean hasMinNodeCpus();
140   /**
141    *
142    *
143    * <pre>
144    * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
145    * </pre>
146    *
147    * <code>optional int32 min_node_cpus = 317231675;</code>
148    *
149    * @return The minNodeCpus.
150    */
getMinNodeCpus()151   int getMinNodeCpus();
152 
153   /**
154    *
155    *
156    * <pre>
157    * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
158    * </pre>
159    *
160    * <code>repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
161    * </code>
162    */
getNodeAffinitiesList()163   java.util.List<com.google.cloud.compute.v1.SchedulingNodeAffinity> getNodeAffinitiesList();
164   /**
165    *
166    *
167    * <pre>
168    * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
169    * </pre>
170    *
171    * <code>repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
172    * </code>
173    */
getNodeAffinities(int index)174   com.google.cloud.compute.v1.SchedulingNodeAffinity getNodeAffinities(int index);
175   /**
176    *
177    *
178    * <pre>
179    * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
180    * </pre>
181    *
182    * <code>repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
183    * </code>
184    */
getNodeAffinitiesCount()185   int getNodeAffinitiesCount();
186   /**
187    *
188    *
189    * <pre>
190    * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
191    * </pre>
192    *
193    * <code>repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
194    * </code>
195    */
196   java.util.List<? extends com.google.cloud.compute.v1.SchedulingNodeAffinityOrBuilder>
getNodeAffinitiesOrBuilderList()197       getNodeAffinitiesOrBuilderList();
198   /**
199    *
200    *
201    * <pre>
202    * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
203    * </pre>
204    *
205    * <code>repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971;
206    * </code>
207    */
getNodeAffinitiesOrBuilder(int index)208   com.google.cloud.compute.v1.SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder(int index);
209 
210   /**
211    *
212    *
213    * <pre>
214    * Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
215    * Check the OnHostMaintenance enum for the list of possible values.
216    * </pre>
217    *
218    * <code>optional string on_host_maintenance = 64616796;</code>
219    *
220    * @return Whether the onHostMaintenance field is set.
221    */
hasOnHostMaintenance()222   boolean hasOnHostMaintenance();
223   /**
224    *
225    *
226    * <pre>
227    * Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
228    * Check the OnHostMaintenance enum for the list of possible values.
229    * </pre>
230    *
231    * <code>optional string on_host_maintenance = 64616796;</code>
232    *
233    * @return The onHostMaintenance.
234    */
getOnHostMaintenance()235   java.lang.String getOnHostMaintenance();
236   /**
237    *
238    *
239    * <pre>
240    * Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
241    * Check the OnHostMaintenance enum for the list of possible values.
242    * </pre>
243    *
244    * <code>optional string on_host_maintenance = 64616796;</code>
245    *
246    * @return The bytes for onHostMaintenance.
247    */
getOnHostMaintenanceBytes()248   com.google.protobuf.ByteString getOnHostMaintenanceBytes();
249 
250   /**
251    *
252    *
253    * <pre>
254    * Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
255    * </pre>
256    *
257    * <code>optional bool preemptible = 324203169;</code>
258    *
259    * @return Whether the preemptible field is set.
260    */
hasPreemptible()261   boolean hasPreemptible();
262   /**
263    *
264    *
265    * <pre>
266    * Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states.
267    * </pre>
268    *
269    * <code>optional bool preemptible = 324203169;</code>
270    *
271    * @return The preemptible.
272    */
getPreemptible()273   boolean getPreemptible();
274 
275   /**
276    *
277    *
278    * <pre>
279    * Specifies the provisioning model of the instance.
280    * Check the ProvisioningModel enum for the list of possible values.
281    * </pre>
282    *
283    * <code>optional string provisioning_model = 494423;</code>
284    *
285    * @return Whether the provisioningModel field is set.
286    */
hasProvisioningModel()287   boolean hasProvisioningModel();
288   /**
289    *
290    *
291    * <pre>
292    * Specifies the provisioning model of the instance.
293    * Check the ProvisioningModel enum for the list of possible values.
294    * </pre>
295    *
296    * <code>optional string provisioning_model = 494423;</code>
297    *
298    * @return The provisioningModel.
299    */
getProvisioningModel()300   java.lang.String getProvisioningModel();
301   /**
302    *
303    *
304    * <pre>
305    * Specifies the provisioning model of the instance.
306    * Check the ProvisioningModel enum for the list of possible values.
307    * </pre>
308    *
309    * <code>optional string provisioning_model = 494423;</code>
310    *
311    * @return The bytes for provisioningModel.
312    */
getProvisioningModelBytes()313   com.google.protobuf.ByteString getProvisioningModelBytes();
314 }
315