com.google.ads.googleads.v16.resources.Recommendation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v16 Show documentation
Show all versions of google-ads-stubs-v16 Show documentation
Stubs for GAAPI version google-ads-stubs-v16
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v16/resources/recommendation.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v16.resources;
/**
*
* A recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation}
*/
public final class Recommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation)
RecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Recommendation.newBuilder() to construct.
private Recommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Recommendation() {
resourceName_ = "";
type_ = 0;
campaignBudget_ = "";
campaign_ = "";
adGroup_ = "";
campaigns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Recommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.class, com.google.ads.googleads.v16.resources.Recommendation.Builder.class);
}
public interface MerchantInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MerchantInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The Merchant Center account ID.
*
*
* int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
long getId();
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The name.
*/
java.lang.String getName();
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Output only. Whether the Merchant Center account is a Multi-Client
* account (MCA).
*
*
* bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The multiClient.
*/
boolean getMultiClient();
}
/**
*
* The Merchant Center account details.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MerchantInfo}
*/
public static final class MerchantInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MerchantInfo)
MerchantInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MerchantInfo.newBuilder() to construct.
private MerchantInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MerchantInfo() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MerchantInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.class, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
*
* Output only. The Merchant Center account ID.
*
*
* int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MULTI_CLIENT_FIELD_NUMBER = 3;
private boolean multiClient_ = false;
/**
*
* Output only. Whether the Merchant Center account is a Multi-Client
* account (MCA).
*
*
* bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The multiClient.
*/
@java.lang.Override
public boolean getMultiClient() {
return multiClient_;
}
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 (id_ != 0L) {
output.writeInt64(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (multiClient_ != false) {
output.writeBool(3, multiClient_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (multiClient_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, multiClient_);
}
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.v16.resources.Recommendation.MerchantInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo other = (com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo) obj;
if (getId()
!= other.getId()) return false;
if (!getName()
.equals(other.getName())) return false;
if (getMultiClient()
!= other.getMultiClient()) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MULTI_CLIENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMultiClient());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo 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.v16.resources.Recommendation.MerchantInfo 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;
}
/**
*
* The Merchant Center account details.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MerchantInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MerchantInfo)
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.class, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0L;
name_ = "";
multiClient_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MerchantInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo build() {
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result = new com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.multiClient_ = multiClient_;
}
}
@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.v16.resources.Recommendation.MerchantInfo) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getMultiClient() != false) {
setMultiClient(other.getMultiClient());
}
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 8: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
multiClient_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
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 id_ ;
/**
*
* Output only. The Merchant Center account ID.
*
*
* int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The Merchant Center account ID.
*
*
* int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The Merchant Center account ID.
*
*
* int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The name of the Merchant Center account.
*
*
* string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean multiClient_ ;
/**
*
* Output only. Whether the Merchant Center account is a Multi-Client
* account (MCA).
*
*
* bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The multiClient.
*/
@java.lang.Override
public boolean getMultiClient() {
return multiClient_;
}
/**
*
* Output only. Whether the Merchant Center account is a Multi-Client
* account (MCA).
*
*
* bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The multiClient to set.
* @return This builder for chaining.
*/
public Builder setMultiClient(boolean value) {
multiClient_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Whether the Merchant Center account is a Multi-Client
* account (MCA).
*
*
* bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearMultiClient() {
bitField0_ = (bitField0_ & ~0x00000004);
multiClient_ = false;
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.v16.resources.Recommendation.MerchantInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MerchantInfo)
private static final com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo();
}
public static com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MerchantInfo 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.v16.resources.Recommendation.MerchantInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecommendationImpactOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the baseMetrics field is set.
*/
boolean hasBaseMetrics();
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The baseMetrics.
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics();
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder();
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the potentialMetrics field is set.
*/
boolean hasPotentialMetrics();
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The potentialMetrics.
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics();
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder();
}
/**
*
* The impact of making the change as described in the recommendation.
* Some types of recommendations may not have impact information.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationImpact}
*/
public static final class RecommendationImpact extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)
RecommendationImpactOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecommendationImpact.newBuilder() to construct.
private RecommendationImpact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecommendationImpact() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecommendationImpact();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder.class);
}
private int bitField0_;
public static final int BASE_METRICS_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics baseMetrics_;
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the baseMetrics field is set.
*/
@java.lang.Override
public boolean hasBaseMetrics() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The baseMetrics.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics() {
return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_;
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() {
return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_;
}
public static final int POTENTIAL_METRICS_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potentialMetrics_;
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the potentialMetrics field is set.
*/
@java.lang.Override
public boolean hasPotentialMetrics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The potentialMetrics.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics() {
return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_;
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() {
return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseMetrics());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getPotentialMetrics());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseMetrics());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPotentialMetrics());
}
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.v16.resources.Recommendation.RecommendationImpact)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact other = (com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact) obj;
if (hasBaseMetrics() != other.hasBaseMetrics()) return false;
if (hasBaseMetrics()) {
if (!getBaseMetrics()
.equals(other.getBaseMetrics())) return false;
}
if (hasPotentialMetrics() != other.hasPotentialMetrics()) return false;
if (hasPotentialMetrics()) {
if (!getPotentialMetrics()
.equals(other.getPotentialMetrics())) 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 (hasBaseMetrics()) {
hash = (37 * hash) + BASE_METRICS_FIELD_NUMBER;
hash = (53 * hash) + getBaseMetrics().hashCode();
}
if (hasPotentialMetrics()) {
hash = (37 * hash) + POTENTIAL_METRICS_FIELD_NUMBER;
hash = (53 * hash) + getPotentialMetrics().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact 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;
}
/**
*
* The impact of making the change as described in the recommendation.
* Some types of recommendations may not have impact information.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationImpact}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseMetricsFieldBuilder();
getPotentialMetricsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
baseMetrics_ = null;
if (baseMetricsBuilder_ != null) {
baseMetricsBuilder_.dispose();
baseMetricsBuilder_ = null;
}
potentialMetrics_ = null;
if (potentialMetricsBuilder_ != null) {
potentialMetricsBuilder_.dispose();
potentialMetricsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationImpact_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact build() {
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.baseMetrics_ = baseMetricsBuilder_ == null
? baseMetrics_
: baseMetricsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.potentialMetrics_ = potentialMetricsBuilder_ == null
? potentialMetrics_
: potentialMetricsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.RecommendationImpact) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) return this;
if (other.hasBaseMetrics()) {
mergeBaseMetrics(other.getBaseMetrics());
}
if (other.hasPotentialMetrics()) {
mergePotentialMetrics(other.getPotentialMetrics());
}
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: {
input.readMessage(
getBaseMetricsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPotentialMetricsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics baseMetrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> baseMetricsBuilder_;
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the baseMetrics field is set.
*/
public boolean hasBaseMetrics() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The baseMetrics.
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getBaseMetrics() {
if (baseMetricsBuilder_ == null) {
return baseMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_;
} else {
return baseMetricsBuilder_.getMessage();
}
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBaseMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) {
if (baseMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseMetrics_ = value;
} else {
baseMetricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBaseMetrics(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder builderForValue) {
if (baseMetricsBuilder_ == null) {
baseMetrics_ = builderForValue.build();
} else {
baseMetricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeBaseMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) {
if (baseMetricsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseMetrics_ != null &&
baseMetrics_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) {
getBaseMetricsBuilder().mergeFrom(value);
} else {
baseMetrics_ = value;
}
} else {
baseMetricsBuilder_.mergeFrom(value);
}
if (baseMetrics_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearBaseMetrics() {
bitField0_ = (bitField0_ & ~0x00000001);
baseMetrics_ = null;
if (baseMetricsBuilder_ != null) {
baseMetricsBuilder_.dispose();
baseMetricsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder getBaseMetricsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseMetricsFieldBuilder().getBuilder();
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getBaseMetricsOrBuilder() {
if (baseMetricsBuilder_ != null) {
return baseMetricsBuilder_.getMessageOrBuilder();
} else {
return baseMetrics_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : baseMetrics_;
}
}
/**
*
* Output only. Base metrics at the time the recommendation was generated.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics base_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>
getBaseMetricsFieldBuilder() {
if (baseMetricsBuilder_ == null) {
baseMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>(
getBaseMetrics(),
getParentForChildren(),
isClean());
baseMetrics_ = null;
}
return baseMetricsBuilder_;
}
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potentialMetrics_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder> potentialMetricsBuilder_;
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the potentialMetrics field is set.
*/
public boolean hasPotentialMetrics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The potentialMetrics.
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getPotentialMetrics() {
if (potentialMetricsBuilder_ == null) {
return potentialMetrics_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_;
} else {
return potentialMetricsBuilder_.getMessage();
}
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPotentialMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) {
if (potentialMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
potentialMetrics_ = value;
} else {
potentialMetricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPotentialMetrics(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder builderForValue) {
if (potentialMetricsBuilder_ == null) {
potentialMetrics_ = builderForValue.build();
} else {
potentialMetricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergePotentialMetrics(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics value) {
if (potentialMetricsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
potentialMetrics_ != null &&
potentialMetrics_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) {
getPotentialMetricsBuilder().mergeFrom(value);
} else {
potentialMetrics_ = value;
}
} else {
potentialMetricsBuilder_.mergeFrom(value);
}
if (potentialMetrics_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearPotentialMetrics() {
bitField0_ = (bitField0_ & ~0x00000002);
potentialMetrics_ = null;
if (potentialMetricsBuilder_ != null) {
potentialMetricsBuilder_.dispose();
potentialMetricsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder getPotentialMetricsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPotentialMetricsFieldBuilder().getBuilder();
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder getPotentialMetricsOrBuilder() {
if (potentialMetricsBuilder_ != null) {
return potentialMetricsBuilder_.getMessageOrBuilder();
} else {
return potentialMetrics_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance() : potentialMetrics_;
}
}
/**
*
* Output only. Estimated metrics if the recommendation is applied.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics potential_metrics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>
getPotentialMetricsFieldBuilder() {
if (potentialMetricsBuilder_ == null) {
potentialMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder>(
getPotentialMetrics(),
getParentForChildren(),
isClean());
potentialMetrics_ = null;
}
return potentialMetricsBuilder_;
}
@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.v16.resources.Recommendation.RecommendationImpact)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RecommendationImpact)
private static final com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact();
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecommendationImpact 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.v16.resources.Recommendation.RecommendationImpact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecommendationMetricsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impressions field is set.
*/
boolean hasImpressions();
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impressions.
*/
double getImpressions();
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the clicks field is set.
*/
boolean hasClicks();
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The clicks.
*/
double getClicks();
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the costMicros field is set.
*/
boolean hasCostMicros();
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The costMicros.
*/
long getCostMicros();
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversions field is set.
*/
boolean hasConversions();
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversions.
*/
double getConversions();
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionsValue field is set.
*/
boolean hasConversionsValue();
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionsValue.
*/
double getConversionsValue();
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the videoViews field is set.
*/
boolean hasVideoViews();
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The videoViews.
*/
double getVideoViews();
}
/**
*
* Weekly account performance metrics. For some recommendation types, these
* are averaged over the past 90-day period and hence can be fractional.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics}
*/
public static final class RecommendationMetrics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)
RecommendationMetricsOrBuilder {
private static final long serialVersionUID = 0L;
// Use RecommendationMetrics.newBuilder() to construct.
private RecommendationMetrics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RecommendationMetrics() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RecommendationMetrics();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder.class);
}
private int bitField0_;
public static final int IMPRESSIONS_FIELD_NUMBER = 6;
private double impressions_ = 0D;
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impressions field is set.
*/
@java.lang.Override
public boolean hasImpressions() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impressions.
*/
@java.lang.Override
public double getImpressions() {
return impressions_;
}
public static final int CLICKS_FIELD_NUMBER = 7;
private double clicks_ = 0D;
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the clicks field is set.
*/
@java.lang.Override
public boolean hasClicks() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The clicks.
*/
@java.lang.Override
public double getClicks() {
return clicks_;
}
public static final int COST_MICROS_FIELD_NUMBER = 8;
private long costMicros_ = 0L;
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the costMicros field is set.
*/
@java.lang.Override
public boolean hasCostMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The costMicros.
*/
@java.lang.Override
public long getCostMicros() {
return costMicros_;
}
public static final int CONVERSIONS_FIELD_NUMBER = 9;
private double conversions_ = 0D;
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversions field is set.
*/
@java.lang.Override
public boolean hasConversions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversions.
*/
@java.lang.Override
public double getConversions() {
return conversions_;
}
public static final int CONVERSIONS_VALUE_FIELD_NUMBER = 11;
private double conversionsValue_ = 0D;
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionsValue field is set.
*/
@java.lang.Override
public boolean hasConversionsValue() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionsValue.
*/
@java.lang.Override
public double getConversionsValue() {
return conversionsValue_;
}
public static final int VIDEO_VIEWS_FIELD_NUMBER = 10;
private double videoViews_ = 0D;
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the videoViews field is set.
*/
@java.lang.Override
public boolean hasVideoViews() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The videoViews.
*/
@java.lang.Override
public double getVideoViews() {
return videoViews_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(6, impressions_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(7, clicks_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(8, costMicros_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(9, conversions_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeDouble(10, videoViews_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeDouble(11, conversionsValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, impressions_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, clicks_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, costMicros_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, conversions_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, videoViews_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(11, conversionsValue_);
}
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.v16.resources.Recommendation.RecommendationMetrics)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics other = (com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics) obj;
if (hasImpressions() != other.hasImpressions()) return false;
if (hasImpressions()) {
if (java.lang.Double.doubleToLongBits(getImpressions())
!= java.lang.Double.doubleToLongBits(
other.getImpressions())) return false;
}
if (hasClicks() != other.hasClicks()) return false;
if (hasClicks()) {
if (java.lang.Double.doubleToLongBits(getClicks())
!= java.lang.Double.doubleToLongBits(
other.getClicks())) return false;
}
if (hasCostMicros() != other.hasCostMicros()) return false;
if (hasCostMicros()) {
if (getCostMicros()
!= other.getCostMicros()) return false;
}
if (hasConversions() != other.hasConversions()) return false;
if (hasConversions()) {
if (java.lang.Double.doubleToLongBits(getConversions())
!= java.lang.Double.doubleToLongBits(
other.getConversions())) return false;
}
if (hasConversionsValue() != other.hasConversionsValue()) return false;
if (hasConversionsValue()) {
if (java.lang.Double.doubleToLongBits(getConversionsValue())
!= java.lang.Double.doubleToLongBits(
other.getConversionsValue())) return false;
}
if (hasVideoViews() != other.hasVideoViews()) return false;
if (hasVideoViews()) {
if (java.lang.Double.doubleToLongBits(getVideoViews())
!= java.lang.Double.doubleToLongBits(
other.getVideoViews())) 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 (hasImpressions()) {
hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getImpressions()));
}
if (hasClicks()) {
hash = (37 * hash) + CLICKS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getClicks()));
}
if (hasCostMicros()) {
hash = (37 * hash) + COST_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCostMicros());
}
if (hasConversions()) {
hash = (37 * hash) + CONVERSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getConversions()));
}
if (hasConversionsValue()) {
hash = (37 * hash) + CONVERSIONS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getConversionsValue()));
}
if (hasVideoViews()) {
hash = (37 * hash) + VIDEO_VIEWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVideoViews()));
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics 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;
}
/**
*
* Weekly account performance metrics. For some recommendation types, these
* are averaged over the past 90-day period and hence can be fractional.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetricsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.class, com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
impressions_ = 0D;
clicks_ = 0D;
costMicros_ = 0L;
conversions_ = 0D;
conversionsValue_ = 0D;
videoViews_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RecommendationMetrics_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics build() {
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.impressions_ = impressions_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.clicks_ = clicks_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.costMicros_ = costMicros_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.conversions_ = conversions_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.conversionsValue_ = conversionsValue_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.videoViews_ = videoViews_;
to_bitField0_ |= 0x00000020;
}
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.v16.resources.Recommendation.RecommendationMetrics) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics.getDefaultInstance()) return this;
if (other.hasImpressions()) {
setImpressions(other.getImpressions());
}
if (other.hasClicks()) {
setClicks(other.getClicks());
}
if (other.hasCostMicros()) {
setCostMicros(other.getCostMicros());
}
if (other.hasConversions()) {
setConversions(other.getConversions());
}
if (other.hasConversionsValue()) {
setConversionsValue(other.getConversionsValue());
}
if (other.hasVideoViews()) {
setVideoViews(other.getVideoViews());
}
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 49: {
impressions_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 49
case 57: {
clicks_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 57
case 64: {
costMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 64
case 73: {
conversions_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 73
case 81: {
videoViews_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 81
case 89: {
conversionsValue_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 89
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 double impressions_ ;
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impressions field is set.
*/
@java.lang.Override
public boolean hasImpressions() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impressions.
*/
@java.lang.Override
public double getImpressions() {
return impressions_;
}
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The impressions to set.
* @return This builder for chaining.
*/
public Builder setImpressions(double value) {
impressions_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Number of ad impressions.
*
*
* optional double impressions = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearImpressions() {
bitField0_ = (bitField0_ & ~0x00000001);
impressions_ = 0D;
onChanged();
return this;
}
private double clicks_ ;
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the clicks field is set.
*/
@java.lang.Override
public boolean hasClicks() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The clicks.
*/
@java.lang.Override
public double getClicks() {
return clicks_;
}
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The clicks to set.
* @return This builder for chaining.
*/
public Builder setClicks(double value) {
clicks_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Number of ad clicks.
*
*
* optional double clicks = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearClicks() {
bitField0_ = (bitField0_ & ~0x00000002);
clicks_ = 0D;
onChanged();
return this;
}
private long costMicros_ ;
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the costMicros field is set.
*/
@java.lang.Override
public boolean hasCostMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The costMicros.
*/
@java.lang.Override
public long getCostMicros() {
return costMicros_;
}
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The costMicros to set.
* @return This builder for chaining.
*/
public Builder setCostMicros(long value) {
costMicros_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Cost (in micros) for advertising, in the local currency for
* the account.
*
*
* optional int64 cost_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCostMicros() {
bitField0_ = (bitField0_ & ~0x00000004);
costMicros_ = 0L;
onChanged();
return this;
}
private double conversions_ ;
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversions field is set.
*/
@java.lang.Override
public boolean hasConversions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversions.
*/
@java.lang.Override
public double getConversions() {
return conversions_;
}
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The conversions to set.
* @return This builder for chaining.
*/
public Builder setConversions(double value) {
conversions_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Number of conversions.
*
*
* optional double conversions = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearConversions() {
bitField0_ = (bitField0_ & ~0x00000008);
conversions_ = 0D;
onChanged();
return this;
}
private double conversionsValue_ ;
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the conversionsValue field is set.
*/
@java.lang.Override
public boolean hasConversionsValue() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversionsValue.
*/
@java.lang.Override
public double getConversionsValue() {
return conversionsValue_;
}
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The conversionsValue to set.
* @return This builder for chaining.
*/
public Builder setConversionsValue(double value) {
conversionsValue_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. Sum of the conversion value of the conversions.
*
*
* optional double conversions_value = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearConversionsValue() {
bitField0_ = (bitField0_ & ~0x00000010);
conversionsValue_ = 0D;
onChanged();
return this;
}
private double videoViews_ ;
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the videoViews field is set.
*/
@java.lang.Override
public boolean hasVideoViews() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The videoViews.
*/
@java.lang.Override
public double getVideoViews() {
return videoViews_;
}
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The videoViews to set.
* @return This builder for chaining.
*/
public Builder setVideoViews(double value) {
videoViews_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. Number of video views for a video ad campaign.
*
*
* optional double video_views = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearVideoViews() {
bitField0_ = (bitField0_ & ~0x00000020);
videoViews_ = 0D;
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.v16.resources.Recommendation.RecommendationMetrics)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics)
private static final com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics();
}
public static com.google.ads.googleads.v16.resources.Recommendation.RecommendationMetrics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RecommendationMetrics 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.v16.resources.Recommendation.RecommendationMetrics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CampaignBudgetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentBudgetAmountMicros field is set.
*/
boolean hasCurrentBudgetAmountMicros();
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentBudgetAmountMicros.
*/
long getCurrentBudgetAmountMicros();
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
boolean hasRecommendedBudgetAmountMicros();
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
long getRecommendedBudgetAmountMicros();
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getBudgetOptionsList();
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index);
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getBudgetOptionsCount();
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>
getBudgetOptionsOrBuilderList();
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder(
int index);
}
/**
*
* The budget recommendation for budget constrained campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation}
*/
public static final class CampaignBudgetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)
CampaignBudgetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignBudgetRecommendation.newBuilder() to construct.
private CampaignBudgetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignBudgetRecommendation() {
budgetOptions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CampaignBudgetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder.class);
}
public interface CampaignBudgetRecommendationOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetAmountMicros field is set.
*/
boolean hasBudgetAmountMicros();
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetAmountMicros.
*/
long getBudgetAmountMicros();
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
boolean hasImpact();
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact();
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder();
}
/**
*
* The impact estimates for a given budget amount.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption}
*/
public static final class CampaignBudgetRecommendationOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)
CampaignBudgetRecommendationOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignBudgetRecommendationOption.newBuilder() to construct.
private CampaignBudgetRecommendationOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignBudgetRecommendationOption() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CampaignBudgetRecommendationOption();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class);
}
private int bitField0_;
public static final int BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 3;
private long budgetAmountMicros_ = 0L;
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetAmountMicros.
*/
@java.lang.Override
public long getBudgetAmountMicros() {
return budgetAmountMicros_;
}
public static final int IMPACT_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_;
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
@java.lang.Override
public boolean hasImpact() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getImpact());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(3, budgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getImpact());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, budgetAmountMicros_);
}
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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other = (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) obj;
if (hasBudgetAmountMicros() != other.hasBudgetAmountMicros()) return false;
if (hasBudgetAmountMicros()) {
if (getBudgetAmountMicros()
!= other.getBudgetAmountMicros()) return false;
}
if (hasImpact() != other.hasImpact()) return false;
if (hasImpact()) {
if (!getImpact()
.equals(other.getImpact())) 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 (hasBudgetAmountMicros()) {
hash = (37 * hash) + BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBudgetAmountMicros());
}
if (hasImpact()) {
hash = (37 * hash) + IMPACT_FIELD_NUMBER;
hash = (53 * hash) + getImpact().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption 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;
}
/**
*
* The impact estimates for a given budget amount.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getImpactFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
budgetAmountMicros_ = 0L;
impact_ = null;
if (impactBuilder_ != null) {
impactBuilder_.dispose();
impactBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_CampaignBudgetRecommendationOption_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption build() {
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.budgetAmountMicros_ = budgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.impact_ = impactBuilder_ == null
? impact_
: impactBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance()) return this;
if (other.hasBudgetAmountMicros()) {
setBudgetAmountMicros(other.getBudgetAmountMicros());
}
if (other.hasImpact()) {
mergeImpact(other.getImpact());
}
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 18: {
input.readMessage(
getImpactFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
budgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 24
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 budgetAmountMicros_ ;
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetAmountMicros.
*/
@java.lang.Override
public long getBudgetAmountMicros() {
return budgetAmountMicros_;
}
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The budgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setBudgetAmountMicros(long value) {
budgetAmountMicros_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The budget amount for this option.
*
*
* optional int64 budget_amount_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
budgetAmountMicros_ = 0L;
onChanged();
return this;
}
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_;
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
public boolean hasImpact() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() {
if (impactBuilder_ == null) {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
} else {
return impactBuilder_.getMessage();
}
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) {
if (impactBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
impact_ = value;
} else {
impactBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImpact(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder builderForValue) {
if (impactBuilder_ == null) {
impact_ = builderForValue.build();
} else {
impactBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) {
if (impactBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
impact_ != null &&
impact_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) {
getImpactBuilder().mergeFrom(value);
} else {
impact_ = value;
}
} else {
impactBuilder_.mergeFrom(value);
}
if (impact_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearImpact() {
bitField0_ = (bitField0_ & ~0x00000002);
impact_ = null;
if (impactBuilder_ != null) {
impactBuilder_.dispose();
impactBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getImpactFieldBuilder().getBuilder();
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() {
if (impactBuilder_ != null) {
return impactBuilder_.getMessageOrBuilder();
} else {
return impact_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
}
/**
*
* Output only. The impact estimate if budget is changed to amount
* specified in this option.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>
getImpactFieldBuilder() {
if (impactBuilder_ == null) {
impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>(
getImpact(),
getParentForChildren(),
isClean());
impact_ = null;
}
return impactBuilder_;
}
@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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption)
private static final com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption();
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignBudgetRecommendationOption 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.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int CURRENT_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 7;
private long currentBudgetAmountMicros_ = 0L;
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasCurrentBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentBudgetAmountMicros.
*/
@java.lang.Override
public long getCurrentBudgetAmountMicros() {
return currentBudgetAmountMicros_;
}
public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 8;
private long recommendedBudgetAmountMicros_ = 0L;
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
public static final int BUDGET_OPTIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List budgetOptions_;
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getBudgetOptionsList() {
return budgetOptions_;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>
getBudgetOptionsOrBuilderList() {
return budgetOptions_;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getBudgetOptionsCount() {
return budgetOptions_.size();
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index) {
return budgetOptions_.get(index);
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder(
int index) {
return budgetOptions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < budgetOptions_.size(); i++) {
output.writeMessage(3, budgetOptions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(7, currentBudgetAmountMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(8, recommendedBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < budgetOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, budgetOptions_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, currentBudgetAmountMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, recommendedBudgetAmountMicros_);
}
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.v16.resources.Recommendation.CampaignBudgetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation) obj;
if (hasCurrentBudgetAmountMicros() != other.hasCurrentBudgetAmountMicros()) return false;
if (hasCurrentBudgetAmountMicros()) {
if (getCurrentBudgetAmountMicros()
!= other.getCurrentBudgetAmountMicros()) return false;
}
if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false;
if (hasRecommendedBudgetAmountMicros()) {
if (getRecommendedBudgetAmountMicros()
!= other.getRecommendedBudgetAmountMicros()) return false;
}
if (!getBudgetOptionsList()
.equals(other.getBudgetOptionsList())) 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 (hasCurrentBudgetAmountMicros()) {
hash = (37 * hash) + CURRENT_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentBudgetAmountMicros());
}
if (hasRecommendedBudgetAmountMicros()) {
hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRecommendedBudgetAmountMicros());
}
if (getBudgetOptionsCount() > 0) {
hash = (37 * hash) + BUDGET_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getBudgetOptionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation 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;
}
/**
*
* The budget recommendation for budget constrained campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currentBudgetAmountMicros_ = 0L;
recommendedBudgetAmountMicros_ = 0L;
if (budgetOptionsBuilder_ == null) {
budgetOptions_ = java.util.Collections.emptyList();
} else {
budgetOptions_ = null;
budgetOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CampaignBudgetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result) {
if (budgetOptionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
budgetOptions_ = java.util.Collections.unmodifiableList(budgetOptions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.budgetOptions_ = budgetOptions_;
} else {
result.budgetOptions_ = budgetOptionsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currentBudgetAmountMicros_ = currentBudgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_;
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.CampaignBudgetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) return this;
if (other.hasCurrentBudgetAmountMicros()) {
setCurrentBudgetAmountMicros(other.getCurrentBudgetAmountMicros());
}
if (other.hasRecommendedBudgetAmountMicros()) {
setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros());
}
if (budgetOptionsBuilder_ == null) {
if (!other.budgetOptions_.isEmpty()) {
if (budgetOptions_.isEmpty()) {
budgetOptions_ = other.budgetOptions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureBudgetOptionsIsMutable();
budgetOptions_.addAll(other.budgetOptions_);
}
onChanged();
}
} else {
if (!other.budgetOptions_.isEmpty()) {
if (budgetOptionsBuilder_.isEmpty()) {
budgetOptionsBuilder_.dispose();
budgetOptionsBuilder_ = null;
budgetOptions_ = other.budgetOptions_;
bitField0_ = (bitField0_ & ~0x00000004);
budgetOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBudgetOptionsFieldBuilder() : null;
} else {
budgetOptionsBuilder_.addAllMessages(other.budgetOptions_);
}
}
}
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 26: {
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption m =
input.readMessage(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.parser(),
extensionRegistry);
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
budgetOptions_.add(m);
} else {
budgetOptionsBuilder_.addMessage(m);
}
break;
} // case 26
case 56: {
currentBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 56
case 64: {
recommendedBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 64
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 currentBudgetAmountMicros_ ;
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasCurrentBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentBudgetAmountMicros.
*/
@java.lang.Override
public long getCurrentBudgetAmountMicros() {
return currentBudgetAmountMicros_;
}
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The currentBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setCurrentBudgetAmountMicros(long value) {
currentBudgetAmountMicros_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The current budget amount in micros.
*
*
* optional int64 current_budget_amount_micros = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCurrentBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
currentBudgetAmountMicros_ = 0L;
onChanged();
return this;
}
private long recommendedBudgetAmountMicros_ ;
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRecommendedBudgetAmountMicros(long value) {
recommendedBudgetAmountMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommended budget amount in micros.
*
*
* optional int64 recommended_budget_amount_micros = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedBudgetAmountMicros_ = 0L;
onChanged();
return this;
}
private java.util.List budgetOptions_ =
java.util.Collections.emptyList();
private void ensureBudgetOptionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
budgetOptions_ = new java.util.ArrayList(budgetOptions_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder> budgetOptionsBuilder_;
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getBudgetOptionsList() {
if (budgetOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(budgetOptions_);
} else {
return budgetOptionsBuilder_.getMessageList();
}
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getBudgetOptionsCount() {
if (budgetOptionsBuilder_ == null) {
return budgetOptions_.size();
} else {
return budgetOptionsBuilder_.getCount();
}
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption getBudgetOptions(int index) {
if (budgetOptionsBuilder_ == null) {
return budgetOptions_.get(index);
} else {
return budgetOptionsBuilder_.getMessage(index);
}
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBudgetOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) {
if (budgetOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBudgetOptionsIsMutable();
budgetOptions_.set(index, value);
onChanged();
} else {
budgetOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBudgetOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) {
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
budgetOptions_.set(index, builderForValue.build());
onChanged();
} else {
budgetOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addBudgetOptions(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) {
if (budgetOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBudgetOptionsIsMutable();
budgetOptions_.add(value);
onChanged();
} else {
budgetOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addBudgetOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption value) {
if (budgetOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBudgetOptionsIsMutable();
budgetOptions_.add(index, value);
onChanged();
} else {
budgetOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addBudgetOptions(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) {
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
budgetOptions_.add(builderForValue.build());
onChanged();
} else {
budgetOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addBudgetOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder builderForValue) {
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
budgetOptions_.add(index, builderForValue.build());
onChanged();
} else {
budgetOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllBudgetOptions(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption> values) {
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, budgetOptions_);
onChanged();
} else {
budgetOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearBudgetOptions() {
if (budgetOptionsBuilder_ == null) {
budgetOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
budgetOptionsBuilder_.clear();
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeBudgetOptions(int index) {
if (budgetOptionsBuilder_ == null) {
ensureBudgetOptionsIsMutable();
budgetOptions_.remove(index);
onChanged();
} else {
budgetOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder getBudgetOptionsBuilder(
int index) {
return getBudgetOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder getBudgetOptionsOrBuilder(
int index) {
if (budgetOptionsBuilder_ == null) {
return budgetOptions_.get(index); } else {
return budgetOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>
getBudgetOptionsOrBuilderList() {
if (budgetOptionsBuilder_ != null) {
return budgetOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(budgetOptions_);
}
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder() {
return getBudgetOptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance());
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder addBudgetOptionsBuilder(
int index) {
return getBudgetOptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.getDefaultInstance());
}
/**
*
* Output only. The budget amounts and associated impact estimates for some
* values of possible budget amounts.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption budget_options = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getBudgetOptionsBuilderList() {
return getBudgetOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>
getBudgetOptionsFieldBuilder() {
if (budgetOptionsBuilder_ == null) {
budgetOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOptionOrBuilder>(
budgetOptions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
budgetOptions_ = null;
}
return budgetOptionsBuilder_;
}
@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.v16.resources.Recommendation.CampaignBudgetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignBudgetRecommendation 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.v16.resources.Recommendation.CampaignBudgetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeywordRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
boolean hasKeyword();
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
com.google.ads.googleads.v16.common.KeywordInfo getKeyword();
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder();
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getSearchTermsList();
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index);
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getSearchTermsCount();
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>
getSearchTermsOrBuilderList();
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder(
int index);
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedCpcBidMicros field is set.
*/
boolean hasRecommendedCpcBidMicros();
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedCpcBidMicros.
*/
long getRecommendedCpcBidMicros();
}
/**
*
* The keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation}
*/
public static final class KeywordRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)
KeywordRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeywordRecommendation.newBuilder() to construct.
private KeywordRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeywordRecommendation() {
searchTerms_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeywordRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder.class);
}
public interface SearchTermOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The text.
*/
java.lang.String getText();
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for text.
*/
com.google.protobuf.ByteString
getTextBytes();
/**
*
* Output only. Estimated number of historical weekly searches for this
* search term.
*
*
* int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedWeeklySearchCount.
*/
long getEstimatedWeeklySearchCount();
}
/**
*
* Information about a search term as related to a keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm}
*/
public static final class SearchTerm extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)
SearchTermOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchTerm.newBuilder() to construct.
private SearchTerm(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchTerm() {
text_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchTerm();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder.class);
}
public static final int TEXT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object text_ = "";
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
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();
text_ = s;
return s;
}
}
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ESTIMATED_WEEKLY_SEARCH_COUNT_FIELD_NUMBER = 2;
private long estimatedWeeklySearchCount_ = 0L;
/**
*
* Output only. Estimated number of historical weekly searches for this
* search term.
*
*
* int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedWeeklySearchCount.
*/
@java.lang.Override
public long getEstimatedWeeklySearchCount() {
return estimatedWeeklySearchCount_;
}
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(text_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, text_);
}
if (estimatedWeeklySearchCount_ != 0L) {
output.writeInt64(2, estimatedWeeklySearchCount_);
}
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(text_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, text_);
}
if (estimatedWeeklySearchCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, estimatedWeeklySearchCount_);
}
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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) obj;
if (!getText()
.equals(other.getText())) return false;
if (getEstimatedWeeklySearchCount()
!= other.getEstimatedWeeklySearchCount()) 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) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
hash = (37 * hash) + ESTIMATED_WEEKLY_SEARCH_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEstimatedWeeklySearchCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm 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;
}
/**
*
* Information about a search term as related to a keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
text_ = "";
estimatedWeeklySearchCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_SearchTerm_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm build() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.text_ = text_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.estimatedWeeklySearchCount_ = estimatedWeeklySearchCount_;
}
}
@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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance()) return this;
if (!other.getText().isEmpty()) {
text_ = other.text_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getEstimatedWeeklySearchCount() != 0L) {
setEstimatedWeeklySearchCount(other.getEstimatedWeeklySearchCount());
}
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: {
text_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
estimatedWeeklySearchCount_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 text_ = "";
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
text_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The text of the search term.
*
*
* string text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
text_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long estimatedWeeklySearchCount_ ;
/**
*
* Output only. Estimated number of historical weekly searches for this
* search term.
*
*
* int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The estimatedWeeklySearchCount.
*/
@java.lang.Override
public long getEstimatedWeeklySearchCount() {
return estimatedWeeklySearchCount_;
}
/**
*
* Output only. Estimated number of historical weekly searches for this
* search term.
*
*
* int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The estimatedWeeklySearchCount to set.
* @return This builder for chaining.
*/
public Builder setEstimatedWeeklySearchCount(long value) {
estimatedWeeklySearchCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Estimated number of historical weekly searches for this
* search term.
*
*
* int64 estimated_weekly_search_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearEstimatedWeeklySearchCount() {
bitField0_ = (bitField0_ & ~0x00000002);
estimatedWeeklySearchCount_ = 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm)
private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm();
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchTerm 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.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int KEYWORD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.common.KeywordInfo keyword_;
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
public static final int SEARCH_TERMS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List searchTerms_;
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getSearchTermsList() {
return searchTerms_;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>
getSearchTermsOrBuilderList() {
return searchTerms_;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getSearchTermsCount() {
return searchTerms_.size();
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index) {
return searchTerms_.get(index);
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder(
int index) {
return searchTerms_.get(index);
}
public static final int RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER = 3;
private long recommendedCpcBidMicros_ = 0L;
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedCpcBidMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedCpcBidMicros.
*/
@java.lang.Override
public long getRecommendedCpcBidMicros() {
return recommendedCpcBidMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getKeyword());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(3, recommendedCpcBidMicros_);
}
for (int i = 0; i < searchTerms_.size(); i++) {
output.writeMessage(4, searchTerms_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKeyword());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, recommendedCpcBidMicros_);
}
for (int i = 0; i < searchTerms_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, searchTerms_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation) obj;
if (hasKeyword() != other.hasKeyword()) return false;
if (hasKeyword()) {
if (!getKeyword()
.equals(other.getKeyword())) return false;
}
if (!getSearchTermsList()
.equals(other.getSearchTermsList())) return false;
if (hasRecommendedCpcBidMicros() != other.hasRecommendedCpcBidMicros()) return false;
if (hasRecommendedCpcBidMicros()) {
if (getRecommendedCpcBidMicros()
!= other.getRecommendedCpcBidMicros()) 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 (hasKeyword()) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
}
if (getSearchTermsCount() > 0) {
hash = (37 * hash) + SEARCH_TERMS_FIELD_NUMBER;
hash = (53 * hash) + getSearchTermsList().hashCode();
}
if (hasRecommendedCpcBidMicros()) {
hash = (37 * hash) + RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRecommendedCpcBidMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation 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;
}
/**
*
* The keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeywordFieldBuilder();
getSearchTermsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
keyword_ = null;
if (keywordBuilder_ != null) {
keywordBuilder_.dispose();
keywordBuilder_ = null;
}
if (searchTermsBuilder_ == null) {
searchTerms_ = java.util.Collections.emptyList();
} else {
searchTerms_ = null;
searchTermsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
recommendedCpcBidMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result) {
if (searchTermsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
searchTerms_ = java.util.Collections.unmodifiableList(searchTerms_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.searchTerms_ = searchTerms_;
} else {
result.searchTerms_ = searchTermsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.keyword_ = keywordBuilder_ == null
? keyword_
: keywordBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.recommendedCpcBidMicros_ = recommendedCpcBidMicros_;
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.KeywordRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.getDefaultInstance()) return this;
if (other.hasKeyword()) {
mergeKeyword(other.getKeyword());
}
if (searchTermsBuilder_ == null) {
if (!other.searchTerms_.isEmpty()) {
if (searchTerms_.isEmpty()) {
searchTerms_ = other.searchTerms_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSearchTermsIsMutable();
searchTerms_.addAll(other.searchTerms_);
}
onChanged();
}
} else {
if (!other.searchTerms_.isEmpty()) {
if (searchTermsBuilder_.isEmpty()) {
searchTermsBuilder_.dispose();
searchTermsBuilder_ = null;
searchTerms_ = other.searchTerms_;
bitField0_ = (bitField0_ & ~0x00000002);
searchTermsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSearchTermsFieldBuilder() : null;
} else {
searchTermsBuilder_.addAllMessages(other.searchTerms_);
}
}
}
if (other.hasRecommendedCpcBidMicros()) {
setRecommendedCpcBidMicros(other.getRecommendedCpcBidMicros());
}
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: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 24: {
recommendedCpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm m =
input.readMessage(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.parser(),
extensionRegistry);
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
searchTerms_.add(m);
} else {
searchTermsBuilder_.addMessage(m);
}
break;
} // case 34
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 com.google.ads.googleads.v16.common.KeywordInfo keyword_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_;
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
public boolean hasKeyword() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() {
if (keywordBuilder_ == null) {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
} else {
return keywordBuilder_.getMessage();
}
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keyword_ = value;
} else {
keywordBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(
com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
keyword_ = builderForValue.build();
} else {
keywordBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
keyword_ != null &&
keyword_ != com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()) {
getKeywordBuilder().mergeFrom(value);
} else {
keyword_ = value;
}
} else {
keywordBuilder_.mergeFrom(value);
}
if (keyword_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearKeyword() {
bitField0_ = (bitField0_ & ~0x00000001);
keyword_ = null;
if (keywordBuilder_ != null) {
keywordBuilder_.dispose();
keywordBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getKeywordFieldBuilder().getBuilder();
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if (keywordBuilder_ != null) {
return keywordBuilder_.getMessageOrBuilder();
} else {
return keyword_ == null ?
com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
}
/**
*
* Output only. The recommended keyword.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>(
getKeyword(),
getParentForChildren(),
isClean());
keyword_ = null;
}
return keywordBuilder_;
}
private java.util.List searchTerms_ =
java.util.Collections.emptyList();
private void ensureSearchTermsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
searchTerms_ = new java.util.ArrayList(searchTerms_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder> searchTermsBuilder_;
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getSearchTermsList() {
if (searchTermsBuilder_ == null) {
return java.util.Collections.unmodifiableList(searchTerms_);
} else {
return searchTermsBuilder_.getMessageList();
}
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getSearchTermsCount() {
if (searchTermsBuilder_ == null) {
return searchTerms_.size();
} else {
return searchTermsBuilder_.getCount();
}
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm getSearchTerms(int index) {
if (searchTermsBuilder_ == null) {
return searchTerms_.get(index);
} else {
return searchTermsBuilder_.getMessage(index);
}
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setSearchTerms(
int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) {
if (searchTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchTermsIsMutable();
searchTerms_.set(index, value);
onChanged();
} else {
searchTermsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setSearchTerms(
int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) {
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
searchTerms_.set(index, builderForValue.build());
onChanged();
} else {
searchTermsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addSearchTerms(com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) {
if (searchTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchTermsIsMutable();
searchTerms_.add(value);
onChanged();
} else {
searchTermsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addSearchTerms(
int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm value) {
if (searchTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchTermsIsMutable();
searchTerms_.add(index, value);
onChanged();
} else {
searchTermsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addSearchTerms(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) {
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
searchTerms_.add(builderForValue.build());
onChanged();
} else {
searchTermsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addSearchTerms(
int index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder builderForValue) {
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
searchTerms_.add(index, builderForValue.build());
onChanged();
} else {
searchTermsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllSearchTerms(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm> values) {
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, searchTerms_);
onChanged();
} else {
searchTermsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearSearchTerms() {
if (searchTermsBuilder_ == null) {
searchTerms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
searchTermsBuilder_.clear();
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeSearchTerms(int index) {
if (searchTermsBuilder_ == null) {
ensureSearchTermsIsMutable();
searchTerms_.remove(index);
onChanged();
} else {
searchTermsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder getSearchTermsBuilder(
int index) {
return getSearchTermsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder getSearchTermsOrBuilder(
int index) {
if (searchTermsBuilder_ == null) {
return searchTerms_.get(index); } else {
return searchTermsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>
getSearchTermsOrBuilderList() {
if (searchTermsBuilder_ != null) {
return searchTermsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(searchTerms_);
}
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder addSearchTermsBuilder() {
return getSearchTermsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance());
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder addSearchTermsBuilder(
int index) {
return getSearchTermsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.getDefaultInstance());
}
/**
*
* Output only. A list of search terms this keyword matches. The same search
* term may be repeated for multiple keywords.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm search_terms = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getSearchTermsBuilderList() {
return getSearchTermsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>
getSearchTermsFieldBuilder() {
if (searchTermsBuilder_ == null) {
searchTermsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTerm.Builder, com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation.SearchTermOrBuilder>(
searchTerms_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
searchTerms_ = null;
}
return searchTermsBuilder_;
}
private long recommendedCpcBidMicros_ ;
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedCpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedCpcBidMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedCpcBidMicros.
*/
@java.lang.Override
public long getRecommendedCpcBidMicros() {
return recommendedCpcBidMicros_;
}
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedCpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setRecommendedCpcBidMicros(long value) {
recommendedCpcBidMicros_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The recommended CPC (cost-per-click) bid.
*
*
* optional int64 recommended_cpc_bid_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00000004);
recommendedCpcBidMicros_ = 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.v16.resources.Recommendation.KeywordRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeywordRecommendation 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.v16.resources.Recommendation.KeywordRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TextAdRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
boolean hasAd();
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
com.google.ads.googleads.v16.resources.Ad getAd();
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder();
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDate field is set.
*/
boolean hasCreationDate();
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDate.
*/
java.lang.String getCreationDate();
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDate.
*/
com.google.protobuf.ByteString
getCreationDateBytes();
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the autoApplyDate field is set.
*/
boolean hasAutoApplyDate();
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The autoApplyDate.
*/
java.lang.String getAutoApplyDate();
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for autoApplyDate.
*/
com.google.protobuf.ByteString
getAutoApplyDateBytes();
}
/**
*
* The text ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation}
*/
public static final class TextAdRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)
TextAdRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextAdRecommendation.newBuilder() to construct.
private TextAdRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextAdRecommendation() {
creationDate_ = "";
autoApplyDate_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextAdRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder.class);
}
private int bitField0_;
public static final int AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Ad ad_;
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
@java.lang.Override
public boolean hasAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getAd() {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
public static final int CREATION_DATE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object creationDate_ = "";
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDate field is set.
*/
@java.lang.Override
public boolean hasCreationDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDate.
*/
@java.lang.Override
public java.lang.String getCreationDate() {
java.lang.Object ref = creationDate_;
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();
creationDate_ = s;
return s;
}
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCreationDateBytes() {
java.lang.Object ref = creationDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creationDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTO_APPLY_DATE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object autoApplyDate_ = "";
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the autoApplyDate field is set.
*/
@java.lang.Override
public boolean hasAutoApplyDate() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The autoApplyDate.
*/
@java.lang.Override
public java.lang.String getAutoApplyDate() {
java.lang.Object ref = autoApplyDate_;
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();
autoApplyDate_ = s;
return s;
}
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for autoApplyDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAutoApplyDateBytes() {
java.lang.Object ref = autoApplyDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
autoApplyDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAd());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, creationDate_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoApplyDate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAd());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, creationDate_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, autoApplyDate_);
}
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.v16.resources.Recommendation.TextAdRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation) obj;
if (hasAd() != other.hasAd()) return false;
if (hasAd()) {
if (!getAd()
.equals(other.getAd())) return false;
}
if (hasCreationDate() != other.hasCreationDate()) return false;
if (hasCreationDate()) {
if (!getCreationDate()
.equals(other.getCreationDate())) return false;
}
if (hasAutoApplyDate() != other.hasAutoApplyDate()) return false;
if (hasAutoApplyDate()) {
if (!getAutoApplyDate()
.equals(other.getAutoApplyDate())) 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 (hasAd()) {
hash = (37 * hash) + AD_FIELD_NUMBER;
hash = (53 * hash) + getAd().hashCode();
}
if (hasCreationDate()) {
hash = (37 * hash) + CREATION_DATE_FIELD_NUMBER;
hash = (53 * hash) + getCreationDate().hashCode();
}
if (hasAutoApplyDate()) {
hash = (37 * hash) + AUTO_APPLY_DATE_FIELD_NUMBER;
hash = (53 * hash) + getAutoApplyDate().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation 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;
}
/**
*
* The text ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ad_ = null;
if (adBuilder_ != null) {
adBuilder_.dispose();
adBuilder_ = null;
}
creationDate_ = "";
autoApplyDate_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TextAdRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ad_ = adBuilder_ == null
? ad_
: adBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.creationDate_ = creationDate_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.autoApplyDate_ = autoApplyDate_;
to_bitField0_ |= 0x00000004;
}
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.v16.resources.Recommendation.TextAdRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation.getDefaultInstance()) return this;
if (other.hasAd()) {
mergeAd(other.getAd());
}
if (other.hasCreationDate()) {
creationDate_ = other.creationDate_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasAutoApplyDate()) {
autoApplyDate_ = other.autoApplyDate_;
bitField0_ |= 0x00000004;
onChanged();
}
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: {
input.readMessage(
getAdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 34: {
creationDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 34
case 42: {
autoApplyDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 42
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 com.google.ads.googleads.v16.resources.Ad ad_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> adBuilder_;
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
public boolean hasAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
public com.google.ads.googleads.v16.resources.Ad getAd() {
if (adBuilder_ == null) {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
} else {
return adBuilder_.getMessage();
}
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAd(com.google.ads.googleads.v16.resources.Ad value) {
if (adBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ad_ = value;
} else {
adBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAd(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (adBuilder_ == null) {
ad_ = builderForValue.build();
} else {
adBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeAd(com.google.ads.googleads.v16.resources.Ad value) {
if (adBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ad_ != null &&
ad_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getAdBuilder().mergeFrom(value);
} else {
ad_ = value;
}
} else {
adBuilder_.mergeFrom(value);
}
if (ad_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearAd() {
bitField0_ = (bitField0_ & ~0x00000001);
ad_ = null;
if (adBuilder_ != null) {
adBuilder_.dispose();
adBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getAdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAdFieldBuilder().getBuilder();
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() {
if (adBuilder_ != null) {
return adBuilder_.getMessageOrBuilder();
} else {
return ad_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getAdFieldBuilder() {
if (adBuilder_ == null) {
adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getAd(),
getParentForChildren(),
isClean());
ad_ = null;
}
return adBuilder_;
}
private java.lang.Object creationDate_ = "";
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the creationDate field is set.
*/
public boolean hasCreationDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The creationDate.
*/
public java.lang.String getCreationDate() {
java.lang.Object ref = creationDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
creationDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for creationDate.
*/
public com.google.protobuf.ByteString
getCreationDateBytes() {
java.lang.Object ref = creationDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
creationDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The creationDate to set.
* @return This builder for chaining.
*/
public Builder setCreationDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
creationDate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCreationDate() {
creationDate_ = getDefaultInstance().getCreationDate();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. Creation date of the recommended ad.
* YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for creationDate to set.
* @return This builder for chaining.
*/
public Builder setCreationDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
creationDate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object autoApplyDate_ = "";
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the autoApplyDate field is set.
*/
public boolean hasAutoApplyDate() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The autoApplyDate.
*/
public java.lang.String getAutoApplyDate() {
java.lang.Object ref = autoApplyDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
autoApplyDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for autoApplyDate.
*/
public com.google.protobuf.ByteString
getAutoApplyDateBytes() {
java.lang.Object ref = autoApplyDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
autoApplyDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The autoApplyDate to set.
* @return This builder for chaining.
*/
public Builder setAutoApplyDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
autoApplyDate_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAutoApplyDate() {
autoApplyDate_ = getDefaultInstance().getAutoApplyDate();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. Date, if present, is the earliest when the recommendation
* will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
*
*
* optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for autoApplyDate to set.
* @return This builder for chaining.
*/
public Builder setAutoApplyDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
autoApplyDate_ = value;
bitField0_ |= 0x00000004;
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.v16.resources.Recommendation.TextAdRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.TextAdRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextAdRecommendation 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.v16.resources.Recommendation.TextAdRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetCpaOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getOptionsList();
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index);
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getOptionsCount();
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>
getOptionsOrBuilderList();
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder(
int index);
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetCpaMicros field is set.
*/
boolean hasRecommendedTargetCpaMicros();
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetCpaMicros.
*/
long getRecommendedTargetCpaMicros();
}
/**
*
* The Target CPA opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation}
*/
public static final class TargetCpaOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)
TargetCpaOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetCpaOptInRecommendation.newBuilder() to construct.
private TargetCpaOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetCpaOptInRecommendation() {
options_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetCpaOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class);
}
public interface TargetCpaOptInRecommendationOptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for goal.
*/
int getGoalValue();
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The goal.
*/
com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal();
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetCpaMicros field is set.
*/
boolean hasTargetCpaMicros();
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetCpaMicros.
*/
long getTargetCpaMicros();
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
boolean hasRequiredCampaignBudgetAmountMicros();
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
long getRequiredCampaignBudgetAmountMicros();
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
boolean hasImpact();
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact();
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder();
}
/**
*
* The Target CPA opt-in option with impact estimate.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption}
*/
public static final class TargetCpaOptInRecommendationOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)
TargetCpaOptInRecommendationOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetCpaOptInRecommendationOption.newBuilder() to construct.
private TargetCpaOptInRecommendationOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetCpaOptInRecommendationOption() {
goal_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetCpaOptInRecommendationOption();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class);
}
private int bitField0_;
public static final int GOAL_FIELD_NUMBER = 1;
private int goal_ = 0;
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for goal.
*/
@java.lang.Override public int getGoalValue() {
return goal_;
}
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The goal.
*/
@java.lang.Override public com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() {
com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.forNumber(goal_);
return result == null ? com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result;
}
public static final int TARGET_CPA_MICROS_FIELD_NUMBER = 5;
private long targetCpaMicros_ = 0L;
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasTargetCpaMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetCpaMicros.
*/
@java.lang.Override
public long getTargetCpaMicros() {
return targetCpaMicros_;
}
public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 6;
private long requiredCampaignBudgetAmountMicros_ = 0L;
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRequiredCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
public static final int IMPACT_FIELD_NUMBER = 4;
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_;
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
@java.lang.Override
public boolean hasImpact() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
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 (goal_ != com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) {
output.writeEnum(1, goal_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getImpact());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(5, targetCpaMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(6, requiredCampaignBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (goal_ != com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, goal_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getImpact());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, targetCpaMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, requiredCampaignBudgetAmountMicros_);
}
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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other = (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) obj;
if (goal_ != other.goal_) return false;
if (hasTargetCpaMicros() != other.hasTargetCpaMicros()) return false;
if (hasTargetCpaMicros()) {
if (getTargetCpaMicros()
!= other.getTargetCpaMicros()) return false;
}
if (hasRequiredCampaignBudgetAmountMicros() != other.hasRequiredCampaignBudgetAmountMicros()) return false;
if (hasRequiredCampaignBudgetAmountMicros()) {
if (getRequiredCampaignBudgetAmountMicros()
!= other.getRequiredCampaignBudgetAmountMicros()) return false;
}
if (hasImpact() != other.hasImpact()) return false;
if (hasImpact()) {
if (!getImpact()
.equals(other.getImpact())) 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) + GOAL_FIELD_NUMBER;
hash = (53 * hash) + goal_;
if (hasTargetCpaMicros()) {
hash = (37 * hash) + TARGET_CPA_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTargetCpaMicros());
}
if (hasRequiredCampaignBudgetAmountMicros()) {
hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequiredCampaignBudgetAmountMicros());
}
if (hasImpact()) {
hash = (37 * hash) + IMPACT_FIELD_NUMBER;
hash = (53 * hash) + getImpact().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption 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;
}
/**
*
* The Target CPA opt-in option with impact estimate.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getImpactFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
goal_ = 0;
targetCpaMicros_ = 0L;
requiredCampaignBudgetAmountMicros_ = 0L;
impact_ = null;
if (impactBuilder_ != null) {
impactBuilder_.dispose();
impactBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_TargetCpaOptInRecommendationOption_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption build() {
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.goal_ = goal_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.targetCpaMicros_ = targetCpaMicros_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.impact_ = impactBuilder_ == null
? impact_
: impactBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance()) return this;
if (other.goal_ != 0) {
setGoalValue(other.getGoalValue());
}
if (other.hasTargetCpaMicros()) {
setTargetCpaMicros(other.getTargetCpaMicros());
}
if (other.hasRequiredCampaignBudgetAmountMicros()) {
setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros());
}
if (other.hasImpact()) {
mergeImpact(other.getImpact());
}
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 8: {
goal_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 34: {
input.readMessage(
getImpactFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
targetCpaMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 40
case 48: {
requiredCampaignBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 48
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 int goal_ = 0;
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for goal.
*/
@java.lang.Override public int getGoalValue() {
return goal_;
}
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for goal to set.
* @return This builder for chaining.
*/
public Builder setGoalValue(int value) {
goal_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The goal.
*/
@java.lang.Override
public com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal getGoal() {
com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal result = com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.forNumber(goal_);
return result == null ? com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal.UNRECOGNIZED : result;
}
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The goal to set.
* @return This builder for chaining.
*/
public Builder setGoal(com.google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
goal_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The goal achieved by this option.
*
*
* .google.ads.googleads.v16.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearGoal() {
bitField0_ = (bitField0_ & ~0x00000001);
goal_ = 0;
onChanged();
return this;
}
private long targetCpaMicros_ ;
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasTargetCpaMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetCpaMicros.
*/
@java.lang.Override
public long getTargetCpaMicros() {
return targetCpaMicros_;
}
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The targetCpaMicros to set.
* @return This builder for chaining.
*/
public Builder setTargetCpaMicros(long value) {
targetCpaMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Average CPA target.
*
*
* optional int64 target_cpa_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearTargetCpaMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
targetCpaMicros_ = 0L;
onChanged();
return this;
}
private long requiredCampaignBudgetAmountMicros_ ;
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRequiredCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The requiredCampaignBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRequiredCampaignBudgetAmountMicros(long value) {
requiredCampaignBudgetAmountMicros_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target CPA. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRequiredCampaignBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000004);
requiredCampaignBudgetAmountMicros_ = 0L;
onChanged();
return this;
}
private com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder> impactBuilder_;
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the impact field is set.
*/
public boolean hasImpact() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The impact.
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact getImpact() {
if (impactBuilder_ == null) {
return impact_ == null ? com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
} else {
return impactBuilder_.getMessage();
}
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) {
if (impactBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
impact_ = value;
} else {
impactBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImpact(
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder builderForValue) {
if (impactBuilder_ == null) {
impact_ = builderForValue.build();
} else {
impactBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeImpact(com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact value) {
if (impactBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
impact_ != null &&
impact_ != com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance()) {
getImpactBuilder().mergeFrom(value);
} else {
impact_ = value;
}
} else {
impactBuilder_.mergeFrom(value);
}
if (impact_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearImpact() {
bitField0_ = (bitField0_ & ~0x00000008);
impact_ = null;
if (impactBuilder_ != null) {
impactBuilder_.dispose();
impactBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder getImpactBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getImpactFieldBuilder().getBuilder();
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder() {
if (impactBuilder_ != null) {
return impactBuilder_.getMessageOrBuilder();
} else {
return impact_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.getDefaultInstance() : impact_;
}
}
/**
*
* Output only. The impact estimate if this option is selected.
*
*
* .google.ads.googleads.v16.resources.Recommendation.RecommendationImpact impact = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>
getImpactFieldBuilder() {
if (impactBuilder_ == null) {
impactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpact.Builder, com.google.ads.googleads.v16.resources.Recommendation.RecommendationImpactOrBuilder>(
getImpact(),
getParentForChildren(),
isClean());
impact_ = null;
}
return impactBuilder_;
}
@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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption)
private static final com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption();
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetCpaOptInRecommendationOption 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.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int OPTIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List options_;
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getOptionsList() {
return options_;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getOptionsCount() {
return options_.size();
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index) {
return options_.get(index);
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER = 3;
private long recommendedTargetCpaMicros_ = 0L;
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetCpaMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetCpaMicros.
*/
@java.lang.Override
public long getRecommendedTargetCpaMicros() {
return recommendedTargetCpaMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(1, options_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(3, recommendedTargetCpaMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < options_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, options_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, recommendedTargetCpaMicros_);
}
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.v16.resources.Recommendation.TargetCpaOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation) obj;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (hasRecommendedTargetCpaMicros() != other.hasRecommendedTargetCpaMicros()) return false;
if (hasRecommendedTargetCpaMicros()) {
if (getRecommendedTargetCpaMicros()
!= other.getRecommendedTargetCpaMicros()) 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 (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
if (hasRecommendedTargetCpaMicros()) {
hash = (37 * hash) + RECOMMENDED_TARGET_CPA_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRecommendedTargetCpaMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation 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;
}
/**
*
* The Target CPA opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
} else {
options_ = null;
optionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
recommendedTargetCpaMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetCpaOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
options_ = java.util.Collections.unmodifiableList(options_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedTargetCpaMicros_ = recommendedTargetCpaMicros_;
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.TargetCpaOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.getDefaultInstance()) return this;
if (optionsBuilder_ == null) {
if (!other.options_.isEmpty()) {
if (options_.isEmpty()) {
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOptionsIsMutable();
options_.addAll(other.options_);
}
onChanged();
}
} else {
if (!other.options_.isEmpty()) {
if (optionsBuilder_.isEmpty()) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
options_ = other.options_;
bitField0_ = (bitField0_ & ~0x00000001);
optionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionsFieldBuilder() : null;
} else {
optionsBuilder_.addAllMessages(other.options_);
}
}
}
if (other.hasRecommendedTargetCpaMicros()) {
setRecommendedTargetCpaMicros(other.getRecommendedTargetCpaMicros());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption m =
input.readMessage(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.parser(),
extensionRegistry);
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(m);
} else {
optionsBuilder_.addMessage(m);
}
break;
} // case 10
case 24: {
recommendedTargetCpaMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List options_ =
java.util.Collections.emptyList();
private void ensureOptionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
options_ = new java.util.ArrayList(options_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder> optionsBuilder_;
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getOptionsList() {
if (optionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(options_);
} else {
return optionsBuilder_.getMessageList();
}
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getOptionsCount() {
if (optionsBuilder_ == null) {
return options_.size();
} else {
return optionsBuilder_.getCount();
}
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption getOptions(int index) {
if (optionsBuilder_ == null) {
return options_.get(index);
} else {
return optionsBuilder_.getMessage(index);
}
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.set(index, value);
onChanged();
} else {
optionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.set(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addOptions(com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(value);
onChanged();
} else {
optionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(index, value);
onChanged();
} else {
optionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addOptions(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addOptions(
int index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder builderForValue) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.add(index, builderForValue.build());
onChanged();
} else {
optionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllOptions(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption> values) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, options_);
onChanged();
} else {
optionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
optionsBuilder_.clear();
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeOptions(int index) {
if (optionsBuilder_ == null) {
ensureOptionsIsMutable();
options_.remove(index);
onChanged();
} else {
optionsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder getOptionsBuilder(
int index) {
return getOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder getOptionsOrBuilder(
int index) {
if (optionsBuilder_ == null) {
return options_.get(index); } else {
return optionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>
getOptionsOrBuilderList() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(options_);
}
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder() {
return getOptionsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance());
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder addOptionsBuilder(
int index) {
return getOptionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.getDefaultInstance());
}
/**
*
* Output only. The available goals and corresponding options for Target CPA
* strategy.
*
*
* repeated .google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption options = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getOptionsBuilderList() {
return getOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionOrBuilder>(
options_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
private long recommendedTargetCpaMicros_ ;
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetCpaMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetCpaMicros.
*/
@java.lang.Override
public long getRecommendedTargetCpaMicros() {
return recommendedTargetCpaMicros_;
}
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedTargetCpaMicros to set.
* @return This builder for chaining.
*/
public Builder setRecommendedTargetCpaMicros(long value) {
recommendedTargetCpaMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommended average CPA target. See required budget
* amount and impact of using this recommendation in options list.
*
*
* optional int64 recommended_target_cpa_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedTargetCpaMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedTargetCpaMicros_ = 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.v16.resources.Recommendation.TargetCpaOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetCpaOptInRecommendation 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.v16.resources.Recommendation.TargetCpaOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MaximizeConversionsOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
boolean hasRecommendedBudgetAmountMicros();
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
long getRecommendedBudgetAmountMicros();
}
/**
*
* The Maximize Conversions Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation}
*/
public static final class MaximizeConversionsOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)
MaximizeConversionsOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use MaximizeConversionsOptInRecommendation.newBuilder() to construct.
private MaximizeConversionsOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MaximizeConversionsOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MaximizeConversionsOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class);
}
private int bitField0_;
public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2;
private long recommendedBudgetAmountMicros_ = 0L;
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(2, recommendedBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, recommendedBudgetAmountMicros_);
}
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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) obj;
if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false;
if (hasRecommendedBudgetAmountMicros()) {
if (getRecommendedBudgetAmountMicros()
!= other.getRecommendedBudgetAmountMicros()) 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 (hasRecommendedBudgetAmountMicros()) {
hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRecommendedBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation 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;
}
/**
*
* The Maximize Conversions Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recommendedBudgetAmountMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeConversionsOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation.getDefaultInstance()) return this;
if (other.hasRecommendedBudgetAmountMicros()) {
setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros());
}
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: {
recommendedBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 16
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 recommendedBudgetAmountMicros_ ;
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRecommendedBudgetAmountMicros(long value) {
recommendedBudgetAmountMicros_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended new budget amount.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
recommendedBudgetAmountMicros_ = 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MaximizeConversionsOptInRecommendation 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.v16.resources.Recommendation.MaximizeConversionsOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnhancedCpcOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The Enhanced Cost-Per-Click Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation}
*/
public static final class EnhancedCpcOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)
EnhancedCpcOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnhancedCpcOptInRecommendation.newBuilder() to construct.
private EnhancedCpcOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnhancedCpcOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnhancedCpcOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation 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;
}
/**
*
* The Enhanced Cost-Per-Click Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_EnhancedCpcOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnhancedCpcOptInRecommendation 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.v16.resources.Recommendation.EnhancedCpcOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SearchPartnersOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The Search Partners Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation}
*/
public static final class SearchPartnersOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)
SearchPartnersOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchPartnersOptInRecommendation.newBuilder() to construct.
private SearchPartnersOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchPartnersOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchPartnersOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.SearchPartnersOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation 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;
}
/**
*
* The Search Partners Opt-In recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SearchPartnersOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.SearchPartnersOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchPartnersOptInRecommendation 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.v16.resources.Recommendation.SearchPartnersOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MaximizeClicksOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
boolean hasRecommendedBudgetAmountMicros();
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
long getRecommendedBudgetAmountMicros();
}
/**
*
* The Maximize Clicks opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation}
*/
public static final class MaximizeClicksOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)
MaximizeClicksOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use MaximizeClicksOptInRecommendation.newBuilder() to construct.
private MaximizeClicksOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MaximizeClicksOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MaximizeClicksOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class);
}
private int bitField0_;
public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2;
private long recommendedBudgetAmountMicros_ = 0L;
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(2, recommendedBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, recommendedBudgetAmountMicros_);
}
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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) obj;
if (hasRecommendedBudgetAmountMicros() != other.hasRecommendedBudgetAmountMicros()) return false;
if (hasRecommendedBudgetAmountMicros()) {
if (getRecommendedBudgetAmountMicros()
!= other.getRecommendedBudgetAmountMicros()) 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 (hasRecommendedBudgetAmountMicros()) {
hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRecommendedBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation 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;
}
/**
*
* The Maximize Clicks opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recommendedBudgetAmountMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MaximizeClicksOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation.getDefaultInstance()) return this;
if (other.hasRecommendedBudgetAmountMicros()) {
setRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros());
}
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: {
recommendedBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 16
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 recommendedBudgetAmountMicros_ ;
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRecommendedBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedBudgetAmountMicros.
*/
@java.lang.Override
public long getRecommendedBudgetAmountMicros() {
return recommendedBudgetAmountMicros_;
}
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRecommendedBudgetAmountMicros(long value) {
recommendedBudgetAmountMicros_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended new budget amount.
* Only set if the current budget is too high.
*
*
* optional int64 recommended_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
recommendedBudgetAmountMicros_ = 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MaximizeClicksOptInRecommendation 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.v16.resources.Recommendation.MaximizeClicksOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptimizeAdRotationRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The Optimize Ad Rotation recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation}
*/
public static final class OptimizeAdRotationRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)
OptimizeAdRotationRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptimizeAdRotationRecommendation.newBuilder() to construct.
private OptimizeAdRotationRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptimizeAdRotationRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OptimizeAdRotationRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.OptimizeAdRotationRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation 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;
}
/**
*
* The Optimize Ad Rotation recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_OptimizeAdRotationRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.OptimizeAdRotationRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OptimizeAdRotationRecommendation 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.v16.resources.Recommendation.OptimizeAdRotationRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CalloutAssetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getRecommendedCampaignCalloutAssetsList();
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index);
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getRecommendedCampaignCalloutAssetsCount();
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignCalloutAssetsOrBuilderList();
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder(
int index);
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getRecommendedCustomerCalloutAssetsList();
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index);
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getRecommendedCustomerCalloutAssetsCount();
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerCalloutAssetsOrBuilderList();
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder(
int index);
}
/**
*
* The callout asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation}
*/
public static final class CalloutAssetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)
CalloutAssetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use CalloutAssetRecommendation.newBuilder() to construct.
private CalloutAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CalloutAssetRecommendation() {
recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList();
recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CalloutAssetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder.class);
}
public static final int RECOMMENDED_CAMPAIGN_CALLOUT_ASSETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List recommendedCampaignCalloutAssets_;
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getRecommendedCampaignCalloutAssetsList() {
return recommendedCampaignCalloutAssets_;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignCalloutAssetsOrBuilderList() {
return recommendedCampaignCalloutAssets_;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getRecommendedCampaignCalloutAssetsCount() {
return recommendedCampaignCalloutAssets_.size();
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index) {
return recommendedCampaignCalloutAssets_.get(index);
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder(
int index) {
return recommendedCampaignCalloutAssets_.get(index);
}
public static final int RECOMMENDED_CUSTOMER_CALLOUT_ASSETS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List recommendedCustomerCalloutAssets_;
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getRecommendedCustomerCalloutAssetsList() {
return recommendedCustomerCalloutAssets_;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerCalloutAssetsOrBuilderList() {
return recommendedCustomerCalloutAssets_;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getRecommendedCustomerCalloutAssetsCount() {
return recommendedCustomerCalloutAssets_.size();
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index) {
return recommendedCustomerCalloutAssets_.get(index);
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder(
int index) {
return recommendedCustomerCalloutAssets_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < recommendedCampaignCalloutAssets_.size(); i++) {
output.writeMessage(1, recommendedCampaignCalloutAssets_.get(i));
}
for (int i = 0; i < recommendedCustomerCalloutAssets_.size(); i++) {
output.writeMessage(2, recommendedCustomerCalloutAssets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < recommendedCampaignCalloutAssets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, recommendedCampaignCalloutAssets_.get(i));
}
for (int i = 0; i < recommendedCustomerCalloutAssets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, recommendedCustomerCalloutAssets_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation) obj;
if (!getRecommendedCampaignCalloutAssetsList()
.equals(other.getRecommendedCampaignCalloutAssetsList())) return false;
if (!getRecommendedCustomerCalloutAssetsList()
.equals(other.getRecommendedCustomerCalloutAssetsList())) 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 (getRecommendedCampaignCalloutAssetsCount() > 0) {
hash = (37 * hash) + RECOMMENDED_CAMPAIGN_CALLOUT_ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedCampaignCalloutAssetsList().hashCode();
}
if (getRecommendedCustomerCalloutAssetsCount() > 0) {
hash = (37 * hash) + RECOMMENDED_CUSTOMER_CALLOUT_ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedCustomerCalloutAssetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation 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;
}
/**
*
* The callout asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList();
} else {
recommendedCampaignCalloutAssets_ = null;
recommendedCampaignCalloutAssetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList();
} else {
recommendedCustomerCalloutAssets_ = null;
recommendedCustomerCalloutAssetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CalloutAssetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
recommendedCampaignCalloutAssets_ = java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.recommendedCampaignCalloutAssets_ = recommendedCampaignCalloutAssets_;
} else {
result.recommendedCampaignCalloutAssets_ = recommendedCampaignCalloutAssetsBuilder_.build();
}
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
recommendedCustomerCalloutAssets_ = java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.recommendedCustomerCalloutAssets_ = recommendedCustomerCalloutAssets_;
} else {
result.recommendedCustomerCalloutAssets_ = recommendedCustomerCalloutAssetsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation result) {
int from_bitField0_ = 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.v16.resources.Recommendation.CalloutAssetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation.getDefaultInstance()) return this;
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
if (!other.recommendedCampaignCalloutAssets_.isEmpty()) {
if (recommendedCampaignCalloutAssets_.isEmpty()) {
recommendedCampaignCalloutAssets_ = other.recommendedCampaignCalloutAssets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.addAll(other.recommendedCampaignCalloutAssets_);
}
onChanged();
}
} else {
if (!other.recommendedCampaignCalloutAssets_.isEmpty()) {
if (recommendedCampaignCalloutAssetsBuilder_.isEmpty()) {
recommendedCampaignCalloutAssetsBuilder_.dispose();
recommendedCampaignCalloutAssetsBuilder_ = null;
recommendedCampaignCalloutAssets_ = other.recommendedCampaignCalloutAssets_;
bitField0_ = (bitField0_ & ~0x00000001);
recommendedCampaignCalloutAssetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecommendedCampaignCalloutAssetsFieldBuilder() : null;
} else {
recommendedCampaignCalloutAssetsBuilder_.addAllMessages(other.recommendedCampaignCalloutAssets_);
}
}
}
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
if (!other.recommendedCustomerCalloutAssets_.isEmpty()) {
if (recommendedCustomerCalloutAssets_.isEmpty()) {
recommendedCustomerCalloutAssets_ = other.recommendedCustomerCalloutAssets_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.addAll(other.recommendedCustomerCalloutAssets_);
}
onChanged();
}
} else {
if (!other.recommendedCustomerCalloutAssets_.isEmpty()) {
if (recommendedCustomerCalloutAssetsBuilder_.isEmpty()) {
recommendedCustomerCalloutAssetsBuilder_.dispose();
recommendedCustomerCalloutAssetsBuilder_ = null;
recommendedCustomerCalloutAssets_ = other.recommendedCustomerCalloutAssets_;
bitField0_ = (bitField0_ & ~0x00000002);
recommendedCustomerCalloutAssetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecommendedCustomerCalloutAssetsFieldBuilder() : null;
} else {
recommendedCustomerCalloutAssetsBuilder_.addAllMessages(other.recommendedCustomerCalloutAssets_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v16.resources.Asset m =
input.readMessage(
com.google.ads.googleads.v16.resources.Asset.parser(),
extensionRegistry);
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.add(m);
} else {
recommendedCampaignCalloutAssetsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v16.resources.Asset m =
input.readMessage(
com.google.ads.googleads.v16.resources.Asset.parser(),
extensionRegistry);
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.add(m);
} else {
recommendedCustomerCalloutAssetsBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List recommendedCampaignCalloutAssets_ =
java.util.Collections.emptyList();
private void ensureRecommendedCampaignCalloutAssetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
recommendedCampaignCalloutAssets_ = new java.util.ArrayList(recommendedCampaignCalloutAssets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCampaignCalloutAssetsBuilder_;
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getRecommendedCampaignCalloutAssetsList() {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_);
} else {
return recommendedCampaignCalloutAssetsBuilder_.getMessageList();
}
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getRecommendedCampaignCalloutAssetsCount() {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
return recommendedCampaignCalloutAssets_.size();
} else {
return recommendedCampaignCalloutAssetsBuilder_.getCount();
}
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignCalloutAssets(int index) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
return recommendedCampaignCalloutAssets_.get(index);
} else {
return recommendedCampaignCalloutAssetsBuilder_.getMessage(index);
}
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCampaignCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.set(index, value);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCampaignCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.set(index, builderForValue.build());
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignCalloutAssets(com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.add(value);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.add(index, value);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignCalloutAssets(
com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.add(builderForValue.build());
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.add(index, builderForValue.build());
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllRecommendedCampaignCalloutAssets(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Asset> values) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recommendedCampaignCalloutAssets_);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedCampaignCalloutAssets() {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
recommendedCampaignCalloutAssets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.clear();
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeRecommendedCampaignCalloutAssets(int index) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
ensureRecommendedCampaignCalloutAssetsIsMutable();
recommendedCampaignCalloutAssets_.remove(index);
onChanged();
} else {
recommendedCampaignCalloutAssetsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCampaignCalloutAssetsBuilder(
int index) {
return getRecommendedCampaignCalloutAssetsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignCalloutAssetsOrBuilder(
int index) {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
return recommendedCampaignCalloutAssets_.get(index); } else {
return recommendedCampaignCalloutAssetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignCalloutAssetsOrBuilderList() {
if (recommendedCampaignCalloutAssetsBuilder_ != null) {
return recommendedCampaignCalloutAssetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recommendedCampaignCalloutAssets_);
}
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignCalloutAssetsBuilder() {
return getRecommendedCampaignCalloutAssetsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignCalloutAssetsBuilder(
int index) {
return getRecommendedCampaignCalloutAssetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New callout extension assets recommended at the campaign
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_callout_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getRecommendedCampaignCalloutAssetsBuilderList() {
return getRecommendedCampaignCalloutAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignCalloutAssetsFieldBuilder() {
if (recommendedCampaignCalloutAssetsBuilder_ == null) {
recommendedCampaignCalloutAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>(
recommendedCampaignCalloutAssets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
recommendedCampaignCalloutAssets_ = null;
}
return recommendedCampaignCalloutAssetsBuilder_;
}
private java.util.List recommendedCustomerCalloutAssets_ =
java.util.Collections.emptyList();
private void ensureRecommendedCustomerCalloutAssetsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
recommendedCustomerCalloutAssets_ = new java.util.ArrayList(recommendedCustomerCalloutAssets_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCustomerCalloutAssetsBuilder_;
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getRecommendedCustomerCalloutAssetsList() {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_);
} else {
return recommendedCustomerCalloutAssetsBuilder_.getMessageList();
}
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getRecommendedCustomerCalloutAssetsCount() {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
return recommendedCustomerCalloutAssets_.size();
} else {
return recommendedCustomerCalloutAssetsBuilder_.getCount();
}
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerCalloutAssets(int index) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
return recommendedCustomerCalloutAssets_.get(index);
} else {
return recommendedCustomerCalloutAssetsBuilder_.getMessage(index);
}
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCustomerCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.set(index, value);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCustomerCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.set(index, builderForValue.build());
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerCalloutAssets(com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.add(value);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.add(index, value);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerCalloutAssets(
com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.add(builderForValue.build());
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerCalloutAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.add(index, builderForValue.build());
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllRecommendedCustomerCalloutAssets(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Asset> values) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recommendedCustomerCalloutAssets_);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedCustomerCalloutAssets() {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
recommendedCustomerCalloutAssets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.clear();
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeRecommendedCustomerCalloutAssets(int index) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
ensureRecommendedCustomerCalloutAssetsIsMutable();
recommendedCustomerCalloutAssets_.remove(index);
onChanged();
} else {
recommendedCustomerCalloutAssetsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCustomerCalloutAssetsBuilder(
int index) {
return getRecommendedCustomerCalloutAssetsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerCalloutAssetsOrBuilder(
int index) {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
return recommendedCustomerCalloutAssets_.get(index); } else {
return recommendedCustomerCalloutAssetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerCalloutAssetsOrBuilderList() {
if (recommendedCustomerCalloutAssetsBuilder_ != null) {
return recommendedCustomerCalloutAssetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recommendedCustomerCalloutAssets_);
}
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerCalloutAssetsBuilder() {
return getRecommendedCustomerCalloutAssetsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerCalloutAssetsBuilder(
int index) {
return getRecommendedCustomerCalloutAssetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New callout extension assets recommended at the customer
* level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_callout_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getRecommendedCustomerCalloutAssetsBuilderList() {
return getRecommendedCustomerCalloutAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerCalloutAssetsFieldBuilder() {
if (recommendedCustomerCalloutAssetsBuilder_ == null) {
recommendedCustomerCalloutAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>(
recommendedCustomerCalloutAssets_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
recommendedCustomerCalloutAssets_ = null;
}
return recommendedCustomerCalloutAssetsBuilder_;
}
@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.v16.resources.Recommendation.CalloutAssetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CalloutAssetRecommendation 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.v16.resources.Recommendation.CalloutAssetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SitelinkAssetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getRecommendedCampaignSitelinkAssetsList();
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index);
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getRecommendedCampaignSitelinkAssetsCount();
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignSitelinkAssetsOrBuilderList();
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder(
int index);
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getRecommendedCustomerSitelinkAssetsList();
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index);
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getRecommendedCustomerSitelinkAssetsCount();
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerSitelinkAssetsOrBuilderList();
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder(
int index);
}
/**
*
* The sitelink asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation}
*/
public static final class SitelinkAssetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)
SitelinkAssetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use SitelinkAssetRecommendation.newBuilder() to construct.
private SitelinkAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SitelinkAssetRecommendation() {
recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList();
recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SitelinkAssetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder.class);
}
public static final int RECOMMENDED_CAMPAIGN_SITELINK_ASSETS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List recommendedCampaignSitelinkAssets_;
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getRecommendedCampaignSitelinkAssetsList() {
return recommendedCampaignSitelinkAssets_;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignSitelinkAssetsOrBuilderList() {
return recommendedCampaignSitelinkAssets_;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getRecommendedCampaignSitelinkAssetsCount() {
return recommendedCampaignSitelinkAssets_.size();
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index) {
return recommendedCampaignSitelinkAssets_.get(index);
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder(
int index) {
return recommendedCampaignSitelinkAssets_.get(index);
}
public static final int RECOMMENDED_CUSTOMER_SITELINK_ASSETS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List recommendedCustomerSitelinkAssets_;
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getRecommendedCustomerSitelinkAssetsList() {
return recommendedCustomerSitelinkAssets_;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerSitelinkAssetsOrBuilderList() {
return recommendedCustomerSitelinkAssets_;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getRecommendedCustomerSitelinkAssetsCount() {
return recommendedCustomerSitelinkAssets_.size();
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index) {
return recommendedCustomerSitelinkAssets_.get(index);
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder(
int index) {
return recommendedCustomerSitelinkAssets_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < recommendedCampaignSitelinkAssets_.size(); i++) {
output.writeMessage(1, recommendedCampaignSitelinkAssets_.get(i));
}
for (int i = 0; i < recommendedCustomerSitelinkAssets_.size(); i++) {
output.writeMessage(2, recommendedCustomerSitelinkAssets_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < recommendedCampaignSitelinkAssets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, recommendedCampaignSitelinkAssets_.get(i));
}
for (int i = 0; i < recommendedCustomerSitelinkAssets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, recommendedCustomerSitelinkAssets_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation) obj;
if (!getRecommendedCampaignSitelinkAssetsList()
.equals(other.getRecommendedCampaignSitelinkAssetsList())) return false;
if (!getRecommendedCustomerSitelinkAssetsList()
.equals(other.getRecommendedCustomerSitelinkAssetsList())) 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 (getRecommendedCampaignSitelinkAssetsCount() > 0) {
hash = (37 * hash) + RECOMMENDED_CAMPAIGN_SITELINK_ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedCampaignSitelinkAssetsList().hashCode();
}
if (getRecommendedCustomerSitelinkAssetsCount() > 0) {
hash = (37 * hash) + RECOMMENDED_CUSTOMER_SITELINK_ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedCustomerSitelinkAssetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation 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;
}
/**
*
* The sitelink asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList();
} else {
recommendedCampaignSitelinkAssets_ = null;
recommendedCampaignSitelinkAssetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList();
} else {
recommendedCustomerSitelinkAssets_ = null;
recommendedCustomerSitelinkAssetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_SitelinkAssetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
recommendedCampaignSitelinkAssets_ = java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.recommendedCampaignSitelinkAssets_ = recommendedCampaignSitelinkAssets_;
} else {
result.recommendedCampaignSitelinkAssets_ = recommendedCampaignSitelinkAssetsBuilder_.build();
}
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
recommendedCustomerSitelinkAssets_ = java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.recommendedCustomerSitelinkAssets_ = recommendedCustomerSitelinkAssets_;
} else {
result.recommendedCustomerSitelinkAssets_ = recommendedCustomerSitelinkAssetsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation result) {
int from_bitField0_ = 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.v16.resources.Recommendation.SitelinkAssetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation.getDefaultInstance()) return this;
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
if (!other.recommendedCampaignSitelinkAssets_.isEmpty()) {
if (recommendedCampaignSitelinkAssets_.isEmpty()) {
recommendedCampaignSitelinkAssets_ = other.recommendedCampaignSitelinkAssets_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.addAll(other.recommendedCampaignSitelinkAssets_);
}
onChanged();
}
} else {
if (!other.recommendedCampaignSitelinkAssets_.isEmpty()) {
if (recommendedCampaignSitelinkAssetsBuilder_.isEmpty()) {
recommendedCampaignSitelinkAssetsBuilder_.dispose();
recommendedCampaignSitelinkAssetsBuilder_ = null;
recommendedCampaignSitelinkAssets_ = other.recommendedCampaignSitelinkAssets_;
bitField0_ = (bitField0_ & ~0x00000001);
recommendedCampaignSitelinkAssetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecommendedCampaignSitelinkAssetsFieldBuilder() : null;
} else {
recommendedCampaignSitelinkAssetsBuilder_.addAllMessages(other.recommendedCampaignSitelinkAssets_);
}
}
}
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
if (!other.recommendedCustomerSitelinkAssets_.isEmpty()) {
if (recommendedCustomerSitelinkAssets_.isEmpty()) {
recommendedCustomerSitelinkAssets_ = other.recommendedCustomerSitelinkAssets_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.addAll(other.recommendedCustomerSitelinkAssets_);
}
onChanged();
}
} else {
if (!other.recommendedCustomerSitelinkAssets_.isEmpty()) {
if (recommendedCustomerSitelinkAssetsBuilder_.isEmpty()) {
recommendedCustomerSitelinkAssetsBuilder_.dispose();
recommendedCustomerSitelinkAssetsBuilder_ = null;
recommendedCustomerSitelinkAssets_ = other.recommendedCustomerSitelinkAssets_;
bitField0_ = (bitField0_ & ~0x00000002);
recommendedCustomerSitelinkAssetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecommendedCustomerSitelinkAssetsFieldBuilder() : null;
} else {
recommendedCustomerSitelinkAssetsBuilder_.addAllMessages(other.recommendedCustomerSitelinkAssets_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v16.resources.Asset m =
input.readMessage(
com.google.ads.googleads.v16.resources.Asset.parser(),
extensionRegistry);
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.add(m);
} else {
recommendedCampaignSitelinkAssetsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v16.resources.Asset m =
input.readMessage(
com.google.ads.googleads.v16.resources.Asset.parser(),
extensionRegistry);
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.add(m);
} else {
recommendedCustomerSitelinkAssetsBuilder_.addMessage(m);
}
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List recommendedCampaignSitelinkAssets_ =
java.util.Collections.emptyList();
private void ensureRecommendedCampaignSitelinkAssetsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
recommendedCampaignSitelinkAssets_ = new java.util.ArrayList(recommendedCampaignSitelinkAssets_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCampaignSitelinkAssetsBuilder_;
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getRecommendedCampaignSitelinkAssetsList() {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_);
} else {
return recommendedCampaignSitelinkAssetsBuilder_.getMessageList();
}
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getRecommendedCampaignSitelinkAssetsCount() {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
return recommendedCampaignSitelinkAssets_.size();
} else {
return recommendedCampaignSitelinkAssetsBuilder_.getCount();
}
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset getRecommendedCampaignSitelinkAssets(int index) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
return recommendedCampaignSitelinkAssets_.get(index);
} else {
return recommendedCampaignSitelinkAssetsBuilder_.getMessage(index);
}
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCampaignSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.set(index, value);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCampaignSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.set(index, builderForValue.build());
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignSitelinkAssets(com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.add(value);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.add(index, value);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignSitelinkAssets(
com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.add(builderForValue.build());
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCampaignSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.add(index, builderForValue.build());
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllRecommendedCampaignSitelinkAssets(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Asset> values) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recommendedCampaignSitelinkAssets_);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedCampaignSitelinkAssets() {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
recommendedCampaignSitelinkAssets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.clear();
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeRecommendedCampaignSitelinkAssets(int index) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
ensureRecommendedCampaignSitelinkAssetsIsMutable();
recommendedCampaignSitelinkAssets_.remove(index);
onChanged();
} else {
recommendedCampaignSitelinkAssetsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCampaignSitelinkAssetsBuilder(
int index) {
return getRecommendedCampaignSitelinkAssetsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCampaignSitelinkAssetsOrBuilder(
int index) {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
return recommendedCampaignSitelinkAssets_.get(index); } else {
return recommendedCampaignSitelinkAssetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignSitelinkAssetsOrBuilderList() {
if (recommendedCampaignSitelinkAssetsBuilder_ != null) {
return recommendedCampaignSitelinkAssetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recommendedCampaignSitelinkAssets_);
}
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignSitelinkAssetsBuilder() {
return getRecommendedCampaignSitelinkAssetsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCampaignSitelinkAssetsBuilder(
int index) {
return getRecommendedCampaignSitelinkAssetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New sitelink assets recommended at the campaign level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_campaign_sitelink_assets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getRecommendedCampaignSitelinkAssetsBuilderList() {
return getRecommendedCampaignSitelinkAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCampaignSitelinkAssetsFieldBuilder() {
if (recommendedCampaignSitelinkAssetsBuilder_ == null) {
recommendedCampaignSitelinkAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>(
recommendedCampaignSitelinkAssets_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
recommendedCampaignSitelinkAssets_ = null;
}
return recommendedCampaignSitelinkAssetsBuilder_;
}
private java.util.List recommendedCustomerSitelinkAssets_ =
java.util.Collections.emptyList();
private void ensureRecommendedCustomerSitelinkAssetsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
recommendedCustomerSitelinkAssets_ = new java.util.ArrayList(recommendedCustomerSitelinkAssets_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder> recommendedCustomerSitelinkAssetsBuilder_;
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getRecommendedCustomerSitelinkAssetsList() {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_);
} else {
return recommendedCustomerSitelinkAssetsBuilder_.getMessageList();
}
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getRecommendedCustomerSitelinkAssetsCount() {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
return recommendedCustomerSitelinkAssets_.size();
} else {
return recommendedCustomerSitelinkAssetsBuilder_.getCount();
}
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset getRecommendedCustomerSitelinkAssets(int index) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
return recommendedCustomerSitelinkAssets_.get(index);
} else {
return recommendedCustomerSitelinkAssetsBuilder_.getMessage(index);
}
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCustomerSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.set(index, value);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedCustomerSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.set(index, builderForValue.build());
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerSitelinkAssets(com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.add(value);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset value) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.add(index, value);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerSitelinkAssets(
com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.add(builderForValue.build());
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addRecommendedCustomerSitelinkAssets(
int index, com.google.ads.googleads.v16.resources.Asset.Builder builderForValue) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.add(index, builderForValue.build());
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllRecommendedCustomerSitelinkAssets(
java.lang.Iterable extends com.google.ads.googleads.v16.resources.Asset> values) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recommendedCustomerSitelinkAssets_);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedCustomerSitelinkAssets() {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
recommendedCustomerSitelinkAssets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.clear();
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeRecommendedCustomerSitelinkAssets(int index) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
ensureRecommendedCustomerSitelinkAssetsIsMutable();
recommendedCustomerSitelinkAssets_.remove(index);
onChanged();
} else {
recommendedCustomerSitelinkAssetsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder getRecommendedCustomerSitelinkAssetsBuilder(
int index) {
return getRecommendedCustomerSitelinkAssetsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AssetOrBuilder getRecommendedCustomerSitelinkAssetsOrBuilder(
int index) {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
return recommendedCustomerSitelinkAssets_.get(index); } else {
return recommendedCustomerSitelinkAssetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerSitelinkAssetsOrBuilderList() {
if (recommendedCustomerSitelinkAssetsBuilder_ != null) {
return recommendedCustomerSitelinkAssetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recommendedCustomerSitelinkAssets_);
}
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerSitelinkAssetsBuilder() {
return getRecommendedCustomerSitelinkAssetsFieldBuilder().addBuilder(
com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Asset.Builder addRecommendedCustomerSitelinkAssetsBuilder(
int index) {
return getRecommendedCustomerSitelinkAssetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.resources.Asset.getDefaultInstance());
}
/**
*
* Output only. New sitelink assets recommended at the customer level.
*
*
* repeated .google.ads.googleads.v16.resources.Asset recommended_customer_sitelink_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getRecommendedCustomerSitelinkAssetsBuilderList() {
return getRecommendedCustomerSitelinkAssetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>
getRecommendedCustomerSitelinkAssetsFieldBuilder() {
if (recommendedCustomerSitelinkAssetsBuilder_ == null) {
recommendedCustomerSitelinkAssetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.resources.Asset, com.google.ads.googleads.v16.resources.Asset.Builder, com.google.ads.googleads.v16.resources.AssetOrBuilder>(
recommendedCustomerSitelinkAssets_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
recommendedCustomerSitelinkAssets_ = null;
}
return recommendedCustomerSitelinkAssetsBuilder_;
}
@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.v16.resources.Recommendation.SitelinkAssetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SitelinkAssetRecommendation 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.v16.resources.Recommendation.SitelinkAssetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CallAssetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The call asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation}
*/
public static final class CallAssetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)
CallAssetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use CallAssetRecommendation.newBuilder() to construct.
private CallAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CallAssetRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CallAssetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.CallAssetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation 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;
}
/**
*
* The call asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_CallAssetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.CallAssetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CallAssetRecommendation 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.v16.resources.Recommendation.CallAssetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeywordMatchTypeRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
boolean hasKeyword();
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
com.google.ads.googleads.v16.common.KeywordInfo getKeyword();
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder();
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for recommendedMatchType.
*/
int getRecommendedMatchTypeValue();
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedMatchType.
*/
com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType();
}
/**
*
* The keyword match type recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation}
*/
public static final class KeywordMatchTypeRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)
KeywordMatchTypeRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeywordMatchTypeRecommendation.newBuilder() to construct.
private KeywordMatchTypeRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeywordMatchTypeRecommendation() {
recommendedMatchType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeywordMatchTypeRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class);
}
private int bitField0_;
public static final int KEYWORD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.common.KeywordInfo keyword_;
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
public static final int RECOMMENDED_MATCH_TYPE_FIELD_NUMBER = 2;
private int recommendedMatchType_ = 0;
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for recommendedMatchType.
*/
@java.lang.Override public int getRecommendedMatchTypeValue() {
return recommendedMatchType_;
}
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedMatchType.
*/
@java.lang.Override public com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() {
com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.forNumber(recommendedMatchType_);
return result == null ? com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getKeyword());
}
if (recommendedMatchType_ != com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) {
output.writeEnum(2, recommendedMatchType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getKeyword());
}
if (recommendedMatchType_ != com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, recommendedMatchType_);
}
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.v16.resources.Recommendation.KeywordMatchTypeRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation) obj;
if (hasKeyword() != other.hasKeyword()) return false;
if (hasKeyword()) {
if (!getKeyword()
.equals(other.getKeyword())) return false;
}
if (recommendedMatchType_ != other.recommendedMatchType_) 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 (hasKeyword()) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
}
hash = (37 * hash) + RECOMMENDED_MATCH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + recommendedMatchType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation 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;
}
/**
*
* The keyword match type recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getKeywordFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
keyword_ = null;
if (keywordBuilder_ != null) {
keywordBuilder_.dispose();
keywordBuilder_ = null;
}
recommendedMatchType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_KeywordMatchTypeRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.keyword_ = keywordBuilder_ == null
? keyword_
: keywordBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedMatchType_ = recommendedMatchType_;
}
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.v16.resources.Recommendation.KeywordMatchTypeRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation.getDefaultInstance()) return this;
if (other.hasKeyword()) {
mergeKeyword(other.getKeyword());
}
if (other.recommendedMatchType_ != 0) {
setRecommendedMatchTypeValue(other.getRecommendedMatchTypeValue());
}
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: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
recommendedMatchType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
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 com.google.ads.googleads.v16.common.KeywordInfo keyword_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_;
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the keyword field is set.
*/
public boolean hasKeyword() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The keyword.
*/
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword() {
if (keywordBuilder_ == null) {
return keyword_ == null ? com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
} else {
return keywordBuilder_.getMessage();
}
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keyword_ = value;
} else {
keywordBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(
com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
keyword_ = builderForValue.build();
} else {
keywordBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
keyword_ != null &&
keyword_ != com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance()) {
getKeywordBuilder().mergeFrom(value);
} else {
keyword_ = value;
}
} else {
keywordBuilder_.mergeFrom(value);
}
if (keyword_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearKeyword() {
bitField0_ = (bitField0_ & ~0x00000001);
keyword_ = null;
if (keywordBuilder_ != null) {
keywordBuilder_.dispose();
keywordBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getKeywordFieldBuilder().getBuilder();
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder() {
if (keywordBuilder_ != null) {
return keywordBuilder_.getMessageOrBuilder();
} else {
return keyword_ == null ?
com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance() : keyword_;
}
}
/**
*
* Output only. The existing keyword where the match type should be more
* broad.
*
*
* .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>(
getKeyword(),
getParentForChildren(),
isClean());
keyword_ = null;
}
return keywordBuilder_;
}
private int recommendedMatchType_ = 0;
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for recommendedMatchType.
*/
@java.lang.Override public int getRecommendedMatchTypeValue() {
return recommendedMatchType_;
}
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for recommendedMatchType to set.
* @return This builder for chaining.
*/
public Builder setRecommendedMatchTypeValue(int value) {
recommendedMatchType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedMatchType.
*/
@java.lang.Override
public com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType getRecommendedMatchType() {
com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.forNumber(recommendedMatchType_);
return result == null ? com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result;
}
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedMatchType to set.
* @return This builder for chaining.
*/
public Builder setRecommendedMatchType(com.google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
recommendedMatchType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The recommended new match type.
*
*
* .google.ads.googleads.v16.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedMatchType() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedMatchType_ = 0;
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.v16.resources.Recommendation.KeywordMatchTypeRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeywordMatchTypeRecommendation 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.v16.resources.Recommendation.KeywordMatchTypeRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MoveUnusedBudgetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the excessCampaignBudget field is set.
*/
boolean hasExcessCampaignBudget();
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The excessCampaignBudget.
*/
java.lang.String getExcessCampaignBudget();
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for excessCampaignBudget.
*/
com.google.protobuf.ByteString
getExcessCampaignBudgetBytes();
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetRecommendation field is set.
*/
boolean hasBudgetRecommendation();
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetRecommendation.
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation();
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder();
}
/**
*
* The move unused budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation}
*/
public static final class MoveUnusedBudgetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)
MoveUnusedBudgetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use MoveUnusedBudgetRecommendation.newBuilder() to construct.
private MoveUnusedBudgetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MoveUnusedBudgetRecommendation() {
excessCampaignBudget_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MoveUnusedBudgetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class);
}
private int bitField0_;
public static final int EXCESS_CAMPAIGN_BUDGET_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object excessCampaignBudget_ = "";
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the excessCampaignBudget field is set.
*/
@java.lang.Override
public boolean hasExcessCampaignBudget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The excessCampaignBudget.
*/
@java.lang.Override
public java.lang.String getExcessCampaignBudget() {
java.lang.Object ref = excessCampaignBudget_;
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();
excessCampaignBudget_ = s;
return s;
}
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for excessCampaignBudget.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExcessCampaignBudgetBytes() {
java.lang.Object ref = excessCampaignBudget_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
excessCampaignBudget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUDGET_RECOMMENDATION_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_;
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetRecommendation field is set.
*/
@java.lang.Override
public boolean hasBudgetRecommendation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetRecommendation.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() {
return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_;
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() {
return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getBudgetRecommendation());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excessCampaignBudget_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBudgetRecommendation());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, excessCampaignBudget_);
}
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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) obj;
if (hasExcessCampaignBudget() != other.hasExcessCampaignBudget()) return false;
if (hasExcessCampaignBudget()) {
if (!getExcessCampaignBudget()
.equals(other.getExcessCampaignBudget())) return false;
}
if (hasBudgetRecommendation() != other.hasBudgetRecommendation()) return false;
if (hasBudgetRecommendation()) {
if (!getBudgetRecommendation()
.equals(other.getBudgetRecommendation())) 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 (hasExcessCampaignBudget()) {
hash = (37 * hash) + EXCESS_CAMPAIGN_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getExcessCampaignBudget().hashCode();
}
if (hasBudgetRecommendation()) {
hash = (37 * hash) + BUDGET_RECOMMENDATION_FIELD_NUMBER;
hash = (53 * hash) + getBudgetRecommendation().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation 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;
}
/**
*
* The move unused budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBudgetRecommendationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
excessCampaignBudget_ = "";
budgetRecommendation_ = null;
if (budgetRecommendationBuilder_ != null) {
budgetRecommendationBuilder_.dispose();
budgetRecommendationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_MoveUnusedBudgetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.excessCampaignBudget_ = excessCampaignBudget_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.budgetRecommendation_ = budgetRecommendationBuilder_ == null
? budgetRecommendation_
: budgetRecommendationBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation.getDefaultInstance()) return this;
if (other.hasExcessCampaignBudget()) {
excessCampaignBudget_ = other.excessCampaignBudget_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasBudgetRecommendation()) {
mergeBudgetRecommendation(other.getBudgetRecommendation());
}
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 18: {
input.readMessage(
getBudgetRecommendationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
excessCampaignBudget_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object excessCampaignBudget_ = "";
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the excessCampaignBudget field is set.
*/
public boolean hasExcessCampaignBudget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The excessCampaignBudget.
*/
public java.lang.String getExcessCampaignBudget() {
java.lang.Object ref = excessCampaignBudget_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
excessCampaignBudget_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for excessCampaignBudget.
*/
public com.google.protobuf.ByteString
getExcessCampaignBudgetBytes() {
java.lang.Object ref = excessCampaignBudget_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
excessCampaignBudget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The excessCampaignBudget to set.
* @return This builder for chaining.
*/
public Builder setExcessCampaignBudget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
excessCampaignBudget_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearExcessCampaignBudget() {
excessCampaignBudget_ = getDefaultInstance().getExcessCampaignBudget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The excess budget's resource_name.
*
*
* optional string excess_campaign_budget = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for excessCampaignBudget to set.
* @return This builder for chaining.
*/
public Builder setExcessCampaignBudgetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
excessCampaignBudget_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budgetRecommendation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder> budgetRecommendationBuilder_;
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the budgetRecommendation field is set.
*/
public boolean hasBudgetRecommendation() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The budgetRecommendation.
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation getBudgetRecommendation() {
if (budgetRecommendationBuilder_ == null) {
return budgetRecommendation_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_;
} else {
return budgetRecommendationBuilder_.getMessage();
}
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) {
if (budgetRecommendationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
budgetRecommendation_ = value;
} else {
budgetRecommendationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setBudgetRecommendation(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder builderForValue) {
if (budgetRecommendationBuilder_ == null) {
budgetRecommendation_ = builderForValue.build();
} else {
budgetRecommendationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeBudgetRecommendation(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation value) {
if (budgetRecommendationBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
budgetRecommendation_ != null &&
budgetRecommendation_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance()) {
getBudgetRecommendationBuilder().mergeFrom(value);
} else {
budgetRecommendation_ = value;
}
} else {
budgetRecommendationBuilder_.mergeFrom(value);
}
if (budgetRecommendation_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearBudgetRecommendation() {
bitField0_ = (bitField0_ & ~0x00000002);
budgetRecommendation_ = null;
if (budgetRecommendationBuilder_ != null) {
budgetRecommendationBuilder_.dispose();
budgetRecommendationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder getBudgetRecommendationBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBudgetRecommendationFieldBuilder().getBuilder();
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder getBudgetRecommendationOrBuilder() {
if (budgetRecommendationBuilder_ != null) {
return budgetRecommendationBuilder_.getMessageOrBuilder();
} else {
return budgetRecommendation_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.getDefaultInstance() : budgetRecommendation_;
}
}
/**
*
* Output only. The recommendation for the constrained budget to increase.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation budget_recommendation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>
getBudgetRecommendationFieldBuilder() {
if (budgetRecommendationBuilder_ == null) {
budgetRecommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendation.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetRecommendationOrBuilder>(
getBudgetRecommendation(),
getParentForChildren(),
isClean());
budgetRecommendation_ = null;
}
return budgetRecommendationBuilder_;
}
@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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MoveUnusedBudgetRecommendation 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.v16.resources.Recommendation.MoveUnusedBudgetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetRoasOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetRoas field is set.
*/
boolean hasRecommendedTargetRoas();
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
double getRecommendedTargetRoas();
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
boolean hasRequiredCampaignBudgetAmountMicros();
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
long getRequiredCampaignBudgetAmountMicros();
}
/**
*
* The Target ROAS opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation}
*/
public static final class TargetRoasOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)
TargetRoasOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetRoasOptInRecommendation.newBuilder() to construct.
private TargetRoasOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetRoasOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetRoasOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class);
}
private int bitField0_;
public static final int RECOMMENDED_TARGET_ROAS_FIELD_NUMBER = 1;
private double recommendedTargetRoas_ = 0D;
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetRoas field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
@java.lang.Override
public double getRecommendedTargetRoas() {
return recommendedTargetRoas_;
}
public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2;
private long requiredCampaignBudgetAmountMicros_ = 0L;
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRequiredCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(1, recommendedTargetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, requiredCampaignBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, recommendedTargetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, requiredCampaignBudgetAmountMicros_);
}
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.v16.resources.Recommendation.TargetRoasOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation) obj;
if (hasRecommendedTargetRoas() != other.hasRecommendedTargetRoas()) return false;
if (hasRecommendedTargetRoas()) {
if (java.lang.Double.doubleToLongBits(getRecommendedTargetRoas())
!= java.lang.Double.doubleToLongBits(
other.getRecommendedTargetRoas())) return false;
}
if (hasRequiredCampaignBudgetAmountMicros() != other.hasRequiredCampaignBudgetAmountMicros()) return false;
if (hasRequiredCampaignBudgetAmountMicros()) {
if (getRequiredCampaignBudgetAmountMicros()
!= other.getRequiredCampaignBudgetAmountMicros()) 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 (hasRecommendedTargetRoas()) {
hash = (37 * hash) + RECOMMENDED_TARGET_ROAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRecommendedTargetRoas()));
}
if (hasRequiredCampaignBudgetAmountMicros()) {
hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequiredCampaignBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation 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;
}
/**
*
* The Target ROAS opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recommendedTargetRoas_ = 0D;
requiredCampaignBudgetAmountMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetRoasOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recommendedTargetRoas_ = recommendedTargetRoas_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_;
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.TargetRoasOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation.getDefaultInstance()) return this;
if (other.hasRecommendedTargetRoas()) {
setRecommendedTargetRoas(other.getRecommendedTargetRoas());
}
if (other.hasRequiredCampaignBudgetAmountMicros()) {
setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros());
}
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 9: {
recommendedTargetRoas_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 16: {
requiredCampaignBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 double recommendedTargetRoas_ ;
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetRoas field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
@java.lang.Override
public double getRecommendedTargetRoas() {
return recommendedTargetRoas_;
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedTargetRoas to set.
* @return This builder for chaining.
*/
public Builder setRecommendedTargetRoas(double value) {
recommendedTargetRoas_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* optional double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedTargetRoas() {
bitField0_ = (bitField0_ & ~0x00000001);
recommendedTargetRoas_ = 0D;
onChanged();
return this;
}
private long requiredCampaignBudgetAmountMicros_ ;
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the requiredCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasRequiredCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The requiredCampaignBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRequiredCampaignBudgetAmountMicros(long value) {
requiredCampaignBudgetAmountMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The minimum campaign budget, in local currency for the
* account, required to achieve the target ROAS. Amount is specified in
* micros, where one million is equivalent to one currency unit.
*
*
* optional int64 required_campaign_budget_amount_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRequiredCampaignBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
requiredCampaignBudgetAmountMicros_ = 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.v16.resources.Recommendation.TargetRoasOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetRoasOptInRecommendation 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.v16.resources.Recommendation.TargetRoasOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsiveSearchAdAssetRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
boolean hasCurrentAd();
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
com.google.ads.googleads.v16.resources.Ad getCurrentAd();
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder();
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAssets field is set.
*/
boolean hasRecommendedAssets();
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAssets.
*/
com.google.ads.googleads.v16.resources.Ad getRecommendedAssets();
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder();
}
/**
*
* The add responsive search ad asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation}
*/
public static final class ResponsiveSearchAdAssetRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)
ResponsiveSearchAdAssetRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdAssetRecommendation.newBuilder() to construct.
private ResponsiveSearchAdAssetRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdAssetRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdAssetRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class);
}
private int bitField0_;
public static final int CURRENT_AD_FIELD_NUMBER = 3;
private com.google.ads.googleads.v16.resources.Ad currentAd_;
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
@java.lang.Override
public boolean hasCurrentAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getCurrentAd() {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
public static final int RECOMMENDED_ASSETS_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Ad recommendedAssets_;
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAssets field is set.
*/
@java.lang.Override
public boolean hasRecommendedAssets() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAssets.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getRecommendedAssets() {
return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_;
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder() {
return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRecommendedAssets());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getCurrentAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRecommendedAssets());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCurrentAd());
}
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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) obj;
if (hasCurrentAd() != other.hasCurrentAd()) return false;
if (hasCurrentAd()) {
if (!getCurrentAd()
.equals(other.getCurrentAd())) return false;
}
if (hasRecommendedAssets() != other.hasRecommendedAssets()) return false;
if (hasRecommendedAssets()) {
if (!getRecommendedAssets()
.equals(other.getRecommendedAssets())) 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 (hasCurrentAd()) {
hash = (37 * hash) + CURRENT_AD_FIELD_NUMBER;
hash = (53 * hash) + getCurrentAd().hashCode();
}
if (hasRecommendedAssets()) {
hash = (37 * hash) + RECOMMENDED_ASSETS_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedAssets().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation 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;
}
/**
*
* The add responsive search ad asset recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCurrentAdFieldBuilder();
getRecommendedAssetsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currentAd_ = null;
if (currentAdBuilder_ != null) {
currentAdBuilder_.dispose();
currentAdBuilder_ = null;
}
recommendedAssets_ = null;
if (recommendedAssetsBuilder_ != null) {
recommendedAssetsBuilder_.dispose();
recommendedAssetsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdAssetRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currentAd_ = currentAdBuilder_ == null
? currentAd_
: currentAdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedAssets_ = recommendedAssetsBuilder_ == null
? recommendedAssets_
: recommendedAssetsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation.getDefaultInstance()) return this;
if (other.hasCurrentAd()) {
mergeCurrentAd(other.getCurrentAd());
}
if (other.hasRecommendedAssets()) {
mergeRecommendedAssets(other.getRecommendedAssets());
}
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 18: {
input.readMessage(
getRecommendedAssetsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCurrentAdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.ads.googleads.v16.resources.Ad currentAd_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> currentAdBuilder_;
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
public boolean hasCurrentAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
public com.google.ads.googleads.v16.resources.Ad getCurrentAd() {
if (currentAdBuilder_ == null) {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
} else {
return currentAdBuilder_.getMessage();
}
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCurrentAd(com.google.ads.googleads.v16.resources.Ad value) {
if (currentAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentAd_ = value;
} else {
currentAdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCurrentAd(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (currentAdBuilder_ == null) {
currentAd_ = builderForValue.build();
} else {
currentAdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeCurrentAd(com.google.ads.googleads.v16.resources.Ad value) {
if (currentAdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
currentAd_ != null &&
currentAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getCurrentAdBuilder().mergeFrom(value);
} else {
currentAd_ = value;
}
} else {
currentAdBuilder_.mergeFrom(value);
}
if (currentAd_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCurrentAd() {
bitField0_ = (bitField0_ & ~0x00000001);
currentAd_ = null;
if (currentAdBuilder_ != null) {
currentAdBuilder_.dispose();
currentAdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getCurrentAdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCurrentAdFieldBuilder().getBuilder();
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() {
if (currentAdBuilder_ != null) {
return currentAdBuilder_.getMessageOrBuilder();
} else {
return currentAd_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getCurrentAdFieldBuilder() {
if (currentAdBuilder_ == null) {
currentAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getCurrentAd(),
getParentForChildren(),
isClean());
currentAd_ = null;
}
return currentAdBuilder_;
}
private com.google.ads.googleads.v16.resources.Ad recommendedAssets_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> recommendedAssetsBuilder_;
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAssets field is set.
*/
public boolean hasRecommendedAssets() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAssets.
*/
public com.google.ads.googleads.v16.resources.Ad getRecommendedAssets() {
if (recommendedAssetsBuilder_ == null) {
return recommendedAssets_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_;
} else {
return recommendedAssetsBuilder_.getMessage();
}
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedAssets(com.google.ads.googleads.v16.resources.Ad value) {
if (recommendedAssetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recommendedAssets_ = value;
} else {
recommendedAssetsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedAssets(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (recommendedAssetsBuilder_ == null) {
recommendedAssets_ = builderForValue.build();
} else {
recommendedAssetsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRecommendedAssets(com.google.ads.googleads.v16.resources.Ad value) {
if (recommendedAssetsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
recommendedAssets_ != null &&
recommendedAssets_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getRecommendedAssetsBuilder().mergeFrom(value);
} else {
recommendedAssets_ = value;
}
} else {
recommendedAssetsBuilder_.mergeFrom(value);
}
if (recommendedAssets_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedAssets() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedAssets_ = null;
if (recommendedAssetsBuilder_ != null) {
recommendedAssetsBuilder_.dispose();
recommendedAssetsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getRecommendedAssetsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRecommendedAssetsFieldBuilder().getBuilder();
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAssetsOrBuilder() {
if (recommendedAssetsBuilder_ != null) {
return recommendedAssetsBuilder_.getMessageOrBuilder();
} else {
return recommendedAssets_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAssets_;
}
}
/**
*
* Output only. The recommended assets. This is populated only with the new
* headlines and/or descriptions, and is otherwise empty.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_assets = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getRecommendedAssetsFieldBuilder() {
if (recommendedAssetsBuilder_ == null) {
recommendedAssetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getRecommendedAssets(),
getParentForChildren(),
isClean());
recommendedAssets_ = null;
}
return recommendedAssetsBuilder_;
}
@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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdAssetRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdAssetRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
boolean hasCurrentAd();
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
com.google.ads.googleads.v16.resources.Ad getCurrentAd();
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder();
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAd field is set.
*/
boolean hasRecommendedAd();
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAd.
*/
com.google.ads.googleads.v16.resources.Ad getRecommendedAd();
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder();
}
/**
*
* The responsive search ad improve ad strength recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation}
*/
public static final class ResponsiveSearchAdImproveAdStrengthRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)
ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdImproveAdStrengthRecommendation.newBuilder() to construct.
private ResponsiveSearchAdImproveAdStrengthRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdImproveAdStrengthRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdImproveAdStrengthRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder.class);
}
private int bitField0_;
public static final int CURRENT_AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Ad currentAd_;
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
@java.lang.Override
public boolean hasCurrentAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getCurrentAd() {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
public static final int RECOMMENDED_AD_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Ad recommendedAd_;
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAd field is set.
*/
@java.lang.Override
public boolean hasRecommendedAd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAd.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getRecommendedAd() {
return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_;
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder() {
return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCurrentAd());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRecommendedAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCurrentAd());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRecommendedAd());
}
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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) obj;
if (hasCurrentAd() != other.hasCurrentAd()) return false;
if (hasCurrentAd()) {
if (!getCurrentAd()
.equals(other.getCurrentAd())) return false;
}
if (hasRecommendedAd() != other.hasRecommendedAd()) return false;
if (hasRecommendedAd()) {
if (!getRecommendedAd()
.equals(other.getRecommendedAd())) 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 (hasCurrentAd()) {
hash = (37 * hash) + CURRENT_AD_FIELD_NUMBER;
hash = (53 * hash) + getCurrentAd().hashCode();
}
if (hasRecommendedAd()) {
hash = (37 * hash) + RECOMMENDED_AD_FIELD_NUMBER;
hash = (53 * hash) + getRecommendedAd().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation 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;
}
/**
*
* The responsive search ad improve ad strength recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCurrentAdFieldBuilder();
getRecommendedAdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
currentAd_ = null;
if (currentAdBuilder_ != null) {
currentAdBuilder_.dispose();
currentAdBuilder_ = null;
}
recommendedAd_ = null;
if (recommendedAdBuilder_ != null) {
recommendedAdBuilder_.dispose();
recommendedAdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdImproveAdStrengthRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.currentAd_ = currentAdBuilder_ == null
? currentAd_
: currentAdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedAd_ = recommendedAdBuilder_ == null
? recommendedAd_
: recommendedAdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation.getDefaultInstance()) return this;
if (other.hasCurrentAd()) {
mergeCurrentAd(other.getCurrentAd());
}
if (other.hasRecommendedAd()) {
mergeRecommendedAd(other.getRecommendedAd());
}
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: {
input.readMessage(
getCurrentAdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getRecommendedAdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.ads.googleads.v16.resources.Ad currentAd_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> currentAdBuilder_;
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the currentAd field is set.
*/
public boolean hasCurrentAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAd.
*/
public com.google.ads.googleads.v16.resources.Ad getCurrentAd() {
if (currentAdBuilder_ == null) {
return currentAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
} else {
return currentAdBuilder_.getMessage();
}
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCurrentAd(com.google.ads.googleads.v16.resources.Ad value) {
if (currentAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentAd_ = value;
} else {
currentAdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCurrentAd(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (currentAdBuilder_ == null) {
currentAd_ = builderForValue.build();
} else {
currentAdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeCurrentAd(com.google.ads.googleads.v16.resources.Ad value) {
if (currentAdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
currentAd_ != null &&
currentAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getCurrentAdBuilder().mergeFrom(value);
} else {
currentAd_ = value;
}
} else {
currentAdBuilder_.mergeFrom(value);
}
if (currentAd_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCurrentAd() {
bitField0_ = (bitField0_ & ~0x00000001);
currentAd_ = null;
if (currentAdBuilder_ != null) {
currentAdBuilder_.dispose();
currentAdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getCurrentAdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCurrentAdFieldBuilder().getBuilder();
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getCurrentAdOrBuilder() {
if (currentAdBuilder_ != null) {
return currentAdBuilder_.getMessageOrBuilder();
} else {
return currentAd_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : currentAd_;
}
}
/**
*
* Output only. The current ad to be updated.
*
*
* .google.ads.googleads.v16.resources.Ad current_ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getCurrentAdFieldBuilder() {
if (currentAdBuilder_ == null) {
currentAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getCurrentAd(),
getParentForChildren(),
isClean());
currentAd_ = null;
}
return currentAdBuilder_;
}
private com.google.ads.googleads.v16.resources.Ad recommendedAd_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> recommendedAdBuilder_;
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedAd field is set.
*/
public boolean hasRecommendedAd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedAd.
*/
public com.google.ads.googleads.v16.resources.Ad getRecommendedAd() {
if (recommendedAdBuilder_ == null) {
return recommendedAd_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_;
} else {
return recommendedAdBuilder_.getMessage();
}
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedAd(com.google.ads.googleads.v16.resources.Ad value) {
if (recommendedAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recommendedAd_ = value;
} else {
recommendedAdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setRecommendedAd(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (recommendedAdBuilder_ == null) {
recommendedAd_ = builderForValue.build();
} else {
recommendedAdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeRecommendedAd(com.google.ads.googleads.v16.resources.Ad value) {
if (recommendedAdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
recommendedAd_ != null &&
recommendedAd_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getRecommendedAdBuilder().mergeFrom(value);
} else {
recommendedAd_ = value;
}
} else {
recommendedAdBuilder_.mergeFrom(value);
}
if (recommendedAd_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearRecommendedAd() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedAd_ = null;
if (recommendedAdBuilder_ != null) {
recommendedAdBuilder_.dispose();
recommendedAdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getRecommendedAdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRecommendedAdFieldBuilder().getBuilder();
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getRecommendedAdOrBuilder() {
if (recommendedAdBuilder_ != null) {
return recommendedAdBuilder_.getMessageOrBuilder();
} else {
return recommendedAd_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : recommendedAd_;
}
}
/**
*
* Output only. The updated ad.
*
*
* .google.ads.googleads.v16.resources.Ad recommended_ad = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getRecommendedAdFieldBuilder() {
if (recommendedAdBuilder_ == null) {
recommendedAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getRecommendedAd(),
getParentForChildren(),
isClean());
recommendedAd_ = null;
}
return recommendedAdBuilder_;
}
@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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdImproveAdStrengthRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdImproveAdStrengthRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsiveSearchAdRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
boolean hasAd();
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
com.google.ads.googleads.v16.resources.Ad getAd();
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder();
}
/**
*
* The add responsive search ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation}
*/
public static final class ResponsiveSearchAdRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)
ResponsiveSearchAdRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdRecommendation.newBuilder() to construct.
private ResponsiveSearchAdRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class);
}
private int bitField0_;
public static final int AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Ad ad_;
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
@java.lang.Override
public boolean hasAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Ad getAd() {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAd());
}
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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) obj;
if (hasAd() != other.hasAd()) return false;
if (hasAd()) {
if (!getAd()
.equals(other.getAd())) 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 (hasAd()) {
hash = (37 * hash) + AD_FIELD_NUMBER;
hash = (53 * hash) + getAd().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation 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;
}
/**
*
* The add responsive search ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ad_ = null;
if (adBuilder_ != null) {
adBuilder_.dispose();
adBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ResponsiveSearchAdRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ad_ = adBuilder_ == null
? ad_
: adBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation.getDefaultInstance()) return this;
if (other.hasAd()) {
mergeAd(other.getAd());
}
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: {
input.readMessage(
getAdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 com.google.ads.googleads.v16.resources.Ad ad_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder> adBuilder_;
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the ad field is set.
*/
public boolean hasAd() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The ad.
*/
public com.google.ads.googleads.v16.resources.Ad getAd() {
if (adBuilder_ == null) {
return ad_ == null ? com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
} else {
return adBuilder_.getMessage();
}
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAd(com.google.ads.googleads.v16.resources.Ad value) {
if (adBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ad_ = value;
} else {
adBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setAd(
com.google.ads.googleads.v16.resources.Ad.Builder builderForValue) {
if (adBuilder_ == null) {
ad_ = builderForValue.build();
} else {
adBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeAd(com.google.ads.googleads.v16.resources.Ad value) {
if (adBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ad_ != null &&
ad_ != com.google.ads.googleads.v16.resources.Ad.getDefaultInstance()) {
getAdBuilder().mergeFrom(value);
} else {
ad_ = value;
}
} else {
adBuilder_.mergeFrom(value);
}
if (ad_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearAd() {
bitField0_ = (bitField0_ & ~0x00000001);
ad_ = null;
if (adBuilder_ != null) {
adBuilder_.dispose();
adBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Ad.Builder getAdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAdFieldBuilder().getBuilder();
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.AdOrBuilder getAdOrBuilder() {
if (adBuilder_ != null) {
return adBuilder_.getMessageOrBuilder();
} else {
return ad_ == null ?
com.google.ads.googleads.v16.resources.Ad.getDefaultInstance() : ad_;
}
}
/**
*
* Output only. Recommended ad.
*
*
* .google.ads.googleads.v16.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>
getAdFieldBuilder() {
if (adBuilder_ == null) {
adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Ad, com.google.ads.googleads.v16.resources.Ad.Builder, com.google.ads.googleads.v16.resources.AdOrBuilder>(
getAd(),
getParentForChildren(),
isClean());
ad_ = null;
}
return adBuilder_;
}
@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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdRecommendation 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.v16.resources.Recommendation.ResponsiveSearchAdRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UseBroadMatchKeywordRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List
getKeywordList();
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index);
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
int getKeywordCount();
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
java.util.List extends com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordOrBuilderList();
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder(
int index);
/**
*
* Output only. Total number of keywords to be expanded to Broad Match in
* the campaign.
*
*
* int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The suggestedKeywordsCount.
*/
long getSuggestedKeywordsCount();
/**
*
* Output only. Total number of keywords in the campaign.
*
*
* int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignKeywordsCount.
*/
long getCampaignKeywordsCount();
/**
*
* Output only. Whether the associated campaign uses a shared budget.
*
*
* bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignUsesSharedBudget.
*/
boolean getCampaignUsesSharedBudget();
/**
*
* Output only. The budget recommended to avoid becoming budget constrained
* after applying the recommendation.
*
*
* int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
long getRequiredCampaignBudgetAmountMicros();
}
/**
*
* The use broad match keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation}
*/
public static final class UseBroadMatchKeywordRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)
UseBroadMatchKeywordRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use UseBroadMatchKeywordRecommendation.newBuilder() to construct.
private UseBroadMatchKeywordRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UseBroadMatchKeywordRecommendation() {
keyword_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UseBroadMatchKeywordRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class);
}
public static final int KEYWORD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List keyword_;
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getKeywordList() {
return keyword_;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordOrBuilderList() {
return keyword_;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getKeywordCount() {
return keyword_.size();
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index) {
return keyword_.get(index);
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder(
int index) {
return keyword_.get(index);
}
public static final int SUGGESTED_KEYWORDS_COUNT_FIELD_NUMBER = 2;
private long suggestedKeywordsCount_ = 0L;
/**
*
* Output only. Total number of keywords to be expanded to Broad Match in
* the campaign.
*
*
* int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The suggestedKeywordsCount.
*/
@java.lang.Override
public long getSuggestedKeywordsCount() {
return suggestedKeywordsCount_;
}
public static final int CAMPAIGN_KEYWORDS_COUNT_FIELD_NUMBER = 3;
private long campaignKeywordsCount_ = 0L;
/**
*
* Output only. Total number of keywords in the campaign.
*
*
* int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignKeywordsCount.
*/
@java.lang.Override
public long getCampaignKeywordsCount() {
return campaignKeywordsCount_;
}
public static final int CAMPAIGN_USES_SHARED_BUDGET_FIELD_NUMBER = 4;
private boolean campaignUsesSharedBudget_ = false;
/**
*
* Output only. Whether the associated campaign uses a shared budget.
*
*
* bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignUsesSharedBudget.
*/
@java.lang.Override
public boolean getCampaignUsesSharedBudget() {
return campaignUsesSharedBudget_;
}
public static final int REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 5;
private long requiredCampaignBudgetAmountMicros_ = 0L;
/**
*
* Output only. The budget recommended to avoid becoming budget constrained
* after applying the recommendation.
*
*
* int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < keyword_.size(); i++) {
output.writeMessage(1, keyword_.get(i));
}
if (suggestedKeywordsCount_ != 0L) {
output.writeInt64(2, suggestedKeywordsCount_);
}
if (campaignKeywordsCount_ != 0L) {
output.writeInt64(3, campaignKeywordsCount_);
}
if (campaignUsesSharedBudget_ != false) {
output.writeBool(4, campaignUsesSharedBudget_);
}
if (requiredCampaignBudgetAmountMicros_ != 0L) {
output.writeInt64(5, requiredCampaignBudgetAmountMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < keyword_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, keyword_.get(i));
}
if (suggestedKeywordsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, suggestedKeywordsCount_);
}
if (campaignKeywordsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, campaignKeywordsCount_);
}
if (campaignUsesSharedBudget_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, campaignUsesSharedBudget_);
}
if (requiredCampaignBudgetAmountMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, requiredCampaignBudgetAmountMicros_);
}
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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) obj;
if (!getKeywordList()
.equals(other.getKeywordList())) return false;
if (getSuggestedKeywordsCount()
!= other.getSuggestedKeywordsCount()) return false;
if (getCampaignKeywordsCount()
!= other.getCampaignKeywordsCount()) return false;
if (getCampaignUsesSharedBudget()
!= other.getCampaignUsesSharedBudget()) return false;
if (getRequiredCampaignBudgetAmountMicros()
!= other.getRequiredCampaignBudgetAmountMicros()) 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 (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
hash = (37 * hash) + SUGGESTED_KEYWORDS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSuggestedKeywordsCount());
hash = (37 * hash) + CAMPAIGN_KEYWORDS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCampaignKeywordsCount());
hash = (37 * hash) + CAMPAIGN_USES_SHARED_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCampaignUsesSharedBudget());
hash = (37 * hash) + REQUIRED_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequiredCampaignBudgetAmountMicros());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation 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;
}
/**
*
* The use broad match keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (keywordBuilder_ == null) {
keyword_ = java.util.Collections.emptyList();
} else {
keyword_ = null;
keywordBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
suggestedKeywordsCount_ = 0L;
campaignKeywordsCount_ = 0L;
campaignUsesSharedBudget_ = false;
requiredCampaignBudgetAmountMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UseBroadMatchKeywordRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result) {
if (keywordBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
keyword_ = java.util.Collections.unmodifiableList(keyword_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keyword_ = keyword_;
} else {
result.keyword_ = keywordBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.suggestedKeywordsCount_ = suggestedKeywordsCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.campaignKeywordsCount_ = campaignKeywordsCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.campaignUsesSharedBudget_ = campaignUsesSharedBudget_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.requiredCampaignBudgetAmountMicros_ = requiredCampaignBudgetAmountMicros_;
}
}
@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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation.getDefaultInstance()) return this;
if (keywordBuilder_ == null) {
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
} else {
if (!other.keyword_.isEmpty()) {
if (keywordBuilder_.isEmpty()) {
keywordBuilder_.dispose();
keywordBuilder_ = null;
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000001);
keywordBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeywordFieldBuilder() : null;
} else {
keywordBuilder_.addAllMessages(other.keyword_);
}
}
}
if (other.getSuggestedKeywordsCount() != 0L) {
setSuggestedKeywordsCount(other.getSuggestedKeywordsCount());
}
if (other.getCampaignKeywordsCount() != 0L) {
setCampaignKeywordsCount(other.getCampaignKeywordsCount());
}
if (other.getCampaignUsesSharedBudget() != false) {
setCampaignUsesSharedBudget(other.getCampaignUsesSharedBudget());
}
if (other.getRequiredCampaignBudgetAmountMicros() != 0L) {
setRequiredCampaignBudgetAmountMicros(other.getRequiredCampaignBudgetAmountMicros());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v16.common.KeywordInfo m =
input.readMessage(
com.google.ads.googleads.v16.common.KeywordInfo.parser(),
extensionRegistry);
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
keyword_.add(m);
} else {
keywordBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
suggestedKeywordsCount_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
campaignKeywordsCount_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
campaignUsesSharedBudget_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
requiredCampaignBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List keyword_ =
java.util.Collections.emptyList();
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keyword_ = new java.util.ArrayList(keyword_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder> keywordBuilder_;
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getKeywordList() {
if (keywordBuilder_ == null) {
return java.util.Collections.unmodifiableList(keyword_);
} else {
return keywordBuilder_.getMessageList();
}
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getKeywordCount() {
if (keywordBuilder_ == null) {
return keyword_.size();
} else {
return keywordBuilder_.getCount();
}
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo getKeyword(int index) {
if (keywordBuilder_ == null) {
return keyword_.get(index);
} else {
return keywordBuilder_.getMessage(index);
}
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(
int index, com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
} else {
keywordBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setKeyword(
int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
keyword_.set(index, builderForValue.build());
onChanged();
} else {
keywordBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addKeyword(com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
} else {
keywordBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addKeyword(
int index, com.google.ads.googleads.v16.common.KeywordInfo value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(index, value);
onChanged();
} else {
keywordBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addKeyword(
com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
keyword_.add(builderForValue.build());
onChanged();
} else {
keywordBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addKeyword(
int index, com.google.ads.googleads.v16.common.KeywordInfo.Builder builderForValue) {
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
keyword_.add(index, builderForValue.build());
onChanged();
} else {
keywordBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllKeyword(
java.lang.Iterable extends com.google.ads.googleads.v16.common.KeywordInfo> values) {
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
} else {
keywordBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearKeyword() {
if (keywordBuilder_ == null) {
keyword_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
keywordBuilder_.clear();
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeKeyword(int index) {
if (keywordBuilder_ == null) {
ensureKeywordIsMutable();
keyword_.remove(index);
onChanged();
} else {
keywordBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo.Builder getKeywordBuilder(
int index) {
return getKeywordFieldBuilder().getBuilder(index);
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfoOrBuilder getKeywordOrBuilder(
int index) {
if (keywordBuilder_ == null) {
return keyword_.get(index); } else {
return keywordBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordOrBuilderList() {
if (keywordBuilder_ != null) {
return keywordBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keyword_);
}
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordBuilder() {
return getKeywordFieldBuilder().addBuilder(
com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance());
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.common.KeywordInfo.Builder addKeywordBuilder(
int index) {
return getKeywordFieldBuilder().addBuilder(
index, com.google.ads.googleads.v16.common.KeywordInfo.getDefaultInstance());
}
/**
*
* Output only. Sample of keywords to be expanded to Broad Match.
*
*
* repeated .google.ads.googleads.v16.common.KeywordInfo keyword = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getKeywordBuilderList() {
return getKeywordFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
keywordBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v16.common.KeywordInfo, com.google.ads.googleads.v16.common.KeywordInfo.Builder, com.google.ads.googleads.v16.common.KeywordInfoOrBuilder>(
keyword_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
keyword_ = null;
}
return keywordBuilder_;
}
private long suggestedKeywordsCount_ ;
/**
*
* Output only. Total number of keywords to be expanded to Broad Match in
* the campaign.
*
*
* int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The suggestedKeywordsCount.
*/
@java.lang.Override
public long getSuggestedKeywordsCount() {
return suggestedKeywordsCount_;
}
/**
*
* Output only. Total number of keywords to be expanded to Broad Match in
* the campaign.
*
*
* int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The suggestedKeywordsCount to set.
* @return This builder for chaining.
*/
public Builder setSuggestedKeywordsCount(long value) {
suggestedKeywordsCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Total number of keywords to be expanded to Broad Match in
* the campaign.
*
*
* int64 suggested_keywords_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSuggestedKeywordsCount() {
bitField0_ = (bitField0_ & ~0x00000002);
suggestedKeywordsCount_ = 0L;
onChanged();
return this;
}
private long campaignKeywordsCount_ ;
/**
*
* Output only. Total number of keywords in the campaign.
*
*
* int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignKeywordsCount.
*/
@java.lang.Override
public long getCampaignKeywordsCount() {
return campaignKeywordsCount_;
}
/**
*
* Output only. Total number of keywords in the campaign.
*
*
* int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The campaignKeywordsCount to set.
* @return This builder for chaining.
*/
public Builder setCampaignKeywordsCount(long value) {
campaignKeywordsCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Total number of keywords in the campaign.
*
*
* int64 campaign_keywords_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCampaignKeywordsCount() {
bitField0_ = (bitField0_ & ~0x00000004);
campaignKeywordsCount_ = 0L;
onChanged();
return this;
}
private boolean campaignUsesSharedBudget_ ;
/**
*
* Output only. Whether the associated campaign uses a shared budget.
*
*
* bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignUsesSharedBudget.
*/
@java.lang.Override
public boolean getCampaignUsesSharedBudget() {
return campaignUsesSharedBudget_;
}
/**
*
* Output only. Whether the associated campaign uses a shared budget.
*
*
* bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The campaignUsesSharedBudget to set.
* @return This builder for chaining.
*/
public Builder setCampaignUsesSharedBudget(boolean value) {
campaignUsesSharedBudget_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Whether the associated campaign uses a shared budget.
*
*
* bool campaign_uses_shared_budget = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCampaignUsesSharedBudget() {
bitField0_ = (bitField0_ & ~0x00000008);
campaignUsesSharedBudget_ = false;
onChanged();
return this;
}
private long requiredCampaignBudgetAmountMicros_ ;
/**
*
* Output only. The budget recommended to avoid becoming budget constrained
* after applying the recommendation.
*
*
* int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The requiredCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getRequiredCampaignBudgetAmountMicros() {
return requiredCampaignBudgetAmountMicros_;
}
/**
*
* Output only. The budget recommended to avoid becoming budget constrained
* after applying the recommendation.
*
*
* int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The requiredCampaignBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setRequiredCampaignBudgetAmountMicros(long value) {
requiredCampaignBudgetAmountMicros_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. The budget recommended to avoid becoming budget constrained
* after applying the recommendation.
*
*
* int64 required_campaign_budget_amount_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRequiredCampaignBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000010);
requiredCampaignBudgetAmountMicros_ = 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UseBroadMatchKeywordRecommendation 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.v16.resources.Recommendation.UseBroadMatchKeywordRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. ID of Merchant Center account.
*
*
* int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchantId.
*/
long getMerchantId();
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The salesCountryCode.
*/
java.lang.String getSalesCountryCode();
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for salesCountryCode.
*/
com.google.protobuf.ByteString
getSalesCountryCodeBytes();
}
/**
*
* The upgrade a Smart Shopping campaign to a Performance Max campaign
* recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation}
*/
public static final class UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)
UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.newBuilder() to construct.
private UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation() {
salesCountryCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder.class);
}
public static final int MERCHANT_ID_FIELD_NUMBER = 1;
private long merchantId_ = 0L;
/**
*
* Output only. ID of Merchant Center account.
*
*
* int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchantId.
*/
@java.lang.Override
public long getMerchantId() {
return merchantId_;
}
public static final int SALES_COUNTRY_CODE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object salesCountryCode_ = "";
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The salesCountryCode.
*/
@java.lang.Override
public java.lang.String getSalesCountryCode() {
java.lang.Object ref = salesCountryCode_;
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();
salesCountryCode_ = s;
return s;
}
}
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for salesCountryCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSalesCountryCodeBytes() {
java.lang.Object ref = salesCountryCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salesCountryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (merchantId_ != 0L) {
output.writeInt64(1, merchantId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesCountryCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, salesCountryCode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (merchantId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, merchantId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salesCountryCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, salesCountryCode_);
}
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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) obj;
if (getMerchantId()
!= other.getMerchantId()) return false;
if (!getSalesCountryCode()
.equals(other.getSalesCountryCode())) 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) + MERCHANT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMerchantId());
hash = (37 * hash) + SALES_COUNTRY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getSalesCountryCode().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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;
}
/**
*
* The upgrade a Smart Shopping campaign to a Performance Max campaign
* recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchantId_ = 0L;
salesCountryCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchantId_ = merchantId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.salesCountryCode_ = salesCountryCode_;
}
}
@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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation.getDefaultInstance()) return this;
if (other.getMerchantId() != 0L) {
setMerchantId(other.getMerchantId());
}
if (!other.getSalesCountryCode().isEmpty()) {
salesCountryCode_ = other.salesCountryCode_;
bitField0_ |= 0x00000002;
onChanged();
}
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 8: {
merchantId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
salesCountryCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 merchantId_ ;
/**
*
* Output only. ID of Merchant Center account.
*
*
* int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchantId.
*/
@java.lang.Override
public long getMerchantId() {
return merchantId_;
}
/**
*
* Output only. ID of Merchant Center account.
*
*
* int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The merchantId to set.
* @return This builder for chaining.
*/
public Builder setMerchantId(long value) {
merchantId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. ID of Merchant Center account.
*
*
* int64 merchant_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearMerchantId() {
bitField0_ = (bitField0_ & ~0x00000001);
merchantId_ = 0L;
onChanged();
return this;
}
private java.lang.Object salesCountryCode_ = "";
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The salesCountryCode.
*/
public java.lang.String getSalesCountryCode() {
java.lang.Object ref = salesCountryCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
salesCountryCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for salesCountryCode.
*/
public com.google.protobuf.ByteString
getSalesCountryCodeBytes() {
java.lang.Object ref = salesCountryCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
salesCountryCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The salesCountryCode to set.
* @return This builder for chaining.
*/
public Builder setSalesCountryCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
salesCountryCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSalesCountryCode() {
salesCountryCode_ = getDefaultInstance().getSalesCountryCode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. Country whose products from merchant's inventory should be
* included.
*
*
* string sales_country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for salesCountryCode to set.
* @return This builder for chaining.
*/
public Builder setSalesCountryCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
salesCountryCode_ = value;
bitField0_ |= 0x00000002;
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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RaiseTargetCpaBidTooLowRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetMultiplier field is set.
*/
boolean hasRecommendedTargetMultiplier();
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
double getRecommendedTargetMultiplier();
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the averageTargetCpaMicros field is set.
*/
boolean hasAverageTargetCpaMicros();
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The averageTargetCpaMicros.
*/
long getAverageTargetCpaMicros();
}
/**
*
* The raise target CPA bid too low recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation}
*/
public static final class RaiseTargetCpaBidTooLowRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)
RaiseTargetCpaBidTooLowRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use RaiseTargetCpaBidTooLowRecommendation.newBuilder() to construct.
private RaiseTargetCpaBidTooLowRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RaiseTargetCpaBidTooLowRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RaiseTargetCpaBidTooLowRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder.class);
}
private int bitField0_;
public static final int RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER = 1;
private double recommendedTargetMultiplier_ = 0D;
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetMultiplier field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetMultiplier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
@java.lang.Override
public double getRecommendedTargetMultiplier() {
return recommendedTargetMultiplier_;
}
public static final int AVERAGE_TARGET_CPA_MICROS_FIELD_NUMBER = 2;
private long averageTargetCpaMicros_ = 0L;
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the averageTargetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasAverageTargetCpaMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The averageTargetCpaMicros.
*/
@java.lang.Override
public long getAverageTargetCpaMicros() {
return averageTargetCpaMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeDouble(1, recommendedTargetMultiplier_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, averageTargetCpaMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, recommendedTargetMultiplier_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, averageTargetCpaMicros_);
}
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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) obj;
if (hasRecommendedTargetMultiplier() != other.hasRecommendedTargetMultiplier()) return false;
if (hasRecommendedTargetMultiplier()) {
if (java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier())
!= java.lang.Double.doubleToLongBits(
other.getRecommendedTargetMultiplier())) return false;
}
if (hasAverageTargetCpaMicros() != other.hasAverageTargetCpaMicros()) return false;
if (hasAverageTargetCpaMicros()) {
if (getAverageTargetCpaMicros()
!= other.getAverageTargetCpaMicros()) 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 (hasRecommendedTargetMultiplier()) {
hash = (37 * hash) + RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier()));
}
if (hasAverageTargetCpaMicros()) {
hash = (37 * hash) + AVERAGE_TARGET_CPA_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAverageTargetCpaMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation 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;
}
/**
*
* The raise target CPA bid too low recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recommendedTargetMultiplier_ = 0D;
averageTargetCpaMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaBidTooLowRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recommendedTargetMultiplier_ = recommendedTargetMultiplier_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.averageTargetCpaMicros_ = averageTargetCpaMicros_;
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation.getDefaultInstance()) return this;
if (other.hasRecommendedTargetMultiplier()) {
setRecommendedTargetMultiplier(other.getRecommendedTargetMultiplier());
}
if (other.hasAverageTargetCpaMicros()) {
setAverageTargetCpaMicros(other.getAverageTargetCpaMicros());
}
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 9: {
recommendedTargetMultiplier_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 16: {
averageTargetCpaMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
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 double recommendedTargetMultiplier_ ;
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the recommendedTargetMultiplier field is set.
*/
@java.lang.Override
public boolean hasRecommendedTargetMultiplier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
@java.lang.Override
public double getRecommendedTargetMultiplier() {
return recommendedTargetMultiplier_;
}
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedTargetMultiplier to set.
* @return This builder for chaining.
*/
public Builder setRecommendedTargetMultiplier(double value) {
recommendedTargetMultiplier_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. A number greater than 1.0 indicating the factor by which we
* recommend the target CPA should be increased.
*
*
* optional double recommended_target_multiplier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedTargetMultiplier() {
bitField0_ = (bitField0_ & ~0x00000001);
recommendedTargetMultiplier_ = 0D;
onChanged();
return this;
}
private long averageTargetCpaMicros_ ;
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the averageTargetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasAverageTargetCpaMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The averageTargetCpaMicros.
*/
@java.lang.Override
public long getAverageTargetCpaMicros() {
return averageTargetCpaMicros_;
}
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The averageTargetCpaMicros to set.
* @return This builder for chaining.
*/
public Builder setAverageTargetCpaMicros(long value) {
averageTargetCpaMicros_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The current average target CPA of the campaign, in micros of
* customer local currency.
*
*
* optional int64 average_target_cpa_micros = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAverageTargetCpaMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
averageTargetCpaMicros_ = 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RaiseTargetCpaBidTooLowRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaBidTooLowRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DisplayExpansionOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The Display Expansion opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation}
*/
public static final class DisplayExpansionOptInRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)
DisplayExpansionOptInRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use DisplayExpansionOptInRecommendation.newBuilder() to construct.
private DisplayExpansionOptInRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DisplayExpansionOptInRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DisplayExpansionOptInRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation 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;
}
/**
*
* The Display Expansion opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_DisplayExpansionOptInRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DisplayExpansionOptInRecommendation 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.v16.resources.Recommendation.DisplayExpansionOptInRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* The Upgrade Local campaign to Performance Max campaign recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation}
*/
public static final class UpgradeLocalCampaignToPerformanceMaxRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)
UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpgradeLocalCampaignToPerformanceMaxRecommendation.newBuilder() to construct.
private UpgradeLocalCampaignToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpgradeLocalCampaignToPerformanceMaxRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpgradeLocalCampaignToPerformanceMaxRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation 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;
}
/**
*
* The Upgrade Local campaign to Performance Max campaign recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_UpgradeLocalCampaignToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation.getDefaultInstance()) return this;
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;
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;
}
@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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpgradeLocalCampaignToPerformanceMaxRecommendation 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.v16.resources.Recommendation.UpgradeLocalCampaignToPerformanceMaxRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ForecastingSetTargetRoasRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
double getRecommendedTargetRoas();
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the campaignBudget field is set.
*/
boolean hasCampaignBudget();
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignBudget.
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget();
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder();
}
/**
*
* The forecasting set target ROAS recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation}
*/
public static final class ForecastingSetTargetRoasRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)
ForecastingSetTargetRoasRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ForecastingSetTargetRoasRecommendation.newBuilder() to construct.
private ForecastingSetTargetRoasRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ForecastingSetTargetRoasRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ForecastingSetTargetRoasRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder.class);
}
private int bitField0_;
public static final int RECOMMENDED_TARGET_ROAS_FIELD_NUMBER = 1;
private double recommendedTargetRoas_ = 0D;
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
@java.lang.Override
public double getRecommendedTargetRoas() {
return recommendedTargetRoas_;
}
public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 2;
private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_;
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the campaignBudget field is set.
*/
@java.lang.Override
public boolean hasCampaignBudget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignBudget.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() {
return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_;
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() {
return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_;
}
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 (java.lang.Double.doubleToRawLongBits(recommendedTargetRoas_) != 0) {
output.writeDouble(1, recommendedTargetRoas_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCampaignBudget());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(recommendedTargetRoas_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, recommendedTargetRoas_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCampaignBudget());
}
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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) obj;
if (java.lang.Double.doubleToLongBits(getRecommendedTargetRoas())
!= java.lang.Double.doubleToLongBits(
other.getRecommendedTargetRoas())) return false;
if (hasCampaignBudget() != other.hasCampaignBudget()) return false;
if (hasCampaignBudget()) {
if (!getCampaignBudget()
.equals(other.getCampaignBudget())) 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) + RECOMMENDED_TARGET_ROAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRecommendedTargetRoas()));
if (hasCampaignBudget()) {
hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getCampaignBudget().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation 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;
}
/**
*
* The forecasting set target ROAS recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCampaignBudgetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recommendedTargetRoas_ = 0D;
campaignBudget_ = null;
if (campaignBudgetBuilder_ != null) {
campaignBudgetBuilder_.dispose();
campaignBudgetBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ForecastingSetTargetRoasRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recommendedTargetRoas_ = recommendedTargetRoas_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.campaignBudget_ = campaignBudgetBuilder_ == null
? campaignBudget_
: campaignBudgetBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation.getDefaultInstance()) return this;
if (other.getRecommendedTargetRoas() != 0D) {
setRecommendedTargetRoas(other.getRecommendedTargetRoas());
}
if (other.hasCampaignBudget()) {
mergeCampaignBudget(other.getCampaignBudget());
}
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 9: {
recommendedTargetRoas_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 18: {
input.readMessage(
getCampaignBudgetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 double recommendedTargetRoas_ ;
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetRoas.
*/
@java.lang.Override
public double getRecommendedTargetRoas() {
return recommendedTargetRoas_;
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedTargetRoas to set.
* @return This builder for chaining.
*/
public Builder setRecommendedTargetRoas(double value) {
recommendedTargetRoas_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The recommended target ROAS (revenue per unit of spend).
* The value is between 0.01 and 1000.0, inclusive.
*
*
* double recommended_target_roas = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedTargetRoas() {
bitField0_ = (bitField0_ & ~0x00000001);
recommendedTargetRoas_ = 0D;
onChanged();
return this;
}
private com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaignBudget_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder> campaignBudgetBuilder_;
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the campaignBudget field is set.
*/
public boolean hasCampaignBudget() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The campaignBudget.
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget getCampaignBudget() {
if (campaignBudgetBuilder_ == null) {
return campaignBudget_ == null ? com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_;
} else {
return campaignBudgetBuilder_.getMessage();
}
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) {
if (campaignBudgetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
campaignBudget_ = value;
} else {
campaignBudgetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCampaignBudget(
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder builderForValue) {
if (campaignBudgetBuilder_ == null) {
campaignBudget_ = builderForValue.build();
} else {
campaignBudgetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeCampaignBudget(com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget value) {
if (campaignBudgetBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
campaignBudget_ != null &&
campaignBudget_ != com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance()) {
getCampaignBudgetBuilder().mergeFrom(value);
} else {
campaignBudget_ = value;
}
} else {
campaignBudgetBuilder_.mergeFrom(value);
}
if (campaignBudget_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCampaignBudget() {
bitField0_ = (bitField0_ & ~0x00000002);
campaignBudget_ = null;
if (campaignBudgetBuilder_ != null) {
campaignBudgetBuilder_.dispose();
campaignBudgetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder getCampaignBudgetBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCampaignBudgetFieldBuilder().getBuilder();
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() {
if (campaignBudgetBuilder_ != null) {
return campaignBudgetBuilder_.getMessageOrBuilder();
} else {
return campaignBudget_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.getDefaultInstance() : campaignBudget_;
}
}
/**
*
* Output only. The campaign budget.
*
*
* .google.ads.googleads.v16.resources.Recommendation.CampaignBudget campaign_budget = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder>
getCampaignBudgetFieldBuilder() {
if (campaignBudgetBuilder_ == null) {
campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudget.Builder, com.google.ads.googleads.v16.resources.Recommendation.CampaignBudgetOrBuilder>(
getCampaignBudget(),
getParentForChildren(),
isClean());
campaignBudget_ = null;
}
return campaignBudgetBuilder_;
}
@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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ForecastingSetTargetRoasRecommendation 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.v16.resources.Recommendation.ForecastingSetTargetRoasRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingOfferAttributeRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
/**
*
* Output only. The number of online, servable offers.
*
*
* int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The offersCount.
*/
long getOffersCount();
/**
*
* Output only. The number of online, servable offers that are demoted for
* missing attributes. Visit the Merchant Center for more details.
*
*
* int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The demotedOffersCount.
*/
long getDemotedOffersCount();
}
/**
*
* The shopping recommendation to add an attribute to offers that are demoted
* because it is missing.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation}
*/
public static final class ShoppingOfferAttributeRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)
ShoppingOfferAttributeRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingOfferAttributeRecommendation.newBuilder() to construct.
private ShoppingOfferAttributeRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingOfferAttributeRecommendation() {
feedLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingOfferAttributeRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFERS_COUNT_FIELD_NUMBER = 3;
private long offersCount_ = 0L;
/**
*
* Output only. The number of online, servable offers.
*
*
* int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The offersCount.
*/
@java.lang.Override
public long getOffersCount() {
return offersCount_;
}
public static final int DEMOTED_OFFERS_COUNT_FIELD_NUMBER = 4;
private long demotedOffersCount_ = 0L;
/**
*
* Output only. The number of online, servable offers that are demoted for
* missing attributes. Visit the Merchant Center for more details.
*
*
* int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The demotedOffersCount.
*/
@java.lang.Override
public long getDemotedOffersCount() {
return demotedOffersCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_);
}
if (offersCount_ != 0L) {
output.writeInt64(3, offersCount_);
}
if (demotedOffersCount_ != 0L) {
output.writeInt64(4, demotedOffersCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_);
}
if (offersCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, offersCount_);
}
if (demotedOffersCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, demotedOffersCount_);
}
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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (!getFeedLabel()
.equals(other.getFeedLabel())) return false;
if (getOffersCount()
!= other.getOffersCount()) return false;
if (getDemotedOffersCount()
!= other.getDemotedOffersCount()) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (37 * hash) + OFFERS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffersCount());
hash = (37 * hash) + DEMOTED_OFFERS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDemotedOffersCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation 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;
}
/**
*
* The shopping recommendation to add an attribute to offers that are demoted
* because it is missing.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
feedLabel_ = "";
offersCount_ = 0L;
demotedOffersCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingOfferAttributeRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feedLabel_ = feedLabel_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.offersCount_ = offersCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.demotedOffersCount_ = demotedOffersCount_;
}
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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getOffersCount() != 0L) {
setOffersCount(other.getOffersCount());
}
if (other.getDemotedOffersCount() != 0L) {
setDemotedOffersCount(other.getDemotedOffersCount());
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
offersCount_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
demotedOffersCount_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The campaign feed label.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long offersCount_ ;
/**
*
* Output only. The number of online, servable offers.
*
*
* int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The offersCount.
*/
@java.lang.Override
public long getOffersCount() {
return offersCount_;
}
/**
*
* Output only. The number of online, servable offers.
*
*
* int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The offersCount to set.
* @return This builder for chaining.
*/
public Builder setOffersCount(long value) {
offersCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The number of online, servable offers.
*
*
* int64 offers_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearOffersCount() {
bitField0_ = (bitField0_ & ~0x00000004);
offersCount_ = 0L;
onChanged();
return this;
}
private long demotedOffersCount_ ;
/**
*
* Output only. The number of online, servable offers that are demoted for
* missing attributes. Visit the Merchant Center for more details.
*
*
* int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The demotedOffersCount.
*/
@java.lang.Override
public long getDemotedOffersCount() {
return demotedOffersCount_;
}
/**
*
* Output only. The number of online, servable offers that are demoted for
* missing attributes. Visit the Merchant Center for more details.
*
*
* int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The demotedOffersCount to set.
* @return This builder for chaining.
*/
public Builder setDemotedOffersCount(long value) {
demotedOffersCount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The number of online, servable offers that are demoted for
* missing attributes. Visit the Merchant Center for more details.
*
*
* int64 demoted_offers_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearDemotedOffersCount() {
bitField0_ = (bitField0_ & ~0x00000008);
demotedOffersCount_ = 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingOfferAttributeRecommendation 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.v16.resources.Recommendation.ShoppingOfferAttributeRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingFixDisapprovedProductsRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
/**
*
* Output only. The number of products of the campaign.
*
*
* int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The productsCount.
*/
long getProductsCount();
/**
*
* Output only. The numbers of products of the campaign that are
* disapproved.
*
*
* int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The disapprovedProductsCount.
*/
long getDisapprovedProductsCount();
}
/**
*
* The shopping recommendation to fix disapproved products in a Shopping
* Campaign Inventory.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation}
*/
public static final class ShoppingFixDisapprovedProductsRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)
ShoppingFixDisapprovedProductsRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingFixDisapprovedProductsRecommendation.newBuilder() to construct.
private ShoppingFixDisapprovedProductsRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingFixDisapprovedProductsRecommendation() {
feedLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingFixDisapprovedProductsRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRODUCTS_COUNT_FIELD_NUMBER = 3;
private long productsCount_ = 0L;
/**
*
* Output only. The number of products of the campaign.
*
*
* int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The productsCount.
*/
@java.lang.Override
public long getProductsCount() {
return productsCount_;
}
public static final int DISAPPROVED_PRODUCTS_COUNT_FIELD_NUMBER = 4;
private long disapprovedProductsCount_ = 0L;
/**
*
* Output only. The numbers of products of the campaign that are
* disapproved.
*
*
* int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The disapprovedProductsCount.
*/
@java.lang.Override
public long getDisapprovedProductsCount() {
return disapprovedProductsCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_);
}
if (productsCount_ != 0L) {
output.writeInt64(3, productsCount_);
}
if (disapprovedProductsCount_ != 0L) {
output.writeInt64(4, disapprovedProductsCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_);
}
if (productsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, productsCount_);
}
if (disapprovedProductsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, disapprovedProductsCount_);
}
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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (!getFeedLabel()
.equals(other.getFeedLabel())) return false;
if (getProductsCount()
!= other.getProductsCount()) return false;
if (getDisapprovedProductsCount()
!= other.getDisapprovedProductsCount()) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (37 * hash) + PRODUCTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProductsCount());
hash = (37 * hash) + DISAPPROVED_PRODUCTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDisapprovedProductsCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation 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;
}
/**
*
* The shopping recommendation to fix disapproved products in a Shopping
* Campaign Inventory.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
feedLabel_ = "";
productsCount_ = 0L;
disapprovedProductsCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingFixDisapprovedProductsRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feedLabel_ = feedLabel_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.productsCount_ = productsCount_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.disapprovedProductsCount_ = disapprovedProductsCount_;
}
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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getProductsCount() != 0L) {
setProductsCount(other.getProductsCount());
}
if (other.getDisapprovedProductsCount() != 0L) {
setDisapprovedProductsCount(other.getDisapprovedProductsCount());
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
productsCount_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
disapprovedProductsCount_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long productsCount_ ;
/**
*
* Output only. The number of products of the campaign.
*
*
* int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The productsCount.
*/
@java.lang.Override
public long getProductsCount() {
return productsCount_;
}
/**
*
* Output only. The number of products of the campaign.
*
*
* int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The productsCount to set.
* @return This builder for chaining.
*/
public Builder setProductsCount(long value) {
productsCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The number of products of the campaign.
*
*
* int64 products_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearProductsCount() {
bitField0_ = (bitField0_ & ~0x00000004);
productsCount_ = 0L;
onChanged();
return this;
}
private long disapprovedProductsCount_ ;
/**
*
* Output only. The numbers of products of the campaign that are
* disapproved.
*
*
* int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The disapprovedProductsCount.
*/
@java.lang.Override
public long getDisapprovedProductsCount() {
return disapprovedProductsCount_;
}
/**
*
* Output only. The numbers of products of the campaign that are
* disapproved.
*
*
* int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The disapprovedProductsCount to set.
* @return This builder for chaining.
*/
public Builder setDisapprovedProductsCount(long value) {
disapprovedProductsCount_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. The numbers of products of the campaign that are
* disapproved.
*
*
* int64 disapproved_products_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearDisapprovedProductsCount() {
bitField0_ = (bitField0_ & ~0x00000008);
disapprovedProductsCount_ = 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingFixDisapprovedProductsRecommendation 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.v16.resources.Recommendation.ShoppingFixDisapprovedProductsRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingTargetAllOffersRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The number of untargeted offers.
*
*
* int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The untargetedOffersCount.
*/
long getUntargetedOffersCount();
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
}
/**
*
* The shopping recommendation to create a catch-all campaign that targets all
* offers.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation}
*/
public static final class ShoppingTargetAllOffersRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)
ShoppingTargetAllOffersRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingTargetAllOffersRecommendation.newBuilder() to construct.
private ShoppingTargetAllOffersRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingTargetAllOffersRecommendation() {
feedLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingTargetAllOffersRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int UNTARGETED_OFFERS_COUNT_FIELD_NUMBER = 2;
private long untargetedOffersCount_ = 0L;
/**
*
* Output only. The number of untargeted offers.
*
*
* int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The untargetedOffersCount.
*/
@java.lang.Override
public long getUntargetedOffersCount() {
return untargetedOffersCount_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (untargetedOffersCount_ != 0L) {
output.writeInt64(2, untargetedOffersCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, feedLabel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (untargetedOffersCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, untargetedOffersCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, feedLabel_);
}
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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (getUntargetedOffersCount()
!= other.getUntargetedOffersCount()) return false;
if (!getFeedLabel()
.equals(other.getFeedLabel())) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + UNTARGETED_OFFERS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUntargetedOffersCount());
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation 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;
}
/**
*
* The shopping recommendation to create a catch-all campaign that targets all
* offers.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
untargetedOffersCount_ = 0L;
feedLabel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingTargetAllOffersRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.untargetedOffersCount_ = untargetedOffersCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.feedLabel_ = feedLabel_;
}
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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (other.getUntargetedOffersCount() != 0L) {
setUntargetedOffersCount(other.getUntargetedOffersCount());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000004;
onChanged();
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
untargetedOffersCount_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private long untargetedOffersCount_ ;
/**
*
* Output only. The number of untargeted offers.
*
*
* int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The untargetedOffersCount.
*/
@java.lang.Override
public long getUntargetedOffersCount() {
return untargetedOffersCount_;
}
/**
*
* Output only. The number of untargeted offers.
*
*
* int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The untargetedOffersCount to set.
* @return This builder for chaining.
*/
public Builder setUntargetedOffersCount(long value) {
untargetedOffersCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The number of untargeted offers.
*
*
* int64 untargeted_offers_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearUntargetedOffersCount() {
bitField0_ = (bitField0_ & ~0x00000002);
untargetedOffersCount_ = 0L;
onChanged();
return this;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. The offer feed label.
*
*
* string feed_label = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000004;
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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingTargetAllOffersRecommendation 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.v16.resources.Recommendation.ShoppingTargetAllOffersRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingAddProductsToCampaignRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for reason.
*/
int getReasonValue();
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The reason.
*/
com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason();
}
/**
*
* The shopping recommendation to add products to a Shopping Campaign
* Inventory.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation}
*/
public static final class ShoppingAddProductsToCampaignRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)
ShoppingAddProductsToCampaignRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingAddProductsToCampaignRecommendation.newBuilder() to construct.
private ShoppingAddProductsToCampaignRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingAddProductsToCampaignRecommendation() {
feedLabel_ = "";
reason_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingAddProductsToCampaignRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REASON_FIELD_NUMBER = 3;
private int reason_ = 0;
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The reason.
*/
@java.lang.Override public com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason() {
com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason result = com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.forNumber(reason_);
return result == null ? com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_);
}
if (reason_ != com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNSPECIFIED.getNumber()) {
output.writeEnum(3, reason_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_);
}
if (reason_ != com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, reason_);
}
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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (!getFeedLabel()
.equals(other.getFeedLabel())) return false;
if (reason_ != other.reason_) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation 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;
}
/**
*
* The shopping recommendation to add products to a Shopping Campaign
* Inventory.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
feedLabel_ = "";
reason_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingAddProductsToCampaignRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feedLabel_ = feedLabel_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.reason_ = reason_;
}
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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
reason_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The feed label for the campaign.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int reason_ = 0;
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonValue(int value) {
reason_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The reason.
*/
@java.lang.Override
public com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason getReason() {
com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason result = com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.forNumber(reason_);
return result == null ? com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason.UNRECOGNIZED : result;
}
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(com.google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
reason_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. The reason why no products are attached to the campaign.
*
*
* .google.ads.googleads.v16.enums.ShoppingAddProductsToCampaignRecommendationEnum.Reason reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000004);
reason_ = 0;
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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingAddProductsToCampaignRecommendation 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.v16.resources.Recommendation.ShoppingAddProductsToCampaignRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
}
/**
*
* The shopping recommendation to fix Merchant Center account suspension
* issues.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation}
*/
public static final class ShoppingMerchantCenterAccountSuspensionRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)
ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder() to construct.
private ShoppingMerchantCenterAccountSuspensionRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingMerchantCenterAccountSuspensionRecommendation() {
feedLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingMerchantCenterAccountSuspensionRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_);
}
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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (!getFeedLabel()
.equals(other.getFeedLabel())) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation 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;
}
/**
*
* The shopping recommendation to fix Merchant Center account suspension
* issues.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
feedLabel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMerchantCenterAccountSuspensionRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feedLabel_ = feedLabel_;
}
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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000002;
onChanged();
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The feed label of the campaign for which the suspension
* happened.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000002;
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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingMerchantCenterAccountSuspensionRecommendation 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.v16.resources.Recommendation.ShoppingMerchantCenterAccountSuspensionRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
boolean hasMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant();
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder();
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
java.lang.String getFeedLabel();
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
com.google.protobuf.ByteString
getFeedLabelBytes();
}
/**
*
* The shopping recommendation to migrate Regular Shopping Campaign targeted
* offers to Performance Max campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation}
*/
public static final class ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)
ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.newBuilder() to construct.
private ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation() {
feedLabel_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder.class);
}
private int bitField0_;
public static final int MERCHANT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
@java.lang.Override
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
public static final int FEED_LABEL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
@java.lang.Override
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
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();
feedLabel_ = s;
return s;
}
}
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, feedLabel_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMerchant());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedLabel_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, feedLabel_);
}
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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) obj;
if (hasMerchant() != other.hasMerchant()) return false;
if (hasMerchant()) {
if (!getMerchant()
.equals(other.getMerchant())) return false;
}
if (!getFeedLabel()
.equals(other.getFeedLabel())) 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 (hasMerchant()) {
hash = (37 * hash) + MERCHANT_FIELD_NUMBER;
hash = (53 * hash) + getMerchant().hashCode();
}
hash = (37 * hash) + FEED_LABEL_FIELD_NUMBER;
hash = (53 * hash) + getFeedLabel().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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;
}
/**
*
* The shopping recommendation to migrate Regular Shopping Campaign targeted
* offers to Performance Max campaigns.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMerchantFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
feedLabel_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.merchant_ = merchantBuilder_ == null
? merchant_
: merchantBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feedLabel_ = feedLabel_;
}
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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation.getDefaultInstance()) return this;
if (other.hasMerchant()) {
mergeMerchant(other.getMerchant());
}
if (!other.getFeedLabel().isEmpty()) {
feedLabel_ = other.feedLabel_;
bitField0_ |= 0x00000002;
onChanged();
}
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: {
input.readMessage(
getMerchantFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
feedLabel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder> merchantBuilder_;
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the merchant field is set.
*/
public boolean hasMerchant() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The merchant.
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo getMerchant() {
if (merchantBuilder_ == null) {
return merchant_ == null ? com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
} else {
return merchantBuilder_.getMessage();
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
merchant_ = value;
} else {
merchantBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMerchant(
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder builderForValue) {
if (merchantBuilder_ == null) {
merchant_ = builderForValue.build();
} else {
merchantBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMerchant(com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo value) {
if (merchantBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
merchant_ != null &&
merchant_ != com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance()) {
getMerchantBuilder().mergeFrom(value);
} else {
merchant_ = value;
}
} else {
merchantBuilder_.mergeFrom(value);
}
if (merchant_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMerchant() {
bitField0_ = (bitField0_ & ~0x00000001);
merchant_ = null;
if (merchantBuilder_ != null) {
merchantBuilder_.dispose();
merchantBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder getMerchantBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMerchantFieldBuilder().getBuilder();
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder getMerchantOrBuilder() {
if (merchantBuilder_ != null) {
return merchantBuilder_.getMessageOrBuilder();
} else {
return merchant_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.getDefaultInstance() : merchant_;
}
}
/**
*
* Output only. The details of the Merchant Center account.
*
*
* .google.ads.googleads.v16.resources.Recommendation.MerchantInfo merchant = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>
getMerchantFieldBuilder() {
if (merchantBuilder_ == null) {
merchantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.MerchantInfoOrBuilder>(
getMerchant(),
getParentForChildren(),
isClean());
merchant_ = null;
}
return merchantBuilder_;
}
private java.lang.Object feedLabel_ = "";
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The feedLabel.
*/
public java.lang.String getFeedLabel() {
java.lang.Object ref = feedLabel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedLabel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for feedLabel.
*/
public com.google.protobuf.ByteString
getFeedLabelBytes() {
java.lang.Object ref = feedLabel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedLabel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabel(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feedLabel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearFeedLabel() {
feedLabel_ = getDefaultInstance().getFeedLabel();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. The feed label of the offers targeted by the campaigns
* sharing this suggestion.
*
*
* string feed_label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for feedLabel to set.
* @return This builder for chaining.
*/
public Builder setFeedLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feedLabel_ = value;
bitField0_ |= 0x00000002;
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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation 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.v16.resources.Recommendation.ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetAdjustmentInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the sharedSet field is set.
*/
boolean hasSharedSet();
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The sharedSet.
*/
java.lang.String getSharedSet();
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for sharedSet.
*/
com.google.protobuf.ByteString
getSharedSetBytes();
/**
*
* Output only. The factor by which we recommend the target to be adjusted
* by.
*
*
* double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
double getRecommendedTargetMultiplier();
/**
*
* Output only. The current average target of the campaign or portfolio
* targeted by this recommendation.
*
*
* int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAverageTargetMicros.
*/
long getCurrentAverageTargetMicros();
}
/**
*
* Information of a target adjustment recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo}
*/
public static final class TargetAdjustmentInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)
TargetAdjustmentInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetAdjustmentInfo.newBuilder() to construct.
private TargetAdjustmentInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetAdjustmentInfo() {
sharedSet_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetAdjustmentInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.class, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder.class);
}
private int bitField0_;
public static final int SHARED_SET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sharedSet_ = "";
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the sharedSet field is set.
*/
@java.lang.Override
public boolean hasSharedSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The sharedSet.
*/
@java.lang.Override
public java.lang.String getSharedSet() {
java.lang.Object ref = sharedSet_;
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();
sharedSet_ = s;
return s;
}
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for sharedSet.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSharedSetBytes() {
java.lang.Object ref = sharedSet_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER = 2;
private double recommendedTargetMultiplier_ = 0D;
/**
*
* Output only. The factor by which we recommend the target to be adjusted
* by.
*
*
* double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
@java.lang.Override
public double getRecommendedTargetMultiplier() {
return recommendedTargetMultiplier_;
}
public static final int CURRENT_AVERAGE_TARGET_MICROS_FIELD_NUMBER = 3;
private long currentAverageTargetMicros_ = 0L;
/**
*
* Output only. The current average target of the campaign or portfolio
* targeted by this recommendation.
*
*
* int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAverageTargetMicros.
*/
@java.lang.Override
public long getCurrentAverageTargetMicros() {
return currentAverageTargetMicros_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sharedSet_);
}
if (java.lang.Double.doubleToRawLongBits(recommendedTargetMultiplier_) != 0) {
output.writeDouble(2, recommendedTargetMultiplier_);
}
if (currentAverageTargetMicros_ != 0L) {
output.writeInt64(3, currentAverageTargetMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sharedSet_);
}
if (java.lang.Double.doubleToRawLongBits(recommendedTargetMultiplier_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, recommendedTargetMultiplier_);
}
if (currentAverageTargetMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, currentAverageTargetMicros_);
}
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.v16.resources.Recommendation.TargetAdjustmentInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo other = (com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo) obj;
if (hasSharedSet() != other.hasSharedSet()) return false;
if (hasSharedSet()) {
if (!getSharedSet()
.equals(other.getSharedSet())) return false;
}
if (java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier())
!= java.lang.Double.doubleToLongBits(
other.getRecommendedTargetMultiplier())) return false;
if (getCurrentAverageTargetMicros()
!= other.getCurrentAverageTargetMicros()) 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 (hasSharedSet()) {
hash = (37 * hash) + SHARED_SET_FIELD_NUMBER;
hash = (53 * hash) + getSharedSet().hashCode();
}
hash = (37 * hash) + RECOMMENDED_TARGET_MULTIPLIER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRecommendedTargetMultiplier()));
hash = (37 * hash) + CURRENT_AVERAGE_TARGET_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentAverageTargetMicros());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo 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;
}
/**
*
* Information of a target adjustment recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.class, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sharedSet_ = "";
recommendedTargetMultiplier_ = 0D;
currentAverageTargetMicros_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_TargetAdjustmentInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo build() {
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result = new com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sharedSet_ = sharedSet_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.recommendedTargetMultiplier_ = recommendedTargetMultiplier_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.currentAverageTargetMicros_ = currentAverageTargetMicros_;
}
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.v16.resources.Recommendation.TargetAdjustmentInfo) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) return this;
if (other.hasSharedSet()) {
sharedSet_ = other.sharedSet_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getRecommendedTargetMultiplier() != 0D) {
setRecommendedTargetMultiplier(other.getRecommendedTargetMultiplier());
}
if (other.getCurrentAverageTargetMicros() != 0L) {
setCurrentAverageTargetMicros(other.getCurrentAverageTargetMicros());
}
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: {
sharedSet_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
recommendedTargetMultiplier_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
currentAverageTargetMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
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 sharedSet_ = "";
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the sharedSet field is set.
*/
public boolean hasSharedSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The sharedSet.
*/
public java.lang.String getSharedSet() {
java.lang.Object ref = sharedSet_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sharedSet_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for sharedSet.
*/
public com.google.protobuf.ByteString
getSharedSetBytes() {
java.lang.Object ref = sharedSet_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The sharedSet to set.
* @return This builder for chaining.
*/
public Builder setSharedSet(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sharedSet_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSharedSet() {
sharedSet_ = getDefaultInstance().getSharedSet();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The shared set resource name of the portfolio bidding
* strategy where the target is defined. Only populated if the
* recommendation is portfolio level.
*
*
* optional string shared_set = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for sharedSet to set.
* @return This builder for chaining.
*/
public Builder setSharedSetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sharedSet_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double recommendedTargetMultiplier_ ;
/**
*
* Output only. The factor by which we recommend the target to be adjusted
* by.
*
*
* double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The recommendedTargetMultiplier.
*/
@java.lang.Override
public double getRecommendedTargetMultiplier() {
return recommendedTargetMultiplier_;
}
/**
*
* Output only. The factor by which we recommend the target to be adjusted
* by.
*
*
* double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The recommendedTargetMultiplier to set.
* @return This builder for chaining.
*/
public Builder setRecommendedTargetMultiplier(double value) {
recommendedTargetMultiplier_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The factor by which we recommend the target to be adjusted
* by.
*
*
* double recommended_target_multiplier = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRecommendedTargetMultiplier() {
bitField0_ = (bitField0_ & ~0x00000002);
recommendedTargetMultiplier_ = 0D;
onChanged();
return this;
}
private long currentAverageTargetMicros_ ;
/**
*
* Output only. The current average target of the campaign or portfolio
* targeted by this recommendation.
*
*
* int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The currentAverageTargetMicros.
*/
@java.lang.Override
public long getCurrentAverageTargetMicros() {
return currentAverageTargetMicros_;
}
/**
*
* Output only. The current average target of the campaign or portfolio
* targeted by this recommendation.
*
*
* int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The currentAverageTargetMicros to set.
* @return This builder for chaining.
*/
public Builder setCurrentAverageTargetMicros(long value) {
currentAverageTargetMicros_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. The current average target of the campaign or portfolio
* targeted by this recommendation.
*
*
* int64 current_average_target_micros = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearCurrentAverageTargetMicros() {
bitField0_ = (bitField0_ & ~0x00000004);
currentAverageTargetMicros_ = 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.v16.resources.Recommendation.TargetAdjustmentInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo)
private static final com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo();
}
public static com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetAdjustmentInfo 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.v16.resources.Recommendation.TargetAdjustmentInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RaiseTargetCpaRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
boolean hasTargetAdjustment();
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment();
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder();
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the appBiddingGoal field is set.
*/
boolean hasAppBiddingGoal();
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for appBiddingGoal.
*/
int getAppBiddingGoalValue();
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The appBiddingGoal.
*/
com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal();
}
/**
*
* Recommendation to raise Target CPA.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation}
*/
public static final class RaiseTargetCpaRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)
RaiseTargetCpaRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use RaiseTargetCpaRecommendation.newBuilder() to construct.
private RaiseTargetCpaRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RaiseTargetCpaRecommendation() {
appBiddingGoal_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RaiseTargetCpaRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder.class);
}
private int bitField0_;
public static final int TARGET_ADJUSTMENT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_;
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
@java.lang.Override
public boolean hasTargetAdjustment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
public static final int APP_BIDDING_GOAL_FIELD_NUMBER = 2;
private int appBiddingGoal_ = 0;
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the appBiddingGoal field is set.
*/
@java.lang.Override public boolean hasAppBiddingGoal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for appBiddingGoal.
*/
@java.lang.Override public int getAppBiddingGoalValue() {
return appBiddingGoal_;
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The appBiddingGoal.
*/
@java.lang.Override public com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal() {
com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal result = com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.forNumber(appBiddingGoal_);
return result == null ? com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTargetAdjustment());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, appBiddingGoal_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTargetAdjustment());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, appBiddingGoal_);
}
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.v16.resources.Recommendation.RaiseTargetCpaRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation) obj;
if (hasTargetAdjustment() != other.hasTargetAdjustment()) return false;
if (hasTargetAdjustment()) {
if (!getTargetAdjustment()
.equals(other.getTargetAdjustment())) return false;
}
if (hasAppBiddingGoal() != other.hasAppBiddingGoal()) return false;
if (hasAppBiddingGoal()) {
if (appBiddingGoal_ != other.appBiddingGoal_) 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 (hasTargetAdjustment()) {
hash = (37 * hash) + TARGET_ADJUSTMENT_FIELD_NUMBER;
hash = (53 * hash) + getTargetAdjustment().hashCode();
}
if (hasAppBiddingGoal()) {
hash = (37 * hash) + APP_BIDDING_GOAL_FIELD_NUMBER;
hash = (53 * hash) + appBiddingGoal_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation 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;
}
/**
*
* Recommendation to raise Target CPA.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetAdjustmentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
targetAdjustment_ = null;
if (targetAdjustmentBuilder_ != null) {
targetAdjustmentBuilder_.dispose();
targetAdjustmentBuilder_ = null;
}
appBiddingGoal_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_RaiseTargetCpaRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetAdjustment_ = targetAdjustmentBuilder_ == null
? targetAdjustment_
: targetAdjustmentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.appBiddingGoal_ = appBiddingGoal_;
to_bitField0_ |= 0x00000002;
}
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.v16.resources.Recommendation.RaiseTargetCpaRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation.getDefaultInstance()) return this;
if (other.hasTargetAdjustment()) {
mergeTargetAdjustment(other.getTargetAdjustment());
}
if (other.hasAppBiddingGoal()) {
setAppBiddingGoal(other.getAppBiddingGoal());
}
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: {
input.readMessage(
getTargetAdjustmentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
appBiddingGoal_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
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 com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> targetAdjustmentBuilder_;
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
public boolean hasTargetAdjustment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() {
if (targetAdjustmentBuilder_ == null) {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
} else {
return targetAdjustmentBuilder_.getMessage();
}
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) {
if (targetAdjustmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
targetAdjustment_ = value;
} else {
targetAdjustmentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTargetAdjustment(
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder builderForValue) {
if (targetAdjustmentBuilder_ == null) {
targetAdjustment_ = builderForValue.build();
} else {
targetAdjustmentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) {
if (targetAdjustmentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
targetAdjustment_ != null &&
targetAdjustment_ != com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) {
getTargetAdjustmentBuilder().mergeFrom(value);
} else {
targetAdjustment_ = value;
}
} else {
targetAdjustmentBuilder_.mergeFrom(value);
}
if (targetAdjustment_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearTargetAdjustment() {
bitField0_ = (bitField0_ & ~0x00000001);
targetAdjustment_ = null;
if (targetAdjustmentBuilder_ != null) {
targetAdjustmentBuilder_.dispose();
targetAdjustmentBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder getTargetAdjustmentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTargetAdjustmentFieldBuilder().getBuilder();
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() {
if (targetAdjustmentBuilder_ != null) {
return targetAdjustmentBuilder_.getMessageOrBuilder();
} else {
return targetAdjustment_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>
getTargetAdjustmentFieldBuilder() {
if (targetAdjustmentBuilder_ == null) {
targetAdjustmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>(
getTargetAdjustment(),
getParentForChildren(),
isClean());
targetAdjustment_ = null;
}
return targetAdjustmentBuilder_;
}
private int appBiddingGoal_ = 0;
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the appBiddingGoal field is set.
*/
@java.lang.Override public boolean hasAppBiddingGoal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for appBiddingGoal.
*/
@java.lang.Override public int getAppBiddingGoalValue() {
return appBiddingGoal_;
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for appBiddingGoal to set.
* @return This builder for chaining.
*/
public Builder setAppBiddingGoalValue(int value) {
appBiddingGoal_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The appBiddingGoal.
*/
@java.lang.Override
public com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal getAppBiddingGoal() {
com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal result = com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.forNumber(appBiddingGoal_);
return result == null ? com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal.UNRECOGNIZED : result;
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The appBiddingGoal to set.
* @return This builder for chaining.
*/
public Builder setAppBiddingGoal(com.google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
appBiddingGoal_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Represents the goal towards which the bidding strategy
* should optimize. Only populated for App Campaigns.
*
*
* optional .google.ads.googleads.v16.enums.AppBiddingGoalEnum.AppBiddingGoal app_bidding_goal = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearAppBiddingGoal() {
bitField0_ = (bitField0_ & ~0x00000002);
appBiddingGoal_ = 0;
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.v16.resources.Recommendation.RaiseTargetCpaRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RaiseTargetCpaRecommendation 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.v16.resources.Recommendation.RaiseTargetCpaRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LowerTargetRoasRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)
com.google.protobuf.MessageOrBuilder {
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
boolean hasTargetAdjustment();
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment();
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder();
}
/**
*
* Recommendation to lower Target ROAS.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation}
*/
public static final class LowerTargetRoasRecommendation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)
LowerTargetRoasRecommendationOrBuilder {
private static final long serialVersionUID = 0L;
// Use LowerTargetRoasRecommendation.newBuilder() to construct.
private LowerTargetRoasRecommendation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LowerTargetRoasRecommendation() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LowerTargetRoasRecommendation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder.class);
}
private int bitField0_;
public static final int TARGET_ADJUSTMENT_FIELD_NUMBER = 1;
private com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_;
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
@java.lang.Override
public boolean hasTargetAdjustment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTargetAdjustment());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTargetAdjustment());
}
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.v16.resources.Recommendation.LowerTargetRoasRecommendation)) {
return super.equals(obj);
}
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation other = (com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation) obj;
if (hasTargetAdjustment() != other.hasTargetAdjustment()) return false;
if (hasTargetAdjustment()) {
if (!getTargetAdjustment()
.equals(other.getTargetAdjustment())) 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 (hasTargetAdjustment()) {
hash = (37 * hash) + TARGET_ADJUSTMENT_FIELD_NUMBER;
hash = (53 * hash) + getTargetAdjustment().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation 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;
}
/**
*
* Recommendation to lower Target ROAS.
*
*
* Protobuf type {@code google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.class, com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.Builder.class);
}
// Construct using com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTargetAdjustmentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
targetAdjustment_ = null;
if (targetAdjustmentBuilder_ != null) {
targetAdjustmentBuilder_.dispose();
targetAdjustmentBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v16.resources.RecommendationProto.internal_static_google_ads_googleads_v16_resources_Recommendation_LowerTargetRoasRecommendation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstanceForType() {
return com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation build() {
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation buildPartial() {
com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result = new com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetAdjustment_ = targetAdjustmentBuilder_ == null
? targetAdjustment_
: targetAdjustmentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.v16.resources.Recommendation.LowerTargetRoasRecommendation) {
return mergeFrom((com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation other) {
if (other == com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation.getDefaultInstance()) return this;
if (other.hasTargetAdjustment()) {
mergeTargetAdjustment(other.getTargetAdjustment());
}
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: {
input.readMessage(
getTargetAdjustmentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
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 com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo targetAdjustment_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder> targetAdjustmentBuilder_;
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the targetAdjustment field is set.
*/
public boolean hasTargetAdjustment() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The targetAdjustment.
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo getTargetAdjustment() {
if (targetAdjustmentBuilder_ == null) {
return targetAdjustment_ == null ? com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
} else {
return targetAdjustmentBuilder_.getMessage();
}
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) {
if (targetAdjustmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
targetAdjustment_ = value;
} else {
targetAdjustmentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setTargetAdjustment(
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder builderForValue) {
if (targetAdjustmentBuilder_ == null) {
targetAdjustment_ = builderForValue.build();
} else {
targetAdjustmentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeTargetAdjustment(com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo value) {
if (targetAdjustmentBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
targetAdjustment_ != null &&
targetAdjustment_ != com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance()) {
getTargetAdjustmentBuilder().mergeFrom(value);
} else {
targetAdjustment_ = value;
}
} else {
targetAdjustmentBuilder_.mergeFrom(value);
}
if (targetAdjustment_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearTargetAdjustment() {
bitField0_ = (bitField0_ & ~0x00000001);
targetAdjustment_ = null;
if (targetAdjustmentBuilder_ != null) {
targetAdjustmentBuilder_.dispose();
targetAdjustmentBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder getTargetAdjustmentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTargetAdjustmentFieldBuilder().getBuilder();
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder getTargetAdjustmentOrBuilder() {
if (targetAdjustmentBuilder_ != null) {
return targetAdjustmentBuilder_.getMessageOrBuilder();
} else {
return targetAdjustment_ == null ?
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.getDefaultInstance() : targetAdjustment_;
}
}
/**
*
* Output only. The relevant information describing the recommended target
* adjustment.
*
*
* .google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo target_adjustment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>
getTargetAdjustmentFieldBuilder() {
if (targetAdjustmentBuilder_ == null) {
targetAdjustmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfo.Builder, com.google.ads.googleads.v16.resources.Recommendation.TargetAdjustmentInfoOrBuilder>(
getTargetAdjustment(),
getParentForChildren(),
isClean());
targetAdjustment_ = null;
}
return targetAdjustmentBuilder_;
}
@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.v16.resources.Recommendation.LowerTargetRoasRecommendation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation)
private static final com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation();
}
public static com.google.ads.googleads.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LowerTargetRoasRecommendation 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.v16.resources.Recommendation.LowerTargetRoasRecommendation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicImageExtensionOptInRecommendationOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v16.resources.Recommendation.DynamicImageExtensionOptInRecommendation)
com.google.protobuf.MessageOrBuilder {
}
/**
*