• 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/vmmigration/v1/vmmigration.proto
18 
19 package com.google.cloud.vmmigration.v1;
20 
21 public interface ComputeSchedulingOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.ComputeScheduling)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * How the instance should behave when the host machine undergoes
31    * maintenance that may temporarily impact instance performance.
32    * </pre>
33    *
34    * <code>.google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance on_host_maintenance = 1;
35    * </code>
36    *
37    * @return The enum numeric value on the wire for onHostMaintenance.
38    */
getOnHostMaintenanceValue()39   int getOnHostMaintenanceValue();
40   /**
41    *
42    *
43    * <pre>
44    * How the instance should behave when the host machine undergoes
45    * maintenance that may temporarily impact instance performance.
46    * </pre>
47    *
48    * <code>.google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance on_host_maintenance = 1;
49    * </code>
50    *
51    * @return The onHostMaintenance.
52    */
getOnHostMaintenance()53   com.google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance getOnHostMaintenance();
54 
55   /**
56    *
57    *
58    * <pre>
59    * Whether the Instance should be automatically restarted whenever it is
60    * terminated by Compute Engine (not terminated by user).
61    * This configuration is identical to `automaticRestart` field in Compute
62    * Engine create instance under scheduling.
63    * It was changed to an enum (instead of a boolean) to match the default
64    * value in Compute Engine which is automatic restart.
65    * </pre>
66    *
67    * <code>.google.cloud.vmmigration.v1.ComputeScheduling.RestartType restart_type = 5;</code>
68    *
69    * @return The enum numeric value on the wire for restartType.
70    */
getRestartTypeValue()71   int getRestartTypeValue();
72   /**
73    *
74    *
75    * <pre>
76    * Whether the Instance should be automatically restarted whenever it is
77    * terminated by Compute Engine (not terminated by user).
78    * This configuration is identical to `automaticRestart` field in Compute
79    * Engine create instance under scheduling.
80    * It was changed to an enum (instead of a boolean) to match the default
81    * value in Compute Engine which is automatic restart.
82    * </pre>
83    *
84    * <code>.google.cloud.vmmigration.v1.ComputeScheduling.RestartType restart_type = 5;</code>
85    *
86    * @return The restartType.
87    */
getRestartType()88   com.google.cloud.vmmigration.v1.ComputeScheduling.RestartType getRestartType();
89 
90   /**
91    *
92    *
93    * <pre>
94    * A set of node affinity and anti-affinity configurations for sole tenant
95    * nodes.
96    * </pre>
97    *
98    * <code>repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;</code>
99    */
getNodeAffinitiesList()100   java.util.List<com.google.cloud.vmmigration.v1.SchedulingNodeAffinity> getNodeAffinitiesList();
101   /**
102    *
103    *
104    * <pre>
105    * A set of node affinity and anti-affinity configurations for sole tenant
106    * nodes.
107    * </pre>
108    *
109    * <code>repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;</code>
110    */
getNodeAffinities(int index)111   com.google.cloud.vmmigration.v1.SchedulingNodeAffinity getNodeAffinities(int index);
112   /**
113    *
114    *
115    * <pre>
116    * A set of node affinity and anti-affinity configurations for sole tenant
117    * nodes.
118    * </pre>
119    *
120    * <code>repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;</code>
121    */
getNodeAffinitiesCount()122   int getNodeAffinitiesCount();
123   /**
124    *
125    *
126    * <pre>
127    * A set of node affinity and anti-affinity configurations for sole tenant
128    * nodes.
129    * </pre>
130    *
131    * <code>repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;</code>
132    */
133   java.util.List<? extends com.google.cloud.vmmigration.v1.SchedulingNodeAffinityOrBuilder>
getNodeAffinitiesOrBuilderList()134       getNodeAffinitiesOrBuilderList();
135   /**
136    *
137    *
138    * <pre>
139    * A set of node affinity and anti-affinity configurations for sole tenant
140    * nodes.
141    * </pre>
142    *
143    * <code>repeated .google.cloud.vmmigration.v1.SchedulingNodeAffinity node_affinities = 3;</code>
144    */
getNodeAffinitiesOrBuilder( int index)145   com.google.cloud.vmmigration.v1.SchedulingNodeAffinityOrBuilder getNodeAffinitiesOrBuilder(
146       int index);
147 
148   /**
149    *
150    *
151    * <pre>
152    * The minimum number of virtual CPUs this instance will consume when
153    * running on a sole-tenant node. Ignored if no node_affinites are
154    * configured.
155    * </pre>
156    *
157    * <code>int32 min_node_cpus = 4;</code>
158    *
159    * @return The minNodeCpus.
160    */
getMinNodeCpus()161   int getMinNodeCpus();
162 }
163