Class Fleet.LabelSelector.Builder (0.1.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Fleet.LabelSelector.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Fleet.LabelSelector.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

clearMatchLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Fleet.LabelSelector.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

clone()

public Fleet.LabelSelector.Builder clone()
Returns
Type Description
Fleet.LabelSelector.Builder
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
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 GeneratedMessageV3.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.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()
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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fleet.LabelSelector.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public Fleet.LabelSelector.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Fleet.LabelSelector.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Fleet.LabelSelector.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fleet.LabelSelector.Builder
Overrides