Send feedback
Class GuestPolicies.Assignment.GroupLabel.Builder (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]