com.google.ads.googleads.v17.services.ReachForecast 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/services/reach_plan_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* A point on reach curve.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ReachForecast}
*/
public final class ReachForecast extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.ReachForecast)
ReachForecastOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReachForecast.newBuilder() to construct.
private ReachForecast(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReachForecast() {
plannedProductReachForecasts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReachForecast();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_ReachForecast_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_ReachForecast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ReachForecast.class, com.google.ads.googleads.v17.services.ReachForecast.Builder.class);
}
private int bitField0_;
public static final int COST_MICROS_FIELD_NUMBER = 5;
private long costMicros_ = 0L;
/**
*
* The cost in micros.
*
*
* int64 cost_micros = 5;
* @return The costMicros.
*/
@java.lang.Override
public long getCostMicros() {
return costMicros_;
}
public static final int FORECAST_FIELD_NUMBER = 2;
private com.google.ads.googleads.v17.services.Forecast forecast_;
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
* @return Whether the forecast field is set.
*/
@java.lang.Override
public boolean hasForecast() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
* @return The forecast.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.Forecast getForecast() {
return forecast_ == null ? com.google.ads.googleads.v17.services.Forecast.getDefaultInstance() : forecast_;
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.ForecastOrBuilder getForecastOrBuilder() {
return forecast_ == null ? com.google.ads.googleads.v17.services.Forecast.getDefaultInstance() : forecast_;
}
public static final int PLANNED_PRODUCT_REACH_FORECASTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List plannedProductReachForecasts_;
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
@java.lang.Override
public java.util.List getPlannedProductReachForecastsList() {
return plannedProductReachForecasts_;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder>
getPlannedProductReachForecastsOrBuilderList() {
return plannedProductReachForecasts_;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
@java.lang.Override
public int getPlannedProductReachForecastsCount() {
return plannedProductReachForecasts_.size();
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.PlannedProductReachForecast getPlannedProductReachForecasts(int index) {
return plannedProductReachForecasts_.get(index);
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder getPlannedProductReachForecastsOrBuilder(
int index) {
return plannedProductReachForecasts_.get(index);
}
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.writeMessage(2, getForecast());
}
for (int i = 0; i < plannedProductReachForecasts_.size(); i++) {
output.writeMessage(4, plannedProductReachForecasts_.get(i));
}
if (costMicros_ != 0L) {
output.writeInt64(5, costMicros_);
}
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
.computeMessageSize(2, getForecast());
}
for (int i = 0; i < plannedProductReachForecasts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, plannedProductReachForecasts_.get(i));
}
if (costMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, costMicros_);
}
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.services.ReachForecast)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.ReachForecast other = (com.google.ads.googleads.v17.services.ReachForecast) obj;
if (getCostMicros()
!= other.getCostMicros()) return false;
if (hasForecast() != other.hasForecast()) return false;
if (hasForecast()) {
if (!getForecast()
.equals(other.getForecast())) return false;
}
if (!getPlannedProductReachForecastsList()
.equals(other.getPlannedProductReachForecastsList())) 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();
hash = (37 * hash) + COST_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCostMicros());
if (hasForecast()) {
hash = (37 * hash) + FORECAST_FIELD_NUMBER;
hash = (53 * hash) + getForecast().hashCode();
}
if (getPlannedProductReachForecastsCount() > 0) {
hash = (37 * hash) + PLANNED_PRODUCT_REACH_FORECASTS_FIELD_NUMBER;
hash = (53 * hash) + getPlannedProductReachForecastsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.ReachForecast parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ReachForecast 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.services.ReachForecast parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ReachForecast 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.services.ReachForecast parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.ReachForecast 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.services.ReachForecast parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ReachForecast 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.services.ReachForecast parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.ReachForecast 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.services.ReachForecast 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.services.ReachForecast 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.services.ReachForecast 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;
}
/**
*
* A point on reach curve.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.ReachForecast}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.ReachForecast)
com.google.ads.googleads.v17.services.ReachForecastOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_ReachForecast_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_ReachForecast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.ReachForecast.class, com.google.ads.googleads.v17.services.ReachForecast.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.ReachForecast.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getForecastFieldBuilder();
getPlannedProductReachForecastsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
costMicros_ = 0L;
forecast_ = null;
if (forecastBuilder_ != null) {
forecastBuilder_.dispose();
forecastBuilder_ = null;
}
if (plannedProductReachForecastsBuilder_ == null) {
plannedProductReachForecasts_ = java.util.Collections.emptyList();
} else {
plannedProductReachForecasts_ = null;
plannedProductReachForecastsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_ReachForecast_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ReachForecast getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.ReachForecast.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ReachForecast build() {
com.google.ads.googleads.v17.services.ReachForecast result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.ReachForecast buildPartial() {
com.google.ads.googleads.v17.services.ReachForecast result = new com.google.ads.googleads.v17.services.ReachForecast(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.ReachForecast result) {
if (plannedProductReachForecastsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
plannedProductReachForecasts_ = java.util.Collections.unmodifiableList(plannedProductReachForecasts_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.plannedProductReachForecasts_ = plannedProductReachForecasts_;
} else {
result.plannedProductReachForecasts_ = plannedProductReachForecastsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.services.ReachForecast result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.costMicros_ = costMicros_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.forecast_ = forecastBuilder_ == null
? forecast_
: forecastBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.services.ReachForecast) {
return mergeFrom((com.google.ads.googleads.v17.services.ReachForecast)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.ReachForecast other) {
if (other == com.google.ads.googleads.v17.services.ReachForecast.getDefaultInstance()) return this;
if (other.getCostMicros() != 0L) {
setCostMicros(other.getCostMicros());
}
if (other.hasForecast()) {
mergeForecast(other.getForecast());
}
if (plannedProductReachForecastsBuilder_ == null) {
if (!other.plannedProductReachForecasts_.isEmpty()) {
if (plannedProductReachForecasts_.isEmpty()) {
plannedProductReachForecasts_ = other.plannedProductReachForecasts_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.addAll(other.plannedProductReachForecasts_);
}
onChanged();
}
} else {
if (!other.plannedProductReachForecasts_.isEmpty()) {
if (plannedProductReachForecastsBuilder_.isEmpty()) {
plannedProductReachForecastsBuilder_.dispose();
plannedProductReachForecastsBuilder_ = null;
plannedProductReachForecasts_ = other.plannedProductReachForecasts_;
bitField0_ = (bitField0_ & ~0x00000004);
plannedProductReachForecastsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPlannedProductReachForecastsFieldBuilder() : null;
} else {
plannedProductReachForecastsBuilder_.addAllMessages(other.plannedProductReachForecasts_);
}
}
}
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 18: {
input.readMessage(
getForecastFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
com.google.ads.googleads.v17.services.PlannedProductReachForecast m =
input.readMessage(
com.google.ads.googleads.v17.services.PlannedProductReachForecast.parser(),
extensionRegistry);
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.add(m);
} else {
plannedProductReachForecastsBuilder_.addMessage(m);
}
break;
} // case 34
case 40: {
costMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 40
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 long costMicros_ ;
/**
*
* The cost in micros.
*
*
* int64 cost_micros = 5;
* @return The costMicros.
*/
@java.lang.Override
public long getCostMicros() {
return costMicros_;
}
/**
*
* The cost in micros.
*
*
* int64 cost_micros = 5;
* @param value The costMicros to set.
* @return This builder for chaining.
*/
public Builder setCostMicros(long value) {
costMicros_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The cost in micros.
*
*
* int64 cost_micros = 5;
* @return This builder for chaining.
*/
public Builder clearCostMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
costMicros_ = 0L;
onChanged();
return this;
}
private com.google.ads.googleads.v17.services.Forecast forecast_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.Forecast, com.google.ads.googleads.v17.services.Forecast.Builder, com.google.ads.googleads.v17.services.ForecastOrBuilder> forecastBuilder_;
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
* @return Whether the forecast field is set.
*/
public boolean hasForecast() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
* @return The forecast.
*/
public com.google.ads.googleads.v17.services.Forecast getForecast() {
if (forecastBuilder_ == null) {
return forecast_ == null ? com.google.ads.googleads.v17.services.Forecast.getDefaultInstance() : forecast_;
} else {
return forecastBuilder_.getMessage();
}
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public Builder setForecast(com.google.ads.googleads.v17.services.Forecast value) {
if (forecastBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
forecast_ = value;
} else {
forecastBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public Builder setForecast(
com.google.ads.googleads.v17.services.Forecast.Builder builderForValue) {
if (forecastBuilder_ == null) {
forecast_ = builderForValue.build();
} else {
forecastBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public Builder mergeForecast(com.google.ads.googleads.v17.services.Forecast value) {
if (forecastBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
forecast_ != null &&
forecast_ != com.google.ads.googleads.v17.services.Forecast.getDefaultInstance()) {
getForecastBuilder().mergeFrom(value);
} else {
forecast_ = value;
}
} else {
forecastBuilder_.mergeFrom(value);
}
if (forecast_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public Builder clearForecast() {
bitField0_ = (bitField0_ & ~0x00000002);
forecast_ = null;
if (forecastBuilder_ != null) {
forecastBuilder_.dispose();
forecastBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public com.google.ads.googleads.v17.services.Forecast.Builder getForecastBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getForecastFieldBuilder().getBuilder();
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
public com.google.ads.googleads.v17.services.ForecastOrBuilder getForecastOrBuilder() {
if (forecastBuilder_ != null) {
return forecastBuilder_.getMessageOrBuilder();
} else {
return forecast_ == null ?
com.google.ads.googleads.v17.services.Forecast.getDefaultInstance() : forecast_;
}
}
/**
*
* Forecasted traffic metrics for this point.
*
*
* .google.ads.googleads.v17.services.Forecast forecast = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.Forecast, com.google.ads.googleads.v17.services.Forecast.Builder, com.google.ads.googleads.v17.services.ForecastOrBuilder>
getForecastFieldBuilder() {
if (forecastBuilder_ == null) {
forecastBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.Forecast, com.google.ads.googleads.v17.services.Forecast.Builder, com.google.ads.googleads.v17.services.ForecastOrBuilder>(
getForecast(),
getParentForChildren(),
isClean());
forecast_ = null;
}
return forecastBuilder_;
}
private java.util.List plannedProductReachForecasts_ =
java.util.Collections.emptyList();
private void ensurePlannedProductReachForecastsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
plannedProductReachForecasts_ = new java.util.ArrayList(plannedProductReachForecasts_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.PlannedProductReachForecast, com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder, com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder> plannedProductReachForecastsBuilder_;
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public java.util.List getPlannedProductReachForecastsList() {
if (plannedProductReachForecastsBuilder_ == null) {
return java.util.Collections.unmodifiableList(plannedProductReachForecasts_);
} else {
return plannedProductReachForecastsBuilder_.getMessageList();
}
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public int getPlannedProductReachForecastsCount() {
if (plannedProductReachForecastsBuilder_ == null) {
return plannedProductReachForecasts_.size();
} else {
return plannedProductReachForecastsBuilder_.getCount();
}
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public com.google.ads.googleads.v17.services.PlannedProductReachForecast getPlannedProductReachForecasts(int index) {
if (plannedProductReachForecastsBuilder_ == null) {
return plannedProductReachForecasts_.get(index);
} else {
return plannedProductReachForecastsBuilder_.getMessage(index);
}
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder setPlannedProductReachForecasts(
int index, com.google.ads.googleads.v17.services.PlannedProductReachForecast value) {
if (plannedProductReachForecastsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.set(index, value);
onChanged();
} else {
plannedProductReachForecastsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder setPlannedProductReachForecasts(
int index, com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder builderForValue) {
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.set(index, builderForValue.build());
onChanged();
} else {
plannedProductReachForecastsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder addPlannedProductReachForecasts(com.google.ads.googleads.v17.services.PlannedProductReachForecast value) {
if (plannedProductReachForecastsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.add(value);
onChanged();
} else {
plannedProductReachForecastsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder addPlannedProductReachForecasts(
int index, com.google.ads.googleads.v17.services.PlannedProductReachForecast value) {
if (plannedProductReachForecastsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.add(index, value);
onChanged();
} else {
plannedProductReachForecastsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder addPlannedProductReachForecasts(
com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder builderForValue) {
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.add(builderForValue.build());
onChanged();
} else {
plannedProductReachForecastsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder addPlannedProductReachForecasts(
int index, com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder builderForValue) {
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.add(index, builderForValue.build());
onChanged();
} else {
plannedProductReachForecastsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder addAllPlannedProductReachForecasts(
java.lang.Iterable extends com.google.ads.googleads.v17.services.PlannedProductReachForecast> values) {
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, plannedProductReachForecasts_);
onChanged();
} else {
plannedProductReachForecastsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder clearPlannedProductReachForecasts() {
if (plannedProductReachForecastsBuilder_ == null) {
plannedProductReachForecasts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
plannedProductReachForecastsBuilder_.clear();
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public Builder removePlannedProductReachForecasts(int index) {
if (plannedProductReachForecastsBuilder_ == null) {
ensurePlannedProductReachForecastsIsMutable();
plannedProductReachForecasts_.remove(index);
onChanged();
} else {
plannedProductReachForecastsBuilder_.remove(index);
}
return this;
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder getPlannedProductReachForecastsBuilder(
int index) {
return getPlannedProductReachForecastsFieldBuilder().getBuilder(index);
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder getPlannedProductReachForecastsOrBuilder(
int index) {
if (plannedProductReachForecastsBuilder_ == null) {
return plannedProductReachForecasts_.get(index); } else {
return plannedProductReachForecastsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public java.util.List extends com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder>
getPlannedProductReachForecastsOrBuilderList() {
if (plannedProductReachForecastsBuilder_ != null) {
return plannedProductReachForecastsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(plannedProductReachForecasts_);
}
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder addPlannedProductReachForecastsBuilder() {
return getPlannedProductReachForecastsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.services.PlannedProductReachForecast.getDefaultInstance());
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder addPlannedProductReachForecastsBuilder(
int index) {
return getPlannedProductReachForecastsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.services.PlannedProductReachForecast.getDefaultInstance());
}
/**
*
* The forecasted allocation and traffic metrics for each planned product
* at this point on the reach curve.
*
*
* repeated .google.ads.googleads.v17.services.PlannedProductReachForecast planned_product_reach_forecasts = 4;
*/
public java.util.List
getPlannedProductReachForecastsBuilderList() {
return getPlannedProductReachForecastsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.PlannedProductReachForecast, com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder, com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder>
getPlannedProductReachForecastsFieldBuilder() {
if (plannedProductReachForecastsBuilder_ == null) {
plannedProductReachForecastsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.PlannedProductReachForecast, com.google.ads.googleads.v17.services.PlannedProductReachForecast.Builder, com.google.ads.googleads.v17.services.PlannedProductReachForecastOrBuilder>(
plannedProductReachForecasts_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
plannedProductReachForecasts_ = null;
}
return plannedProductReachForecastsBuilder_;
}
@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.services.ReachForecast)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.ReachForecast)
private static final com.google.ads.googleads.v17.services.ReachForecast DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.ReachForecast();
}
public static com.google.ads.googleads.v17.services.ReachForecast getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReachForecast 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.services.ReachForecast getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy