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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GuestPolicies.Assignment.GroupLabel build()
Returns
buildPartial()
public GuestPolicies.Assignment.GroupLabel buildPartial()
Returns
clear()
public GuestPolicies.Assignment.GroupLabel.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GuestPolicies.Assignment.GroupLabel.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLabels()
public GuestPolicies.Assignment.GroupLabel.Builder clearLabels()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GuestPolicies.Assignment.GroupLabel.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public GuestPolicies.Assignment.GroupLabel.Builder clone()
Returns
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
Returns
getDefaultInstanceForType()
public GuestPolicies.Assignment.GroupLabel getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLabels()
public Map<String,String> getLabels()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GuestPolicies.Assignment.GroupLabel other)
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(GuestPolicies.Assignment.GroupLabel other)
Parameter
Returns
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GuestPolicies.Assignment.GroupLabel.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.GroupLabel.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GuestPolicies.Assignment.GroupLabel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GuestPolicies.Assignment.GroupLabel.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides