Class Document.Entity.NormalizedValue

    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasMoneyValue

        public boolean hasMoneyValue()
         Money value. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
         
        .google.type.Money money_value = 2;
        Specified by:
        hasMoneyValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        Whether the moneyValue field is set.
      • getMoneyValue

        public com.google.type.Money getMoneyValue()
         Money value. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
         
        .google.type.Money money_value = 2;
        Specified by:
        getMoneyValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The moneyValue.
      • getMoneyValueOrBuilder

        public com.google.type.MoneyOrBuilder getMoneyValueOrBuilder()
         Money value. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
         
        .google.type.Money money_value = 2;
        Specified by:
        getMoneyValueOrBuilder in interface Document.Entity.NormalizedValueOrBuilder
      • hasDateValue

        public boolean hasDateValue()
         Date value. Includes year, month, day. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
         
        .google.type.Date date_value = 3;
        Specified by:
        hasDateValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        Whether the dateValue field is set.
      • getDateValue

        public com.google.type.Date getDateValue()
         Date value. Includes year, month, day. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
         
        .google.type.Date date_value = 3;
        Specified by:
        getDateValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The dateValue.
      • getDateValueOrBuilder

        public com.google.type.DateOrBuilder getDateValueOrBuilder()
         Date value. Includes year, month, day. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
         
        .google.type.Date date_value = 3;
        Specified by:
        getDateValueOrBuilder in interface Document.Entity.NormalizedValueOrBuilder
      • hasDatetimeValue

        public boolean hasDatetimeValue()
         DateTime value. Includes date, time, and timezone. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
         
        .google.type.DateTime datetime_value = 4;
        Specified by:
        hasDatetimeValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        Whether the datetimeValue field is set.
      • getDatetimeValue

        public com.google.type.DateTime getDatetimeValue()
         DateTime value. Includes date, time, and timezone. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
         
        .google.type.DateTime datetime_value = 4;
        Specified by:
        getDatetimeValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The datetimeValue.
      • getDatetimeValueOrBuilder

        public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder()
         DateTime value. Includes date, time, and timezone. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
         
        .google.type.DateTime datetime_value = 4;
        Specified by:
        getDatetimeValueOrBuilder in interface Document.Entity.NormalizedValueOrBuilder
      • hasAddressValue

        public boolean hasAddressValue()
         Postal address. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
         
        .google.type.PostalAddress address_value = 5;
        Specified by:
        hasAddressValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        Whether the addressValue field is set.
      • getAddressValue

        public com.google.type.PostalAddress getAddressValue()
         Postal address. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
         
        .google.type.PostalAddress address_value = 5;
        Specified by:
        getAddressValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The addressValue.
      • getAddressValueOrBuilder

        public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder()
         Postal address. See also:
         https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
         
        .google.type.PostalAddress address_value = 5;
        Specified by:
        getAddressValueOrBuilder in interface Document.Entity.NormalizedValueOrBuilder
      • hasBooleanValue

        public boolean hasBooleanValue()
         Boolean value. Can be used for entities with binary values, or for
         checkboxes.
         
        bool boolean_value = 6;
        Specified by:
        hasBooleanValue in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        Whether the booleanValue field is set.
      • getText

        public String getText()
         Optional. An optional field to store a normalized string.
         For some entity types, one of respective `structured_value` fields may
         also be populated. Also not all the types of `structured_value` will be
         normalized. For example, some processors may not generate `float`
         or `integer` normalized text by default.
        
         Below are sample formats mapped to structured values.
        
         - Money/Currency type (`money_value`) is in the ISO 4217 text format.
         - Date type (`date_value`) is in the ISO 8601 text format.
         - Datetime type (`datetime_value`) is in the ISO 8601 text format.
         
        string text = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getText in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         Optional. An optional field to store a normalized string.
         For some entity types, one of respective `structured_value` fields may
         also be populated. Also not all the types of `structured_value` will be
         normalized. For example, some processors may not generate `float`
         or `integer` normalized text by default.
        
         Below are sample formats mapped to structured values.
        
         - Money/Currency type (`money_value`) is in the ISO 4217 text format.
         - Date type (`date_value`) is in the ISO 8601 text format.
         - Datetime type (`datetime_value`) is in the ISO 8601 text format.
         
        string text = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTextBytes in interface Document.Entity.NormalizedValueOrBuilder
        Returns:
        The bytes for text.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(ByteBuffer data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(ByteBuffer data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(com.google.protobuf.ByteString data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(com.google.protobuf.ByteString data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(byte[] data)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Entity.NormalizedValue parseFrom​(byte[] data,
                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Document.Entity.NormalizedValue.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Document.Entity.NormalizedValue.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Document.Entity.NormalizedValue.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Document.Entity.NormalizedValue> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Document.Entity.NormalizedValue getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder