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

com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics Maven / Gradle / Ivy

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

package com.google.ads.googleads.v9.common;

/**
 * 
 * Historical metrics specific to the targeting options selected.
 * Targeting options include geographies, network, etc.
 * Refer to https://support.google.com/google-ads/answer/3022575 for more
 * details.
 * 
* * Protobuf type {@code google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics} */ public final class KeywordPlanHistoricalMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics) KeywordPlanHistoricalMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use KeywordPlanHistoricalMetrics.newBuilder() to construct. private KeywordPlanHistoricalMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeywordPlanHistoricalMetrics() { monthlySearchVolumes_ = java.util.Collections.emptyList(); competition_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new KeywordPlanHistoricalMetrics(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeywordPlanHistoricalMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { int rawValue = input.readEnum(); competition_ = rawValue; break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { monthlySearchVolumes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } monthlySearchVolumes_.add( input.readMessage(com.google.ads.googleads.v9.common.MonthlySearchVolume.parser(), extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000001; avgMonthlySearches_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000002; competitionIndex_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000004; lowTopOfPageBidMicros_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000008; highTopOfPageBidMicros_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { monthlySearchVolumes_ = java.util.Collections.unmodifiableList(monthlySearchVolumes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v9.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v9_common_KeywordPlanHistoricalMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v9.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v9_common_KeywordPlanHistoricalMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.class, com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.Builder.class); } private int bitField0_; public static final int AVG_MONTHLY_SEARCHES_FIELD_NUMBER = 7; private long avgMonthlySearches_; /** *
   * Approximate number of monthly searches on this query averaged
   * for the past 12 months.
   * 
* * optional int64 avg_monthly_searches = 7; * @return Whether the avgMonthlySearches field is set. */ @java.lang.Override public boolean hasAvgMonthlySearches() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Approximate number of monthly searches on this query averaged
   * for the past 12 months.
   * 
* * optional int64 avg_monthly_searches = 7; * @return The avgMonthlySearches. */ @java.lang.Override public long getAvgMonthlySearches() { return avgMonthlySearches_; } public static final int MONTHLY_SEARCH_VOLUMES_FIELD_NUMBER = 6; private java.util.List monthlySearchVolumes_; /** *
   * Approximate number of searches on this query for the past twelve months.
   * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ @java.lang.Override public java.util.List getMonthlySearchVolumesList() { return monthlySearchVolumes_; } /** *
   * Approximate number of searches on this query for the past twelve months.
   * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ @java.lang.Override public java.util.List getMonthlySearchVolumesOrBuilderList() { return monthlySearchVolumes_; } /** *
   * Approximate number of searches on this query for the past twelve months.
   * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ @java.lang.Override public int getMonthlySearchVolumesCount() { return monthlySearchVolumes_.size(); } /** *
   * Approximate number of searches on this query for the past twelve months.
   * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ @java.lang.Override public com.google.ads.googleads.v9.common.MonthlySearchVolume getMonthlySearchVolumes(int index) { return monthlySearchVolumes_.get(index); } /** *
   * Approximate number of searches on this query for the past twelve months.
   * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ @java.lang.Override public com.google.ads.googleads.v9.common.MonthlySearchVolumeOrBuilder getMonthlySearchVolumesOrBuilder( int index) { return monthlySearchVolumes_.get(index); } public static final int COMPETITION_FIELD_NUMBER = 2; private int competition_; /** *
   * The competition level for the query.
   * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @return The enum numeric value on the wire for competition. */ @java.lang.Override public int getCompetitionValue() { return competition_; } /** *
   * The competition level for the query.
   * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @return The competition. */ @java.lang.Override public com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel getCompetition() { @SuppressWarnings("deprecation") com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel result = com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.valueOf(competition_); return result == null ? com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNRECOGNIZED : result; } public static final int COMPETITION_INDEX_FIELD_NUMBER = 8; private long competitionIndex_; /** *
   * The competition index for the query in the range [0, 100].
   * Shows how competitive ad placement is for a keyword.
   * The level of competition from 0-100 is determined by the number of ad slots
   * filled divided by the total number of ad slots available. If not enough
   * data is available, null is returned.
   * 
* * optional int64 competition_index = 8; * @return Whether the competitionIndex field is set. */ @java.lang.Override public boolean hasCompetitionIndex() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The competition index for the query in the range [0, 100].
   * Shows how competitive ad placement is for a keyword.
   * The level of competition from 0-100 is determined by the number of ad slots
   * filled divided by the total number of ad slots available. If not enough
   * data is available, null is returned.
   * 
* * optional int64 competition_index = 8; * @return The competitionIndex. */ @java.lang.Override public long getCompetitionIndex() { return competitionIndex_; } public static final int LOW_TOP_OF_PAGE_BID_MICROS_FIELD_NUMBER = 9; private long lowTopOfPageBidMicros_; /** *
   * Top of page bid low range (20th percentile) in micros for the keyword.
   * 
* * optional int64 low_top_of_page_bid_micros = 9; * @return Whether the lowTopOfPageBidMicros field is set. */ @java.lang.Override public boolean hasLowTopOfPageBidMicros() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Top of page bid low range (20th percentile) in micros for the keyword.
   * 
* * optional int64 low_top_of_page_bid_micros = 9; * @return The lowTopOfPageBidMicros. */ @java.lang.Override public long getLowTopOfPageBidMicros() { return lowTopOfPageBidMicros_; } public static final int HIGH_TOP_OF_PAGE_BID_MICROS_FIELD_NUMBER = 10; private long highTopOfPageBidMicros_; /** *
   * Top of page bid high range (80th percentile) in micros for the keyword.
   * 
* * optional int64 high_top_of_page_bid_micros = 10; * @return Whether the highTopOfPageBidMicros field is set. */ @java.lang.Override public boolean hasHighTopOfPageBidMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Top of page bid high range (80th percentile) in micros for the keyword.
   * 
* * optional int64 high_top_of_page_bid_micros = 10; * @return The highTopOfPageBidMicros. */ @java.lang.Override public long getHighTopOfPageBidMicros() { return highTopOfPageBidMicros_; } 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 (competition_ != com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNSPECIFIED.getNumber()) { output.writeEnum(2, competition_); } for (int i = 0; i < monthlySearchVolumes_.size(); i++) { output.writeMessage(6, monthlySearchVolumes_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(7, avgMonthlySearches_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(8, competitionIndex_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(9, lowTopOfPageBidMicros_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(10, highTopOfPageBidMicros_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (competition_ != com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, competition_); } for (int i = 0; i < monthlySearchVolumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, monthlySearchVolumes_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, avgMonthlySearches_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, competitionIndex_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, lowTopOfPageBidMicros_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, highTopOfPageBidMicros_); } size += unknownFields.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.v9.common.KeywordPlanHistoricalMetrics)) { return super.equals(obj); } com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics other = (com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics) obj; if (hasAvgMonthlySearches() != other.hasAvgMonthlySearches()) return false; if (hasAvgMonthlySearches()) { if (getAvgMonthlySearches() != other.getAvgMonthlySearches()) return false; } if (!getMonthlySearchVolumesList() .equals(other.getMonthlySearchVolumesList())) return false; if (competition_ != other.competition_) return false; if (hasCompetitionIndex() != other.hasCompetitionIndex()) return false; if (hasCompetitionIndex()) { if (getCompetitionIndex() != other.getCompetitionIndex()) return false; } if (hasLowTopOfPageBidMicros() != other.hasLowTopOfPageBidMicros()) return false; if (hasLowTopOfPageBidMicros()) { if (getLowTopOfPageBidMicros() != other.getLowTopOfPageBidMicros()) return false; } if (hasHighTopOfPageBidMicros() != other.hasHighTopOfPageBidMicros()) return false; if (hasHighTopOfPageBidMicros()) { if (getHighTopOfPageBidMicros() != other.getHighTopOfPageBidMicros()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAvgMonthlySearches()) { hash = (37 * hash) + AVG_MONTHLY_SEARCHES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAvgMonthlySearches()); } if (getMonthlySearchVolumesCount() > 0) { hash = (37 * hash) + MONTHLY_SEARCH_VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getMonthlySearchVolumesList().hashCode(); } hash = (37 * hash) + COMPETITION_FIELD_NUMBER; hash = (53 * hash) + competition_; if (hasCompetitionIndex()) { hash = (37 * hash) + COMPETITION_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompetitionIndex()); } if (hasLowTopOfPageBidMicros()) { hash = (37 * hash) + LOW_TOP_OF_PAGE_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLowTopOfPageBidMicros()); } if (hasHighTopOfPageBidMicros()) { hash = (37 * hash) + HIGH_TOP_OF_PAGE_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHighTopOfPageBidMicros()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics 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.v9.common.KeywordPlanHistoricalMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics 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.v9.common.KeywordPlanHistoricalMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics 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.v9.common.KeywordPlanHistoricalMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics 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.v9.common.KeywordPlanHistoricalMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics 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.v9.common.KeywordPlanHistoricalMetrics 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; } /** *
   * Historical metrics specific to the targeting options selected.
   * Targeting options include geographies, network, etc.
   * Refer to https://support.google.com/google-ads/answer/3022575 for more
   * details.
   * 
* * Protobuf type {@code google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics) com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v9.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v9_common_KeywordPlanHistoricalMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v9.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v9_common_KeywordPlanHistoricalMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.class, com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.Builder.class); } // Construct using com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMonthlySearchVolumesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); avgMonthlySearches_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (monthlySearchVolumesBuilder_ == null) { monthlySearchVolumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { monthlySearchVolumesBuilder_.clear(); } competition_ = 0; competitionIndex_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); lowTopOfPageBidMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); highTopOfPageBidMicros_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v9.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v9_common_KeywordPlanHistoricalMetrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics getDefaultInstanceForType() { return com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics build() { com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics buildPartial() { com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics result = new com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.avgMonthlySearches_ = avgMonthlySearches_; to_bitField0_ |= 0x00000001; } if (monthlySearchVolumesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { monthlySearchVolumes_ = java.util.Collections.unmodifiableList(monthlySearchVolumes_); bitField0_ = (bitField0_ & ~0x00000002); } result.monthlySearchVolumes_ = monthlySearchVolumes_; } else { result.monthlySearchVolumes_ = monthlySearchVolumesBuilder_.build(); } result.competition_ = competition_; if (((from_bitField0_ & 0x00000004) != 0)) { result.competitionIndex_ = competitionIndex_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lowTopOfPageBidMicros_ = lowTopOfPageBidMicros_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.highTopOfPageBidMicros_ = highTopOfPageBidMicros_; to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; 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.v9.common.KeywordPlanHistoricalMetrics) { return mergeFrom((com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics other) { if (other == com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics.getDefaultInstance()) return this; if (other.hasAvgMonthlySearches()) { setAvgMonthlySearches(other.getAvgMonthlySearches()); } if (monthlySearchVolumesBuilder_ == null) { if (!other.monthlySearchVolumes_.isEmpty()) { if (monthlySearchVolumes_.isEmpty()) { monthlySearchVolumes_ = other.monthlySearchVolumes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.addAll(other.monthlySearchVolumes_); } onChanged(); } } else { if (!other.monthlySearchVolumes_.isEmpty()) { if (monthlySearchVolumesBuilder_.isEmpty()) { monthlySearchVolumesBuilder_.dispose(); monthlySearchVolumesBuilder_ = null; monthlySearchVolumes_ = other.monthlySearchVolumes_; bitField0_ = (bitField0_ & ~0x00000002); monthlySearchVolumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonthlySearchVolumesFieldBuilder() : null; } else { monthlySearchVolumesBuilder_.addAllMessages(other.monthlySearchVolumes_); } } } if (other.competition_ != 0) { setCompetitionValue(other.getCompetitionValue()); } if (other.hasCompetitionIndex()) { setCompetitionIndex(other.getCompetitionIndex()); } if (other.hasLowTopOfPageBidMicros()) { setLowTopOfPageBidMicros(other.getLowTopOfPageBidMicros()); } if (other.hasHighTopOfPageBidMicros()) { setHighTopOfPageBidMicros(other.getHighTopOfPageBidMicros()); } this.mergeUnknownFields(other.unknownFields); 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 { com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long avgMonthlySearches_ ; /** *
     * Approximate number of monthly searches on this query averaged
     * for the past 12 months.
     * 
* * optional int64 avg_monthly_searches = 7; * @return Whether the avgMonthlySearches field is set. */ @java.lang.Override public boolean hasAvgMonthlySearches() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Approximate number of monthly searches on this query averaged
     * for the past 12 months.
     * 
* * optional int64 avg_monthly_searches = 7; * @return The avgMonthlySearches. */ @java.lang.Override public long getAvgMonthlySearches() { return avgMonthlySearches_; } /** *
     * Approximate number of monthly searches on this query averaged
     * for the past 12 months.
     * 
* * optional int64 avg_monthly_searches = 7; * @param value The avgMonthlySearches to set. * @return This builder for chaining. */ public Builder setAvgMonthlySearches(long value) { bitField0_ |= 0x00000001; avgMonthlySearches_ = value; onChanged(); return this; } /** *
     * Approximate number of monthly searches on this query averaged
     * for the past 12 months.
     * 
* * optional int64 avg_monthly_searches = 7; * @return This builder for chaining. */ public Builder clearAvgMonthlySearches() { bitField0_ = (bitField0_ & ~0x00000001); avgMonthlySearches_ = 0L; onChanged(); return this; } private java.util.List monthlySearchVolumes_ = java.util.Collections.emptyList(); private void ensureMonthlySearchVolumesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { monthlySearchVolumes_ = new java.util.ArrayList(monthlySearchVolumes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v9.common.MonthlySearchVolume, com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v9.common.MonthlySearchVolumeOrBuilder> monthlySearchVolumesBuilder_; /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public java.util.List getMonthlySearchVolumesList() { if (monthlySearchVolumesBuilder_ == null) { return java.util.Collections.unmodifiableList(monthlySearchVolumes_); } else { return monthlySearchVolumesBuilder_.getMessageList(); } } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public int getMonthlySearchVolumesCount() { if (monthlySearchVolumesBuilder_ == null) { return monthlySearchVolumes_.size(); } else { return monthlySearchVolumesBuilder_.getCount(); } } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public com.google.ads.googleads.v9.common.MonthlySearchVolume getMonthlySearchVolumes(int index) { if (monthlySearchVolumesBuilder_ == null) { return monthlySearchVolumes_.get(index); } else { return monthlySearchVolumesBuilder_.getMessage(index); } } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder setMonthlySearchVolumes( int index, com.google.ads.googleads.v9.common.MonthlySearchVolume value) { if (monthlySearchVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.set(index, value); onChanged(); } else { monthlySearchVolumesBuilder_.setMessage(index, value); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder setMonthlySearchVolumes( int index, com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder builderForValue) { if (monthlySearchVolumesBuilder_ == null) { ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.set(index, builderForValue.build()); onChanged(); } else { monthlySearchVolumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder addMonthlySearchVolumes(com.google.ads.googleads.v9.common.MonthlySearchVolume value) { if (monthlySearchVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.add(value); onChanged(); } else { monthlySearchVolumesBuilder_.addMessage(value); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder addMonthlySearchVolumes( int index, com.google.ads.googleads.v9.common.MonthlySearchVolume value) { if (monthlySearchVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.add(index, value); onChanged(); } else { monthlySearchVolumesBuilder_.addMessage(index, value); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder addMonthlySearchVolumes( com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder builderForValue) { if (monthlySearchVolumesBuilder_ == null) { ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.add(builderForValue.build()); onChanged(); } else { monthlySearchVolumesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder addMonthlySearchVolumes( int index, com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder builderForValue) { if (monthlySearchVolumesBuilder_ == null) { ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.add(index, builderForValue.build()); onChanged(); } else { monthlySearchVolumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder addAllMonthlySearchVolumes( java.lang.Iterable values) { if (monthlySearchVolumesBuilder_ == null) { ensureMonthlySearchVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, monthlySearchVolumes_); onChanged(); } else { monthlySearchVolumesBuilder_.addAllMessages(values); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder clearMonthlySearchVolumes() { if (monthlySearchVolumesBuilder_ == null) { monthlySearchVolumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { monthlySearchVolumesBuilder_.clear(); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public Builder removeMonthlySearchVolumes(int index) { if (monthlySearchVolumesBuilder_ == null) { ensureMonthlySearchVolumesIsMutable(); monthlySearchVolumes_.remove(index); onChanged(); } else { monthlySearchVolumesBuilder_.remove(index); } return this; } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder getMonthlySearchVolumesBuilder( int index) { return getMonthlySearchVolumesFieldBuilder().getBuilder(index); } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public com.google.ads.googleads.v9.common.MonthlySearchVolumeOrBuilder getMonthlySearchVolumesOrBuilder( int index) { if (monthlySearchVolumesBuilder_ == null) { return monthlySearchVolumes_.get(index); } else { return monthlySearchVolumesBuilder_.getMessageOrBuilder(index); } } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public java.util.List getMonthlySearchVolumesOrBuilderList() { if (monthlySearchVolumesBuilder_ != null) { return monthlySearchVolumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(monthlySearchVolumes_); } } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder addMonthlySearchVolumesBuilder() { return getMonthlySearchVolumesFieldBuilder().addBuilder( com.google.ads.googleads.v9.common.MonthlySearchVolume.getDefaultInstance()); } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder addMonthlySearchVolumesBuilder( int index) { return getMonthlySearchVolumesFieldBuilder().addBuilder( index, com.google.ads.googleads.v9.common.MonthlySearchVolume.getDefaultInstance()); } /** *
     * Approximate number of searches on this query for the past twelve months.
     * 
* * repeated .google.ads.googleads.v9.common.MonthlySearchVolume monthly_search_volumes = 6; */ public java.util.List getMonthlySearchVolumesBuilderList() { return getMonthlySearchVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v9.common.MonthlySearchVolume, com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v9.common.MonthlySearchVolumeOrBuilder> getMonthlySearchVolumesFieldBuilder() { if (monthlySearchVolumesBuilder_ == null) { monthlySearchVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v9.common.MonthlySearchVolume, com.google.ads.googleads.v9.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v9.common.MonthlySearchVolumeOrBuilder>( monthlySearchVolumes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); monthlySearchVolumes_ = null; } return monthlySearchVolumesBuilder_; } private int competition_ = 0; /** *
     * The competition level for the query.
     * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @return The enum numeric value on the wire for competition. */ @java.lang.Override public int getCompetitionValue() { return competition_; } /** *
     * The competition level for the query.
     * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @param value The enum numeric value on the wire for competition to set. * @return This builder for chaining. */ public Builder setCompetitionValue(int value) { competition_ = value; onChanged(); return this; } /** *
     * The competition level for the query.
     * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @return The competition. */ @java.lang.Override public com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel getCompetition() { @SuppressWarnings("deprecation") com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel result = com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.valueOf(competition_); return result == null ? com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNRECOGNIZED : result; } /** *
     * The competition level for the query.
     * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @param value The competition to set. * @return This builder for chaining. */ public Builder setCompetition(com.google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel value) { if (value == null) { throw new NullPointerException(); } competition_ = value.getNumber(); onChanged(); return this; } /** *
     * The competition level for the query.
     * 
* * .google.ads.googleads.v9.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; * @return This builder for chaining. */ public Builder clearCompetition() { competition_ = 0; onChanged(); return this; } private long competitionIndex_ ; /** *
     * The competition index for the query in the range [0, 100].
     * Shows how competitive ad placement is for a keyword.
     * The level of competition from 0-100 is determined by the number of ad slots
     * filled divided by the total number of ad slots available. If not enough
     * data is available, null is returned.
     * 
* * optional int64 competition_index = 8; * @return Whether the competitionIndex field is set. */ @java.lang.Override public boolean hasCompetitionIndex() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The competition index for the query in the range [0, 100].
     * Shows how competitive ad placement is for a keyword.
     * The level of competition from 0-100 is determined by the number of ad slots
     * filled divided by the total number of ad slots available. If not enough
     * data is available, null is returned.
     * 
* * optional int64 competition_index = 8; * @return The competitionIndex. */ @java.lang.Override public long getCompetitionIndex() { return competitionIndex_; } /** *
     * The competition index for the query in the range [0, 100].
     * Shows how competitive ad placement is for a keyword.
     * The level of competition from 0-100 is determined by the number of ad slots
     * filled divided by the total number of ad slots available. If not enough
     * data is available, null is returned.
     * 
* * optional int64 competition_index = 8; * @param value The competitionIndex to set. * @return This builder for chaining. */ public Builder setCompetitionIndex(long value) { bitField0_ |= 0x00000004; competitionIndex_ = value; onChanged(); return this; } /** *
     * The competition index for the query in the range [0, 100].
     * Shows how competitive ad placement is for a keyword.
     * The level of competition from 0-100 is determined by the number of ad slots
     * filled divided by the total number of ad slots available. If not enough
     * data is available, null is returned.
     * 
* * optional int64 competition_index = 8; * @return This builder for chaining. */ public Builder clearCompetitionIndex() { bitField0_ = (bitField0_ & ~0x00000004); competitionIndex_ = 0L; onChanged(); return this; } private long lowTopOfPageBidMicros_ ; /** *
     * Top of page bid low range (20th percentile) in micros for the keyword.
     * 
* * optional int64 low_top_of_page_bid_micros = 9; * @return Whether the lowTopOfPageBidMicros field is set. */ @java.lang.Override public boolean hasLowTopOfPageBidMicros() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Top of page bid low range (20th percentile) in micros for the keyword.
     * 
* * optional int64 low_top_of_page_bid_micros = 9; * @return The lowTopOfPageBidMicros. */ @java.lang.Override public long getLowTopOfPageBidMicros() { return lowTopOfPageBidMicros_; } /** *
     * Top of page bid low range (20th percentile) in micros for the keyword.
     * 
* * optional int64 low_top_of_page_bid_micros = 9; * @param value The lowTopOfPageBidMicros to set. * @return This builder for chaining. */ public Builder setLowTopOfPageBidMicros(long value) { bitField0_ |= 0x00000008; lowTopOfPageBidMicros_ = value; onChanged(); return this; } /** *
     * Top of page bid low range (20th percentile) in micros for the keyword.
     * 
* * optional int64 low_top_of_page_bid_micros = 9; * @return This builder for chaining. */ public Builder clearLowTopOfPageBidMicros() { bitField0_ = (bitField0_ & ~0x00000008); lowTopOfPageBidMicros_ = 0L; onChanged(); return this; } private long highTopOfPageBidMicros_ ; /** *
     * Top of page bid high range (80th percentile) in micros for the keyword.
     * 
* * optional int64 high_top_of_page_bid_micros = 10; * @return Whether the highTopOfPageBidMicros field is set. */ @java.lang.Override public boolean hasHighTopOfPageBidMicros() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Top of page bid high range (80th percentile) in micros for the keyword.
     * 
* * optional int64 high_top_of_page_bid_micros = 10; * @return The highTopOfPageBidMicros. */ @java.lang.Override public long getHighTopOfPageBidMicros() { return highTopOfPageBidMicros_; } /** *
     * Top of page bid high range (80th percentile) in micros for the keyword.
     * 
* * optional int64 high_top_of_page_bid_micros = 10; * @param value The highTopOfPageBidMicros to set. * @return This builder for chaining. */ public Builder setHighTopOfPageBidMicros(long value) { bitField0_ |= 0x00000010; highTopOfPageBidMicros_ = value; onChanged(); return this; } /** *
     * Top of page bid high range (80th percentile) in micros for the keyword.
     * 
* * optional int64 high_top_of_page_bid_micros = 10; * @return This builder for chaining. */ public Builder clearHighTopOfPageBidMicros() { bitField0_ = (bitField0_ & ~0x00000010); highTopOfPageBidMicros_ = 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.v9.common.KeywordPlanHistoricalMetrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics) private static final com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics(); } public static com.google.ads.googleads.v9.common.KeywordPlanHistoricalMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeywordPlanHistoricalMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeywordPlanHistoricalMetrics(input, extensionRegistry); } }; 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.v9.common.KeywordPlanHistoricalMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy