Package com.google.cloud.compute.v1
Interface RegionSetLabelsRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RegionSetLabelsRequest
,RegionSetLabelsRequest.Builder
public interface RegionSetLabelsRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
The labels to set for this resource.String
getLabelFingerprint()
The fingerprint of the previous set of labels for this resource, used to detect conflicts.com.google.protobuf.ByteString
getLabelFingerprintBytes()
The fingerprint of the previous set of labels for this resource, used to detect conflicts.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
The labels to set for this resource.Map<String,String>
getLabelsMap()
The labels to set for this resource.String
getLabelsOrDefault(String key, String defaultValue)
The labels to set for this resource.String
getLabelsOrThrow(String key)
The labels to set for this resource.boolean
hasLabelFingerprint()
The fingerprint of the previous set of labels for this resource, used to detect conflicts.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasLabelFingerprint
boolean hasLabelFingerprint()
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.
optional string label_fingerprint = 178124825;
- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
String getLabelFingerprint()
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.
optional string label_fingerprint = 178124825;
- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
com.google.protobuf.ByteString getLabelFingerprintBytes()
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.
optional string label_fingerprint = 178124825;
- Returns:
- The bytes for labelFingerprint.
-
getLabelsCount
int getLabelsCount()
The labels to set for this resource.
map<string, string> labels = 500195327;
-
containsLabels
boolean containsLabels(String key)
The labels to set for this resource.
map<string, string> labels = 500195327;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
The labels to set for this resource.
map<string, string> labels = 500195327;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
The labels to set for this resource.
map<string, string> labels = 500195327;
-
-