KnowledgeAnswersNumberType

GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersNumberType


Table of Contents ▼

Jump to a specific part of the page:

Description

A NumberType configures a value whose type is intended to be numeric.

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. componentSpecificContracts (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningComponentSpecificContracts, default: nil)
    - Contains data about the contracts that this ValueType level is available for. For more information see go/contract-based-conformance.
  2. keepAsString (type: boolean(), default: nil)
    - If true, the semantics of the NumberType argument are retained as a string, rather than being converted to a float-type object. This option is particularly useful in cases where leading 0s in the user input are meaningful, e.g. for zip codes or sports jersey numbers. For the user- specified value "01", for instance, the PathQuery semantics will be: def $Slot "01"
  3. rangeConstraint (type: GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersRangeConstraint, default: nil)
    - Range constraint limits the set of numbers accepted by this type. The constraint applies to all subtypes. Currently, this constraint is only enforced in Loose Parser.
  4. remodelings (type: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningMeaningRemodelings, default: nil)
    - Contains data about current schema remodelings at this ValueType level. For more information see go/meaning-remodeling-framework.
  5. subType (type: list(String.t), default: nil)
    - sub_type is a list of the NumberSubTypes which are accepted. If the list is empty, that means all numeric or ordinal values are accepted. If multiple values are specified, then this value accepts any of the sub_types in the list.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersNumberType{
componentSpecificContracts: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningComponentSpecificContracts.t() | nil,
keepAsString: boolean() | nil,
rangeConstraint: GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersRangeConstraint.t() | nil,
remodelings: GoogleApi.ContentWarehouse.V1.Model.NlpMeaningMeaningRemodelings.t() | nil,
subType: [String.t()] | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersNumberType