All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.common.CpcBidSimulationPoint Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/simulation.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * Projected metrics for a specific CPC bid amount.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.CpcBidSimulationPoint} */ public final class CpcBidSimulationPoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.CpcBidSimulationPoint) CpcBidSimulationPointOrBuilder { private static final long serialVersionUID = 0L; // Use CpcBidSimulationPoint.newBuilder() to construct. private CpcBidSimulationPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CpcBidSimulationPoint() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CpcBidSimulationPoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_CpcBidSimulationPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_CpcBidSimulationPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.CpcBidSimulationPoint.class, com.google.ads.googleads.v17.common.CpcBidSimulationPoint.Builder.class); } private int bitField0_; private int cpcSimulationKeyValueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object cpcSimulationKeyValue_; public enum CpcSimulationKeyValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CPC_BID_MICROS(15), CPC_BID_SCALING_MODIFIER(16), CPCSIMULATIONKEYVALUE_NOT_SET(0); private final int value; private CpcSimulationKeyValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CpcSimulationKeyValueCase valueOf(int value) { return forNumber(value); } public static CpcSimulationKeyValueCase forNumber(int value) { switch (value) { case 15: return CPC_BID_MICROS; case 16: return CPC_BID_SCALING_MODIFIER; case 0: return CPCSIMULATIONKEYVALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CpcSimulationKeyValueCase getCpcSimulationKeyValueCase() { return CpcSimulationKeyValueCase.forNumber( cpcSimulationKeyValueCase_); } public static final int REQUIRED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 17; private long requiredBudgetAmountMicros_ = 0L; /** *
   * Projected required daily budget that the advertiser must set in order to
   * receive the estimated traffic, in micros of advertiser currency.
   * 
* * int64 required_budget_amount_micros = 17; * @return The requiredBudgetAmountMicros. */ @java.lang.Override public long getRequiredBudgetAmountMicros() { return requiredBudgetAmountMicros_; } public static final int BIDDABLE_CONVERSIONS_FIELD_NUMBER = 9; private double biddableConversions_ = 0D; /** *
   * Projected number of biddable conversions.
   * 
* * optional double biddable_conversions = 9; * @return Whether the biddableConversions field is set. */ @java.lang.Override public boolean hasBiddableConversions() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Projected number of biddable conversions.
   * 
* * optional double biddable_conversions = 9; * @return The biddableConversions. */ @java.lang.Override public double getBiddableConversions() { return biddableConversions_; } public static final int BIDDABLE_CONVERSIONS_VALUE_FIELD_NUMBER = 10; private double biddableConversionsValue_ = 0D; /** *
   * Projected total value of biddable conversions.
   * 
* * optional double biddable_conversions_value = 10; * @return Whether the biddableConversionsValue field is set. */ @java.lang.Override public boolean hasBiddableConversionsValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Projected total value of biddable conversions.
   * 
* * optional double biddable_conversions_value = 10; * @return The biddableConversionsValue. */ @java.lang.Override public double getBiddableConversionsValue() { return biddableConversionsValue_; } public static final int CLICKS_FIELD_NUMBER = 11; private long clicks_ = 0L; /** *
   * Projected number of clicks.
   * 
* * optional int64 clicks = 11; * @return Whether the clicks field is set. */ @java.lang.Override public boolean hasClicks() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Projected number of clicks.
   * 
* * optional int64 clicks = 11; * @return The clicks. */ @java.lang.Override public long getClicks() { return clicks_; } public static final int COST_MICROS_FIELD_NUMBER = 12; private long costMicros_ = 0L; /** *
   * Projected cost in micros.
   * 
* * optional int64 cost_micros = 12; * @return Whether the costMicros field is set. */ @java.lang.Override public boolean hasCostMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Projected cost in micros.
   * 
* * optional int64 cost_micros = 12; * @return The costMicros. */ @java.lang.Override public long getCostMicros() { return costMicros_; } public static final int IMPRESSIONS_FIELD_NUMBER = 13; private long impressions_ = 0L; /** *
   * Projected number of impressions.
   * 
* * optional int64 impressions = 13; * @return Whether the impressions field is set. */ @java.lang.Override public boolean hasImpressions() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Projected number of impressions.
   * 
* * optional int64 impressions = 13; * @return The impressions. */ @java.lang.Override public long getImpressions() { return impressions_; } public static final int TOP_SLOT_IMPRESSIONS_FIELD_NUMBER = 14; private long topSlotImpressions_ = 0L; /** *
   * Projected number of top slot impressions.
   * Only search advertising channel type supports this field.
   * 
* * optional int64 top_slot_impressions = 14; * @return Whether the topSlotImpressions field is set. */ @java.lang.Override public boolean hasTopSlotImpressions() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Projected number of top slot impressions.
   * Only search advertising channel type supports this field.
   * 
* * optional int64 top_slot_impressions = 14; * @return The topSlotImpressions. */ @java.lang.Override public long getTopSlotImpressions() { return topSlotImpressions_; } public static final int CPC_BID_MICROS_FIELD_NUMBER = 15; /** *
   * The simulated CPC bid upon which projected metrics are based.
   * 
* * int64 cpc_bid_micros = 15; * @return Whether the cpcBidMicros field is set. */ @java.lang.Override public boolean hasCpcBidMicros() { return cpcSimulationKeyValueCase_ == 15; } /** *
   * The simulated CPC bid upon which projected metrics are based.
   * 
* * int64 cpc_bid_micros = 15; * @return The cpcBidMicros. */ @java.lang.Override public long getCpcBidMicros() { if (cpcSimulationKeyValueCase_ == 15) { return (java.lang.Long) cpcSimulationKeyValue_; } return 0L; } public static final int CPC_BID_SCALING_MODIFIER_FIELD_NUMBER = 16; /** *
   * The simulated scaling modifier upon which projected metrics are based.
   * All CPC bids relevant to the simulated entity are scaled by this
   * modifier.
   * 
* * double cpc_bid_scaling_modifier = 16; * @return Whether the cpcBidScalingModifier field is set. */ @java.lang.Override public boolean hasCpcBidScalingModifier() { return cpcSimulationKeyValueCase_ == 16; } /** *
   * The simulated scaling modifier upon which projected metrics are based.
   * All CPC bids relevant to the simulated entity are scaled by this
   * modifier.
   * 
* * double cpc_bid_scaling_modifier = 16; * @return The cpcBidScalingModifier. */ @java.lang.Override public double getCpcBidScalingModifier() { if (cpcSimulationKeyValueCase_ == 16) { return (java.lang.Double) cpcSimulationKeyValue_; } return 0D; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(9, biddableConversions_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(10, biddableConversionsValue_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(11, clicks_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(12, costMicros_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(13, impressions_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(14, topSlotImpressions_); } if (cpcSimulationKeyValueCase_ == 15) { output.writeInt64( 15, (long)((java.lang.Long) cpcSimulationKeyValue_)); } if (cpcSimulationKeyValueCase_ == 16) { output.writeDouble( 16, (double)((java.lang.Double) cpcSimulationKeyValue_)); } if (requiredBudgetAmountMicros_ != 0L) { output.writeInt64(17, requiredBudgetAmountMicros_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, biddableConversions_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, biddableConversionsValue_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, clicks_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, costMicros_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, impressions_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, topSlotImpressions_); } if (cpcSimulationKeyValueCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 15, (long)((java.lang.Long) cpcSimulationKeyValue_)); } if (cpcSimulationKeyValueCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 16, (double)((java.lang.Double) cpcSimulationKeyValue_)); } if (requiredBudgetAmountMicros_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(17, requiredBudgetAmountMicros_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.common.CpcBidSimulationPoint)) { return super.equals(obj); } com.google.ads.googleads.v17.common.CpcBidSimulationPoint other = (com.google.ads.googleads.v17.common.CpcBidSimulationPoint) obj; if (getRequiredBudgetAmountMicros() != other.getRequiredBudgetAmountMicros()) return false; if (hasBiddableConversions() != other.hasBiddableConversions()) return false; if (hasBiddableConversions()) { if (java.lang.Double.doubleToLongBits(getBiddableConversions()) != java.lang.Double.doubleToLongBits( other.getBiddableConversions())) return false; } if (hasBiddableConversionsValue() != other.hasBiddableConversionsValue()) return false; if (hasBiddableConversionsValue()) { if (java.lang.Double.doubleToLongBits(getBiddableConversionsValue()) != java.lang.Double.doubleToLongBits( other.getBiddableConversionsValue())) return false; } if (hasClicks() != other.hasClicks()) return false; if (hasClicks()) { if (getClicks() != other.getClicks()) return false; } if (hasCostMicros() != other.hasCostMicros()) return false; if (hasCostMicros()) { if (getCostMicros() != other.getCostMicros()) return false; } if (hasImpressions() != other.hasImpressions()) return false; if (hasImpressions()) { if (getImpressions() != other.getImpressions()) return false; } if (hasTopSlotImpressions() != other.hasTopSlotImpressions()) return false; if (hasTopSlotImpressions()) { if (getTopSlotImpressions() != other.getTopSlotImpressions()) return false; } if (!getCpcSimulationKeyValueCase().equals(other.getCpcSimulationKeyValueCase())) return false; switch (cpcSimulationKeyValueCase_) { case 15: if (getCpcBidMicros() != other.getCpcBidMicros()) return false; break; case 16: if (java.lang.Double.doubleToLongBits(getCpcBidScalingModifier()) != java.lang.Double.doubleToLongBits( other.getCpcBidScalingModifier())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUIRED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequiredBudgetAmountMicros()); if (hasBiddableConversions()) { hash = (37 * hash) + BIDDABLE_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getBiddableConversions())); } if (hasBiddableConversionsValue()) { hash = (37 * hash) + BIDDABLE_CONVERSIONS_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getBiddableConversionsValue())); } if (hasClicks()) { hash = (37 * hash) + CLICKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClicks()); } if (hasCostMicros()) { hash = (37 * hash) + COST_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCostMicros()); } if (hasImpressions()) { hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getImpressions()); } if (hasTopSlotImpressions()) { hash = (37 * hash) + TOP_SLOT_IMPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTopSlotImpressions()); } switch (cpcSimulationKeyValueCase_) { case 15: hash = (37 * hash) + CPC_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCpcBidMicros()); break; case 16: hash = (37 * hash) + CPC_BID_SCALING_MODIFIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCpcBidScalingModifier())); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.common.CpcBidSimulationPoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Projected metrics for a specific CPC bid amount.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.CpcBidSimulationPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.CpcBidSimulationPoint) com.google.ads.googleads.v17.common.CpcBidSimulationPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_CpcBidSimulationPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_CpcBidSimulationPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.CpcBidSimulationPoint.class, com.google.ads.googleads.v17.common.CpcBidSimulationPoint.Builder.class); } // Construct using com.google.ads.googleads.v17.common.CpcBidSimulationPoint.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requiredBudgetAmountMicros_ = 0L; biddableConversions_ = 0D; biddableConversionsValue_ = 0D; clicks_ = 0L; costMicros_ = 0L; impressions_ = 0L; topSlotImpressions_ = 0L; cpcSimulationKeyValueCase_ = 0; cpcSimulationKeyValue_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_CpcBidSimulationPoint_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.CpcBidSimulationPoint getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.CpcBidSimulationPoint.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.CpcBidSimulationPoint build() { com.google.ads.googleads.v17.common.CpcBidSimulationPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.CpcBidSimulationPoint buildPartial() { com.google.ads.googleads.v17.common.CpcBidSimulationPoint result = new com.google.ads.googleads.v17.common.CpcBidSimulationPoint(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.CpcBidSimulationPoint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.requiredBudgetAmountMicros_ = requiredBudgetAmountMicros_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.biddableConversions_ = biddableConversions_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.biddableConversionsValue_ = biddableConversionsValue_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.clicks_ = clicks_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.costMicros_ = costMicros_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.impressions_ = impressions_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.topSlotImpressions_ = topSlotImpressions_; to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.ads.googleads.v17.common.CpcBidSimulationPoint result) { result.cpcSimulationKeyValueCase_ = cpcSimulationKeyValueCase_; result.cpcSimulationKeyValue_ = this.cpcSimulationKeyValue_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.common.CpcBidSimulationPoint) { return mergeFrom((com.google.ads.googleads.v17.common.CpcBidSimulationPoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.CpcBidSimulationPoint other) { if (other == com.google.ads.googleads.v17.common.CpcBidSimulationPoint.getDefaultInstance()) return this; if (other.getRequiredBudgetAmountMicros() != 0L) { setRequiredBudgetAmountMicros(other.getRequiredBudgetAmountMicros()); } if (other.hasBiddableConversions()) { setBiddableConversions(other.getBiddableConversions()); } if (other.hasBiddableConversionsValue()) { setBiddableConversionsValue(other.getBiddableConversionsValue()); } if (other.hasClicks()) { setClicks(other.getClicks()); } if (other.hasCostMicros()) { setCostMicros(other.getCostMicros()); } if (other.hasImpressions()) { setImpressions(other.getImpressions()); } if (other.hasTopSlotImpressions()) { setTopSlotImpressions(other.getTopSlotImpressions()); } switch (other.getCpcSimulationKeyValueCase()) { case CPC_BID_MICROS: { setCpcBidMicros(other.getCpcBidMicros()); break; } case CPC_BID_SCALING_MODIFIER: { setCpcBidScalingModifier(other.getCpcBidScalingModifier()); break; } case CPCSIMULATIONKEYVALUE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 73: { biddableConversions_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 73 case 81: { biddableConversionsValue_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 81 case 88: { clicks_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 88 case 96: { costMicros_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 96 case 104: { impressions_ = input.readInt64(); bitField0_ |= 0x00000020; break; } // case 104 case 112: { topSlotImpressions_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 112 case 120: { cpcSimulationKeyValue_ = input.readInt64(); cpcSimulationKeyValueCase_ = 15; break; } // case 120 case 129: { cpcSimulationKeyValue_ = input.readDouble(); cpcSimulationKeyValueCase_ = 16; break; } // case 129 case 136: { requiredBudgetAmountMicros_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 136 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int cpcSimulationKeyValueCase_ = 0; private java.lang.Object cpcSimulationKeyValue_; public CpcSimulationKeyValueCase getCpcSimulationKeyValueCase() { return CpcSimulationKeyValueCase.forNumber( cpcSimulationKeyValueCase_); } public Builder clearCpcSimulationKeyValue() { cpcSimulationKeyValueCase_ = 0; cpcSimulationKeyValue_ = null; onChanged(); return this; } private int bitField0_; private long requiredBudgetAmountMicros_ ; /** *
     * Projected required daily budget that the advertiser must set in order to
     * receive the estimated traffic, in micros of advertiser currency.
     * 
* * int64 required_budget_amount_micros = 17; * @return The requiredBudgetAmountMicros. */ @java.lang.Override public long getRequiredBudgetAmountMicros() { return requiredBudgetAmountMicros_; } /** *
     * Projected required daily budget that the advertiser must set in order to
     * receive the estimated traffic, in micros of advertiser currency.
     * 
* * int64 required_budget_amount_micros = 17; * @param value The requiredBudgetAmountMicros to set. * @return This builder for chaining. */ public Builder setRequiredBudgetAmountMicros(long value) { requiredBudgetAmountMicros_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Projected required daily budget that the advertiser must set in order to
     * receive the estimated traffic, in micros of advertiser currency.
     * 
* * int64 required_budget_amount_micros = 17; * @return This builder for chaining. */ public Builder clearRequiredBudgetAmountMicros() { bitField0_ = (bitField0_ & ~0x00000001); requiredBudgetAmountMicros_ = 0L; onChanged(); return this; } private double biddableConversions_ ; /** *
     * Projected number of biddable conversions.
     * 
* * optional double biddable_conversions = 9; * @return Whether the biddableConversions field is set. */ @java.lang.Override public boolean hasBiddableConversions() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Projected number of biddable conversions.
     * 
* * optional double biddable_conversions = 9; * @return The biddableConversions. */ @java.lang.Override public double getBiddableConversions() { return biddableConversions_; } /** *
     * Projected number of biddable conversions.
     * 
* * optional double biddable_conversions = 9; * @param value The biddableConversions to set. * @return This builder for chaining. */ public Builder setBiddableConversions(double value) { biddableConversions_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Projected number of biddable conversions.
     * 
* * optional double biddable_conversions = 9; * @return This builder for chaining. */ public Builder clearBiddableConversions() { bitField0_ = (bitField0_ & ~0x00000002); biddableConversions_ = 0D; onChanged(); return this; } private double biddableConversionsValue_ ; /** *
     * Projected total value of biddable conversions.
     * 
* * optional double biddable_conversions_value = 10; * @return Whether the biddableConversionsValue field is set. */ @java.lang.Override public boolean hasBiddableConversionsValue() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Projected total value of biddable conversions.
     * 
* * optional double biddable_conversions_value = 10; * @return The biddableConversionsValue. */ @java.lang.Override public double getBiddableConversionsValue() { return biddableConversionsValue_; } /** *
     * Projected total value of biddable conversions.
     * 
* * optional double biddable_conversions_value = 10; * @param value The biddableConversionsValue to set. * @return This builder for chaining. */ public Builder setBiddableConversionsValue(double value) { biddableConversionsValue_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Projected total value of biddable conversions.
     * 
* * optional double biddable_conversions_value = 10; * @return This builder for chaining. */ public Builder clearBiddableConversionsValue() { bitField0_ = (bitField0_ & ~0x00000004); biddableConversionsValue_ = 0D; onChanged(); return this; } private long clicks_ ; /** *
     * Projected number of clicks.
     * 
* * optional int64 clicks = 11; * @return Whether the clicks field is set. */ @java.lang.Override public boolean hasClicks() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Projected number of clicks.
     * 
* * optional int64 clicks = 11; * @return The clicks. */ @java.lang.Override public long getClicks() { return clicks_; } /** *
     * Projected number of clicks.
     * 
* * optional int64 clicks = 11; * @param value The clicks to set. * @return This builder for chaining. */ public Builder setClicks(long value) { clicks_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Projected number of clicks.
     * 
* * optional int64 clicks = 11; * @return This builder for chaining. */ public Builder clearClicks() { bitField0_ = (bitField0_ & ~0x00000008); clicks_ = 0L; onChanged(); return this; } private long costMicros_ ; /** *
     * Projected cost in micros.
     * 
* * optional int64 cost_micros = 12; * @return Whether the costMicros field is set. */ @java.lang.Override public boolean hasCostMicros() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Projected cost in micros.
     * 
* * optional int64 cost_micros = 12; * @return The costMicros. */ @java.lang.Override public long getCostMicros() { return costMicros_; } /** *
     * Projected cost in micros.
     * 
* * optional int64 cost_micros = 12; * @param value The costMicros to set. * @return This builder for chaining. */ public Builder setCostMicros(long value) { costMicros_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Projected cost in micros.
     * 
* * optional int64 cost_micros = 12; * @return This builder for chaining. */ public Builder clearCostMicros() { bitField0_ = (bitField0_ & ~0x00000010); costMicros_ = 0L; onChanged(); return this; } private long impressions_ ; /** *
     * Projected number of impressions.
     * 
* * optional int64 impressions = 13; * @return Whether the impressions field is set. */ @java.lang.Override public boolean hasImpressions() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Projected number of impressions.
     * 
* * optional int64 impressions = 13; * @return The impressions. */ @java.lang.Override public long getImpressions() { return impressions_; } /** *
     * Projected number of impressions.
     * 
* * optional int64 impressions = 13; * @param value The impressions to set. * @return This builder for chaining. */ public Builder setImpressions(long value) { impressions_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Projected number of impressions.
     * 
* * optional int64 impressions = 13; * @return This builder for chaining. */ public Builder clearImpressions() { bitField0_ = (bitField0_ & ~0x00000020); impressions_ = 0L; onChanged(); return this; } private long topSlotImpressions_ ; /** *
     * Projected number of top slot impressions.
     * Only search advertising channel type supports this field.
     * 
* * optional int64 top_slot_impressions = 14; * @return Whether the topSlotImpressions field is set. */ @java.lang.Override public boolean hasTopSlotImpressions() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Projected number of top slot impressions.
     * Only search advertising channel type supports this field.
     * 
* * optional int64 top_slot_impressions = 14; * @return The topSlotImpressions. */ @java.lang.Override public long getTopSlotImpressions() { return topSlotImpressions_; } /** *
     * Projected number of top slot impressions.
     * Only search advertising channel type supports this field.
     * 
* * optional int64 top_slot_impressions = 14; * @param value The topSlotImpressions to set. * @return This builder for chaining. */ public Builder setTopSlotImpressions(long value) { topSlotImpressions_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Projected number of top slot impressions.
     * Only search advertising channel type supports this field.
     * 
* * optional int64 top_slot_impressions = 14; * @return This builder for chaining. */ public Builder clearTopSlotImpressions() { bitField0_ = (bitField0_ & ~0x00000040); topSlotImpressions_ = 0L; onChanged(); return this; } /** *
     * The simulated CPC bid upon which projected metrics are based.
     * 
* * int64 cpc_bid_micros = 15; * @return Whether the cpcBidMicros field is set. */ public boolean hasCpcBidMicros() { return cpcSimulationKeyValueCase_ == 15; } /** *
     * The simulated CPC bid upon which projected metrics are based.
     * 
* * int64 cpc_bid_micros = 15; * @return The cpcBidMicros. */ public long getCpcBidMicros() { if (cpcSimulationKeyValueCase_ == 15) { return (java.lang.Long) cpcSimulationKeyValue_; } return 0L; } /** *
     * The simulated CPC bid upon which projected metrics are based.
     * 
* * int64 cpc_bid_micros = 15; * @param value The cpcBidMicros to set. * @return This builder for chaining. */ public Builder setCpcBidMicros(long value) { cpcSimulationKeyValueCase_ = 15; cpcSimulationKeyValue_ = value; onChanged(); return this; } /** *
     * The simulated CPC bid upon which projected metrics are based.
     * 
* * int64 cpc_bid_micros = 15; * @return This builder for chaining. */ public Builder clearCpcBidMicros() { if (cpcSimulationKeyValueCase_ == 15) { cpcSimulationKeyValueCase_ = 0; cpcSimulationKeyValue_ = null; onChanged(); } return this; } /** *
     * The simulated scaling modifier upon which projected metrics are based.
     * All CPC bids relevant to the simulated entity are scaled by this
     * modifier.
     * 
* * double cpc_bid_scaling_modifier = 16; * @return Whether the cpcBidScalingModifier field is set. */ public boolean hasCpcBidScalingModifier() { return cpcSimulationKeyValueCase_ == 16; } /** *
     * The simulated scaling modifier upon which projected metrics are based.
     * All CPC bids relevant to the simulated entity are scaled by this
     * modifier.
     * 
* * double cpc_bid_scaling_modifier = 16; * @return The cpcBidScalingModifier. */ public double getCpcBidScalingModifier() { if (cpcSimulationKeyValueCase_ == 16) { return (java.lang.Double) cpcSimulationKeyValue_; } return 0D; } /** *
     * The simulated scaling modifier upon which projected metrics are based.
     * All CPC bids relevant to the simulated entity are scaled by this
     * modifier.
     * 
* * double cpc_bid_scaling_modifier = 16; * @param value The cpcBidScalingModifier to set. * @return This builder for chaining. */ public Builder setCpcBidScalingModifier(double value) { cpcSimulationKeyValueCase_ = 16; cpcSimulationKeyValue_ = value; onChanged(); return this; } /** *
     * The simulated scaling modifier upon which projected metrics are based.
     * All CPC bids relevant to the simulated entity are scaled by this
     * modifier.
     * 
* * double cpc_bid_scaling_modifier = 16; * @return This builder for chaining. */ public Builder clearCpcBidScalingModifier() { if (cpcSimulationKeyValueCase_ == 16) { cpcSimulationKeyValueCase_ = 0; cpcSimulationKeyValue_ = null; onChanged(); } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.CpcBidSimulationPoint) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.CpcBidSimulationPoint) private static final com.google.ads.googleads.v17.common.CpcBidSimulationPoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.CpcBidSimulationPoint(); } public static com.google.ads.googleads.v17.common.CpcBidSimulationPoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CpcBidSimulationPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.common.CpcBidSimulationPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy