public static final class GuestPolicies.Assignment.GroupLabel.Builder extends GeneratedMessageV3.Builder<GuestPolicies.Assignment.GroupLabel.Builder> implements GuestPolicies.Assignment.GroupLabelOrBuilder
Represents a group of VM intances that can be identified as having all
these labels, for example "env=prod and app=web".
Protobuf type google.cloud.osconfig.v1beta.Assignment.GroupLabel
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GuestPolicies.Assignment.GroupLabel build()
buildPartial()
public GuestPolicies.Assignment.GroupLabel buildPartial()
clear()
public GuestPolicies.Assignment.GroupLabel.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.Assignment.GroupLabel.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLabels()
public GuestPolicies.Assignment.GroupLabel.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.Assignment.GroupLabel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GuestPolicies.Assignment.GroupLabel.Builder clone()
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public GuestPolicies.Assignment.GroupLabel getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLabels()
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
Returns |
---|
Type | Description |
int | |
getLabelsMap()
public Map<String,String> getLabelsMap()
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GuestPolicies.Assignment.GroupLabel other)
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(GuestPolicies.Assignment.GroupLabel other)
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.GroupLabel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllLabels(Map<String,String> values)
public GuestPolicies.Assignment.GroupLabel.Builder putAllLabels(Map<String,String> values)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
putLabels(String key, String value)
public GuestPolicies.Assignment.GroupLabel.Builder putLabels(String key, String value)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
removeLabels(String key)
public GuestPolicies.Assignment.GroupLabel.Builder removeLabels(String key)
Google Compute Engine instance labels that must be present for an
instance to be included in this assignment group.
map<string, string> labels = 1;
Parameter |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.GroupLabel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides