public static final class Fleet.LabelSelector.Builder extends GeneratedMessageV3.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.v1beta.Fleet.LabelSelector
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 Fleet.LabelSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Fleet.LabelSelector build()
buildPartial()
public Fleet.LabelSelector buildPartial()
clear()
public Fleet.LabelSelector.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Fleet.LabelSelector.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMatchLabels()
public Fleet.LabelSelector.Builder clearMatchLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public Fleet.LabelSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Fleet.LabelSelector.Builder clone()
Overrides
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Fleet.LabelSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Fleet.LabelSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Fleet.LabelSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Fleet.LabelSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides