Class Fleet.LabelSelector.Builder (0.19.0)

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.v1beta.Fleet.LabelSelector

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Fleet.LabelSelector build()
Returns
Type Description
Fleet.LabelSelector

buildPartial()

public Fleet.LabelSelector buildPartial()
Returns
Type Description
Fleet.LabelSelector

clear()

public Fleet.LabelSelector.Builder clear()
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

clearMatchLabels()

public Fleet.LabelSelector.Builder clearMatchLabels()
Returns
Type Description
Fleet.LabelSelector.Builder

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
Returns
Type Description
boolean

getDefaultInstanceForType()

public Fleet.LabelSelector getDefaultInstanceForType()
Returns
Type Description
Fleet.LabelSelector

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatchLabels() (deprecated)

public Map<String,String> getMatchLabels()

Use #getMatchLabelsMap() instead.

Returns
Type Description
Map<String,String>

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];

Returns
Type Description
Map<String,String>

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];

Parameters
Name Description
key String
defaultValue String
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.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(Fleet.LabelSelector other)

public Fleet.LabelSelector.Builder mergeFrom(Fleet.LabelSelector other)
Parameter
Name Description
other Fleet.LabelSelector
Returns
Type Description
Fleet.LabelSelector.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Fleet.LabelSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Fleet.LabelSelector.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Fleet.LabelSelector.Builder
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];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Fleet.LabelSelector.Builder

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];

Parameters
Name Description
key String
value String
Returns
Type Description
Fleet.LabelSelector.Builder

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
Returns
Type Description
Fleet.LabelSelector.Builder