Class PriceFeedItem

  • All Implemented Interfaces:
    PriceFeedItemOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class PriceFeedItem
    extends com.google.protobuf.GeneratedMessageV3
    implements PriceFeedItemOrBuilder
     Represents a Price extension.
     
    Protobuf type google.ads.googleads.v14.common.PriceFeedItem
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PriceFeedItem.Builder
      Represents a Price extension.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • PRICE_QUALIFIER_FIELD_NUMBER

        public static final int PRICE_QUALIFIER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRACKING_URL_TEMPLATE_FIELD_NUMBER

        public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRICE_OFFERINGS_FIELD_NUMBER

        public static final int PRICE_OFFERINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FINAL_URL_SUFFIX_FIELD_NUMBER

        public static final int FINAL_URL_SUFFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.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
      • getTypeValue

        public int getTypeValue()
         Price extension type of this extension.
         
        .google.ads.googleads.v14.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1;
        Specified by:
        getTypeValue in interface PriceFeedItemOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getPriceQualifierValue

        public int getPriceQualifierValue()
         Price qualifier for all offers of this price extension.
         
        .google.ads.googleads.v14.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2;
        Specified by:
        getPriceQualifierValue in interface PriceFeedItemOrBuilder
        Returns:
        The enum numeric value on the wire for priceQualifier.
      • hasTrackingUrlTemplate

        public boolean hasTrackingUrlTemplate()
         Tracking URL template for all offers of this price extension.
         
        optional string tracking_url_template = 7;
        Specified by:
        hasTrackingUrlTemplate in interface PriceFeedItemOrBuilder
        Returns:
        Whether the trackingUrlTemplate field is set.
      • getTrackingUrlTemplate

        public java.lang.String getTrackingUrlTemplate()
         Tracking URL template for all offers of this price extension.
         
        optional string tracking_url_template = 7;
        Specified by:
        getTrackingUrlTemplate in interface PriceFeedItemOrBuilder
        Returns:
        The trackingUrlTemplate.
      • getTrackingUrlTemplateBytes

        public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
         Tracking URL template for all offers of this price extension.
         
        optional string tracking_url_template = 7;
        Specified by:
        getTrackingUrlTemplateBytes in interface PriceFeedItemOrBuilder
        Returns:
        The bytes for trackingUrlTemplate.
      • hasLanguageCode

        public boolean hasLanguageCode()
         The code of the language used for this price extension.
         
        optional string language_code = 8;
        Specified by:
        hasLanguageCode in interface PriceFeedItemOrBuilder
        Returns:
        Whether the languageCode field is set.
      • getLanguageCode

        public java.lang.String getLanguageCode()
         The code of the language used for this price extension.
         
        optional string language_code = 8;
        Specified by:
        getLanguageCode in interface PriceFeedItemOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         The code of the language used for this price extension.
         
        optional string language_code = 8;
        Specified by:
        getLanguageCodeBytes in interface PriceFeedItemOrBuilder
        Returns:
        The bytes for languageCode.
      • getPriceOfferingsList

        public java.util.List<PriceOffer> getPriceOfferingsList()
         The price offerings in this price extension.
         
        repeated .google.ads.googleads.v14.common.PriceOffer price_offerings = 5;
        Specified by:
        getPriceOfferingsList in interface PriceFeedItemOrBuilder
      • getPriceOfferingsCount

        public int getPriceOfferingsCount()
         The price offerings in this price extension.
         
        repeated .google.ads.googleads.v14.common.PriceOffer price_offerings = 5;
        Specified by:
        getPriceOfferingsCount in interface PriceFeedItemOrBuilder
      • getPriceOfferings

        public PriceOffer getPriceOfferings​(int index)
         The price offerings in this price extension.
         
        repeated .google.ads.googleads.v14.common.PriceOffer price_offerings = 5;
        Specified by:
        getPriceOfferings in interface PriceFeedItemOrBuilder
      • hasFinalUrlSuffix

        public boolean hasFinalUrlSuffix()
         Tracking URL template for all offers of this price extension.
         
        optional string final_url_suffix = 9;
        Specified by:
        hasFinalUrlSuffix in interface PriceFeedItemOrBuilder
        Returns:
        Whether the finalUrlSuffix field is set.
      • getFinalUrlSuffix

        public java.lang.String getFinalUrlSuffix()
         Tracking URL template for all offers of this price extension.
         
        optional string final_url_suffix = 9;
        Specified by:
        getFinalUrlSuffix in interface PriceFeedItemOrBuilder
        Returns:
        The finalUrlSuffix.
      • getFinalUrlSuffixBytes

        public com.google.protobuf.ByteString getFinalUrlSuffixBytes()
         Tracking URL template for all offers of this price extension.
         
        optional string final_url_suffix = 9;
        Specified by:
        getFinalUrlSuffixBytes in interface PriceFeedItemOrBuilder
        Returns:
        The bytes for finalUrlSuffix.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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 PriceFeedItem parseFrom​(java.nio.ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static PriceFeedItem parseFrom​(java.io.InputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static PriceFeedItem parseDelimitedFrom​(java.io.InputStream input)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

        public static PriceFeedItem parseFrom​(com.google.protobuf.CodedInputStream input)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

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

        public static PriceFeedItem getDefaultInstance()
      • parser

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

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