Class FeedItemAttributeValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.FeedItemAttributeValue
All Implemented Interfaces:
FeedItemAttributeValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class FeedItemAttributeValue extends com.google.protobuf.GeneratedMessageV3 implements FeedItemAttributeValueOrBuilder
 A feed item attribute value.
 
Protobuf type google.ads.googleads.v18.resources.FeedItemAttributeValue
See Also:
  • Field Details

    • FEED_ATTRIBUTE_ID_FIELD_NUMBER

      public static final int FEED_ATTRIBUTE_ID_FIELD_NUMBER
      See Also:
    • INTEGER_VALUE_FIELD_NUMBER

      public static final int INTEGER_VALUE_FIELD_NUMBER
      See Also:
    • BOOLEAN_VALUE_FIELD_NUMBER

      public static final int BOOLEAN_VALUE_FIELD_NUMBER
      See Also:
    • STRING_VALUE_FIELD_NUMBER

      public static final int STRING_VALUE_FIELD_NUMBER
      See Also:
    • DOUBLE_VALUE_FIELD_NUMBER

      public static final int DOUBLE_VALUE_FIELD_NUMBER
      See Also:
    • PRICE_VALUE_FIELD_NUMBER

      public static final int PRICE_VALUE_FIELD_NUMBER
      See Also:
    • INTEGER_VALUES_FIELD_NUMBER

      public static final int INTEGER_VALUES_FIELD_NUMBER
      See Also:
    • BOOLEAN_VALUES_FIELD_NUMBER

      public static final int BOOLEAN_VALUES_FIELD_NUMBER
      See Also:
    • STRING_VALUES_FIELD_NUMBER

      public static final int STRING_VALUES_FIELD_NUMBER
      See Also:
    • DOUBLE_VALUES_FIELD_NUMBER

      public static final int DOUBLE_VALUES_FIELD_NUMBER
      See Also:
  • Method Details

    • 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
    • hasFeedAttributeId

      public boolean hasFeedAttributeId()
       Id of the feed attribute for which the value is associated with.
       
      optional int64 feed_attribute_id = 11;
      Specified by:
      hasFeedAttributeId in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the feedAttributeId field is set.
    • getFeedAttributeId

      public long getFeedAttributeId()
       Id of the feed attribute for which the value is associated with.
       
      optional int64 feed_attribute_id = 11;
      Specified by:
      getFeedAttributeId in interface FeedItemAttributeValueOrBuilder
      Returns:
      The feedAttributeId.
    • hasIntegerValue

      public boolean hasIntegerValue()
       Int64 value. Should be set if feed_attribute_id refers to a feed attribute
       of type INT64.
       
      optional int64 integer_value = 12;
      Specified by:
      hasIntegerValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the integerValue field is set.
    • getIntegerValue

      public long getIntegerValue()
       Int64 value. Should be set if feed_attribute_id refers to a feed attribute
       of type INT64.
       
      optional int64 integer_value = 12;
      Specified by:
      getIntegerValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      The integerValue.
    • hasBooleanValue

      public boolean hasBooleanValue()
       Bool value. Should be set if feed_attribute_id refers to a feed attribute
       of type BOOLEAN.
       
      optional bool boolean_value = 13;
      Specified by:
      hasBooleanValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the booleanValue field is set.
    • getBooleanValue

      public boolean getBooleanValue()
       Bool value. Should be set if feed_attribute_id refers to a feed attribute
       of type BOOLEAN.
       
      optional bool boolean_value = 13;
      Specified by:
      getBooleanValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      The booleanValue.
    • hasStringValue

      public boolean hasStringValue()
       String value. Should be set if feed_attribute_id refers to a feed attribute
       of type STRING, URL or DATE_TIME.
       For STRING the maximum length is 1500 characters. For URL the maximum
       length is 2076 characters. For DATE_TIME the string must be in the format
       "YYYYMMDD HHMMSS".
       
      optional string string_value = 14;
      Specified by:
      hasStringValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       String value. Should be set if feed_attribute_id refers to a feed attribute
       of type STRING, URL or DATE_TIME.
       For STRING the maximum length is 1500 characters. For URL the maximum
       length is 2076 characters. For DATE_TIME the string must be in the format
       "YYYYMMDD HHMMSS".
       
      optional string string_value = 14;
      Specified by:
      getStringValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       String value. Should be set if feed_attribute_id refers to a feed attribute
       of type STRING, URL or DATE_TIME.
       For STRING the maximum length is 1500 characters. For URL the maximum
       length is 2076 characters. For DATE_TIME the string must be in the format
       "YYYYMMDD HHMMSS".
       
      optional string string_value = 14;
      Specified by:
      getStringValueBytes in interface FeedItemAttributeValueOrBuilder
      Returns:
      The bytes for stringValue.
    • hasDoubleValue

      public boolean hasDoubleValue()
       Double value. Should be set if feed_attribute_id refers to a feed attribute
       of type DOUBLE.
       
      optional double double_value = 15;
      Specified by:
      hasDoubleValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       Double value. Should be set if feed_attribute_id refers to a feed attribute
       of type DOUBLE.
       
      optional double double_value = 15;
      Specified by:
      getDoubleValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      The doubleValue.
    • hasPriceValue

      public boolean hasPriceValue()
       Price value. Should be set if feed_attribute_id refers to a feed attribute
       of type PRICE.
       
      .google.ads.googleads.v18.common.Money price_value = 6;
      Specified by:
      hasPriceValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      Whether the priceValue field is set.
    • getPriceValue

      public Money getPriceValue()
       Price value. Should be set if feed_attribute_id refers to a feed attribute
       of type PRICE.
       
      .google.ads.googleads.v18.common.Money price_value = 6;
      Specified by:
      getPriceValue in interface FeedItemAttributeValueOrBuilder
      Returns:
      The priceValue.
    • getPriceValueOrBuilder

      public MoneyOrBuilder getPriceValueOrBuilder()
       Price value. Should be set if feed_attribute_id refers to a feed attribute
       of type PRICE.
       
      .google.ads.googleads.v18.common.Money price_value = 6;
      Specified by:
      getPriceValueOrBuilder in interface FeedItemAttributeValueOrBuilder
    • getIntegerValuesList

      public List<Long> getIntegerValuesList()
       Repeated int64 value. Should be set if feed_attribute_id refers to a feed
       attribute of type INT64_LIST.
       
      repeated int64 integer_values = 16;
      Specified by:
      getIntegerValuesList in interface FeedItemAttributeValueOrBuilder
      Returns:
      A list containing the integerValues.
    • getIntegerValuesCount

      public int getIntegerValuesCount()
       Repeated int64 value. Should be set if feed_attribute_id refers to a feed
       attribute of type INT64_LIST.
       
      repeated int64 integer_values = 16;
      Specified by:
      getIntegerValuesCount in interface FeedItemAttributeValueOrBuilder
      Returns:
      The count of integerValues.
    • getIntegerValues

      public long getIntegerValues(int index)
       Repeated int64 value. Should be set if feed_attribute_id refers to a feed
       attribute of type INT64_LIST.
       
      repeated int64 integer_values = 16;
      Specified by:
      getIntegerValues in interface FeedItemAttributeValueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The integerValues at the given index.
    • getBooleanValuesList

      public List<Boolean> getBooleanValuesList()
       Repeated bool value. Should be set if feed_attribute_id refers to a feed
       attribute of type BOOLEAN_LIST.
       
      repeated bool boolean_values = 17;
      Specified by:
      getBooleanValuesList in interface FeedItemAttributeValueOrBuilder
      Returns:
      A list containing the booleanValues.
    • getBooleanValuesCount

      public int getBooleanValuesCount()
       Repeated bool value. Should be set if feed_attribute_id refers to a feed
       attribute of type BOOLEAN_LIST.
       
      repeated bool boolean_values = 17;
      Specified by:
      getBooleanValuesCount in interface FeedItemAttributeValueOrBuilder
      Returns:
      The count of booleanValues.
    • getBooleanValues

      public boolean getBooleanValues(int index)
       Repeated bool value. Should be set if feed_attribute_id refers to a feed
       attribute of type BOOLEAN_LIST.
       
      repeated bool boolean_values = 17;
      Specified by:
      getBooleanValues in interface FeedItemAttributeValueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The booleanValues at the given index.
    • getStringValuesList

      public com.google.protobuf.ProtocolStringList getStringValuesList()
       Repeated string value. Should be set if feed_attribute_id refers to a feed
       attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST.
       For STRING_LIST and URL_LIST the total size of the list in bytes may not
       exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
      
       For STRING_LIST the maximum length of each string element is 1500
       characters. For URL_LIST the maximum length is 2076 characters. For
       DATE_TIME the format of the string must be the same as start and end time
       for the feed item.
       
      repeated string string_values = 18;
      Specified by:
      getStringValuesList in interface FeedItemAttributeValueOrBuilder
      Returns:
      A list containing the stringValues.
    • getStringValuesCount

      public int getStringValuesCount()
       Repeated string value. Should be set if feed_attribute_id refers to a feed
       attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST.
       For STRING_LIST and URL_LIST the total size of the list in bytes may not
       exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
      
       For STRING_LIST the maximum length of each string element is 1500
       characters. For URL_LIST the maximum length is 2076 characters. For
       DATE_TIME the format of the string must be the same as start and end time
       for the feed item.
       
      repeated string string_values = 18;
      Specified by:
      getStringValuesCount in interface FeedItemAttributeValueOrBuilder
      Returns:
      The count of stringValues.
    • getStringValues

      public String getStringValues(int index)
       Repeated string value. Should be set if feed_attribute_id refers to a feed
       attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST.
       For STRING_LIST and URL_LIST the total size of the list in bytes may not
       exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
      
       For STRING_LIST the maximum length of each string element is 1500
       characters. For URL_LIST the maximum length is 2076 characters. For
       DATE_TIME the format of the string must be the same as start and end time
       for the feed item.
       
      repeated string string_values = 18;
      Specified by:
      getStringValues in interface FeedItemAttributeValueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stringValues at the given index.
    • getStringValuesBytes

      public com.google.protobuf.ByteString getStringValuesBytes(int index)
       Repeated string value. Should be set if feed_attribute_id refers to a feed
       attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST.
       For STRING_LIST and URL_LIST the total size of the list in bytes may not
       exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200.
      
       For STRING_LIST the maximum length of each string element is 1500
       characters. For URL_LIST the maximum length is 2076 characters. For
       DATE_TIME the format of the string must be the same as start and end time
       for the feed item.
       
      repeated string string_values = 18;
      Specified by:
      getStringValuesBytes in interface FeedItemAttributeValueOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the stringValues at the given index.
    • getDoubleValuesList

      public List<Double> getDoubleValuesList()
       Repeated double value. Should be set if feed_attribute_id refers to a feed
       attribute of type DOUBLE_LIST.
       
      repeated double double_values = 19;
      Specified by:
      getDoubleValuesList in interface FeedItemAttributeValueOrBuilder
      Returns:
      A list containing the doubleValues.
    • getDoubleValuesCount

      public int getDoubleValuesCount()
       Repeated double value. Should be set if feed_attribute_id refers to a feed
       attribute of type DOUBLE_LIST.
       
      repeated double double_values = 19;
      Specified by:
      getDoubleValuesCount in interface FeedItemAttributeValueOrBuilder
      Returns:
      The count of doubleValues.
    • getDoubleValues

      public double getDoubleValues(int index)
       Repeated double value. Should be set if feed_attribute_id refers to a feed
       attribute of type DOUBLE_LIST.
       
      repeated double double_values = 19;
      Specified by:
      getDoubleValues in interface FeedItemAttributeValueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The doubleValues at the given index.
    • 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 FeedItemAttributeValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static FeedItemAttributeValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FeedItemAttributeValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FeedItemAttributeValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FeedItemAttributeValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FeedItemAttributeValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static FeedItemAttributeValue.Builder newBuilder()
    • newBuilder

      public static FeedItemAttributeValue.Builder newBuilder(FeedItemAttributeValue prototype)
    • toBuilder

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

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

      public static FeedItemAttributeValue getDefaultInstance()
    • parser

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

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