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

com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/services/keyword_plan_service.proto

package com.google.ads.googleads.v10.services;

/**
 * 
 * Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v10.services.KeywordPlanService.GenerateForecastMetrics].
 * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateForecastMetricsResponse} */ public final class GenerateForecastMetricsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.GenerateForecastMetricsResponse) GenerateForecastMetricsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GenerateForecastMetricsResponse.newBuilder() to construct. private GenerateForecastMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenerateForecastMetricsResponse() { campaignForecasts_ = java.util.Collections.emptyList(); adGroupForecasts_ = java.util.Collections.emptyList(); keywordForecasts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenerateForecastMetricsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateForecastMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateForecastMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.class, com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.Builder.class); } public static final int CAMPAIGN_FORECASTS_FIELD_NUMBER = 1; private java.util.List campaignForecasts_; /** *
   * List of campaign forecasts.
   * One maximum.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ @java.lang.Override public java.util.List getCampaignForecastsList() { return campaignForecasts_; } /** *
   * List of campaign forecasts.
   * One maximum.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ @java.lang.Override public java.util.List getCampaignForecastsOrBuilderList() { return campaignForecasts_; } /** *
   * List of campaign forecasts.
   * One maximum.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ @java.lang.Override public int getCampaignForecastsCount() { return campaignForecasts_.size(); } /** *
   * List of campaign forecasts.
   * One maximum.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast getCampaignForecasts(int index) { return campaignForecasts_.get(index); } /** *
   * List of campaign forecasts.
   * One maximum.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecastOrBuilder getCampaignForecastsOrBuilder( int index) { return campaignForecasts_.get(index); } public static final int AD_GROUP_FORECASTS_FIELD_NUMBER = 2; private java.util.List adGroupForecasts_; /** *
   * List of ad group forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ @java.lang.Override public java.util.List getAdGroupForecastsList() { return adGroupForecasts_; } /** *
   * List of ad group forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ @java.lang.Override public java.util.List getAdGroupForecastsOrBuilderList() { return adGroupForecasts_; } /** *
   * List of ad group forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ @java.lang.Override public int getAdGroupForecastsCount() { return adGroupForecasts_.size(); } /** *
   * List of ad group forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast getAdGroupForecasts(int index) { return adGroupForecasts_.get(index); } /** *
   * List of ad group forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecastOrBuilder getAdGroupForecastsOrBuilder( int index) { return adGroupForecasts_.get(index); } public static final int KEYWORD_FORECASTS_FIELD_NUMBER = 3; private java.util.List keywordForecasts_; /** *
   * List of keyword forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ @java.lang.Override public java.util.List getKeywordForecastsList() { return keywordForecasts_; } /** *
   * List of keyword forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ @java.lang.Override public java.util.List getKeywordForecastsOrBuilderList() { return keywordForecasts_; } /** *
   * List of keyword forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ @java.lang.Override public int getKeywordForecastsCount() { return keywordForecasts_.size(); } /** *
   * List of keyword forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast getKeywordForecasts(int index) { return keywordForecasts_.get(index); } /** *
   * List of keyword forecasts.
   * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ @java.lang.Override public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecastOrBuilder getKeywordForecastsOrBuilder( int index) { return keywordForecasts_.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 { for (int i = 0; i < campaignForecasts_.size(); i++) { output.writeMessage(1, campaignForecasts_.get(i)); } for (int i = 0; i < adGroupForecasts_.size(); i++) { output.writeMessage(2, adGroupForecasts_.get(i)); } for (int i = 0; i < keywordForecasts_.size(); i++) { output.writeMessage(3, keywordForecasts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < campaignForecasts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, campaignForecasts_.get(i)); } for (int i = 0; i < adGroupForecasts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, adGroupForecasts_.get(i)); } for (int i = 0; i < keywordForecasts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, keywordForecasts_.get(i)); } 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.v10.services.GenerateForecastMetricsResponse)) { return super.equals(obj); } com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse other = (com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse) obj; if (!getCampaignForecastsList() .equals(other.getCampaignForecastsList())) return false; if (!getAdGroupForecastsList() .equals(other.getAdGroupForecastsList())) return false; if (!getKeywordForecastsList() .equals(other.getKeywordForecastsList())) 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 (getCampaignForecastsCount() > 0) { hash = (37 * hash) + CAMPAIGN_FORECASTS_FIELD_NUMBER; hash = (53 * hash) + getCampaignForecastsList().hashCode(); } if (getAdGroupForecastsCount() > 0) { hash = (37 * hash) + AD_GROUP_FORECASTS_FIELD_NUMBER; hash = (53 * hash) + getAdGroupForecastsList().hashCode(); } if (getKeywordForecastsCount() > 0) { hash = (37 * hash) + KEYWORD_FORECASTS_FIELD_NUMBER; hash = (53 * hash) + getKeywordForecastsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse 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; } /** *
   * Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v10.services.KeywordPlanService.GenerateForecastMetrics].
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.GenerateForecastMetricsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.GenerateForecastMetricsResponse) com.google.ads.googleads.v10.services.GenerateForecastMetricsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateForecastMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateForecastMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.class, com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.Builder.class); } // Construct using com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (campaignForecastsBuilder_ == null) { campaignForecasts_ = java.util.Collections.emptyList(); } else { campaignForecasts_ = null; campaignForecastsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (adGroupForecastsBuilder_ == null) { adGroupForecasts_ = java.util.Collections.emptyList(); } else { adGroupForecasts_ = null; adGroupForecastsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (keywordForecastsBuilder_ == null) { keywordForecasts_ = java.util.Collections.emptyList(); } else { keywordForecasts_ = null; keywordForecastsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.internal_static_google_ads_googleads_v10_services_GenerateForecastMetricsResponse_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse build() { com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse buildPartial() { com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse result = new com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse(this); int from_bitField0_ = bitField0_; if (campaignForecastsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { campaignForecasts_ = java.util.Collections.unmodifiableList(campaignForecasts_); bitField0_ = (bitField0_ & ~0x00000001); } result.campaignForecasts_ = campaignForecasts_; } else { result.campaignForecasts_ = campaignForecastsBuilder_.build(); } if (adGroupForecastsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { adGroupForecasts_ = java.util.Collections.unmodifiableList(adGroupForecasts_); bitField0_ = (bitField0_ & ~0x00000002); } result.adGroupForecasts_ = adGroupForecasts_; } else { result.adGroupForecasts_ = adGroupForecastsBuilder_.build(); } if (keywordForecastsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { keywordForecasts_ = java.util.Collections.unmodifiableList(keywordForecasts_); bitField0_ = (bitField0_ & ~0x00000004); } result.keywordForecasts_ = keywordForecasts_; } else { result.keywordForecasts_ = keywordForecastsBuilder_.build(); } onBuilt(); return result; } @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.v10.services.GenerateForecastMetricsResponse) { return mergeFrom((com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse other) { if (other == com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.getDefaultInstance()) return this; if (campaignForecastsBuilder_ == null) { if (!other.campaignForecasts_.isEmpty()) { if (campaignForecasts_.isEmpty()) { campaignForecasts_ = other.campaignForecasts_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCampaignForecastsIsMutable(); campaignForecasts_.addAll(other.campaignForecasts_); } onChanged(); } } else { if (!other.campaignForecasts_.isEmpty()) { if (campaignForecastsBuilder_.isEmpty()) { campaignForecastsBuilder_.dispose(); campaignForecastsBuilder_ = null; campaignForecasts_ = other.campaignForecasts_; bitField0_ = (bitField0_ & ~0x00000001); campaignForecastsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCampaignForecastsFieldBuilder() : null; } else { campaignForecastsBuilder_.addAllMessages(other.campaignForecasts_); } } } if (adGroupForecastsBuilder_ == null) { if (!other.adGroupForecasts_.isEmpty()) { if (adGroupForecasts_.isEmpty()) { adGroupForecasts_ = other.adGroupForecasts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.addAll(other.adGroupForecasts_); } onChanged(); } } else { if (!other.adGroupForecasts_.isEmpty()) { if (adGroupForecastsBuilder_.isEmpty()) { adGroupForecastsBuilder_.dispose(); adGroupForecastsBuilder_ = null; adGroupForecasts_ = other.adGroupForecasts_; bitField0_ = (bitField0_ & ~0x00000002); adGroupForecastsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAdGroupForecastsFieldBuilder() : null; } else { adGroupForecastsBuilder_.addAllMessages(other.adGroupForecasts_); } } } if (keywordForecastsBuilder_ == null) { if (!other.keywordForecasts_.isEmpty()) { if (keywordForecasts_.isEmpty()) { keywordForecasts_ = other.keywordForecasts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureKeywordForecastsIsMutable(); keywordForecasts_.addAll(other.keywordForecasts_); } onChanged(); } } else { if (!other.keywordForecasts_.isEmpty()) { if (keywordForecastsBuilder_.isEmpty()) { keywordForecastsBuilder_.dispose(); keywordForecastsBuilder_ = null; keywordForecasts_ = other.keywordForecasts_; bitField0_ = (bitField0_ & ~0x00000004); keywordForecastsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeywordForecastsFieldBuilder() : null; } else { keywordForecastsBuilder_.addAllMessages(other.keywordForecasts_); } } } 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 10: { com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast m = input.readMessage( com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.parser(), extensionRegistry); if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); campaignForecasts_.add(m); } else { campaignForecastsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast m = input.readMessage( com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.parser(), extensionRegistry); if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.add(m); } else { adGroupForecastsBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast m = input.readMessage( com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.parser(), extensionRegistry); if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); keywordForecasts_.add(m); } else { keywordForecastsBuilder_.addMessage(m); } break; } // case 26 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 java.util.List campaignForecasts_ = java.util.Collections.emptyList(); private void ensureCampaignForecastsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { campaignForecasts_ = new java.util.ArrayList(campaignForecasts_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecastOrBuilder> campaignForecastsBuilder_; /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public java.util.List getCampaignForecastsList() { if (campaignForecastsBuilder_ == null) { return java.util.Collections.unmodifiableList(campaignForecasts_); } else { return campaignForecastsBuilder_.getMessageList(); } } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public int getCampaignForecastsCount() { if (campaignForecastsBuilder_ == null) { return campaignForecasts_.size(); } else { return campaignForecastsBuilder_.getCount(); } } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast getCampaignForecasts(int index) { if (campaignForecastsBuilder_ == null) { return campaignForecasts_.get(index); } else { return campaignForecastsBuilder_.getMessage(index); } } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder setCampaignForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast value) { if (campaignForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignForecastsIsMutable(); campaignForecasts_.set(index, value); onChanged(); } else { campaignForecastsBuilder_.setMessage(index, value); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder setCampaignForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder builderForValue) { if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); campaignForecasts_.set(index, builderForValue.build()); onChanged(); } else { campaignForecastsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder addCampaignForecasts(com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast value) { if (campaignForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignForecastsIsMutable(); campaignForecasts_.add(value); onChanged(); } else { campaignForecastsBuilder_.addMessage(value); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder addCampaignForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast value) { if (campaignForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCampaignForecastsIsMutable(); campaignForecasts_.add(index, value); onChanged(); } else { campaignForecastsBuilder_.addMessage(index, value); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder addCampaignForecasts( com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder builderForValue) { if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); campaignForecasts_.add(builderForValue.build()); onChanged(); } else { campaignForecastsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder addCampaignForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder builderForValue) { if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); campaignForecasts_.add(index, builderForValue.build()); onChanged(); } else { campaignForecastsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder addAllCampaignForecasts( java.lang.Iterable values) { if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, campaignForecasts_); onChanged(); } else { campaignForecastsBuilder_.addAllMessages(values); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder clearCampaignForecasts() { if (campaignForecastsBuilder_ == null) { campaignForecasts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { campaignForecastsBuilder_.clear(); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public Builder removeCampaignForecasts(int index) { if (campaignForecastsBuilder_ == null) { ensureCampaignForecastsIsMutable(); campaignForecasts_.remove(index); onChanged(); } else { campaignForecastsBuilder_.remove(index); } return this; } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder getCampaignForecastsBuilder( int index) { return getCampaignForecastsFieldBuilder().getBuilder(index); } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecastOrBuilder getCampaignForecastsOrBuilder( int index) { if (campaignForecastsBuilder_ == null) { return campaignForecasts_.get(index); } else { return campaignForecastsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public java.util.List getCampaignForecastsOrBuilderList() { if (campaignForecastsBuilder_ != null) { return campaignForecastsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(campaignForecasts_); } } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder addCampaignForecastsBuilder() { return getCampaignForecastsFieldBuilder().addBuilder( com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.getDefaultInstance()); } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder addCampaignForecastsBuilder( int index) { return getCampaignForecastsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.getDefaultInstance()); } /** *
     * List of campaign forecasts.
     * One maximum.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanCampaignForecast campaign_forecasts = 1; */ public java.util.List getCampaignForecastsBuilderList() { return getCampaignForecastsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecastOrBuilder> getCampaignForecastsFieldBuilder() { if (campaignForecastsBuilder_ == null) { campaignForecastsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanCampaignForecastOrBuilder>( campaignForecasts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); campaignForecasts_ = null; } return campaignForecastsBuilder_; } private java.util.List adGroupForecasts_ = java.util.Collections.emptyList(); private void ensureAdGroupForecastsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { adGroupForecasts_ = new java.util.ArrayList(adGroupForecasts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecastOrBuilder> adGroupForecastsBuilder_; /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public java.util.List getAdGroupForecastsList() { if (adGroupForecastsBuilder_ == null) { return java.util.Collections.unmodifiableList(adGroupForecasts_); } else { return adGroupForecastsBuilder_.getMessageList(); } } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public int getAdGroupForecastsCount() { if (adGroupForecastsBuilder_ == null) { return adGroupForecasts_.size(); } else { return adGroupForecastsBuilder_.getCount(); } } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast getAdGroupForecasts(int index) { if (adGroupForecastsBuilder_ == null) { return adGroupForecasts_.get(index); } else { return adGroupForecastsBuilder_.getMessage(index); } } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder setAdGroupForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast value) { if (adGroupForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdGroupForecastsIsMutable(); adGroupForecasts_.set(index, value); onChanged(); } else { adGroupForecastsBuilder_.setMessage(index, value); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder setAdGroupForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder builderForValue) { if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.set(index, builderForValue.build()); onChanged(); } else { adGroupForecastsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder addAdGroupForecasts(com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast value) { if (adGroupForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdGroupForecastsIsMutable(); adGroupForecasts_.add(value); onChanged(); } else { adGroupForecastsBuilder_.addMessage(value); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder addAdGroupForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast value) { if (adGroupForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdGroupForecastsIsMutable(); adGroupForecasts_.add(index, value); onChanged(); } else { adGroupForecastsBuilder_.addMessage(index, value); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder addAdGroupForecasts( com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder builderForValue) { if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.add(builderForValue.build()); onChanged(); } else { adGroupForecastsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder addAdGroupForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder builderForValue) { if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.add(index, builderForValue.build()); onChanged(); } else { adGroupForecastsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder addAllAdGroupForecasts( java.lang.Iterable values) { if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, adGroupForecasts_); onChanged(); } else { adGroupForecastsBuilder_.addAllMessages(values); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder clearAdGroupForecasts() { if (adGroupForecastsBuilder_ == null) { adGroupForecasts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { adGroupForecastsBuilder_.clear(); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public Builder removeAdGroupForecasts(int index) { if (adGroupForecastsBuilder_ == null) { ensureAdGroupForecastsIsMutable(); adGroupForecasts_.remove(index); onChanged(); } else { adGroupForecastsBuilder_.remove(index); } return this; } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder getAdGroupForecastsBuilder( int index) { return getAdGroupForecastsFieldBuilder().getBuilder(index); } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecastOrBuilder getAdGroupForecastsOrBuilder( int index) { if (adGroupForecastsBuilder_ == null) { return adGroupForecasts_.get(index); } else { return adGroupForecastsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public java.util.List getAdGroupForecastsOrBuilderList() { if (adGroupForecastsBuilder_ != null) { return adGroupForecastsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(adGroupForecasts_); } } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder addAdGroupForecastsBuilder() { return getAdGroupForecastsFieldBuilder().addBuilder( com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.getDefaultInstance()); } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder addAdGroupForecastsBuilder( int index) { return getAdGroupForecastsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.getDefaultInstance()); } /** *
     * List of ad group forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanAdGroupForecast ad_group_forecasts = 2; */ public java.util.List getAdGroupForecastsBuilderList() { return getAdGroupForecastsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecastOrBuilder> getAdGroupForecastsFieldBuilder() { if (adGroupForecastsBuilder_ == null) { adGroupForecastsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanAdGroupForecastOrBuilder>( adGroupForecasts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); adGroupForecasts_ = null; } return adGroupForecastsBuilder_; } private java.util.List keywordForecasts_ = java.util.Collections.emptyList(); private void ensureKeywordForecastsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { keywordForecasts_ = new java.util.ArrayList(keywordForecasts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecastOrBuilder> keywordForecastsBuilder_; /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public java.util.List getKeywordForecastsList() { if (keywordForecastsBuilder_ == null) { return java.util.Collections.unmodifiableList(keywordForecasts_); } else { return keywordForecastsBuilder_.getMessageList(); } } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public int getKeywordForecastsCount() { if (keywordForecastsBuilder_ == null) { return keywordForecasts_.size(); } else { return keywordForecastsBuilder_.getCount(); } } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast getKeywordForecasts(int index) { if (keywordForecastsBuilder_ == null) { return keywordForecasts_.get(index); } else { return keywordForecastsBuilder_.getMessage(index); } } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder setKeywordForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast value) { if (keywordForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordForecastsIsMutable(); keywordForecasts_.set(index, value); onChanged(); } else { keywordForecastsBuilder_.setMessage(index, value); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder setKeywordForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder builderForValue) { if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); keywordForecasts_.set(index, builderForValue.build()); onChanged(); } else { keywordForecastsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder addKeywordForecasts(com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast value) { if (keywordForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordForecastsIsMutable(); keywordForecasts_.add(value); onChanged(); } else { keywordForecastsBuilder_.addMessage(value); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder addKeywordForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast value) { if (keywordForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordForecastsIsMutable(); keywordForecasts_.add(index, value); onChanged(); } else { keywordForecastsBuilder_.addMessage(index, value); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder addKeywordForecasts( com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder builderForValue) { if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); keywordForecasts_.add(builderForValue.build()); onChanged(); } else { keywordForecastsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder addKeywordForecasts( int index, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder builderForValue) { if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); keywordForecasts_.add(index, builderForValue.build()); onChanged(); } else { keywordForecastsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder addAllKeywordForecasts( java.lang.Iterable values) { if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keywordForecasts_); onChanged(); } else { keywordForecastsBuilder_.addAllMessages(values); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder clearKeywordForecasts() { if (keywordForecastsBuilder_ == null) { keywordForecasts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { keywordForecastsBuilder_.clear(); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public Builder removeKeywordForecasts(int index) { if (keywordForecastsBuilder_ == null) { ensureKeywordForecastsIsMutable(); keywordForecasts_.remove(index); onChanged(); } else { keywordForecastsBuilder_.remove(index); } return this; } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder getKeywordForecastsBuilder( int index) { return getKeywordForecastsFieldBuilder().getBuilder(index); } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecastOrBuilder getKeywordForecastsOrBuilder( int index) { if (keywordForecastsBuilder_ == null) { return keywordForecasts_.get(index); } else { return keywordForecastsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public java.util.List getKeywordForecastsOrBuilderList() { if (keywordForecastsBuilder_ != null) { return keywordForecastsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keywordForecasts_); } } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder addKeywordForecastsBuilder() { return getKeywordForecastsFieldBuilder().addBuilder( com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.getDefaultInstance()); } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder addKeywordForecastsBuilder( int index) { return getKeywordForecastsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.getDefaultInstance()); } /** *
     * List of keyword forecasts.
     * 
* * repeated .google.ads.googleads.v10.services.KeywordPlanKeywordForecast keyword_forecasts = 3; */ public java.util.List getKeywordForecastsBuilderList() { return getKeywordForecastsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecastOrBuilder> getKeywordForecastsFieldBuilder() { if (keywordForecastsBuilder_ == null) { keywordForecastsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecast.Builder, com.google.ads.googleads.v10.services.KeywordPlanKeywordForecastOrBuilder>( keywordForecasts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); keywordForecasts_ = null; } return keywordForecastsBuilder_; } @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.v10.services.GenerateForecastMetricsResponse) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.GenerateForecastMetricsResponse) private static final com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse(); } public static com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenerateForecastMetricsResponse 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.v10.services.GenerateForecastMetricsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy