• 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 RegionSetLabelsRequestOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.RegionSetLabelsRequest)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
31    * </pre>
32    *
33    * <code>optional string label_fingerprint = 178124825;</code>
34    *
35    * @return Whether the labelFingerprint field is set.
36    */
hasLabelFingerprint()37   boolean hasLabelFingerprint();
38   /**
39    *
40    *
41    * <pre>
42    * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
43    * </pre>
44    *
45    * <code>optional string label_fingerprint = 178124825;</code>
46    *
47    * @return The labelFingerprint.
48    */
getLabelFingerprint()49   java.lang.String getLabelFingerprint();
50   /**
51    *
52    *
53    * <pre>
54    * The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
55    * </pre>
56    *
57    * <code>optional string label_fingerprint = 178124825;</code>
58    *
59    * @return The bytes for labelFingerprint.
60    */
getLabelFingerprintBytes()61   com.google.protobuf.ByteString getLabelFingerprintBytes();
62 
63   /**
64    *
65    *
66    * <pre>
67    * The labels to set for this resource.
68    * </pre>
69    *
70    * <code>map&lt;string, string&gt; labels = 500195327;</code>
71    */
getLabelsCount()72   int getLabelsCount();
73   /**
74    *
75    *
76    * <pre>
77    * The labels to set for this resource.
78    * </pre>
79    *
80    * <code>map&lt;string, string&gt; labels = 500195327;</code>
81    */
containsLabels(java.lang.String key)82   boolean containsLabels(java.lang.String key);
83   /** Use {@link #getLabelsMap()} instead. */
84   @java.lang.Deprecated
getLabels()85   java.util.Map<java.lang.String, java.lang.String> getLabels();
86   /**
87    *
88    *
89    * <pre>
90    * The labels to set for this resource.
91    * </pre>
92    *
93    * <code>map&lt;string, string&gt; labels = 500195327;</code>
94    */
getLabelsMap()95   java.util.Map<java.lang.String, java.lang.String> getLabelsMap();
96   /**
97    *
98    *
99    * <pre>
100    * The labels to set for this resource.
101    * </pre>
102    *
103    * <code>map&lt;string, string&gt; labels = 500195327;</code>
104    */
105   /* nullable */
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)106   java.lang.String getLabelsOrDefault(
107       java.lang.String key,
108       /* nullable */
109       java.lang.String defaultValue);
110   /**
111    *
112    *
113    * <pre>
114    * The labels to set for this resource.
115    * </pre>
116    *
117    * <code>map&lt;string, string&gt; labels = 500195327;</code>
118    */
getLabelsOrThrow(java.lang.String key)119   java.lang.String getLabelsOrThrow(java.lang.String key);
120 }
121