• 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 ReservationOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Reservation)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
31    * </pre>
32    *
33    * <code>optional string commitment = 482134805;</code>
34    *
35    * @return Whether the commitment field is set.
36    */
hasCommitment()37   boolean hasCommitment();
38   /**
39    *
40    *
41    * <pre>
42    * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
43    * </pre>
44    *
45    * <code>optional string commitment = 482134805;</code>
46    *
47    * @return The commitment.
48    */
getCommitment()49   java.lang.String getCommitment();
50   /**
51    *
52    *
53    * <pre>
54    * [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment.
55    * </pre>
56    *
57    * <code>optional string commitment = 482134805;</code>
58    *
59    * @return The bytes for commitment.
60    */
getCommitmentBytes()61   com.google.protobuf.ByteString getCommitmentBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * [Output Only] Creation timestamp in RFC3339 text format.
68    * </pre>
69    *
70    * <code>optional string creation_timestamp = 30525366;</code>
71    *
72    * @return Whether the creationTimestamp field is set.
73    */
hasCreationTimestamp()74   boolean hasCreationTimestamp();
75   /**
76    *
77    *
78    * <pre>
79    * [Output Only] Creation timestamp in RFC3339 text format.
80    * </pre>
81    *
82    * <code>optional string creation_timestamp = 30525366;</code>
83    *
84    * @return The creationTimestamp.
85    */
getCreationTimestamp()86   java.lang.String getCreationTimestamp();
87   /**
88    *
89    *
90    * <pre>
91    * [Output Only] Creation timestamp in RFC3339 text format.
92    * </pre>
93    *
94    * <code>optional string creation_timestamp = 30525366;</code>
95    *
96    * @return The bytes for creationTimestamp.
97    */
getCreationTimestampBytes()98   com.google.protobuf.ByteString getCreationTimestampBytes();
99 
100   /**
101    *
102    *
103    * <pre>
104    * An optional description of this resource. Provide this property when you create the resource.
105    * </pre>
106    *
107    * <code>optional string description = 422937596;</code>
108    *
109    * @return Whether the description field is set.
110    */
hasDescription()111   boolean hasDescription();
112   /**
113    *
114    *
115    * <pre>
116    * An optional description of this resource. Provide this property when you create the resource.
117    * </pre>
118    *
119    * <code>optional string description = 422937596;</code>
120    *
121    * @return The description.
122    */
getDescription()123   java.lang.String getDescription();
124   /**
125    *
126    *
127    * <pre>
128    * An optional description of this resource. Provide this property when you create the resource.
129    * </pre>
130    *
131    * <code>optional string description = 422937596;</code>
132    *
133    * @return The bytes for description.
134    */
getDescriptionBytes()135   com.google.protobuf.ByteString getDescriptionBytes();
136 
137   /**
138    *
139    *
140    * <pre>
141    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
142    * </pre>
143    *
144    * <code>optional uint64 id = 3355;</code>
145    *
146    * @return Whether the id field is set.
147    */
hasId()148   boolean hasId();
149   /**
150    *
151    *
152    * <pre>
153    * [Output Only] The unique identifier for the resource. This identifier is defined by the server.
154    * </pre>
155    *
156    * <code>optional uint64 id = 3355;</code>
157    *
158    * @return The id.
159    */
getId()160   long getId();
161 
162   /**
163    *
164    *
165    * <pre>
166    * [Output Only] Type of the resource. Always compute#reservations for reservations.
167    * </pre>
168    *
169    * <code>optional string kind = 3292052;</code>
170    *
171    * @return Whether the kind field is set.
172    */
hasKind()173   boolean hasKind();
174   /**
175    *
176    *
177    * <pre>
178    * [Output Only] Type of the resource. Always compute#reservations for reservations.
179    * </pre>
180    *
181    * <code>optional string kind = 3292052;</code>
182    *
183    * @return The kind.
184    */
getKind()185   java.lang.String getKind();
186   /**
187    *
188    *
189    * <pre>
190    * [Output Only] Type of the resource. Always compute#reservations for reservations.
191    * </pre>
192    *
193    * <code>optional string kind = 3292052;</code>
194    *
195    * @return The bytes for kind.
196    */
getKindBytes()197   com.google.protobuf.ByteString getKindBytes();
198 
199   /**
200    *
201    *
202    * <pre>
203    * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
204    * </pre>
205    *
206    * <code>optional string name = 3373707;</code>
207    *
208    * @return Whether the name field is set.
209    */
hasName()210   boolean hasName();
211   /**
212    *
213    *
214    * <pre>
215    * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
216    * </pre>
217    *
218    * <code>optional string name = 3373707;</code>
219    *
220    * @return The name.
221    */
getName()222   java.lang.String getName();
223   /**
224    *
225    *
226    * <pre>
227    * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
228    * </pre>
229    *
230    * <code>optional string name = 3373707;</code>
231    *
232    * @return The bytes for name.
233    */
getNameBytes()234   com.google.protobuf.ByteString getNameBytes();
235 
236   /**
237    *
238    *
239    * <pre>
240    * Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
241    * </pre>
242    *
243    * <code>map&lt;string, string&gt; resource_policies = 22220385;</code>
244    */
getResourcePoliciesCount()245   int getResourcePoliciesCount();
246   /**
247    *
248    *
249    * <pre>
250    * Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
251    * </pre>
252    *
253    * <code>map&lt;string, string&gt; resource_policies = 22220385;</code>
254    */
containsResourcePolicies(java.lang.String key)255   boolean containsResourcePolicies(java.lang.String key);
256   /** Use {@link #getResourcePoliciesMap()} instead. */
257   @java.lang.Deprecated
getResourcePolicies()258   java.util.Map<java.lang.String, java.lang.String> getResourcePolicies();
259   /**
260    *
261    *
262    * <pre>
263    * Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
264    * </pre>
265    *
266    * <code>map&lt;string, string&gt; resource_policies = 22220385;</code>
267    */
getResourcePoliciesMap()268   java.util.Map<java.lang.String, java.lang.String> getResourcePoliciesMap();
269   /**
270    *
271    *
272    * <pre>
273    * Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
274    * </pre>
275    *
276    * <code>map&lt;string, string&gt; resource_policies = 22220385;</code>
277    */
278   /* nullable */
getResourcePoliciesOrDefault( java.lang.String key, java.lang.String defaultValue)279   java.lang.String getResourcePoliciesOrDefault(
280       java.lang.String key,
281       /* nullable */
282       java.lang.String defaultValue);
283   /**
284    *
285    *
286    * <pre>
287    * Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation.
288    * </pre>
289    *
290    * <code>map&lt;string, string&gt; resource_policies = 22220385;</code>
291    */
getResourcePoliciesOrThrow(java.lang.String key)292   java.lang.String getResourcePoliciesOrThrow(java.lang.String key);
293 
294   /**
295    *
296    *
297    * <pre>
298    * [Output Only] Status information for Reservation resource.
299    * </pre>
300    *
301    * <code>optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
302    * </code>
303    *
304    * @return Whether the resourceStatus field is set.
305    */
hasResourceStatus()306   boolean hasResourceStatus();
307   /**
308    *
309    *
310    * <pre>
311    * [Output Only] Status information for Reservation resource.
312    * </pre>
313    *
314    * <code>optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
315    * </code>
316    *
317    * @return The resourceStatus.
318    */
getResourceStatus()319   com.google.cloud.compute.v1.AllocationResourceStatus getResourceStatus();
320   /**
321    *
322    *
323    * <pre>
324    * [Output Only] Status information for Reservation resource.
325    * </pre>
326    *
327    * <code>optional .google.cloud.compute.v1.AllocationResourceStatus resource_status = 249429315;
328    * </code>
329    */
getResourceStatusOrBuilder()330   com.google.cloud.compute.v1.AllocationResourceStatusOrBuilder getResourceStatusOrBuilder();
331 
332   /**
333    *
334    *
335    * <pre>
336    * [Output Only] Reserved for future use.
337    * </pre>
338    *
339    * <code>optional bool satisfies_pzs = 480964267;</code>
340    *
341    * @return Whether the satisfiesPzs field is set.
342    */
hasSatisfiesPzs()343   boolean hasSatisfiesPzs();
344   /**
345    *
346    *
347    * <pre>
348    * [Output Only] Reserved for future use.
349    * </pre>
350    *
351    * <code>optional bool satisfies_pzs = 480964267;</code>
352    *
353    * @return The satisfiesPzs.
354    */
getSatisfiesPzs()355   boolean getSatisfiesPzs();
356 
357   /**
358    *
359    *
360    * <pre>
361    * [Output Only] Server-defined fully-qualified URL for this resource.
362    * </pre>
363    *
364    * <code>optional string self_link = 456214797;</code>
365    *
366    * @return Whether the selfLink field is set.
367    */
hasSelfLink()368   boolean hasSelfLink();
369   /**
370    *
371    *
372    * <pre>
373    * [Output Only] Server-defined fully-qualified URL for this resource.
374    * </pre>
375    *
376    * <code>optional string self_link = 456214797;</code>
377    *
378    * @return The selfLink.
379    */
getSelfLink()380   java.lang.String getSelfLink();
381   /**
382    *
383    *
384    * <pre>
385    * [Output Only] Server-defined fully-qualified URL for this resource.
386    * </pre>
387    *
388    * <code>optional string self_link = 456214797;</code>
389    *
390    * @return The bytes for selfLink.
391    */
getSelfLinkBytes()392   com.google.protobuf.ByteString getSelfLinkBytes();
393 
394   /**
395    *
396    *
397    * <pre>
398    * Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
399    * </pre>
400    *
401    * <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
402    *
403    * @return Whether the shareSettings field is set.
404    */
hasShareSettings()405   boolean hasShareSettings();
406   /**
407    *
408    *
409    * <pre>
410    * Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
411    * </pre>
412    *
413    * <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
414    *
415    * @return The shareSettings.
416    */
getShareSettings()417   com.google.cloud.compute.v1.ShareSettings getShareSettings();
418   /**
419    *
420    *
421    * <pre>
422    * Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation.
423    * </pre>
424    *
425    * <code>optional .google.cloud.compute.v1.ShareSettings share_settings = 266668163;</code>
426    */
getShareSettingsOrBuilder()427   com.google.cloud.compute.v1.ShareSettingsOrBuilder getShareSettingsOrBuilder();
428 
429   /**
430    *
431    *
432    * <pre>
433    * Reservation for instances with specific machine shapes.
434    * </pre>
435    *
436    * <code>
437    * optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
438    * </code>
439    *
440    * @return Whether the specificReservation field is set.
441    */
hasSpecificReservation()442   boolean hasSpecificReservation();
443   /**
444    *
445    *
446    * <pre>
447    * Reservation for instances with specific machine shapes.
448    * </pre>
449    *
450    * <code>
451    * optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
452    * </code>
453    *
454    * @return The specificReservation.
455    */
getSpecificReservation()456   com.google.cloud.compute.v1.AllocationSpecificSKUReservation getSpecificReservation();
457   /**
458    *
459    *
460    * <pre>
461    * Reservation for instances with specific machine shapes.
462    * </pre>
463    *
464    * <code>
465    * optional .google.cloud.compute.v1.AllocationSpecificSKUReservation specific_reservation = 404901951;
466    * </code>
467    */
468   com.google.cloud.compute.v1.AllocationSpecificSKUReservationOrBuilder
getSpecificReservationOrBuilder()469       getSpecificReservationOrBuilder();
470 
471   /**
472    *
473    *
474    * <pre>
475    * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
476    * </pre>
477    *
478    * <code>optional bool specific_reservation_required = 226550687;</code>
479    *
480    * @return Whether the specificReservationRequired field is set.
481    */
hasSpecificReservationRequired()482   boolean hasSpecificReservationRequired();
483   /**
484    *
485    *
486    * <pre>
487    * Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation.
488    * </pre>
489    *
490    * <code>optional bool specific_reservation_required = 226550687;</code>
491    *
492    * @return The specificReservationRequired.
493    */
getSpecificReservationRequired()494   boolean getSpecificReservationRequired();
495 
496   /**
497    *
498    *
499    * <pre>
500    * [Output Only] The status of the reservation.
501    * Check the Status enum for the list of possible values.
502    * </pre>
503    *
504    * <code>optional string status = 181260274;</code>
505    *
506    * @return Whether the status field is set.
507    */
hasStatus()508   boolean hasStatus();
509   /**
510    *
511    *
512    * <pre>
513    * [Output Only] The status of the reservation.
514    * Check the Status enum for the list of possible values.
515    * </pre>
516    *
517    * <code>optional string status = 181260274;</code>
518    *
519    * @return The status.
520    */
getStatus()521   java.lang.String getStatus();
522   /**
523    *
524    *
525    * <pre>
526    * [Output Only] The status of the reservation.
527    * Check the Status enum for the list of possible values.
528    * </pre>
529    *
530    * <code>optional string status = 181260274;</code>
531    *
532    * @return The bytes for status.
533    */
getStatusBytes()534   com.google.protobuf.ByteString getStatusBytes();
535 
536   /**
537    *
538    *
539    * <pre>
540    * Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
541    * </pre>
542    *
543    * <code>optional string zone = 3744684;</code>
544    *
545    * @return Whether the zone field is set.
546    */
hasZone()547   boolean hasZone();
548   /**
549    *
550    *
551    * <pre>
552    * Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
553    * </pre>
554    *
555    * <code>optional string zone = 3744684;</code>
556    *
557    * @return The zone.
558    */
getZone()559   java.lang.String getZone();
560   /**
561    *
562    *
563    * <pre>
564    * Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment.
565    * </pre>
566    *
567    * <code>optional string zone = 3744684;</code>
568    *
569    * @return The bytes for zone.
570    */
getZoneBytes()571   com.google.protobuf.ByteString getZoneBytes();
572 }
573