Package com.google.cloud
Class FieldSelector.Helper
java.lang.Object
com.google.cloud.FieldSelector.Helper
- Enclosing interface:
- FieldSelector
A helper class used to build composite selectors given a number of fields. This class is not
supposed to be used directly by users.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringlistSelector(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.static StringlistSelector(String containerName, List<? extends FieldSelector> required, FieldSelector... others) Returns a composite selector given a number of resource fields and a container name.static StringlistSelector(String containerName, List<? extends FieldSelector> required, FieldSelector[] others, String... extraResourceFields) Returns a composite selector given a number of resource fields and a container name.static Stringselector(List<? extends FieldSelector> required, FieldSelector... others) Returns a composite selector given a number of resource fields.
-
Method Details
-
selector
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. -
listSelector
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. -
listSelector
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 anextraResourceFieldsparameter 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. -
listSelector
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 anextraResourceFieldsparameter 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.
-