Class ReservationErrorDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder>
com.google.ads.googleads.v23.errors.ReservationErrorDetails.Builder
All Implemented Interfaces:
ReservationErrorDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReservationErrorDetails

public static final class ReservationErrorDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder> implements ReservationErrorDetailsOrBuilder
 Error details returned for BookCampaigns or QuoteCampaigns.
 
Protobuf type google.ads.googleads.v23.errors.ReservationErrorDetails
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder>
    • getDefaultInstanceForType

      public ReservationErrorDetails getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ReservationErrorDetails build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ReservationErrorDetails buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReservationErrorDetails.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReservationErrorDetails.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ReservationErrorDetails.Builder>
    • mergeFrom

      public ReservationErrorDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReservationErrorDetails.Builder>
      Throws:
      IOException
    • getCampaign

      public String getCampaign()
       The resource name of the campaign affected by the error, as it was
       specified in the request. It could contain a temporary ID. Format:
       customers/{customer_id}/campaigns/{campaign_id}
       
      string campaign = 1;
      Specified by:
      getCampaign in interface ReservationErrorDetailsOrBuilder
      Returns:
      The campaign.
    • getCampaignBytes

      public com.google.protobuf.ByteString getCampaignBytes()
       The resource name of the campaign affected by the error, as it was
       specified in the request. It could contain a temporary ID. Format:
       customers/{customer_id}/campaigns/{campaign_id}
       
      string campaign = 1;
      Specified by:
      getCampaignBytes in interface ReservationErrorDetailsOrBuilder
      Returns:
      The bytes for campaign.
    • setCampaign

      public ReservationErrorDetails.Builder setCampaign(String value)
       The resource name of the campaign affected by the error, as it was
       specified in the request. It could contain a temporary ID. Format:
       customers/{customer_id}/campaigns/{campaign_id}
       
      string campaign = 1;
      Parameters:
      value - The campaign to set.
      Returns:
      This builder for chaining.
    • clearCampaign

      public ReservationErrorDetails.Builder clearCampaign()
       The resource name of the campaign affected by the error, as it was
       specified in the request. It could contain a temporary ID. Format:
       customers/{customer_id}/campaigns/{campaign_id}
       
      string campaign = 1;
      Returns:
      This builder for chaining.
    • setCampaignBytes

      public ReservationErrorDetails.Builder setCampaignBytes(com.google.protobuf.ByteString value)
       The resource name of the campaign affected by the error, as it was
       specified in the request. It could contain a temporary ID. Format:
       customers/{customer_id}/campaigns/{campaign_id}
       
      string campaign = 1;
      Parameters:
      value - The bytes for campaign to set.
      Returns:
      This builder for chaining.
    • getQuotesList

      public List<CampaignReservationQuote> getQuotesList()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
      Specified by:
      getQuotesList in interface ReservationErrorDetailsOrBuilder
    • getQuotesCount

      public int getQuotesCount()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
      Specified by:
      getQuotesCount in interface ReservationErrorDetailsOrBuilder
    • getQuotes

      public CampaignReservationQuote getQuotes(int index)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
      Specified by:
      getQuotes in interface ReservationErrorDetailsOrBuilder
    • setQuotes

      public ReservationErrorDetails.Builder setQuotes(int index, CampaignReservationQuote value)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • setQuotes

      public ReservationErrorDetails.Builder setQuotes(int index, CampaignReservationQuote.Builder builderForValue)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addQuotes

       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addQuotes

      public ReservationErrorDetails.Builder addQuotes(int index, CampaignReservationQuote value)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addQuotes

       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addQuotes

      public ReservationErrorDetails.Builder addQuotes(int index, CampaignReservationQuote.Builder builderForValue)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addAllQuotes

      public ReservationErrorDetails.Builder addAllQuotes(Iterable<? extends CampaignReservationQuote> values)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • clearQuotes

      public ReservationErrorDetails.Builder clearQuotes()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • removeQuotes

      public ReservationErrorDetails.Builder removeQuotes(int index)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • getQuotesBuilder

      public CampaignReservationQuote.Builder getQuotesBuilder(int index)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • getQuotesOrBuilder

      public CampaignReservationQuoteOrBuilder getQuotesOrBuilder(int index)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
      Specified by:
      getQuotesOrBuilder in interface ReservationErrorDetailsOrBuilder
    • getQuotesOrBuilderList

      public List<? extends CampaignReservationQuoteOrBuilder> getQuotesOrBuilderList()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
      Specified by:
      getQuotesOrBuilderList in interface ReservationErrorDetailsOrBuilder
    • addQuotesBuilder

      public CampaignReservationQuote.Builder addQuotesBuilder()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • addQuotesBuilder

      public CampaignReservationQuote.Builder addQuotesBuilder(int index)
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • getQuotesBuilderList

      public List<CampaignReservationQuote.Builder> getQuotesBuilderList()
       A list of proposed quotes for all the campaigns in the request. For the
       failed campaign, the given quote allows booking.
       
      repeated .google.ads.googleads.v23.common.CampaignReservationQuote quotes = 2;
    • getQuoteSignature

      public String getQuoteSignature()
       A signature of the returned quote. The signature covers the entire set of
       campaigns in the request, and can be used in subsequent requests for the
       same set of campaigns.
       
      string quote_signature = 3;
      Specified by:
      getQuoteSignature in interface ReservationErrorDetailsOrBuilder
      Returns:
      The quoteSignature.
    • getQuoteSignatureBytes

      public com.google.protobuf.ByteString getQuoteSignatureBytes()
       A signature of the returned quote. The signature covers the entire set of
       campaigns in the request, and can be used in subsequent requests for the
       same set of campaigns.
       
      string quote_signature = 3;
      Specified by:
      getQuoteSignatureBytes in interface ReservationErrorDetailsOrBuilder
      Returns:
      The bytes for quoteSignature.
    • setQuoteSignature

      public ReservationErrorDetails.Builder setQuoteSignature(String value)
       A signature of the returned quote. The signature covers the entire set of
       campaigns in the request, and can be used in subsequent requests for the
       same set of campaigns.
       
      string quote_signature = 3;
      Parameters:
      value - The quoteSignature to set.
      Returns:
      This builder for chaining.
    • clearQuoteSignature

      public ReservationErrorDetails.Builder clearQuoteSignature()
       A signature of the returned quote. The signature covers the entire set of
       campaigns in the request, and can be used in subsequent requests for the
       same set of campaigns.
       
      string quote_signature = 3;
      Returns:
      This builder for chaining.
    • setQuoteSignatureBytes

      public ReservationErrorDetails.Builder setQuoteSignatureBytes(com.google.protobuf.ByteString value)
       A signature of the returned quote. The signature covers the entire set of
       campaigns in the request, and can be used in subsequent requests for the
       same set of campaigns.
       
      string quote_signature = 3;
      Parameters:
      value - The bytes for quoteSignature to set.
      Returns:
      This builder for chaining.