com.google.ads.googleads.v17.services.Forecast 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;
/**
*
* Forecasted traffic metrics for the planned products and targeting.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.Forecast}
*/
public final class Forecast extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.Forecast)
ForecastOrBuilder {
private static final long serialVersionUID = 0L;
// Use Forecast.newBuilder() to construct.
private Forecast(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Forecast() {
effectiveFrequencyBreakdowns_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Forecast();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_Forecast_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_Forecast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.Forecast.class, com.google.ads.googleads.v17.services.Forecast.Builder.class);
}
private int bitField0_;
public static final int ON_TARGET_REACH_FIELD_NUMBER = 5;
private long onTargetReach_ = 0L;
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @return Whether the onTargetReach field is set.
*/
@java.lang.Override
public boolean hasOnTargetReach() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @return The onTargetReach.
*/
@java.lang.Override
public long getOnTargetReach() {
return onTargetReach_;
}
public static final int TOTAL_REACH_FIELD_NUMBER = 6;
private long totalReach_ = 0L;
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @return Whether the totalReach field is set.
*/
@java.lang.Override
public boolean hasTotalReach() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @return The totalReach.
*/
@java.lang.Override
public long getTotalReach() {
return totalReach_;
}
public static final int ON_TARGET_IMPRESSIONS_FIELD_NUMBER = 7;
private long onTargetImpressions_ = 0L;
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @return Whether the onTargetImpressions field is set.
*/
@java.lang.Override
public boolean hasOnTargetImpressions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @return The onTargetImpressions.
*/
@java.lang.Override
public long getOnTargetImpressions() {
return onTargetImpressions_;
}
public static final int TOTAL_IMPRESSIONS_FIELD_NUMBER = 8;
private long totalImpressions_ = 0L;
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @return Whether the totalImpressions field is set.
*/
@java.lang.Override
public boolean hasTotalImpressions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @return The totalImpressions.
*/
@java.lang.Override
public long getTotalImpressions() {
return totalImpressions_;
}
public static final int VIEWABLE_IMPRESSIONS_FIELD_NUMBER = 9;
private long viewableImpressions_ = 0L;
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @return Whether the viewableImpressions field is set.
*/
@java.lang.Override
public boolean hasViewableImpressions() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @return The viewableImpressions.
*/
@java.lang.Override
public long getViewableImpressions() {
return viewableImpressions_;
}
public static final int EFFECTIVE_FREQUENCY_BREAKDOWNS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List effectiveFrequencyBreakdowns_;
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
@java.lang.Override
public java.util.List getEffectiveFrequencyBreakdownsList() {
return effectiveFrequencyBreakdowns_;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder>
getEffectiveFrequencyBreakdownsOrBuilderList() {
return effectiveFrequencyBreakdowns_;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
@java.lang.Override
public int getEffectiveFrequencyBreakdownsCount() {
return effectiveFrequencyBreakdowns_.size();
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown getEffectiveFrequencyBreakdowns(int index) {
return effectiveFrequencyBreakdowns_.get(index);
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder getEffectiveFrequencyBreakdownsOrBuilder(
int index) {
return effectiveFrequencyBreakdowns_.get(index);
}
public static final int ON_TARGET_COVIEW_REACH_FIELD_NUMBER = 11;
private long onTargetCoviewReach_ = 0L;
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @return Whether the onTargetCoviewReach field is set.
*/
@java.lang.Override
public boolean hasOnTargetCoviewReach() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @return The onTargetCoviewReach.
*/
@java.lang.Override
public long getOnTargetCoviewReach() {
return onTargetCoviewReach_;
}
public static final int TOTAL_COVIEW_REACH_FIELD_NUMBER = 12;
private long totalCoviewReach_ = 0L;
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @return Whether the totalCoviewReach field is set.
*/
@java.lang.Override
public boolean hasTotalCoviewReach() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @return The totalCoviewReach.
*/
@java.lang.Override
public long getTotalCoviewReach() {
return totalCoviewReach_;
}
public static final int ON_TARGET_COVIEW_IMPRESSIONS_FIELD_NUMBER = 13;
private long onTargetCoviewImpressions_ = 0L;
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @return Whether the onTargetCoviewImpressions field is set.
*/
@java.lang.Override
public boolean hasOnTargetCoviewImpressions() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @return The onTargetCoviewImpressions.
*/
@java.lang.Override
public long getOnTargetCoviewImpressions() {
return onTargetCoviewImpressions_;
}
public static final int TOTAL_COVIEW_IMPRESSIONS_FIELD_NUMBER = 14;
private long totalCoviewImpressions_ = 0L;
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @return Whether the totalCoviewImpressions field is set.
*/
@java.lang.Override
public boolean hasTotalCoviewImpressions() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @return The totalCoviewImpressions.
*/
@java.lang.Override
public long getTotalCoviewImpressions() {
return totalCoviewImpressions_;
}
public static final int VIEWS_FIELD_NUMBER = 15;
private long views_ = 0L;
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @return Whether the views field is set.
*/
@java.lang.Override
public boolean hasViews() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @return The views.
*/
@java.lang.Override
public long getViews() {
return views_;
}
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.writeInt64(5, onTargetReach_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(6, totalReach_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(7, onTargetImpressions_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(8, totalImpressions_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(9, viewableImpressions_);
}
for (int i = 0; i < effectiveFrequencyBreakdowns_.size(); i++) {
output.writeMessage(10, effectiveFrequencyBreakdowns_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(11, onTargetCoviewReach_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(12, totalCoviewReach_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(13, onTargetCoviewImpressions_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(14, totalCoviewImpressions_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(15, views_);
}
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
.computeInt64Size(5, onTargetReach_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, totalReach_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, onTargetImpressions_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, totalImpressions_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, viewableImpressions_);
}
for (int i = 0; i < effectiveFrequencyBreakdowns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, effectiveFrequencyBreakdowns_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, onTargetCoviewReach_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, totalCoviewReach_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, onTargetCoviewImpressions_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(14, totalCoviewImpressions_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(15, views_);
}
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.Forecast)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.Forecast other = (com.google.ads.googleads.v17.services.Forecast) obj;
if (hasOnTargetReach() != other.hasOnTargetReach()) return false;
if (hasOnTargetReach()) {
if (getOnTargetReach()
!= other.getOnTargetReach()) return false;
}
if (hasTotalReach() != other.hasTotalReach()) return false;
if (hasTotalReach()) {
if (getTotalReach()
!= other.getTotalReach()) return false;
}
if (hasOnTargetImpressions() != other.hasOnTargetImpressions()) return false;
if (hasOnTargetImpressions()) {
if (getOnTargetImpressions()
!= other.getOnTargetImpressions()) return false;
}
if (hasTotalImpressions() != other.hasTotalImpressions()) return false;
if (hasTotalImpressions()) {
if (getTotalImpressions()
!= other.getTotalImpressions()) return false;
}
if (hasViewableImpressions() != other.hasViewableImpressions()) return false;
if (hasViewableImpressions()) {
if (getViewableImpressions()
!= other.getViewableImpressions()) return false;
}
if (!getEffectiveFrequencyBreakdownsList()
.equals(other.getEffectiveFrequencyBreakdownsList())) return false;
if (hasOnTargetCoviewReach() != other.hasOnTargetCoviewReach()) return false;
if (hasOnTargetCoviewReach()) {
if (getOnTargetCoviewReach()
!= other.getOnTargetCoviewReach()) return false;
}
if (hasTotalCoviewReach() != other.hasTotalCoviewReach()) return false;
if (hasTotalCoviewReach()) {
if (getTotalCoviewReach()
!= other.getTotalCoviewReach()) return false;
}
if (hasOnTargetCoviewImpressions() != other.hasOnTargetCoviewImpressions()) return false;
if (hasOnTargetCoviewImpressions()) {
if (getOnTargetCoviewImpressions()
!= other.getOnTargetCoviewImpressions()) return false;
}
if (hasTotalCoviewImpressions() != other.hasTotalCoviewImpressions()) return false;
if (hasTotalCoviewImpressions()) {
if (getTotalCoviewImpressions()
!= other.getTotalCoviewImpressions()) return false;
}
if (hasViews() != other.hasViews()) return false;
if (hasViews()) {
if (getViews()
!= other.getViews()) 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 (hasOnTargetReach()) {
hash = (37 * hash) + ON_TARGET_REACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOnTargetReach());
}
if (hasTotalReach()) {
hash = (37 * hash) + TOTAL_REACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalReach());
}
if (hasOnTargetImpressions()) {
hash = (37 * hash) + ON_TARGET_IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOnTargetImpressions());
}
if (hasTotalImpressions()) {
hash = (37 * hash) + TOTAL_IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalImpressions());
}
if (hasViewableImpressions()) {
hash = (37 * hash) + VIEWABLE_IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getViewableImpressions());
}
if (getEffectiveFrequencyBreakdownsCount() > 0) {
hash = (37 * hash) + EFFECTIVE_FREQUENCY_BREAKDOWNS_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveFrequencyBreakdownsList().hashCode();
}
if (hasOnTargetCoviewReach()) {
hash = (37 * hash) + ON_TARGET_COVIEW_REACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOnTargetCoviewReach());
}
if (hasTotalCoviewReach()) {
hash = (37 * hash) + TOTAL_COVIEW_REACH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalCoviewReach());
}
if (hasOnTargetCoviewImpressions()) {
hash = (37 * hash) + ON_TARGET_COVIEW_IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOnTargetCoviewImpressions());
}
if (hasTotalCoviewImpressions()) {
hash = (37 * hash) + TOTAL_COVIEW_IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalCoviewImpressions());
}
if (hasViews()) {
hash = (37 * hash) + VIEWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getViews());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.Forecast parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.Forecast 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.Forecast parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.Forecast 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.Forecast parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.Forecast 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.Forecast 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.Forecast 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.Forecast 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.Forecast 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.Forecast 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.Forecast 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.Forecast 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;
}
/**
*
* Forecasted traffic metrics for the planned products and targeting.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.Forecast}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.Forecast)
com.google.ads.googleads.v17.services.ForecastOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.ReachPlanServiceProto.internal_static_google_ads_googleads_v17_services_Forecast_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_Forecast_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.Forecast.class, com.google.ads.googleads.v17.services.Forecast.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.Forecast.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
onTargetReach_ = 0L;
totalReach_ = 0L;
onTargetImpressions_ = 0L;
totalImpressions_ = 0L;
viewableImpressions_ = 0L;
if (effectiveFrequencyBreakdownsBuilder_ == null) {
effectiveFrequencyBreakdowns_ = java.util.Collections.emptyList();
} else {
effectiveFrequencyBreakdowns_ = null;
effectiveFrequencyBreakdownsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
onTargetCoviewReach_ = 0L;
totalCoviewReach_ = 0L;
onTargetCoviewImpressions_ = 0L;
totalCoviewImpressions_ = 0L;
views_ = 0L;
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_Forecast_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.Forecast getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.Forecast.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.Forecast build() {
com.google.ads.googleads.v17.services.Forecast result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.Forecast buildPartial() {
com.google.ads.googleads.v17.services.Forecast result = new com.google.ads.googleads.v17.services.Forecast(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.Forecast result) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
effectiveFrequencyBreakdowns_ = java.util.Collections.unmodifiableList(effectiveFrequencyBreakdowns_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.effectiveFrequencyBreakdowns_ = effectiveFrequencyBreakdowns_;
} else {
result.effectiveFrequencyBreakdowns_ = effectiveFrequencyBreakdownsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.services.Forecast result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.onTargetReach_ = onTargetReach_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.totalReach_ = totalReach_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.onTargetImpressions_ = onTargetImpressions_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.totalImpressions_ = totalImpressions_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.viewableImpressions_ = viewableImpressions_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.onTargetCoviewReach_ = onTargetCoviewReach_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.totalCoviewReach_ = totalCoviewReach_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.onTargetCoviewImpressions_ = onTargetCoviewImpressions_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.totalCoviewImpressions_ = totalCoviewImpressions_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.views_ = views_;
to_bitField0_ |= 0x00000200;
}
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.Forecast) {
return mergeFrom((com.google.ads.googleads.v17.services.Forecast)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.Forecast other) {
if (other == com.google.ads.googleads.v17.services.Forecast.getDefaultInstance()) return this;
if (other.hasOnTargetReach()) {
setOnTargetReach(other.getOnTargetReach());
}
if (other.hasTotalReach()) {
setTotalReach(other.getTotalReach());
}
if (other.hasOnTargetImpressions()) {
setOnTargetImpressions(other.getOnTargetImpressions());
}
if (other.hasTotalImpressions()) {
setTotalImpressions(other.getTotalImpressions());
}
if (other.hasViewableImpressions()) {
setViewableImpressions(other.getViewableImpressions());
}
if (effectiveFrequencyBreakdownsBuilder_ == null) {
if (!other.effectiveFrequencyBreakdowns_.isEmpty()) {
if (effectiveFrequencyBreakdowns_.isEmpty()) {
effectiveFrequencyBreakdowns_ = other.effectiveFrequencyBreakdowns_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.addAll(other.effectiveFrequencyBreakdowns_);
}
onChanged();
}
} else {
if (!other.effectiveFrequencyBreakdowns_.isEmpty()) {
if (effectiveFrequencyBreakdownsBuilder_.isEmpty()) {
effectiveFrequencyBreakdownsBuilder_.dispose();
effectiveFrequencyBreakdownsBuilder_ = null;
effectiveFrequencyBreakdowns_ = other.effectiveFrequencyBreakdowns_;
bitField0_ = (bitField0_ & ~0x00000020);
effectiveFrequencyBreakdownsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEffectiveFrequencyBreakdownsFieldBuilder() : null;
} else {
effectiveFrequencyBreakdownsBuilder_.addAllMessages(other.effectiveFrequencyBreakdowns_);
}
}
}
if (other.hasOnTargetCoviewReach()) {
setOnTargetCoviewReach(other.getOnTargetCoviewReach());
}
if (other.hasTotalCoviewReach()) {
setTotalCoviewReach(other.getTotalCoviewReach());
}
if (other.hasOnTargetCoviewImpressions()) {
setOnTargetCoviewImpressions(other.getOnTargetCoviewImpressions());
}
if (other.hasTotalCoviewImpressions()) {
setTotalCoviewImpressions(other.getTotalCoviewImpressions());
}
if (other.hasViews()) {
setViews(other.getViews());
}
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 40: {
onTargetReach_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 40
case 48: {
totalReach_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 48
case 56: {
onTargetImpressions_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 56
case 64: {
totalImpressions_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 64
case 72: {
viewableImpressions_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 72
case 82: {
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown m =
input.readMessage(
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.parser(),
extensionRegistry);
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.add(m);
} else {
effectiveFrequencyBreakdownsBuilder_.addMessage(m);
}
break;
} // case 82
case 88: {
onTargetCoviewReach_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 88
case 96: {
totalCoviewReach_ = input.readInt64();
bitField0_ |= 0x00000080;
break;
} // case 96
case 104: {
onTargetCoviewImpressions_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 104
case 112: {
totalCoviewImpressions_ = input.readInt64();
bitField0_ |= 0x00000200;
break;
} // case 112
case 120: {
views_ = input.readInt64();
bitField0_ |= 0x00000400;
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 long onTargetReach_ ;
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @return Whether the onTargetReach field is set.
*/
@java.lang.Override
public boolean hasOnTargetReach() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @return The onTargetReach.
*/
@java.lang.Override
public long getOnTargetReach() {
return onTargetReach_;
}
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @param value The onTargetReach to set.
* @return This builder for chaining.
*/
public Builder setOnTargetReach(long value) {
onTargetReach_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times that exactly
* matches the Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the on_target_reach
* value will be rounded to 0.
*
*
* optional int64 on_target_reach = 5;
* @return This builder for chaining.
*/
public Builder clearOnTargetReach() {
bitField0_ = (bitField0_ & ~0x00000001);
onTargetReach_ = 0L;
onChanged();
return this;
}
private long totalReach_ ;
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @return Whether the totalReach field is set.
*/
@java.lang.Override
public boolean hasTotalReach() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @return The totalReach.
*/
@java.lang.Override
public long getTotalReach() {
return totalReach_;
}
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @param value The totalReach to set.
* @return This builder for chaining.
*/
public Builder setTotalReach(long value) {
totalReach_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Total number of unique people reached at least
* GenerateReachForecastRequest.min_effective_frequency or
* GenerateReachForecastRequest.effective_frequency_limit times. This includes
* people that may fall outside the specified Targeting.
*
* Note that a minimum number of unique people must be reached in order for
* data to be reported. If the minimum number is not met, the total_reach
* value will be rounded to 0.
*
*
* optional int64 total_reach = 6;
* @return This builder for chaining.
*/
public Builder clearTotalReach() {
bitField0_ = (bitField0_ & ~0x00000002);
totalReach_ = 0L;
onChanged();
return this;
}
private long onTargetImpressions_ ;
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @return Whether the onTargetImpressions field is set.
*/
@java.lang.Override
public boolean hasOnTargetImpressions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @return The onTargetImpressions.
*/
@java.lang.Override
public long getOnTargetImpressions() {
return onTargetImpressions_;
}
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @param value The onTargetImpressions to set.
* @return This builder for chaining.
*/
public Builder setOnTargetImpressions(long value) {
onTargetImpressions_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Number of ad impressions that exactly matches the Targeting.
*
*
* optional int64 on_target_impressions = 7;
* @return This builder for chaining.
*/
public Builder clearOnTargetImpressions() {
bitField0_ = (bitField0_ & ~0x00000004);
onTargetImpressions_ = 0L;
onChanged();
return this;
}
private long totalImpressions_ ;
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @return Whether the totalImpressions field is set.
*/
@java.lang.Override
public boolean hasTotalImpressions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @return The totalImpressions.
*/
@java.lang.Override
public long getTotalImpressions() {
return totalImpressions_;
}
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @param value The totalImpressions to set.
* @return This builder for chaining.
*/
public Builder setTotalImpressions(long value) {
totalImpressions_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Total number of ad impressions. This includes impressions that may fall
* outside the specified Targeting, due to insufficient information on
* signed-in users.
*
*
* optional int64 total_impressions = 8;
* @return This builder for chaining.
*/
public Builder clearTotalImpressions() {
bitField0_ = (bitField0_ & ~0x00000008);
totalImpressions_ = 0L;
onChanged();
return this;
}
private long viewableImpressions_ ;
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @return Whether the viewableImpressions field is set.
*/
@java.lang.Override
public boolean hasViewableImpressions() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @return The viewableImpressions.
*/
@java.lang.Override
public long getViewableImpressions() {
return viewableImpressions_;
}
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @param value The viewableImpressions to set.
* @return This builder for chaining.
*/
public Builder setViewableImpressions(long value) {
viewableImpressions_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Number of times the ad's impressions were considered viewable.
* See https://support.google.com/google-ads/answer/7029393 for
* more information about what makes an ad viewable and how
* viewability is measured.
*
*
* optional int64 viewable_impressions = 9;
* @return This builder for chaining.
*/
public Builder clearViewableImpressions() {
bitField0_ = (bitField0_ & ~0x00000010);
viewableImpressions_ = 0L;
onChanged();
return this;
}
private java.util.List effectiveFrequencyBreakdowns_ =
java.util.Collections.emptyList();
private void ensureEffectiveFrequencyBreakdownsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
effectiveFrequencyBreakdowns_ = new java.util.ArrayList(effectiveFrequencyBreakdowns_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder> effectiveFrequencyBreakdownsBuilder_;
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public java.util.List getEffectiveFrequencyBreakdownsList() {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
return java.util.Collections.unmodifiableList(effectiveFrequencyBreakdowns_);
} else {
return effectiveFrequencyBreakdownsBuilder_.getMessageList();
}
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public int getEffectiveFrequencyBreakdownsCount() {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
return effectiveFrequencyBreakdowns_.size();
} else {
return effectiveFrequencyBreakdownsBuilder_.getCount();
}
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown getEffectiveFrequencyBreakdowns(int index) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
return effectiveFrequencyBreakdowns_.get(index);
} else {
return effectiveFrequencyBreakdownsBuilder_.getMessage(index);
}
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder setEffectiveFrequencyBreakdowns(
int index, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown value) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.set(index, value);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder setEffectiveFrequencyBreakdowns(
int index, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder builderForValue) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.set(index, builderForValue.build());
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder addEffectiveFrequencyBreakdowns(com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown value) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.add(value);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder addEffectiveFrequencyBreakdowns(
int index, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown value) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.add(index, value);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder addEffectiveFrequencyBreakdowns(
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder builderForValue) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.add(builderForValue.build());
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder addEffectiveFrequencyBreakdowns(
int index, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder builderForValue) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.add(index, builderForValue.build());
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder addAllEffectiveFrequencyBreakdowns(
java.lang.Iterable extends com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown> values) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, effectiveFrequencyBreakdowns_);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder clearEffectiveFrequencyBreakdowns() {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
effectiveFrequencyBreakdowns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.clear();
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public Builder removeEffectiveFrequencyBreakdowns(int index) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
ensureEffectiveFrequencyBreakdownsIsMutable();
effectiveFrequencyBreakdowns_.remove(index);
onChanged();
} else {
effectiveFrequencyBreakdownsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder getEffectiveFrequencyBreakdownsBuilder(
int index) {
return getEffectiveFrequencyBreakdownsFieldBuilder().getBuilder(index);
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder getEffectiveFrequencyBreakdownsOrBuilder(
int index) {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
return effectiveFrequencyBreakdowns_.get(index); } else {
return effectiveFrequencyBreakdownsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public java.util.List extends com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder>
getEffectiveFrequencyBreakdownsOrBuilderList() {
if (effectiveFrequencyBreakdownsBuilder_ != null) {
return effectiveFrequencyBreakdownsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(effectiveFrequencyBreakdowns_);
}
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder addEffectiveFrequencyBreakdownsBuilder() {
return getEffectiveFrequencyBreakdownsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.getDefaultInstance());
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder addEffectiveFrequencyBreakdownsBuilder(
int index) {
return getEffectiveFrequencyBreakdownsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.getDefaultInstance());
}
/**
*
* A list of effective frequency forecasts. The list is ordered starting with
* 1+ and ending with the value set in
* GenerateReachForecastRequest.effective_frequency_limit. If no
* effective_frequency_limit was set, this list will be empty.
*
*
* repeated .google.ads.googleads.v17.services.EffectiveFrequencyBreakdown effective_frequency_breakdowns = 10;
*/
public java.util.List
getEffectiveFrequencyBreakdownsBuilderList() {
return getEffectiveFrequencyBreakdownsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder>
getEffectiveFrequencyBreakdownsFieldBuilder() {
if (effectiveFrequencyBreakdownsBuilder_ == null) {
effectiveFrequencyBreakdownsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdown.Builder, com.google.ads.googleads.v17.services.EffectiveFrequencyBreakdownOrBuilder>(
effectiveFrequencyBreakdowns_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
effectiveFrequencyBreakdowns_ = null;
}
return effectiveFrequencyBreakdownsBuilder_;
}
private long onTargetCoviewReach_ ;
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @return Whether the onTargetCoviewReach field is set.
*/
@java.lang.Override
public boolean hasOnTargetCoviewReach() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @return The onTargetCoviewReach.
*/
@java.lang.Override
public long getOnTargetCoviewReach() {
return onTargetCoviewReach_;
}
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @param value The onTargetCoviewReach to set.
* @return This builder for chaining.
*/
public Builder setOnTargetCoviewReach(long value) {
onTargetCoviewReach_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Number of unique people reached that exactly matches the Targeting
* including co-viewers.
*
*
* optional int64 on_target_coview_reach = 11;
* @return This builder for chaining.
*/
public Builder clearOnTargetCoviewReach() {
bitField0_ = (bitField0_ & ~0x00000040);
onTargetCoviewReach_ = 0L;
onChanged();
return this;
}
private long totalCoviewReach_ ;
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @return Whether the totalCoviewReach field is set.
*/
@java.lang.Override
public boolean hasTotalCoviewReach() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @return The totalCoviewReach.
*/
@java.lang.Override
public long getTotalCoviewReach() {
return totalCoviewReach_;
}
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @param value The totalCoviewReach to set.
* @return This builder for chaining.
*/
public Builder setTotalCoviewReach(long value) {
totalCoviewReach_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Number of unique people reached including co-viewers. This includes
* people that may fall outside the specified Targeting.
*
*
* optional int64 total_coview_reach = 12;
* @return This builder for chaining.
*/
public Builder clearTotalCoviewReach() {
bitField0_ = (bitField0_ & ~0x00000080);
totalCoviewReach_ = 0L;
onChanged();
return this;
}
private long onTargetCoviewImpressions_ ;
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @return Whether the onTargetCoviewImpressions field is set.
*/
@java.lang.Override
public boolean hasOnTargetCoviewImpressions() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @return The onTargetCoviewImpressions.
*/
@java.lang.Override
public long getOnTargetCoviewImpressions() {
return onTargetCoviewImpressions_;
}
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @param value The onTargetCoviewImpressions to set.
* @return This builder for chaining.
*/
public Builder setOnTargetCoviewImpressions(long value) {
onTargetCoviewImpressions_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Number of ad impressions that exactly matches the Targeting including
* co-viewers.
*
*
* optional int64 on_target_coview_impressions = 13;
* @return This builder for chaining.
*/
public Builder clearOnTargetCoviewImpressions() {
bitField0_ = (bitField0_ & ~0x00000100);
onTargetCoviewImpressions_ = 0L;
onChanged();
return this;
}
private long totalCoviewImpressions_ ;
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @return Whether the totalCoviewImpressions field is set.
*/
@java.lang.Override
public boolean hasTotalCoviewImpressions() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @return The totalCoviewImpressions.
*/
@java.lang.Override
public long getTotalCoviewImpressions() {
return totalCoviewImpressions_;
}
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @param value The totalCoviewImpressions to set.
* @return This builder for chaining.
*/
public Builder setTotalCoviewImpressions(long value) {
totalCoviewImpressions_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Total number of ad impressions including co-viewers. This includes
* impressions that may fall outside the specified Targeting, due to
* insufficient information on signed-in users.
*
*
* optional int64 total_coview_impressions = 14;
* @return This builder for chaining.
*/
public Builder clearTotalCoviewImpressions() {
bitField0_ = (bitField0_ & ~0x00000200);
totalCoviewImpressions_ = 0L;
onChanged();
return this;
}
private long views_ ;
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @return Whether the views field is set.
*/
@java.lang.Override
public boolean hasViews() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @return The views.
*/
@java.lang.Override
public long getViews() {
return views_;
}
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @param value The views to set.
* @return This builder for chaining.
*/
public Builder setViews(long value) {
views_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Number of ad views forecasted for the specified product and targeting.
* A view is counted when a viewer views a larger portion or the entirety of
* an ad beyond an impression.
*
* See https://support.google.com/google-ads/answer/2375431 for
* more information on views.
*
*
* optional int64 views = 15;
* @return This builder for chaining.
*/
public Builder clearViews() {
bitField0_ = (bitField0_ & ~0x00000400);
views_ = 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.services.Forecast)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.Forecast)
private static final com.google.ads.googleads.v17.services.Forecast DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.Forecast();
}
public static com.google.ads.googleads.v17.services.Forecast getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Forecast 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.Forecast getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy