Option(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Option for one data schema key.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
---|---|
Name | Description |
data_schema_key |
str
The data used to sort. |
sort_decreasing |
bool
Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order. |
aggregate_method |
google.cloud.visionai_v1.types.SchemaKeySortingStrategy.Option.AggregateMethod
Aggregate method for the current data schema key. This field is a member of oneof _ _aggregate_method .
|
Classes
AggregateMethod
AggregateMethod(value)
When one result has multiple values with the same key, specify which value is used to sort. By default, AGGREGATE_METHOD_LARGEST is used when results are sorted in decreasing order, AGGREGATE_METHOD_SMALLEST is used when results are sorted in incresing order.