• 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 ResourceCommitmentOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.ResourceCommitment)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
31    * </pre>
32    *
33    * <code>optional string accelerator_type = 138031246;</code>
34    *
35    * @return Whether the acceleratorType field is set.
36    */
hasAcceleratorType()37   boolean hasAcceleratorType();
38   /**
39    *
40    *
41    * <pre>
42    * Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
43    * </pre>
44    *
45    * <code>optional string accelerator_type = 138031246;</code>
46    *
47    * @return The acceleratorType.
48    */
getAcceleratorType()49   java.lang.String getAcceleratorType();
50   /**
51    *
52    *
53    * <pre>
54    * Name of the accelerator type resource. Applicable only when the type is ACCELERATOR.
55    * </pre>
56    *
57    * <code>optional string accelerator_type = 138031246;</code>
58    *
59    * @return The bytes for acceleratorType.
60    */
getAcceleratorTypeBytes()61   com.google.protobuf.ByteString getAcceleratorTypeBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
68    * </pre>
69    *
70    * <code>optional int64 amount = 196759640;</code>
71    *
72    * @return Whether the amount field is set.
73    */
hasAmount()74   boolean hasAmount();
75   /**
76    *
77    *
78    * <pre>
79    * The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU.
80    * </pre>
81    *
82    * <code>optional int64 amount = 196759640;</code>
83    *
84    * @return The amount.
85    */
getAmount()86   long getAmount();
87 
88   /**
89    *
90    *
91    * <pre>
92    * Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
93    * Check the Type enum for the list of possible values.
94    * </pre>
95    *
96    * <code>optional string type = 3575610;</code>
97    *
98    * @return Whether the type field is set.
99    */
hasType()100   boolean hasType();
101   /**
102    *
103    *
104    * <pre>
105    * Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
106    * Check the Type enum for the list of possible values.
107    * </pre>
108    *
109    * <code>optional string type = 3575610;</code>
110    *
111    * @return The type.
112    */
getType()113   java.lang.String getType();
114   /**
115    *
116    *
117    * <pre>
118    * Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR.
119    * Check the Type enum for the list of possible values.
120    * </pre>
121    *
122    * <code>optional string type = 3575610;</code>
123    *
124    * @return The bytes for type.
125    */
getTypeBytes()126   com.google.protobuf.ByteString getTypeBytes();
127 }
128