Class FieldSelector.Helper (2.29.0)

public static class FieldSelector.Helper

A helper class used to build composite selectors given a number of fields. This class is not supposed to be used directly by users.

Inheritance

java.lang.Object > FieldSelector.Helper

Static Methods

listSelector(String containerName, List<? extends FieldSelector> required, FieldSelector[] others)

public static String listSelector(String containerName, List<? extends FieldSelector> required, FieldSelector[] others)

Returns a composite selector given a number of resource fields and a container name. The string selector returned by this method can be used for field selection in API calls that return a list of resources. This method is not supposed to be used directly by users.

Parameters
NameDescription
containerNameString
requiredList<? extends com.google.cloud.FieldSelector>
othersFieldSelector[]
Returns
TypeDescription
String

listSelector(String containerName, List<? extends FieldSelector> required, FieldSelector[] others, String[] extraResourceFields)

public static String listSelector(String containerName, List<? extends FieldSelector> required, FieldSelector[] others, String[] extraResourceFields)

Returns a composite selector given a number of resource fields and a container name. This method also takes an extraResourceFields parameter to specify some extra resource fields as strings. The string selector returned by this method can be used for field selection in API calls that return a list of resources. This method is not supposed to be used directly by users.

Parameters
NameDescription
containerNameString
requiredList<? extends com.google.cloud.FieldSelector>
othersFieldSelector[]
extraResourceFieldsString[]
Returns
TypeDescription
String

listSelector(String[] topLevelFields, String containerName, List<? extends FieldSelector> required, FieldSelector[] others, String[] extraResourceFields)

public static String listSelector(String[] topLevelFields, String containerName, List<? extends FieldSelector> required, FieldSelector[] others, String[] extraResourceFields)

Returns a composite selector given a number of top level fields as strings, a number of resource fields and a container name. This method also takes an extraResourceFields parameter to specify some extra resource fields as strings. The string selector returned by this method can be used for field selection in API calls that return a list of resources. This method is not supposed to be used directly by users.

Parameters
NameDescription
topLevelFieldsString[]
containerNameString
requiredList<? extends com.google.cloud.FieldSelector>
othersFieldSelector[]
extraResourceFieldsString[]
Returns
TypeDescription
String

selector(List<? extends FieldSelector> required, FieldSelector[] others)

public static String selector(List<? extends FieldSelector> required, FieldSelector[] others)

Returns a composite selector given a number of resource fields. The string selector returned by this method can be used for field selection in API calls that return a single resource. This method is not supposed to be used directly by users.

Parameters
NameDescription
requiredList<? extends com.google.cloud.FieldSelector>
othersFieldSelector[]
Returns
TypeDescription
String