Interface SetInstanceLabelsRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SetInstanceLabelsRequest,SetInstanceLabelsRequest.Builder
public interface SetInstanceLabelsRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels to apply to this instance.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels to apply to this instance.Map<String,String>getLabelsMap()Labels to apply to this instance.StringgetLabelsOrDefault(String key, String defaultValue)Labels to apply to this instance.StringgetLabelsOrThrow(String key)Labels to apply to this instance.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for name.
-
getLabelsCount
int getLabelsCount()
Labels to apply to this instance. These can be later modified by the setLabels method
map<string, string> labels = 2;
-
containsLabels
boolean containsLabels(String key)
Labels to apply to this instance. These can be later modified by the setLabels method
map<string, string> labels = 2;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels to apply to this instance. These can be later modified by the setLabels method
map<string, string> labels = 2;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this instance. These can be later modified by the setLabels method
map<string, string> labels = 2;
-
-