public static final class ResourceLabels.Builder extends GeneratedMessageV3.Builder<ResourceLabels.Builder> implements ResourceLabelsOrBuilder
Collection of GCP
labels.
Protobuf type google.container.v1beta1.ResourceLabels
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 ResourceLabels.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ResourceLabels build()
Returns
buildPartial()
public ResourceLabels buildPartial()
Returns
clear()
public ResourceLabels.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResourceLabels.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLabels()
public ResourceLabels.Builder clearLabels()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceLabels.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ResourceLabels.Builder clone()
Returns
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Map of node label keys and node label values.
map<string, string> labels = 1;
Parameter
Returns
getDefaultInstanceForType()
public ResourceLabels getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Map of node label keys and node label values.
map<string, string> labels = 1;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Map of node label keys and node label values.
map<string, string> labels = 1;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Map of node label keys and node label values.
map<string, string> labels = 1;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Map of node label keys and node label values.
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(ResourceLabels other)
public ResourceLabels.Builder mergeFrom(ResourceLabels other)
Parameter
Returns
public ResourceLabels.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ResourceLabels.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceLabels.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllLabels(Map<String,String> values)
public ResourceLabels.Builder putAllLabels(Map<String,String> values)
Map of node label keys and node label values.
map<string, string> labels = 1;
Parameter
Returns
putLabels(String key, String value)
public ResourceLabels.Builder putLabels(String key, String value)
Map of node label keys and node label values.
map<string, string> labels = 1;
Parameters
Returns
removeLabels(String key)
public ResourceLabels.Builder removeLabels(String key)
Map of node label keys and node label values.
map<string, string> labels = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceLabels.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceLabels.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceLabels.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides