Class FieldSelector.Helper (2.39.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
Name Description
containerName String
required List<? extends com.google.cloud.FieldSelector>
others FieldSelector[]
Returns
Type Description
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
Name Description
containerName String
required List<? extends com.google.cloud.FieldSelector>
others FieldSelector[]
extraResourceFields String[]
Returns
Type Description
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
Name Description
topLevelFields String[]
containerName String
required List<? extends com.google.cloud.FieldSelector>
others FieldSelector[]
extraResourceFields String[]
Returns
Type Description
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
Name Description
required List<? extends com.google.cloud.FieldSelector>
others FieldSelector[]
Returns
Type Description
String