Class: Google::Cloud::VisionAI::V1::SchemaKeySortingStrategy::Option
- Inherits:
-
Object
- Object
- Google::Cloud::VisionAI::V1::SchemaKeySortingStrategy::Option
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/visionai/v1/warehouse.rb
Overview
Option for one data schema key.
Defined Under Namespace
Modules: AggregateMethod
Instance Attribute Summary collapse
-
#aggregate_method ⇒ ::Google::Cloud::VisionAI::V1::SchemaKeySortingStrategy::Option::AggregateMethod
Aggregate method for the current data schema key.
-
#data_schema_key ⇒ ::String
The data used to sort.
-
#sort_decreasing ⇒ ::Boolean
Whether to sort in decreasing order or increasing order.
Instance Attribute Details
#aggregate_method ⇒ ::Google::Cloud::VisionAI::V1::SchemaKeySortingStrategy::Option::AggregateMethod
Returns Aggregate method for the current data schema key.
2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2721 class Option include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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. module AggregateMethod # The unspecified aggregate method will be overwritten as mentioned # above. AGGREGATE_METHOD_UNSPECIFIED = 0 # Take the (lexicographical or numerical) largest value to sort. AGGREGATE_METHOD_LARGEST = 1 # Take the (lexicographical or numerical) smallest value to sort. AGGREGATE_METHOD_SMALLEST = 2 end end |
#data_schema_key ⇒ ::String
Returns The data used to sort.
2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2721 class Option include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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. module AggregateMethod # The unspecified aggregate method will be overwritten as mentioned # above. AGGREGATE_METHOD_UNSPECIFIED = 0 # Take the (lexicographical or numerical) largest value to sort. AGGREGATE_METHOD_LARGEST = 1 # Take the (lexicographical or numerical) smallest value to sort. AGGREGATE_METHOD_SMALLEST = 2 end end |
#sort_decreasing ⇒ ::Boolean
Returns Whether to sort in decreasing order or increasing order. By default, results are sorted in incresing order.
2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 2721 class Option include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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. module AggregateMethod # The unspecified aggregate method will be overwritten as mentioned # above. AGGREGATE_METHOD_UNSPECIFIED = 0 # Take the (lexicographical or numerical) largest value to sort. AGGREGATE_METHOD_LARGEST = 1 # Take the (lexicographical or numerical) smallest value to sort. AGGREGATE_METHOD_SMALLEST = 2 end end |