Class CampaignReservationQuote.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
com.google.ads.googleads.v23.common.CampaignReservationQuote.Builder
- All Implemented Interfaces:
CampaignReservationQuoteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CampaignReservationQuote
public static final class CampaignReservationQuote.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
implements CampaignReservationQuoteOrBuilder
The campaign reservation quote.Protobuf type
google.ads.googleads.v23.common.CampaignReservationQuote-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The campaign resource name, as it was specified in the request.Maximum budget to get all available impressions at the current CPM.The possible duration of the hold, in seconds.The CPM that would be accepted for the campaign calculated at the proposed budget.The campaign resource name, as it was specified in the request.com.google.protobuf.ByteStringThe campaign resource name, as it was specified in the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongMaximum budget to get all available impressions at the current CPM.longThe possible duration of the hold, in seconds.longThe CPM that would be accepted for the campaign calculated at the proposed budget.booleanThe CPM that would be accepted for the campaign calculated at the proposed budget.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCampaign(String value) The campaign resource name, as it was specified in the request.setCampaignBytes(com.google.protobuf.ByteString value) The campaign resource name, as it was specified in the request.setMaxBudgetMicros(long value) Maximum budget to get all available impressions at the current CPM.setPossibleHoldDurationSeconds(long value) The possible duration of the hold, in seconds.setSuggestedCpmMicros(long value) The CPM that would be accepted for the campaign calculated at the proposed budget.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignReservationQuote.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CampaignReservationQuote.Builder>
-
mergeFrom
public CampaignReservationQuote.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CampaignReservationQuote.Builder>- Throws:
IOException
-
getSuggestedQuoteCase
- Specified by:
getSuggestedQuoteCasein interfaceCampaignReservationQuoteOrBuilder
-
clearSuggestedQuote
-
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:
getCampaignin interfaceCampaignReservationQuoteOrBuilder- 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:
getCampaignBytesin interfaceCampaignReservationQuoteOrBuilder- Returns:
- The bytes for campaign.
-
setCampaign
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;- Parameters:
value- The campaign to set.- Returns:
- This builder for chaining.
-
clearCampaign
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;- Returns:
- This builder for chaining.
-
setCampaignBytes
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;- Parameters:
value- The bytes for campaign to set.- Returns:
- This builder for chaining.
-
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:
getMaxBudgetMicrosin interfaceCampaignReservationQuoteOrBuilder- Returns:
- The maxBudgetMicros.
-
setMaxBudgetMicros
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;- Parameters:
value- The maxBudgetMicros to set.- Returns:
- This builder for chaining.
-
clearMaxBudgetMicros
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;- Returns:
- This builder for chaining.
-
getPossibleHoldDurationSeconds
public long getPossibleHoldDurationSeconds()The possible duration of the hold, in seconds.
int64 possible_hold_duration_seconds = 4;- Specified by:
getPossibleHoldDurationSecondsin interfaceCampaignReservationQuoteOrBuilder- Returns:
- The possibleHoldDurationSeconds.
-
setPossibleHoldDurationSeconds
The possible duration of the hold, in seconds.
int64 possible_hold_duration_seconds = 4;- Parameters:
value- The possibleHoldDurationSeconds to set.- Returns:
- This builder for chaining.
-
clearPossibleHoldDurationSeconds
The possible duration of the hold, in seconds.
int64 possible_hold_duration_seconds = 4;- Returns:
- This builder for chaining.
-
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:
hasSuggestedCpmMicrosin interfaceCampaignReservationQuoteOrBuilder- 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:
getSuggestedCpmMicrosin interfaceCampaignReservationQuoteOrBuilder- Returns:
- The suggestedCpmMicros.
-
setSuggestedCpmMicros
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;- Parameters:
value- The suggestedCpmMicros to set.- Returns:
- This builder for chaining.
-
clearSuggestedCpmMicros
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;- Returns:
- This builder for chaining.
-