Class CampaignReservationQuote

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ads.googleads.v23.common.CampaignReservationQuote
All Implemented Interfaces:
CampaignReservationQuoteOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CampaignReservationQuote extends com.google.protobuf.GeneratedMessage implements CampaignReservationQuoteOrBuilder
 The campaign reservation quote.
 
Protobuf type google.ads.googleads.v23.common.CampaignReservationQuote
See Also:
  • Field Details

    • CAMPAIGN_FIELD_NUMBER

      public static final int CAMPAIGN_FIELD_NUMBER
      See Also:
    • MAX_BUDGET_MICROS_FIELD_NUMBER

      public static final int MAX_BUDGET_MICROS_FIELD_NUMBER
      See Also:
    • POSSIBLE_HOLD_DURATION_SECONDS_FIELD_NUMBER

      public static final int POSSIBLE_HOLD_DURATION_SECONDS_FIELD_NUMBER
      See Also:
    • SUGGESTED_CPM_MICROS_FIELD_NUMBER

      public static final int SUGGESTED_CPM_MICROS_FIELD_NUMBER
      See Also:
  • 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
    • getSuggestedQuoteCase

      public CampaignReservationQuote.SuggestedQuoteCase getSuggestedQuoteCase()
      Specified by:
      getSuggestedQuoteCase in interface CampaignReservationQuoteOrBuilder
    • getCampaign

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

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

      public long getMaxBudgetMicros()
       Maximum budget to get all available impressions at the current CPM. Capped
       at 10M USD. Specified in micros of the advertiser currency.
       
      int64 max_budget_micros = 3;
      Specified by:
      getMaxBudgetMicros in interface CampaignReservationQuoteOrBuilder
      Returns:
      The maxBudgetMicros.
    • getPossibleHoldDurationSeconds

      public long getPossibleHoldDurationSeconds()
       The possible duration of the hold, in seconds.
       
      int64 possible_hold_duration_seconds = 4;
      Specified by:
      getPossibleHoldDurationSeconds in interface CampaignReservationQuoteOrBuilder
      Returns:
      The possibleHoldDurationSeconds.
    • hasSuggestedCpmMicros

      public boolean hasSuggestedCpmMicros()
       The CPM that would be accepted for the campaign calculated at the
       proposed budget. Specified in micros of the advertiser currency.
       
      int64 suggested_cpm_micros = 2;
      Specified by:
      hasSuggestedCpmMicros in interface CampaignReservationQuoteOrBuilder
      Returns:
      Whether the suggestedCpmMicros field is set.
    • getSuggestedCpmMicros

      public long getSuggestedCpmMicros()
       The CPM that would be accepted for the campaign calculated at the
       proposed budget. Specified in micros of the advertiser currency.
       
      int64 suggested_cpm_micros = 2;
      Specified by:
      getSuggestedCpmMicros in interface CampaignReservationQuoteOrBuilder
      Returns:
      The suggestedCpmMicros.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 CampaignReservationQuote parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static CampaignReservationQuote.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CampaignReservationQuote.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CampaignReservationQuote getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<CampaignReservationQuote> 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.GeneratedMessage
    • getDefaultInstanceForType

      public CampaignReservationQuote getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder