• 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 InstanceGroupManagerVersionOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.InstanceGroupManagerVersion)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.
31    * </pre>
32    *
33    * <code>optional string instance_template = 309248228;</code>
34    *
35    * @return Whether the instanceTemplate field is set.
36    */
hasInstanceTemplate()37   boolean hasInstanceTemplate();
38   /**
39    *
40    *
41    * <pre>
42    * The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.
43    * </pre>
44    *
45    * <code>optional string instance_template = 309248228;</code>
46    *
47    * @return The instanceTemplate.
48    */
getInstanceTemplate()49   java.lang.String getInstanceTemplate();
50   /**
51    *
52    *
53    * <pre>
54    * The URL of the instance template that is specified for this managed instance group. The group uses this template to create new instances in the managed instance group until the `targetSize` for this version is reached. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE; in those cases, existing instances are updated until the `targetSize` for this version is reached.
55    * </pre>
56    *
57    * <code>optional string instance_template = 309248228;</code>
58    *
59    * @return The bytes for instanceTemplate.
60    */
getInstanceTemplateBytes()61   com.google.protobuf.ByteString getInstanceTemplateBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * Name of the version. Unique among all versions in the scope of this managed instance group.
68    * </pre>
69    *
70    * <code>optional string name = 3373707;</code>
71    *
72    * @return Whether the name field is set.
73    */
hasName()74   boolean hasName();
75   /**
76    *
77    *
78    * <pre>
79    * Name of the version. Unique among all versions in the scope of this managed instance group.
80    * </pre>
81    *
82    * <code>optional string name = 3373707;</code>
83    *
84    * @return The name.
85    */
getName()86   java.lang.String getName();
87   /**
88    *
89    *
90    * <pre>
91    * Name of the version. Unique among all versions in the scope of this managed instance group.
92    * </pre>
93    *
94    * <code>optional string name = 3373707;</code>
95    *
96    * @return The bytes for name.
97    */
getNameBytes()98   com.google.protobuf.ByteString getNameBytes();
99 
100   /**
101    *
102    *
103    * <pre>
104    * Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
105    * </pre>
106    *
107    * <code>optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;</code>
108    *
109    * @return Whether the targetSize field is set.
110    */
hasTargetSize()111   boolean hasTargetSize();
112   /**
113    *
114    *
115    * <pre>
116    * Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
117    * </pre>
118    *
119    * <code>optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;</code>
120    *
121    * @return The targetSize.
122    */
getTargetSize()123   com.google.cloud.compute.v1.FixedOrPercent getTargetSize();
124   /**
125    *
126    *
127    * <pre>
128    * Specifies the intended number of instances to be created from the instanceTemplate. The final number of instances created from the template will be equal to: - If expressed as a fixed number, the minimum of either targetSize.fixed or instanceGroupManager.targetSize is used. - if expressed as a percent, the targetSize would be (targetSize.percent/100 * InstanceGroupManager.targetSize) If there is a remainder, the number is rounded. If unset, this version will update any remaining instances not updated by another version. Read Starting a canary update for more information.
129    * </pre>
130    *
131    * <code>optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;</code>
132    */
getTargetSizeOrBuilder()133   com.google.cloud.compute.v1.FixedOrPercentOrBuilder getTargetSizeOrBuilder();
134 }
135