com.google.ads.googleads.v17.resources.ClickView 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/resources/click_view.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A click view with metrics aggregated at each click level, including both
* valid and invalid clicks. For non-Search campaigns, metrics.clicks
* represents the number of valid and invalid interactions.
* Queries including ClickView must have a filter limiting the results to one
* day and can be requested for dates back to 90 days before the time of the
* request.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ClickView}
*/
public final class ClickView extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.ClickView)
ClickViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClickView.newBuilder() to construct.
private ClickView(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClickView() {
resourceName_ = "";
gclid_ = "";
adGroupAd_ = "";
campaignLocationTarget_ = "";
userList_ = "";
keyword_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClickView();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ClickViewProto.internal_static_google_ads_googleads_v17_resources_ClickView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ClickViewProto.internal_static_google_ads_googleads_v17_resources_ClickView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ClickView.class, com.google.ads.googleads.v17.resources.ClickView.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GCLID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object gclid_ = "";
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the gclid field is set.
*/
@java.lang.Override
public boolean hasGclid() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The gclid.
*/
@java.lang.Override
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gclid_ = s;
return s;
}
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for gclid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AREA_OF_INTEREST_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.common.ClickLocation areaOfInterest_;
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the areaOfInterest field is set.
*/
@java.lang.Override
public boolean hasAreaOfInterest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The areaOfInterest.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation getAreaOfInterest() {
return areaOfInterest_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : areaOfInterest_;
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocationOrBuilder getAreaOfInterestOrBuilder() {
return areaOfInterest_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : areaOfInterest_;
}
public static final int LOCATION_OF_PRESENCE_FIELD_NUMBER = 4;
private com.google.ads.googleads.v17.common.ClickLocation locationOfPresence_;
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationOfPresence field is set.
*/
@java.lang.Override
public boolean hasLocationOfPresence() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationOfPresence.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocation getLocationOfPresence() {
return locationOfPresence_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : locationOfPresence_;
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ClickLocationOrBuilder getLocationOfPresenceOrBuilder() {
return locationOfPresence_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : locationOfPresence_;
}
public static final int PAGE_NUMBER_FIELD_NUMBER = 9;
private long pageNumber_ = 0L;
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the pageNumber field is set.
*/
@java.lang.Override
public boolean hasPageNumber() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The pageNumber.
*/
@java.lang.Override
public long getPageNumber() {
return pageNumber_;
}
public static final int AD_GROUP_AD_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object adGroupAd_ = "";
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the adGroupAd field is set.
*/
@java.lang.Override
public boolean hasAdGroupAd() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroupAd.
*/
@java.lang.Override
public java.lang.String getAdGroupAd() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroupAd_ = s;
return s;
}
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroupAd.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdGroupAdBytes() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroupAd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAMPAIGN_LOCATION_TARGET_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object campaignLocationTarget_ = "";
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the campaignLocationTarget field is set.
*/
@java.lang.Override
public boolean hasCampaignLocationTarget() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The campaignLocationTarget.
*/
@java.lang.Override
public java.lang.String getCampaignLocationTarget() {
java.lang.Object ref = campaignLocationTarget_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignLocationTarget_ = s;
return s;
}
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for campaignLocationTarget.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignLocationTargetBytes() {
java.lang.Object ref = campaignLocationTarget_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignLocationTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_LIST_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object userList_ = "";
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the userList field is set.
*/
@java.lang.Override
public boolean hasUserList() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The userList.
*/
@java.lang.Override
public java.lang.String getUserList() {
java.lang.Object ref = userList_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userList_ = s;
return s;
}
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for userList.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserListBytes() {
java.lang.Object ref = userList_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userList_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEYWORD_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object keyword_ = "";
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The keyword.
*/
@java.lang.Override
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyword_ = s;
return s;
}
}
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for keyword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEYWORD_INFO_FIELD_NUMBER = 14;
private com.google.ads.googleads.v17.common.KeywordInfo keywordInfo_;
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keywordInfo field is set.
*/
@java.lang.Override
public boolean hasKeywordInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keywordInfo.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfo getKeywordInfo() {
return keywordInfo_ == null ? com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance() : keywordInfo_;
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.KeywordInfoOrBuilder getKeywordInfoOrBuilder() {
return keywordInfo_ == null ? com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance() : keywordInfo_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getAreaOfInterest());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getLocationOfPresence());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gclid_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(9, pageNumber_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, adGroupAd_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, campaignLocationTarget_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, userList_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyword_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, keyword_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(14, getKeywordInfo());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAreaOfInterest());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLocationOfPresence());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gclid_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, pageNumber_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, adGroupAd_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, campaignLocationTarget_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, userList_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyword_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, keyword_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getKeywordInfo());
}
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.resources.ClickView)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.ClickView other = (com.google.ads.googleads.v17.resources.ClickView) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasGclid() != other.hasGclid()) return false;
if (hasGclid()) {
if (!getGclid()
.equals(other.getGclid())) return false;
}
if (hasAreaOfInterest() != other.hasAreaOfInterest()) return false;
if (hasAreaOfInterest()) {
if (!getAreaOfInterest()
.equals(other.getAreaOfInterest())) return false;
}
if (hasLocationOfPresence() != other.hasLocationOfPresence()) return false;
if (hasLocationOfPresence()) {
if (!getLocationOfPresence()
.equals(other.getLocationOfPresence())) return false;
}
if (hasPageNumber() != other.hasPageNumber()) return false;
if (hasPageNumber()) {
if (getPageNumber()
!= other.getPageNumber()) return false;
}
if (hasAdGroupAd() != other.hasAdGroupAd()) return false;
if (hasAdGroupAd()) {
if (!getAdGroupAd()
.equals(other.getAdGroupAd())) return false;
}
if (hasCampaignLocationTarget() != other.hasCampaignLocationTarget()) return false;
if (hasCampaignLocationTarget()) {
if (!getCampaignLocationTarget()
.equals(other.getCampaignLocationTarget())) return false;
}
if (hasUserList() != other.hasUserList()) return false;
if (hasUserList()) {
if (!getUserList()
.equals(other.getUserList())) return false;
}
if (!getKeyword()
.equals(other.getKeyword())) return false;
if (hasKeywordInfo() != other.hasKeywordInfo()) return false;
if (hasKeywordInfo()) {
if (!getKeywordInfo()
.equals(other.getKeywordInfo())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasGclid()) {
hash = (37 * hash) + GCLID_FIELD_NUMBER;
hash = (53 * hash) + getGclid().hashCode();
}
if (hasAreaOfInterest()) {
hash = (37 * hash) + AREA_OF_INTEREST_FIELD_NUMBER;
hash = (53 * hash) + getAreaOfInterest().hashCode();
}
if (hasLocationOfPresence()) {
hash = (37 * hash) + LOCATION_OF_PRESENCE_FIELD_NUMBER;
hash = (53 * hash) + getLocationOfPresence().hashCode();
}
if (hasPageNumber()) {
hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageNumber());
}
if (hasAdGroupAd()) {
hash = (37 * hash) + AD_GROUP_AD_FIELD_NUMBER;
hash = (53 * hash) + getAdGroupAd().hashCode();
}
if (hasCampaignLocationTarget()) {
hash = (37 * hash) + CAMPAIGN_LOCATION_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getCampaignLocationTarget().hashCode();
}
if (hasUserList()) {
hash = (37 * hash) + USER_LIST_FIELD_NUMBER;
hash = (53 * hash) + getUserList().hashCode();
}
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
if (hasKeywordInfo()) {
hash = (37 * hash) + KEYWORD_INFO_FIELD_NUMBER;
hash = (53 * hash) + getKeywordInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.ClickView parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ClickView 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.resources.ClickView parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ClickView 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.resources.ClickView parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.ClickView 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.resources.ClickView parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ClickView 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.resources.ClickView parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.ClickView 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.resources.ClickView 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.resources.ClickView 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.resources.ClickView prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A click view with metrics aggregated at each click level, including both
* valid and invalid clicks. For non-Search campaigns, metrics.clicks
* represents the number of valid and invalid interactions.
* Queries including ClickView must have a filter limiting the results to one
* day and can be requested for dates back to 90 days before the time of the
* request.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.ClickView}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.ClickView)
com.google.ads.googleads.v17.resources.ClickViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.ClickViewProto.internal_static_google_ads_googleads_v17_resources_ClickView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.ClickViewProto.internal_static_google_ads_googleads_v17_resources_ClickView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.ClickView.class, com.google.ads.googleads.v17.resources.ClickView.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.ClickView.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAreaOfInterestFieldBuilder();
getLocationOfPresenceFieldBuilder();
getKeywordInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
gclid_ = "";
areaOfInterest_ = null;
if (areaOfInterestBuilder_ != null) {
areaOfInterestBuilder_.dispose();
areaOfInterestBuilder_ = null;
}
locationOfPresence_ = null;
if (locationOfPresenceBuilder_ != null) {
locationOfPresenceBuilder_.dispose();
locationOfPresenceBuilder_ = null;
}
pageNumber_ = 0L;
adGroupAd_ = "";
campaignLocationTarget_ = "";
userList_ = "";
keyword_ = "";
keywordInfo_ = null;
if (keywordInfoBuilder_ != null) {
keywordInfoBuilder_.dispose();
keywordInfoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.ClickViewProto.internal_static_google_ads_googleads_v17_resources_ClickView_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ClickView getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.ClickView.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ClickView build() {
com.google.ads.googleads.v17.resources.ClickView result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.ClickView buildPartial() {
com.google.ads.googleads.v17.resources.ClickView result = new com.google.ads.googleads.v17.resources.ClickView(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.ClickView result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.gclid_ = gclid_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.areaOfInterest_ = areaOfInterestBuilder_ == null
? areaOfInterest_
: areaOfInterestBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.locationOfPresence_ = locationOfPresenceBuilder_ == null
? locationOfPresence_
: locationOfPresenceBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.pageNumber_ = pageNumber_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.adGroupAd_ = adGroupAd_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.campaignLocationTarget_ = campaignLocationTarget_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.userList_ = userList_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.keyword_ = keyword_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.keywordInfo_ = keywordInfoBuilder_ == null
? keywordInfo_
: keywordInfoBuilder_.build();
to_bitField0_ |= 0x00000080;
}
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.resources.ClickView) {
return mergeFrom((com.google.ads.googleads.v17.resources.ClickView)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.ClickView other) {
if (other == com.google.ads.googleads.v17.resources.ClickView.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasGclid()) {
gclid_ = other.gclid_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasAreaOfInterest()) {
mergeAreaOfInterest(other.getAreaOfInterest());
}
if (other.hasLocationOfPresence()) {
mergeLocationOfPresence(other.getLocationOfPresence());
}
if (other.hasPageNumber()) {
setPageNumber(other.getPageNumber());
}
if (other.hasAdGroupAd()) {
adGroupAd_ = other.adGroupAd_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasCampaignLocationTarget()) {
campaignLocationTarget_ = other.campaignLocationTarget_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasUserList()) {
userList_ = other.userList_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getKeyword().isEmpty()) {
keyword_ = other.keyword_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasKeywordInfo()) {
mergeKeywordInfo(other.getKeywordInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
input.readMessage(
getAreaOfInterestFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getLocationOfPresenceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 66: {
gclid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 66
case 72: {
pageNumber_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 72
case 82: {
adGroupAd_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 82
case 90: {
campaignLocationTarget_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 90
case 98: {
userList_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 98
case 106: {
keyword_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 106
case 114: {
input.readMessage(
getKeywordInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the click view.
* Click view resource names have the form:
*
* `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object gclid_ = "";
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the gclid field is set.
*/
public boolean hasGclid() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The gclid.
*/
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gclid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for gclid.
*/
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The gclid to set.
* @return This builder for chaining.
*/
public Builder setGclid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gclid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearGclid() {
gclid_ = getDefaultInstance().getGclid();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The Google Click ID.
*
*
* optional string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for gclid to set.
* @return This builder for chaining.
*/
public Builder setGclidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
gclid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.ClickLocation areaOfInterest_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder> areaOfInterestBuilder_;
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the areaOfInterest field is set.
*/
public boolean hasAreaOfInterest() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The areaOfInterest.
*/
public com.google.ads.googleads.v17.common.ClickLocation getAreaOfInterest() {
if (areaOfInterestBuilder_ == null) {
return areaOfInterest_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : areaOfInterest_;
} else {
return areaOfInterestBuilder_.getMessage();
}
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAreaOfInterest(com.google.ads.googleads.v17.common.ClickLocation value) {
if (areaOfInterestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
areaOfInterest_ = value;
} else {
areaOfInterestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAreaOfInterest(
com.google.ads.googleads.v17.common.ClickLocation.Builder builderForValue) {
if (areaOfInterestBuilder_ == null) {
areaOfInterest_ = builderForValue.build();
} else {
areaOfInterestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeAreaOfInterest(com.google.ads.googleads.v17.common.ClickLocation value) {
if (areaOfInterestBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
areaOfInterest_ != null &&
areaOfInterest_ != com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance()) {
getAreaOfInterestBuilder().mergeFrom(value);
} else {
areaOfInterest_ = value;
}
} else {
areaOfInterestBuilder_.mergeFrom(value);
}
if (areaOfInterest_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearAreaOfInterest() {
bitField0_ = (bitField0_ & ~0x00000004);
areaOfInterest_ = null;
if (areaOfInterestBuilder_ != null) {
areaOfInterestBuilder_.dispose();
areaOfInterestBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.ClickLocation.Builder getAreaOfInterestBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAreaOfInterestFieldBuilder().getBuilder();
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.ClickLocationOrBuilder getAreaOfInterestOrBuilder() {
if (areaOfInterestBuilder_ != null) {
return areaOfInterestBuilder_.getMessageOrBuilder();
} else {
return areaOfInterest_ == null ?
com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : areaOfInterest_;
}
}
/**
*
* Output only. The location criteria matching the area of interest associated
* with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation area_of_interest = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder>
getAreaOfInterestFieldBuilder() {
if (areaOfInterestBuilder_ == null) {
areaOfInterestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder>(
getAreaOfInterest(),
getParentForChildren(),
isClean());
areaOfInterest_ = null;
}
return areaOfInterestBuilder_;
}
private com.google.ads.googleads.v17.common.ClickLocation locationOfPresence_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder> locationOfPresenceBuilder_;
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationOfPresence field is set.
*/
public boolean hasLocationOfPresence() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationOfPresence.
*/
public com.google.ads.googleads.v17.common.ClickLocation getLocationOfPresence() {
if (locationOfPresenceBuilder_ == null) {
return locationOfPresence_ == null ? com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : locationOfPresence_;
} else {
return locationOfPresenceBuilder_.getMessage();
}
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocationOfPresence(com.google.ads.googleads.v17.common.ClickLocation value) {
if (locationOfPresenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
locationOfPresence_ = value;
} else {
locationOfPresenceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocationOfPresence(
com.google.ads.googleads.v17.common.ClickLocation.Builder builderForValue) {
if (locationOfPresenceBuilder_ == null) {
locationOfPresence_ = builderForValue.build();
} else {
locationOfPresenceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeLocationOfPresence(com.google.ads.googleads.v17.common.ClickLocation value) {
if (locationOfPresenceBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
locationOfPresence_ != null &&
locationOfPresence_ != com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance()) {
getLocationOfPresenceBuilder().mergeFrom(value);
} else {
locationOfPresence_ = value;
}
} else {
locationOfPresenceBuilder_.mergeFrom(value);
}
if (locationOfPresence_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLocationOfPresence() {
bitField0_ = (bitField0_ & ~0x00000008);
locationOfPresence_ = null;
if (locationOfPresenceBuilder_ != null) {
locationOfPresenceBuilder_.dispose();
locationOfPresenceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.ClickLocation.Builder getLocationOfPresenceBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLocationOfPresenceFieldBuilder().getBuilder();
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.ClickLocationOrBuilder getLocationOfPresenceOrBuilder() {
if (locationOfPresenceBuilder_ != null) {
return locationOfPresenceBuilder_.getMessageOrBuilder();
} else {
return locationOfPresence_ == null ?
com.google.ads.googleads.v17.common.ClickLocation.getDefaultInstance() : locationOfPresence_;
}
}
/**
*
* Output only. The location criteria matching the location of presence
* associated with the impression.
*
*
* .google.ads.googleads.v17.common.ClickLocation location_of_presence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder>
getLocationOfPresenceFieldBuilder() {
if (locationOfPresenceBuilder_ == null) {
locationOfPresenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ClickLocation, com.google.ads.googleads.v17.common.ClickLocation.Builder, com.google.ads.googleads.v17.common.ClickLocationOrBuilder>(
getLocationOfPresence(),
getParentForChildren(),
isClean());
locationOfPresence_ = null;
}
return locationOfPresenceBuilder_;
}
private long pageNumber_ ;
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the pageNumber field is set.
*/
@java.lang.Override
public boolean hasPageNumber() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The pageNumber.
*/
@java.lang.Override
public long getPageNumber() {
return pageNumber_;
}
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The pageNumber to set.
* @return This builder for chaining.
*/
public Builder setPageNumber(long value) {
pageNumber_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. Page number in search results where the ad was shown.
*
*
* optional int64 page_number = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearPageNumber() {
bitField0_ = (bitField0_ & ~0x00000010);
pageNumber_ = 0L;
onChanged();
return this;
}
private java.lang.Object adGroupAd_ = "";
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the adGroupAd field is set.
*/
public boolean hasAdGroupAd() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroupAd.
*/
public java.lang.String getAdGroupAd() {
java.lang.Object ref = adGroupAd_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroupAd_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroupAd.
*/
public com.google.protobuf.ByteString
getAdGroupAdBytes() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroupAd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The adGroupAd to set.
* @return This builder for chaining.
*/
public Builder setAdGroupAd(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adGroupAd_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAdGroupAd() {
adGroupAd_ = getDefaultInstance().getAdGroupAd();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Output only. The associated ad.
*
*
* optional string ad_group_ad = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for adGroupAd to set.
* @return This builder for chaining.
*/
public Builder setAdGroupAdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
adGroupAd_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object campaignLocationTarget_ = "";
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the campaignLocationTarget field is set.
*/
public boolean hasCampaignLocationTarget() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The campaignLocationTarget.
*/
public java.lang.String getCampaignLocationTarget() {
java.lang.Object ref = campaignLocationTarget_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaignLocationTarget_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for campaignLocationTarget.
*/
public com.google.protobuf.ByteString
getCampaignLocationTargetBytes() {
java.lang.Object ref = campaignLocationTarget_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaignLocationTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The campaignLocationTarget to set.
* @return This builder for chaining.
*/
public Builder setCampaignLocationTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
campaignLocationTarget_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearCampaignLocationTarget() {
campaignLocationTarget_ = getDefaultInstance().getCampaignLocationTarget();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Output only. The associated campaign location target, if one exists.
*
*
* optional string campaign_location_target = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for campaignLocationTarget to set.
* @return This builder for chaining.
*/
public Builder setCampaignLocationTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
campaignLocationTarget_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object userList_ = "";
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return Whether the userList field is set.
*/
public boolean hasUserList() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The userList.
*/
public java.lang.String getUserList() {
java.lang.Object ref = userList_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userList_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for userList.
*/
public com.google.protobuf.ByteString
getUserListBytes() {
java.lang.Object ref = userList_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userList_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The userList to set.
* @return This builder for chaining.
*/
public Builder setUserList(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userList_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearUserList() {
userList_ = getDefaultInstance().getUserList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Output only. The associated user list, if one exists.
*
*
* optional string user_list = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for userList to set.
* @return This builder for chaining.
*/
public Builder setUserListBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
userList_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object keyword_ = "";
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The keyword.
*/
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyword_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for keyword.
*/
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The keyword to set.
* @return This builder for chaining.
*/
public Builder setKeyword(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
keyword_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearKeyword() {
keyword_ = getDefaultInstance().getKeyword();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* Output only. The associated keyword, if one exists and the click
* corresponds to the SEARCH channel.
*
*
* string keyword = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for keyword to set.
* @return This builder for chaining.
*/
public Builder setKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
keyword_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.KeywordInfo keywordInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder> keywordInfoBuilder_;
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keywordInfo field is set.
*/
public boolean hasKeywordInfo() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keywordInfo.
*/
public com.google.ads.googleads.v17.common.KeywordInfo getKeywordInfo() {
if (keywordInfoBuilder_ == null) {
return keywordInfo_ == null ? com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance() : keywordInfo_;
} else {
return keywordInfoBuilder_.getMessage();
}
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeywordInfo(com.google.ads.googleads.v17.common.KeywordInfo value) {
if (keywordInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keywordInfo_ = value;
} else {
keywordInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeywordInfo(
com.google.ads.googleads.v17.common.KeywordInfo.Builder builderForValue) {
if (keywordInfoBuilder_ == null) {
keywordInfo_ = builderForValue.build();
} else {
keywordInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeKeywordInfo(com.google.ads.googleads.v17.common.KeywordInfo value) {
if (keywordInfoBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
keywordInfo_ != null &&
keywordInfo_ != com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance()) {
getKeywordInfoBuilder().mergeFrom(value);
} else {
keywordInfo_ = value;
}
} else {
keywordInfoBuilder_.mergeFrom(value);
}
if (keywordInfo_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearKeywordInfo() {
bitField0_ = (bitField0_ & ~0x00000200);
keywordInfo_ = null;
if (keywordInfoBuilder_ != null) {
keywordInfoBuilder_.dispose();
keywordInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.KeywordInfo.Builder getKeywordInfoBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getKeywordInfoFieldBuilder().getBuilder();
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.KeywordInfoOrBuilder getKeywordInfoOrBuilder() {
if (keywordInfoBuilder_ != null) {
return keywordInfoBuilder_.getMessageOrBuilder();
} else {
return keywordInfo_ == null ?
com.google.ads.googleads.v17.common.KeywordInfo.getDefaultInstance() : keywordInfo_;
}
}
/**
*
* Output only. Basic information about the associated keyword, if it exists.
*
*
* .google.ads.googleads.v17.common.KeywordInfo keyword_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder>
getKeywordInfoFieldBuilder() {
if (keywordInfoBuilder_ == null) {
keywordInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.KeywordInfo, com.google.ads.googleads.v17.common.KeywordInfo.Builder, com.google.ads.googleads.v17.common.KeywordInfoOrBuilder>(
getKeywordInfo(),
getParentForChildren(),
isClean());
keywordInfo_ = null;
}
return keywordInfoBuilder_;
}
@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.resources.ClickView)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.ClickView)
private static final com.google.ads.googleads.v17.resources.ClickView DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.ClickView();
}
public static com.google.ads.googleads.v17.resources.ClickView getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClickView 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.resources.ClickView getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy