Class Property

  • All Implemented Interfaces:
    PropertyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Property
    extends com.google.protobuf.GeneratedMessageV3
    implements PropertyOrBuilder
     Property of a document.
     
    Protobuf type google.cloud.contentwarehouse.v1.Property
    See Also:
    Serialized Form
    • Field Detail

      • INTEGER_VALUES_FIELD_NUMBER

        public static final int INTEGER_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FLOAT_VALUES_FIELD_NUMBER

        public static final int FLOAT_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEXT_VALUES_FIELD_NUMBER

        public static final int TEXT_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENUM_VALUES_FIELD_NUMBER

        public static final int ENUM_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROPERTY_VALUES_FIELD_NUMBER

        public static final int PROPERTY_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATE_TIME_VALUES_FIELD_NUMBER

        public static final int DATE_TIME_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAP_PROPERTY_FIELD_NUMBER

        public static final int MAP_PROPERTY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIMESTAMP_VALUES_FIELD_NUMBER

        public static final int TIMESTAMP_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getName

        public String getName()
         Required. Must match the name of a PropertyDefinition in the
         DocumentSchema.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface PropertyOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Must match the name of a PropertyDefinition in the
         DocumentSchema.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface PropertyOrBuilder
        Returns:
        The bytes for name.
      • hasIntegerValues

        public boolean hasIntegerValues()
         Integer property values.
         
        .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;
        Specified by:
        hasIntegerValues in interface PropertyOrBuilder
        Returns:
        Whether the integerValues field is set.
      • getIntegerValues

        public IntegerArray getIntegerValues()
         Integer property values.
         
        .google.cloud.contentwarehouse.v1.IntegerArray integer_values = 2;
        Specified by:
        getIntegerValues in interface PropertyOrBuilder
        Returns:
        The integerValues.
      • hasFloatValues

        public boolean hasFloatValues()
         Float property values.
         
        .google.cloud.contentwarehouse.v1.FloatArray float_values = 3;
        Specified by:
        hasFloatValues in interface PropertyOrBuilder
        Returns:
        Whether the floatValues field is set.
      • getFloatValues

        public FloatArray getFloatValues()
         Float property values.
         
        .google.cloud.contentwarehouse.v1.FloatArray float_values = 3;
        Specified by:
        getFloatValues in interface PropertyOrBuilder
        Returns:
        The floatValues.
      • hasTextValues

        public boolean hasTextValues()
         String/text property values.
         
        .google.cloud.contentwarehouse.v1.TextArray text_values = 4;
        Specified by:
        hasTextValues in interface PropertyOrBuilder
        Returns:
        Whether the textValues field is set.
      • getTextValues

        public TextArray getTextValues()
         String/text property values.
         
        .google.cloud.contentwarehouse.v1.TextArray text_values = 4;
        Specified by:
        getTextValues in interface PropertyOrBuilder
        Returns:
        The textValues.
      • hasEnumValues

        public boolean hasEnumValues()
         Enum property values.
         
        .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;
        Specified by:
        hasEnumValues in interface PropertyOrBuilder
        Returns:
        Whether the enumValues field is set.
      • getEnumValues

        public EnumArray getEnumValues()
         Enum property values.
         
        .google.cloud.contentwarehouse.v1.EnumArray enum_values = 5;
        Specified by:
        getEnumValues in interface PropertyOrBuilder
        Returns:
        The enumValues.
      • hasPropertyValues

        public boolean hasPropertyValues()
         Nested structured data property values.
         
        .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;
        Specified by:
        hasPropertyValues in interface PropertyOrBuilder
        Returns:
        Whether the propertyValues field is set.
      • getPropertyValues

        public PropertyArray getPropertyValues()
         Nested structured data property values.
         
        .google.cloud.contentwarehouse.v1.PropertyArray property_values = 6;
        Specified by:
        getPropertyValues in interface PropertyOrBuilder
        Returns:
        The propertyValues.
      • hasDateTimeValues

        public boolean hasDateTimeValues()
         Date time property values.
         It is not supported by CMEK compliant deployment.
         
        .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
        Specified by:
        hasDateTimeValues in interface PropertyOrBuilder
        Returns:
        Whether the dateTimeValues field is set.
      • getDateTimeValues

        public DateTimeArray getDateTimeValues()
         Date time property values.
         It is not supported by CMEK compliant deployment.
         
        .google.cloud.contentwarehouse.v1.DateTimeArray date_time_values = 7;
        Specified by:
        getDateTimeValues in interface PropertyOrBuilder
        Returns:
        The dateTimeValues.
      • hasMapProperty

        public boolean hasMapProperty()
         Map property values.
         
        .google.cloud.contentwarehouse.v1.MapProperty map_property = 8;
        Specified by:
        hasMapProperty in interface PropertyOrBuilder
        Returns:
        Whether the mapProperty field is set.
      • getMapProperty

        public MapProperty getMapProperty()
         Map property values.
         
        .google.cloud.contentwarehouse.v1.MapProperty map_property = 8;
        Specified by:
        getMapProperty in interface PropertyOrBuilder
        Returns:
        The mapProperty.
      • hasTimestampValues

        public boolean hasTimestampValues()
         Timestamp property values.
         It is not supported by CMEK compliant deployment.
         
        .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
        Specified by:
        hasTimestampValues in interface PropertyOrBuilder
        Returns:
        Whether the timestampValues field is set.
      • getTimestampValues

        public TimestampArray getTimestampValues()
         Timestamp property values.
         It is not supported by CMEK compliant deployment.
         
        .google.cloud.contentwarehouse.v1.TimestampArray timestamp_values = 9;
        Specified by:
        getTimestampValues in interface PropertyOrBuilder
        Returns:
        The timestampValues.
      • 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 Property parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static Property parseFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Property.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Property getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Property> parser()
      • getParserForType

        public com.google.protobuf.Parser<Property> 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 Property getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder