com.google.ads.googleads.v17.common.TargetRoasSimulationPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
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 target ROAS amount.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TargetRoasSimulationPoint}
*/
public final class TargetRoasSimulationPoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.TargetRoasSimulationPoint)
TargetRoasSimulationPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetRoasSimulationPoint.newBuilder() to construct.
private TargetRoasSimulationPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetRoasSimulationPoint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetRoasSimulationPoint();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_TargetRoasSimulationPoint_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_TargetRoasSimulationPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.class, com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.Builder.class);
}
private int bitField0_;
public static final int TARGET_ROAS_FIELD_NUMBER = 8;
private double targetRoas_ = 0D;
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @return Whether the targetRoas field is set.
*/
@java.lang.Override
public boolean hasTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @return The targetRoas.
*/
@java.lang.Override
public double getTargetRoas() {
return targetRoas_;
}
public static final int REQUIRED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 15;
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 = 15;
* @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_ & 0x00000002) != 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_ & 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_;
}
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_ & 0x00000008) != 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_ & 0x00000010) != 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_ & 0x00000020) != 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_ & 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_;
}
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(8, targetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(9, biddableConversions_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(10, biddableConversionsValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(11, clicks_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(12, costMicros_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(13, impressions_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(14, topSlotImpressions_);
}
if (requiredBudgetAmountMicros_ != 0L) {
output.writeInt64(15, 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(8, targetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, biddableConversions_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, biddableConversionsValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, clicks_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, costMicros_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, impressions_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, topSlotImpressions_);
}
if (requiredBudgetAmountMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, 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.TargetRoasSimulationPoint)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.TargetRoasSimulationPoint other = (com.google.ads.googleads.v17.common.TargetRoasSimulationPoint) obj;
if (hasTargetRoas() != other.hasTargetRoas()) return false;
if (hasTargetRoas()) {
if (java.lang.Double.doubleToLongBits(getTargetRoas())
!= java.lang.Double.doubleToLongBits(
other.getTargetRoas())) return false;
}
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 (!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();
if (hasTargetRoas()) {
hash = (37 * hash) + TARGET_ROAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTargetRoas()));
}
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());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.TargetRoasSimulationPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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.TargetRoasSimulationPoint 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 target ROAS amount.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.TargetRoasSimulationPoint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.TargetRoasSimulationPoint)
com.google.ads.googleads.v17.common.TargetRoasSimulationPointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.SimulationProto.internal_static_google_ads_googleads_v17_common_TargetRoasSimulationPoint_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_TargetRoasSimulationPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.class, com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
targetRoas_ = 0D;
requiredBudgetAmountMicros_ = 0L;
biddableConversions_ = 0D;
biddableConversionsValue_ = 0D;
clicks_ = 0L;
costMicros_ = 0L;
impressions_ = 0L;
topSlotImpressions_ = 0L;
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_TargetRoasSimulationPoint_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TargetRoasSimulationPoint getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TargetRoasSimulationPoint build() {
com.google.ads.googleads.v17.common.TargetRoasSimulationPoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.TargetRoasSimulationPoint buildPartial() {
com.google.ads.googleads.v17.common.TargetRoasSimulationPoint result = new com.google.ads.googleads.v17.common.TargetRoasSimulationPoint(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.TargetRoasSimulationPoint result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetRoas_ = targetRoas_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requiredBudgetAmountMicros_ = requiredBudgetAmountMicros_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.biddableConversions_ = biddableConversions_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.biddableConversionsValue_ = biddableConversionsValue_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.clicks_ = clicks_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.costMicros_ = costMicros_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.impressions_ = impressions_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.topSlotImpressions_ = topSlotImpressions_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@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.TargetRoasSimulationPoint) {
return mergeFrom((com.google.ads.googleads.v17.common.TargetRoasSimulationPoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.TargetRoasSimulationPoint other) {
if (other == com.google.ads.googleads.v17.common.TargetRoasSimulationPoint.getDefaultInstance()) return this;
if (other.hasTargetRoas()) {
setTargetRoas(other.getTargetRoas());
}
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());
}
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 65: {
targetRoas_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 65
case 73: {
biddableConversions_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 73
case 81: {
biddableConversionsValue_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 81
case 88: {
clicks_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 88
case 96: {
costMicros_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 96
case 104: {
impressions_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 104
case 112: {
topSlotImpressions_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 112
case 120: {
requiredBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 120
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 bitField0_;
private double targetRoas_ ;
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @return Whether the targetRoas field is set.
*/
@java.lang.Override
public boolean hasTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @return The targetRoas.
*/
@java.lang.Override
public double getTargetRoas() {
return targetRoas_;
}
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @param value The targetRoas to set.
* @return This builder for chaining.
*/
public Builder setTargetRoas(double value) {
targetRoas_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The simulated target ROAS upon which projected metrics are based.
*
*
* optional double target_roas = 8;
* @return This builder for chaining.
*/
public Builder clearTargetRoas() {
bitField0_ = (bitField0_ & ~0x00000001);
targetRoas_ = 0D;
onChanged();
return this;
}
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 = 15;
* @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 = 15;
* @param value The requiredBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRequiredBudgetAmountMicros(long value) {
requiredBudgetAmountMicros_ = value;
bitField0_ |= 0x00000002;
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 = 15;
* @return This builder for chaining.
*/
public Builder clearRequiredBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
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_ & 0x00000004) != 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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Projected number of biddable conversions.
*
*
* optional double biddable_conversions = 9;
* @return This builder for chaining.
*/
public Builder clearBiddableConversions() {
bitField0_ = (bitField0_ & ~0x00000004);
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_ & 0x00000008) != 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_ |= 0x00000008;
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_ & ~0x00000008);
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_ & 0x00000010) != 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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Projected number of clicks.
*
*
* optional int64 clicks = 11;
* @return This builder for chaining.
*/
public Builder clearClicks() {
bitField0_ = (bitField0_ & ~0x00000010);
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_ & 0x00000020) != 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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Projected cost in micros.
*
*
* optional int64 cost_micros = 12;
* @return This builder for chaining.
*/
public Builder clearCostMicros() {
bitField0_ = (bitField0_ & ~0x00000020);
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_ & 0x00000040) != 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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Projected number of impressions.
*
*
* optional int64 impressions = 13;
* @return This builder for chaining.
*/
public Builder clearImpressions() {
bitField0_ = (bitField0_ & ~0x00000040);
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_ & 0x00000080) != 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_ |= 0x00000080;
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_ & ~0x00000080);
topSlotImpressions_ = 0L;
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.TargetRoasSimulationPoint)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.TargetRoasSimulationPoint)
private static final com.google.ads.googleads.v17.common.TargetRoasSimulationPoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.TargetRoasSimulationPoint();
}
public static com.google.ads.googleads.v17.common.TargetRoasSimulationPoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetRoasSimulationPoint 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.TargetRoasSimulationPoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy