- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class OSPolicyAssignment.LabelSet.Builder extends GeneratedMessageV3.Builder<OSPolicyAssignment.LabelSet.Builder> implements OSPolicyAssignment.LabelSetOrBuilder
Message representing label set.
- A label is a key value pair set for a VM.
- A LabelSet is a set of labels.
- Labels within a LabelSet are ANDed. In other words, a LabelSet is applicable for a VM only if it matches all the labels in the LabelSet.
- Example: A LabelSet with 2 labels:
env=prod
andtype=webserver
will only be applicable for those VMs with both labels present.
Protobuf type google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OSPolicyAssignment.LabelSet.BuilderImplements
OSPolicyAssignment.LabelSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OSPolicyAssignment.LabelSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
build()
public OSPolicyAssignment.LabelSet build()
Type | Description |
OSPolicyAssignment.LabelSet |
buildPartial()
public OSPolicyAssignment.LabelSet buildPartial()
Type | Description |
OSPolicyAssignment.LabelSet |
clear()
public OSPolicyAssignment.LabelSet.Builder clear()
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
clearField(Descriptors.FieldDescriptor field)
public OSPolicyAssignment.LabelSet.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
clearLabels()
public OSPolicyAssignment.LabelSet.Builder clearLabels()
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public OSPolicyAssignment.LabelSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
clone()
public OSPolicyAssignment.LabelSet.Builder clone()
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public OSPolicyAssignment.LabelSet getDefaultInstanceForType()
Type | Description |
OSPolicyAssignment.LabelSet |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(OSPolicyAssignment.LabelSet other)
public OSPolicyAssignment.LabelSet.Builder mergeFrom(OSPolicyAssignment.LabelSet other)
Name | Description |
other | OSPolicyAssignment.LabelSet |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OSPolicyAssignment.LabelSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OSPolicyAssignment.LabelSet.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicyAssignment.LabelSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
putAllLabels(Map<String,String> values)
public OSPolicyAssignment.LabelSet.Builder putAllLabels(Map<String,String> values)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
values | Map<String,String> |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
putLabels(String key, String value)
public OSPolicyAssignment.LabelSet.Builder putLabels(String key, String value)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
key | String |
value | String |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
removeLabels(String key)
public OSPolicyAssignment.LabelSet.Builder removeLabels(String key)
Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.
map<string, string> labels = 1;
Name | Description |
key | String |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public OSPolicyAssignment.LabelSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OSPolicyAssignment.LabelSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final OSPolicyAssignment.LabelSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OSPolicyAssignment.LabelSet.Builder |