public static final class Fleet.LabelSelector.Builder extends GeneratedMessage.Builder<Fleet.LabelSelector.Builder> implements Fleet.LabelSelectorOrBuilder
A label selector is a label query over a set of resources. An empty label
selector matches all objects.
Protobuf type google.cloud.configdelivery.v1.Fleet.LabelSelector
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public Fleet.LabelSelector build()
buildPartial()
public Fleet.LabelSelector buildPartial()
clear()
public Fleet.LabelSelector.Builder clear()
Overrides
clearMatchLabels()
public Fleet.LabelSelector.Builder clearMatchLabels()
containsMatchLabels(String key)
public boolean containsMatchLabels(String key)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public Fleet.LabelSelector getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMatchLabels() (deprecated)
public Map<String,String> getMatchLabels()
getMatchLabelsCount()
public int getMatchLabelsCount()
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getMatchLabelsMap()
public Map<String,String> getMatchLabelsMap()
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
getMatchLabelsOrDefault(String key, String defaultValue)
public String getMatchLabelsOrDefault(String key, String defaultValue)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
|
getMatchLabelsOrThrow(String key)
public String getMatchLabelsOrThrow(String key)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
|
getMutableMatchLabels() (deprecated)
public Map<String,String> getMutableMatchLabels()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Fleet.LabelSelector other)
public Fleet.LabelSelector.Builder mergeFrom(Fleet.LabelSelector other)
public Fleet.LabelSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Fleet.LabelSelector.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllMatchLabels(Map<String,String> values)
public Fleet.LabelSelector.Builder putAllMatchLabels(Map<String,String> values)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
putMatchLabels(String key, String value)
public Fleet.LabelSelector.Builder putMatchLabels(String key, String value)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
removeMatchLabels(String key)
public Fleet.LabelSelector.Builder removeMatchLabels(String key)
Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.
map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|