com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/keyword_plan_common.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* Historical metrics specific to the targeting options selected.
* Targeting options include geographies, network, and so on.
* Refer to https://support.google.com/google-ads/answer/3022575 for more
* details.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics}
*/
public final class KeywordPlanHistoricalMetrics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.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();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v17_common_KeywordPlanHistoricalMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v17_common_KeywordPlanHistoricalMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.class, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder.class);
}
private int bitField0_;
public static final int AVG_MONTHLY_SEARCHES_FIELD_NUMBER = 7;
private long avgMonthlySearches_ = 0L;
/**
*
* 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;
@SuppressWarnings("serial")
private java.util.List monthlySearchVolumes_;
/**
*
* Approximate number of searches on this query for the past twelve months.
*
*
* repeated .google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.MonthlySearchVolumeOrBuilder>
getMonthlySearchVolumesOrBuilderList() {
return monthlySearchVolumes_;
}
/**
*
* Approximate number of searches on this query for the past twelve months.
*
*
* repeated .google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MonthlySearchVolumeOrBuilder getMonthlySearchVolumesOrBuilder(
int index) {
return monthlySearchVolumes_.get(index);
}
public static final int COMPETITION_FIELD_NUMBER = 2;
private int competition_ = 0;
/**
*
* The competition level for the query.
*
*
* .google.ads.googleads.v17.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.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2;
* @return The competition.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel getCompetition() {
com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel result = com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.forNumber(competition_);
return result == null ? com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNRECOGNIZED : result;
}
public static final int COMPETITION_INDEX_FIELD_NUMBER = 8;
private long competitionIndex_ = 0L;
/**
*
* 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_ = 0L;
/**
*
* 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_ = 0L;
/**
*
* 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_;
}
public static final int AVERAGE_CPC_MICROS_FIELD_NUMBER = 11;
private long averageCpcMicros_ = 0L;
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @return Whether the averageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasAverageCpcMicros() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @return The averageCpcMicros.
*/
@java.lang.Override
public long getAverageCpcMicros() {
return averageCpcMicros_;
}
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.v17.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_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(11, averageCpcMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (competition_ != com.google.ads.googleads.v17.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_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, averageCpcMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics other = (com.google.ads.googleads.v17.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 (hasAverageCpcMicros() != other.hasAverageCpcMicros()) return false;
if (hasAverageCpcMicros()) {
if (getAverageCpcMicros()
!= other.getAverageCpcMicros()) 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 (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());
}
if (hasAverageCpcMicros()) {
hash = (37 * hash) + AVERAGE_CPC_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAverageCpcMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.common.KeywordPlanHistoricalMetrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.common.KeywordPlanHistoricalMetrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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.v17.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, and so on.
* Refer to https://support.google.com/google-ads/answer/3022575 for more
* details.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics)
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v17_common_KeywordPlanHistoricalMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v17_common_KeywordPlanHistoricalMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.class, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
avgMonthlySearches_ = 0L;
if (monthlySearchVolumesBuilder_ == null) {
monthlySearchVolumes_ = java.util.Collections.emptyList();
} else {
monthlySearchVolumes_ = null;
monthlySearchVolumesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
competition_ = 0;
competitionIndex_ = 0L;
lowTopOfPageBidMicros_ = 0L;
highTopOfPageBidMicros_ = 0L;
averageCpcMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.KeywordPlanCommonProto.internal_static_google_ads_googleads_v17_common_KeywordPlanHistoricalMetrics_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics build() {
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics buildPartial() {
com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics result = new com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics result) {
if (monthlySearchVolumesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
monthlySearchVolumes_ = java.util.Collections.unmodifiableList(monthlySearchVolumes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.monthlySearchVolumes_ = monthlySearchVolumes_;
} else {
result.monthlySearchVolumes_ = monthlySearchVolumesBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.avgMonthlySearches_ = avgMonthlySearches_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.competition_ = competition_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.competitionIndex_ = competitionIndex_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lowTopOfPageBidMicros_ = lowTopOfPageBidMicros_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.highTopOfPageBidMicros_ = highTopOfPageBidMicros_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.averageCpcMicros_ = averageCpcMicros_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics) {
return mergeFrom((com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics other) {
if (other == com.google.ads.googleads.v17.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());
}
if (other.hasAverageCpcMicros()) {
setAverageCpcMicros(other.getAverageCpcMicros());
}
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 16: {
competition_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 16
case 50: {
com.google.ads.googleads.v17.common.MonthlySearchVolume m =
input.readMessage(
com.google.ads.googleads.v17.common.MonthlySearchVolume.parser(),
extensionRegistry);
if (monthlySearchVolumesBuilder_ == null) {
ensureMonthlySearchVolumesIsMutable();
monthlySearchVolumes_.add(m);
} else {
monthlySearchVolumesBuilder_.addMessage(m);
}
break;
} // case 50
case 56: {
avgMonthlySearches_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 56
case 64: {
competitionIndex_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 64
case 72: {
lowTopOfPageBidMicros_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 72
case 80: {
highTopOfPageBidMicros_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 80
case 88: {
averageCpcMicros_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 88
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long 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) {
avgMonthlySearches_ = value;
bitField0_ |= 0x00000001;
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.v17.common.MonthlySearchVolume, com.google.ads.googleads.v17.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v17.common.MonthlySearchVolumeOrBuilder> monthlySearchVolumesBuilder_;
/**
*
* Approximate number of searches on this query for the past twelve months.
*
*
* repeated .google.ads.googleads.v17.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.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder setMonthlySearchVolumes(
int index, com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder setMonthlySearchVolumes(
int index, com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder addMonthlySearchVolumes(com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder addMonthlySearchVolumes(
int index, com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder addMonthlySearchVolumes(
com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder addMonthlySearchVolumes(
int index, com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public Builder addAllMonthlySearchVolumes(
java.lang.Iterable extends com.google.ads.googleads.v17.common.MonthlySearchVolume> 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.v17.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.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public com.google.ads.googleads.v17.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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public java.util.List extends com.google.ads.googleads.v17.common.MonthlySearchVolumeOrBuilder>
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.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public com.google.ads.googleads.v17.common.MonthlySearchVolume.Builder addMonthlySearchVolumesBuilder() {
return getMonthlySearchVolumesFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.MonthlySearchVolume.getDefaultInstance());
}
/**
*
* Approximate number of searches on this query for the past twelve months.
*
*
* repeated .google.ads.googleads.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public com.google.ads.googleads.v17.common.MonthlySearchVolume.Builder addMonthlySearchVolumesBuilder(
int index) {
return getMonthlySearchVolumesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.MonthlySearchVolume.getDefaultInstance());
}
/**
*
* Approximate number of searches on this query for the past twelve months.
*
*
* repeated .google.ads.googleads.v17.common.MonthlySearchVolume monthly_search_volumes = 6;
*/
public java.util.List
getMonthlySearchVolumesBuilderList() {
return getMonthlySearchVolumesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.MonthlySearchVolume, com.google.ads.googleads.v17.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v17.common.MonthlySearchVolumeOrBuilder>
getMonthlySearchVolumesFieldBuilder() {
if (monthlySearchVolumesBuilder_ == null) {
monthlySearchVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.MonthlySearchVolume, com.google.ads.googleads.v17.common.MonthlySearchVolume.Builder, com.google.ads.googleads.v17.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.v17.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.v17.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;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The competition level for the query.
*
*
* .google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2;
* @return The competition.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel getCompetition() {
com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel result = com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.forNumber(competition_);
return result == null ? com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel.UNRECOGNIZED : result;
}
/**
*
* The competition level for the query.
*
*
* .google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2;
* @param value The competition to set.
* @return This builder for chaining.
*/
public Builder setCompetition(com.google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
competition_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The competition level for the query.
*
*
* .google.ads.googleads.v17.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2;
* @return This builder for chaining.
*/
public Builder clearCompetition() {
bitField0_ = (bitField0_ & ~0x00000004);
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_ & 0x00000008) != 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) {
competitionIndex_ = value;
bitField0_ |= 0x00000008;
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_ & ~0x00000008);
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_ & 0x00000010) != 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) {
lowTopOfPageBidMicros_ = value;
bitField0_ |= 0x00000010;
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_ & ~0x00000010);
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_ & 0x00000020) != 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) {
highTopOfPageBidMicros_ = value;
bitField0_ |= 0x00000020;
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_ & ~0x00000020);
highTopOfPageBidMicros_ = 0L;
onChanged();
return this;
}
private long averageCpcMicros_ ;
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @return Whether the averageCpcMicros field is set.
*/
@java.lang.Override
public boolean hasAverageCpcMicros() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @return The averageCpcMicros.
*/
@java.lang.Override
public long getAverageCpcMicros() {
return averageCpcMicros_;
}
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @param value The averageCpcMicros to set.
* @return This builder for chaining.
*/
public Builder setAverageCpcMicros(long value) {
averageCpcMicros_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Average Cost Per Click in micros for the keyword.
*
*
* optional int64 average_cpc_micros = 11;
* @return This builder for chaining.
*/
public Builder clearAverageCpcMicros() {
bitField0_ = (bitField0_ & ~0x00000040);
averageCpcMicros_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics)
private static final com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics();
}
public static com.google.ads.googleads.v17.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy