com.google.ads.googleads.v10.services.ApplyRecommendationOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/services/recommendation_service.proto
package com.google.ads.googleads.v10.services;
/**
*
* Information about the operation to apply a recommendation and any parameters
* to customize it.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation}
*/
public final class ApplyRecommendationOperation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation)
ApplyRecommendationOperationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplyRecommendationOperation.newBuilder() to construct.
private ApplyRecommendationOperation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplyRecommendationOperation() {
resourceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ApplyRecommendationOperation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.Builder.class);
}
public interface CampaignBudgetParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return Whether the newBudgetAmountMicros field is set.
*/
boolean hasNewBudgetAmountMicros();
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return The newBudgetAmountMicros.
*/
long getNewBudgetAmountMicros();
}
/**
*
* Parameters to use when applying a campaign budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters}
*/
public static final class CampaignBudgetParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)
CampaignBudgetParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use CampaignBudgetParameters.newBuilder() to construct.
private CampaignBudgetParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CampaignBudgetParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CampaignBudgetParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CampaignBudgetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder.class);
}
private int bitField0_;
public static final int NEW_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2;
private long newBudgetAmountMicros_;
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return Whether the newBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return The newBudgetAmountMicros.
*/
@java.lang.Override
public long getNewBudgetAmountMicros() {
return newBudgetAmountMicros_;
}
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, newBudgetAmountMicros_);
}
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, newBudgetAmountMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) obj;
if (hasNewBudgetAmountMicros() != other.hasNewBudgetAmountMicros()) return false;
if (hasNewBudgetAmountMicros()) {
if (getNewBudgetAmountMicros()
!= other.getNewBudgetAmountMicros()) 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 (hasNewBudgetAmountMicros()) {
hash = (37 * hash) + NEW_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters 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;
}
/**
*
* Parameters to use when applying a campaign budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CampaignBudgetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
newBudgetAmountMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CampaignBudgetParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.newBudgetAmountMicros_ = newBudgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance()) return this;
if (other.hasNewBudgetAmountMicros()) {
setNewBudgetAmountMicros(other.getNewBudgetAmountMicros());
}
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: {
newBudgetAmountMicros_ = 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 newBudgetAmountMicros_ ;
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return Whether the newBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return The newBudgetAmountMicros.
*/
@java.lang.Override
public long getNewBudgetAmountMicros() {
return newBudgetAmountMicros_;
}
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @param value The newBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setNewBudgetAmountMicros(long value) {
bitField0_ |= 0x00000001;
newBudgetAmountMicros_ = value;
onChanged();
return this;
}
/**
*
* New budget amount to set for target budget resource. This is a required
* field.
*
*
* optional int64 new_budget_amount_micros = 2;
* @return This builder for chaining.
*/
public Builder clearNewBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
newBudgetAmountMicros_ = 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.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CampaignBudgetParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TextAdParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return Whether the ad field is set.
*/
boolean hasAd();
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return The ad.
*/
com.google.ads.googleads.v10.resources.Ad getAd();
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder();
}
/**
*
* Parameters to use when applying a text ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters}
*/
public static final class TextAdParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters)
TextAdParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextAdParameters.newBuilder() to construct.
private TextAdParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextAdParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextAdParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TextAdParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TextAdParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder.class);
}
public static final int AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.resources.Ad ad_;
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return Whether the ad field is set.
*/
@java.lang.Override
public boolean hasAd() {
return ad_ != null;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return The ad.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Ad getAd() {
return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() {
return getAd();
}
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 (ad_ != null) {
output.writeMessage(1, getAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ad_ != null) {
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.v10.services.ApplyRecommendationOperation.TextAdParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) 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.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters 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;
}
/**
*
* Parameters to use when applying a text ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TextAdParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TextAdParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (adBuilder_ == null) {
ad_ = null;
} else {
ad_ = null;
adBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TextAdParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters(this);
if (adBuilder_ == null) {
result.ad_ = ad_;
} else {
result.ad_ = adBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.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);
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 com.google.ads.googleads.v10.resources.Ad ad_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> adBuilder_;
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return Whether the ad field is set.
*/
public boolean hasAd() {
return adBuilder_ != null || ad_ != null;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
* @return The ad.
*/
public com.google.ads.googleads.v10.resources.Ad getAd() {
if (adBuilder_ == null) {
return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
} else {
return adBuilder_.getMessage();
}
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public Builder setAd(com.google.ads.googleads.v10.resources.Ad value) {
if (adBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ad_ = value;
onChanged();
} else {
adBuilder_.setMessage(value);
}
return this;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public Builder setAd(
com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) {
if (adBuilder_ == null) {
ad_ = builderForValue.build();
onChanged();
} else {
adBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public Builder mergeAd(com.google.ads.googleads.v10.resources.Ad value) {
if (adBuilder_ == null) {
if (ad_ != null) {
ad_ =
com.google.ads.googleads.v10.resources.Ad.newBuilder(ad_).mergeFrom(value).buildPartial();
} else {
ad_ = value;
}
onChanged();
} else {
adBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public Builder clearAd() {
if (adBuilder_ == null) {
ad_ = null;
onChanged();
} else {
ad_ = null;
adBuilder_ = null;
}
return this;
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public com.google.ads.googleads.v10.resources.Ad.Builder getAdBuilder() {
onChanged();
return getAdFieldBuilder().getBuilder();
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() {
if (adBuilder_ != null) {
return adBuilder_.getMessageOrBuilder();
} else {
return ad_ == null ?
com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
}
}
/**
*
* New ad to add to recommended ad group. All necessary fields need to be
* set in this message. This is a required field.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder>
getAdFieldBuilder() {
if (adBuilder_ == null) {
adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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.v10.services.ApplyRecommendationOperation.TextAdParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextAdParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KeywordParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return Whether the adGroup field is set.
*/
boolean hasAdGroup();
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The adGroup.
*/
java.lang.String getAdGroup();
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The bytes for adGroup.
*/
com.google.protobuf.ByteString
getAdGroupBytes();
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The enum numeric value on the wire for matchType.
*/
int getMatchTypeValue();
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The matchType.
*/
com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getMatchType();
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return Whether the cpcBidMicros field is set.
*/
boolean hasCpcBidMicros();
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return The cpcBidMicros.
*/
long getCpcBidMicros();
}
/**
*
* Parameters to use when applying keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters}
*/
public static final class KeywordParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)
KeywordParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use KeywordParameters.newBuilder() to construct.
private KeywordParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KeywordParameters() {
adGroup_ = "";
matchType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KeywordParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_KeywordParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_KeywordParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder.class);
}
private int bitField0_;
public static final int AD_GROUP_FIELD_NUMBER = 4;
private volatile java.lang.Object adGroup_;
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return Whether the adGroup field is set.
*/
@java.lang.Override
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The adGroup.
*/
@java.lang.Override
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
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();
adGroup_ = s;
return s;
}
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The bytes for adGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MATCH_TYPE_FIELD_NUMBER = 2;
private int matchType_;
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The enum numeric value on the wire for matchType.
*/
@java.lang.Override public int getMatchTypeValue() {
return matchType_;
}
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The matchType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getMatchType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.valueOf(matchType_);
return result == null ? com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result;
}
public static final int CPC_BID_MICROS_FIELD_NUMBER = 5;
private long cpcBidMicros_;
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return Whether the cpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpcBidMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return The cpcBidMicros.
*/
@java.lang.Override
public long getCpcBidMicros() {
return cpcBidMicros_;
}
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 (matchType_ != com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) {
output.writeEnum(2, matchType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, adGroup_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(5, cpcBidMicros_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (matchType_ != com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, matchType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, adGroup_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, cpcBidMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) obj;
if (hasAdGroup() != other.hasAdGroup()) return false;
if (hasAdGroup()) {
if (!getAdGroup()
.equals(other.getAdGroup())) return false;
}
if (matchType_ != other.matchType_) return false;
if (hasCpcBidMicros() != other.hasCpcBidMicros()) return false;
if (hasCpcBidMicros()) {
if (getCpcBidMicros()
!= other.getCpcBidMicros()) 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 (hasAdGroup()) {
hash = (37 * hash) + AD_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getAdGroup().hashCode();
}
hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + matchType_;
if (hasCpcBidMicros()) {
hash = (37 * hash) + CPC_BID_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCpcBidMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters 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;
}
/**
*
* Parameters to use when applying keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_KeywordParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_KeywordParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
adGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
matchType_ = 0;
cpcBidMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_KeywordParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.adGroup_ = adGroup_;
result.matchType_ = matchType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.cpcBidMicros_ = cpcBidMicros_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance()) return this;
if (other.hasAdGroup()) {
bitField0_ |= 0x00000001;
adGroup_ = other.adGroup_;
onChanged();
}
if (other.matchType_ != 0) {
setMatchTypeValue(other.getMatchTypeValue());
}
if (other.hasCpcBidMicros()) {
setCpcBidMicros(other.getCpcBidMicros());
}
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: {
matchType_ = input.readEnum();
break;
} // case 16
case 34: {
adGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 34
case 40: {
cpcBidMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
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.lang.Object adGroup_ = "";
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return Whether the adGroup field is set.
*/
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The adGroup.
*/
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return The bytes for adGroup.
*/
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @param value The adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
adGroup_ = value;
onChanged();
return this;
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @return This builder for chaining.
*/
public Builder clearAdGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
adGroup_ = getDefaultInstance().getAdGroup();
onChanged();
return this;
}
/**
*
* The ad group resource to add keyword to. This is a required field.
*
*
* optional string ad_group = 4;
* @param value The bytes for adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
adGroup_ = value;
onChanged();
return this;
}
private int matchType_ = 0;
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The enum numeric value on the wire for matchType.
*/
@java.lang.Override public int getMatchTypeValue() {
return matchType_;
}
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @param value The enum numeric value on the wire for matchType to set.
* @return This builder for chaining.
*/
public Builder setMatchTypeValue(int value) {
matchType_ = value;
onChanged();
return this;
}
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return The matchType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType getMatchType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType result = com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.valueOf(matchType_);
return result == null ? com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType.UNRECOGNIZED : result;
}
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @param value The matchType to set.
* @return This builder for chaining.
*/
public Builder setMatchType(com.google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType value) {
if (value == null) {
throw new NullPointerException();
}
matchType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The match type of the keyword. This is a required field.
*
*
* .google.ads.googleads.v10.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
* @return This builder for chaining.
*/
public Builder clearMatchType() {
matchType_ = 0;
onChanged();
return this;
}
private long cpcBidMicros_ ;
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return Whether the cpcBidMicros field is set.
*/
@java.lang.Override
public boolean hasCpcBidMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return The cpcBidMicros.
*/
@java.lang.Override
public long getCpcBidMicros() {
return cpcBidMicros_;
}
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @param value The cpcBidMicros to set.
* @return This builder for chaining.
*/
public Builder setCpcBidMicros(long value) {
bitField0_ |= 0x00000002;
cpcBidMicros_ = value;
onChanged();
return this;
}
/**
*
* Optional, CPC bid to set for the keyword. If not set, keyword will use
* bid based on bidding strategy used by target ad group.
*
*
* optional int64 cpc_bid_micros = 5;
* @return This builder for chaining.
*/
public Builder clearCpcBidMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
cpcBidMicros_ = 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.v10.services.ApplyRecommendationOperation.KeywordParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KeywordParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetCpaOptInParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return Whether the targetCpaMicros field is set.
*/
boolean hasTargetCpaMicros();
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return The targetCpaMicros.
*/
long getTargetCpaMicros();
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
boolean hasNewCampaignBudgetAmountMicros();
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return The newCampaignBudgetAmountMicros.
*/
long getNewCampaignBudgetAmountMicros();
}
/**
*
* Parameters to use when applying Target CPA recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters}
*/
public static final class TargetCpaOptInParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)
TargetCpaOptInParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetCpaOptInParameters.newBuilder() to construct.
private TargetCpaOptInParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetCpaOptInParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetCpaOptInParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetCpaOptInParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder.class);
}
private int bitField0_;
public static final int TARGET_CPA_MICROS_FIELD_NUMBER = 3;
private long targetCpaMicros_;
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return Whether the targetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasTargetCpaMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return The targetCpaMicros.
*/
@java.lang.Override
public long getTargetCpaMicros() {
return targetCpaMicros_;
}
public static final int NEW_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 4;
private long newCampaignBudgetAmountMicros_;
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return The newCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getNewCampaignBudgetAmountMicros() {
return newCampaignBudgetAmountMicros_;
}
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(3, targetCpaMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(4, newCampaignBudgetAmountMicros_);
}
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(3, targetCpaMicros_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, newCampaignBudgetAmountMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) obj;
if (hasTargetCpaMicros() != other.hasTargetCpaMicros()) return false;
if (hasTargetCpaMicros()) {
if (getTargetCpaMicros()
!= other.getTargetCpaMicros()) return false;
}
if (hasNewCampaignBudgetAmountMicros() != other.hasNewCampaignBudgetAmountMicros()) return false;
if (hasNewCampaignBudgetAmountMicros()) {
if (getNewCampaignBudgetAmountMicros()
!= other.getNewCampaignBudgetAmountMicros()) 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 (hasTargetCpaMicros()) {
hash = (37 * hash) + TARGET_CPA_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTargetCpaMicros());
}
if (hasNewCampaignBudgetAmountMicros()) {
hash = (37 * hash) + NEW_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewCampaignBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters 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;
}
/**
*
* Parameters to use when applying Target CPA recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetCpaOptInParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
targetCpaMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
newCampaignBudgetAmountMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetCpaOptInParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetCpaMicros_ = targetCpaMicros_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.newCampaignBudgetAmountMicros_ = newCampaignBudgetAmountMicros_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance()) return this;
if (other.hasTargetCpaMicros()) {
setTargetCpaMicros(other.getTargetCpaMicros());
}
if (other.hasNewCampaignBudgetAmountMicros()) {
setNewCampaignBudgetAmountMicros(other.getNewCampaignBudgetAmountMicros());
}
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 24: {
targetCpaMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 24
case 32: {
newCampaignBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000002;
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 long targetCpaMicros_ ;
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return Whether the targetCpaMicros field is set.
*/
@java.lang.Override
public boolean hasTargetCpaMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return The targetCpaMicros.
*/
@java.lang.Override
public long getTargetCpaMicros() {
return targetCpaMicros_;
}
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @param value The targetCpaMicros to set.
* @return This builder for chaining.
*/
public Builder setTargetCpaMicros(long value) {
bitField0_ |= 0x00000001;
targetCpaMicros_ = value;
onChanged();
return this;
}
/**
*
* Average CPA to use for Target CPA bidding strategy. This is a required
* field.
*
*
* optional int64 target_cpa_micros = 3;
* @return This builder for chaining.
*/
public Builder clearTargetCpaMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
targetCpaMicros_ = 0L;
onChanged();
return this;
}
private long newCampaignBudgetAmountMicros_ ;
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return The newCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getNewCampaignBudgetAmountMicros() {
return newCampaignBudgetAmountMicros_;
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @param value The newCampaignBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setNewCampaignBudgetAmountMicros(long value) {
bitField0_ |= 0x00000002;
newCampaignBudgetAmountMicros_ = value;
onChanged();
return this;
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 4;
* @return This builder for chaining.
*/
public Builder clearNewCampaignBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
newCampaignBudgetAmountMicros_ = 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.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetCpaOptInParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TargetRoasOptInParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return Whether the targetRoas field is set.
*/
boolean hasTargetRoas();
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return The targetRoas.
*/
double getTargetRoas();
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
boolean hasNewCampaignBudgetAmountMicros();
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return The newCampaignBudgetAmountMicros.
*/
long getNewCampaignBudgetAmountMicros();
}
/**
*
* Parameters to use when applying a Target ROAS opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters}
*/
public static final class TargetRoasOptInParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)
TargetRoasOptInParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetRoasOptInParameters.newBuilder() to construct.
private TargetRoasOptInParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetRoasOptInParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TargetRoasOptInParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetRoasOptInParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetRoasOptInParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder.class);
}
private int bitField0_;
public static final int TARGET_ROAS_FIELD_NUMBER = 1;
private double targetRoas_;
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return Whether the targetRoas field is set.
*/
@java.lang.Override
public boolean hasTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return The targetRoas.
*/
@java.lang.Override
public double getTargetRoas() {
return targetRoas_;
}
public static final int NEW_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 2;
private long newCampaignBudgetAmountMicros_;
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return The newCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getNewCampaignBudgetAmountMicros() {
return newCampaignBudgetAmountMicros_;
}
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, targetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, newCampaignBudgetAmountMicros_);
}
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, targetRoas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, newCampaignBudgetAmountMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) obj;
if (hasTargetRoas() != other.hasTargetRoas()) return false;
if (hasTargetRoas()) {
if (java.lang.Double.doubleToLongBits(getTargetRoas())
!= java.lang.Double.doubleToLongBits(
other.getTargetRoas())) return false;
}
if (hasNewCampaignBudgetAmountMicros() != other.hasNewCampaignBudgetAmountMicros()) return false;
if (hasNewCampaignBudgetAmountMicros()) {
if (getNewCampaignBudgetAmountMicros()
!= other.getNewCampaignBudgetAmountMicros()) 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 (hasTargetRoas()) {
hash = (37 * hash) + TARGET_ROAS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTargetRoas()));
}
if (hasNewCampaignBudgetAmountMicros()) {
hash = (37 * hash) + NEW_CAMPAIGN_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewCampaignBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters 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;
}
/**
*
* Parameters to use when applying a Target ROAS opt-in recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetRoasOptInParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetRoasOptInParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
targetRoas_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
newCampaignBudgetAmountMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_TargetRoasOptInParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.targetRoas_ = targetRoas_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.newCampaignBudgetAmountMicros_ = newCampaignBudgetAmountMicros_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance()) return this;
if (other.hasTargetRoas()) {
setTargetRoas(other.getTargetRoas());
}
if (other.hasNewCampaignBudgetAmountMicros()) {
setNewCampaignBudgetAmountMicros(other.getNewCampaignBudgetAmountMicros());
}
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: {
targetRoas_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 16: {
newCampaignBudgetAmountMicros_ = 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 targetRoas_ ;
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return Whether the targetRoas field is set.
*/
@java.lang.Override
public boolean hasTargetRoas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return The targetRoas.
*/
@java.lang.Override
public double getTargetRoas() {
return targetRoas_;
}
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @param value The targetRoas to set.
* @return This builder for chaining.
*/
public Builder setTargetRoas(double value) {
bitField0_ |= 0x00000001;
targetRoas_ = value;
onChanged();
return this;
}
/**
*
* Average ROAS (revenue per unit of spend) to use for Target ROAS bidding
* strategy. The value is between 0.01 and 1000.0, inclusive. This is a
* required field, unless new_campaign_budget_amount_micros is set.
*
*
* optional double target_roas = 1;
* @return This builder for chaining.
*/
public Builder clearTargetRoas() {
bitField0_ = (bitField0_ & ~0x00000001);
targetRoas_ = 0D;
onChanged();
return this;
}
private long newCampaignBudgetAmountMicros_ ;
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return Whether the newCampaignBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewCampaignBudgetAmountMicros() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return The newCampaignBudgetAmountMicros.
*/
@java.lang.Override
public long getNewCampaignBudgetAmountMicros() {
return newCampaignBudgetAmountMicros_;
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @param value The newCampaignBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setNewCampaignBudgetAmountMicros(long value) {
bitField0_ |= 0x00000002;
newCampaignBudgetAmountMicros_ = value;
onChanged();
return this;
}
/**
*
* Optional, budget amount to set for the campaign.
*
*
* optional int64 new_campaign_budget_amount_micros = 2;
* @return This builder for chaining.
*/
public Builder clearNewCampaignBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000002);
newCampaignBudgetAmountMicros_ = 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.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetRoasOptInParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CalloutExtensionParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
java.util.List
getCalloutExtensionsList();
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
com.google.ads.googleads.v10.common.CalloutFeedItem getCalloutExtensions(int index);
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
int getCalloutExtensionsCount();
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
java.util.List extends com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>
getCalloutExtensionsOrBuilderList();
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getCalloutExtensionsOrBuilder(
int index);
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters}
*/
public static final class CalloutExtensionParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)
CalloutExtensionParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use CalloutExtensionParameters.newBuilder() to construct.
private CalloutExtensionParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CalloutExtensionParameters() {
calloutExtensions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CalloutExtensionParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CalloutExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder.class);
}
public static final int CALLOUT_EXTENSIONS_FIELD_NUMBER = 1;
private java.util.List calloutExtensions_;
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
@java.lang.Override
public java.util.List getCalloutExtensionsList() {
return calloutExtensions_;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>
getCalloutExtensionsOrBuilderList() {
return calloutExtensions_;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
@java.lang.Override
public int getCalloutExtensionsCount() {
return calloutExtensions_.size();
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CalloutFeedItem getCalloutExtensions(int index) {
return calloutExtensions_.get(index);
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getCalloutExtensionsOrBuilder(
int index) {
return calloutExtensions_.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 < calloutExtensions_.size(); i++) {
output.writeMessage(1, calloutExtensions_.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 < calloutExtensions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, calloutExtensions_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) obj;
if (!getCalloutExtensionsList()
.equals(other.getCalloutExtensionsList())) 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 (getCalloutExtensionsCount() > 0) {
hash = (37 * hash) + CALLOUT_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getCalloutExtensionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters 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;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CalloutExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (calloutExtensionsBuilder_ == null) {
calloutExtensions_ = java.util.Collections.emptyList();
} else {
calloutExtensions_ = null;
calloutExtensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CalloutExtensionParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters(this);
int from_bitField0_ = bitField0_;
if (calloutExtensionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
calloutExtensions_ = java.util.Collections.unmodifiableList(calloutExtensions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.calloutExtensions_ = calloutExtensions_;
} else {
result.calloutExtensions_ = calloutExtensionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance()) return this;
if (calloutExtensionsBuilder_ == null) {
if (!other.calloutExtensions_.isEmpty()) {
if (calloutExtensions_.isEmpty()) {
calloutExtensions_ = other.calloutExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.addAll(other.calloutExtensions_);
}
onChanged();
}
} else {
if (!other.calloutExtensions_.isEmpty()) {
if (calloutExtensionsBuilder_.isEmpty()) {
calloutExtensionsBuilder_.dispose();
calloutExtensionsBuilder_ = null;
calloutExtensions_ = other.calloutExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
calloutExtensionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCalloutExtensionsFieldBuilder() : null;
} else {
calloutExtensionsBuilder_.addAllMessages(other.calloutExtensions_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v10.common.CalloutFeedItem m =
input.readMessage(
com.google.ads.googleads.v10.common.CalloutFeedItem.parser(),
extensionRegistry);
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.add(m);
} else {
calloutExtensionsBuilder_.addMessage(m);
}
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 java.util.List calloutExtensions_ =
java.util.Collections.emptyList();
private void ensureCalloutExtensionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
calloutExtensions_ = new java.util.ArrayList(calloutExtensions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder> calloutExtensionsBuilder_;
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public java.util.List getCalloutExtensionsList() {
if (calloutExtensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(calloutExtensions_);
} else {
return calloutExtensionsBuilder_.getMessageList();
}
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public int getCalloutExtensionsCount() {
if (calloutExtensionsBuilder_ == null) {
return calloutExtensions_.size();
} else {
return calloutExtensionsBuilder_.getCount();
}
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CalloutFeedItem getCalloutExtensions(int index) {
if (calloutExtensionsBuilder_ == null) {
return calloutExtensions_.get(index);
} else {
return calloutExtensionsBuilder_.getMessage(index);
}
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder setCalloutExtensions(
int index, com.google.ads.googleads.v10.common.CalloutFeedItem value) {
if (calloutExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCalloutExtensionsIsMutable();
calloutExtensions_.set(index, value);
onChanged();
} else {
calloutExtensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder setCalloutExtensions(
int index, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) {
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.set(index, builderForValue.build());
onChanged();
} else {
calloutExtensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder addCalloutExtensions(com.google.ads.googleads.v10.common.CalloutFeedItem value) {
if (calloutExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCalloutExtensionsIsMutable();
calloutExtensions_.add(value);
onChanged();
} else {
calloutExtensionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder addCalloutExtensions(
int index, com.google.ads.googleads.v10.common.CalloutFeedItem value) {
if (calloutExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCalloutExtensionsIsMutable();
calloutExtensions_.add(index, value);
onChanged();
} else {
calloutExtensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder addCalloutExtensions(
com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) {
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.add(builderForValue.build());
onChanged();
} else {
calloutExtensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder addCalloutExtensions(
int index, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder builderForValue) {
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.add(index, builderForValue.build());
onChanged();
} else {
calloutExtensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder addAllCalloutExtensions(
java.lang.Iterable extends com.google.ads.googleads.v10.common.CalloutFeedItem> values) {
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, calloutExtensions_);
onChanged();
} else {
calloutExtensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder clearCalloutExtensions() {
if (calloutExtensionsBuilder_ == null) {
calloutExtensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
calloutExtensionsBuilder_.clear();
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public Builder removeCalloutExtensions(int index) {
if (calloutExtensionsBuilder_ == null) {
ensureCalloutExtensionsIsMutable();
calloutExtensions_.remove(index);
onChanged();
} else {
calloutExtensionsBuilder_.remove(index);
}
return this;
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder getCalloutExtensionsBuilder(
int index) {
return getCalloutExtensionsFieldBuilder().getBuilder(index);
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder getCalloutExtensionsOrBuilder(
int index) {
if (calloutExtensionsBuilder_ == null) {
return calloutExtensions_.get(index); } else {
return calloutExtensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public java.util.List extends com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>
getCalloutExtensionsOrBuilderList() {
if (calloutExtensionsBuilder_ != null) {
return calloutExtensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(calloutExtensions_);
}
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder addCalloutExtensionsBuilder() {
return getCalloutExtensionsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance());
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CalloutFeedItem.Builder addCalloutExtensionsBuilder(
int index) {
return getCalloutExtensionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.CalloutFeedItem.getDefaultInstance());
}
/**
*
* Callout extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CalloutFeedItem callout_extensions = 1;
*/
public java.util.List
getCalloutExtensionsBuilderList() {
return getCalloutExtensionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>
getCalloutExtensionsFieldBuilder() {
if (calloutExtensionsBuilder_ == null) {
calloutExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CalloutFeedItem, com.google.ads.googleads.v10.common.CalloutFeedItem.Builder, com.google.ads.googleads.v10.common.CalloutFeedItemOrBuilder>(
calloutExtensions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
calloutExtensions_ = null;
}
return calloutExtensionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CalloutExtensionParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CallExtensionParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
java.util.List
getCallExtensionsList();
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
com.google.ads.googleads.v10.common.CallFeedItem getCallExtensions(int index);
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
int getCallExtensionsCount();
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
java.util.List extends com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>
getCallExtensionsOrBuilderList();
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getCallExtensionsOrBuilder(
int index);
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters}
*/
public static final class CallExtensionParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)
CallExtensionParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use CallExtensionParameters.newBuilder() to construct.
private CallExtensionParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CallExtensionParameters() {
callExtensions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CallExtensionParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CallExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder.class);
}
public static final int CALL_EXTENSIONS_FIELD_NUMBER = 1;
private java.util.List callExtensions_;
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
@java.lang.Override
public java.util.List getCallExtensionsList() {
return callExtensions_;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>
getCallExtensionsOrBuilderList() {
return callExtensions_;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
@java.lang.Override
public int getCallExtensionsCount() {
return callExtensions_.size();
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CallFeedItem getCallExtensions(int index) {
return callExtensions_.get(index);
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getCallExtensionsOrBuilder(
int index) {
return callExtensions_.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 < callExtensions_.size(); i++) {
output.writeMessage(1, callExtensions_.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 < callExtensions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, callExtensions_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) obj;
if (!getCallExtensionsList()
.equals(other.getCallExtensionsList())) 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 (getCallExtensionsCount() > 0) {
hash = (37 * hash) + CALL_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getCallExtensionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters 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;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CallExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (callExtensionsBuilder_ == null) {
callExtensions_ = java.util.Collections.emptyList();
} else {
callExtensions_ = null;
callExtensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_CallExtensionParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters(this);
int from_bitField0_ = bitField0_;
if (callExtensionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
callExtensions_ = java.util.Collections.unmodifiableList(callExtensions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.callExtensions_ = callExtensions_;
} else {
result.callExtensions_ = callExtensionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance()) return this;
if (callExtensionsBuilder_ == null) {
if (!other.callExtensions_.isEmpty()) {
if (callExtensions_.isEmpty()) {
callExtensions_ = other.callExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCallExtensionsIsMutable();
callExtensions_.addAll(other.callExtensions_);
}
onChanged();
}
} else {
if (!other.callExtensions_.isEmpty()) {
if (callExtensionsBuilder_.isEmpty()) {
callExtensionsBuilder_.dispose();
callExtensionsBuilder_ = null;
callExtensions_ = other.callExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
callExtensionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCallExtensionsFieldBuilder() : null;
} else {
callExtensionsBuilder_.addAllMessages(other.callExtensions_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v10.common.CallFeedItem m =
input.readMessage(
com.google.ads.googleads.v10.common.CallFeedItem.parser(),
extensionRegistry);
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
callExtensions_.add(m);
} else {
callExtensionsBuilder_.addMessage(m);
}
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 java.util.List callExtensions_ =
java.util.Collections.emptyList();
private void ensureCallExtensionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
callExtensions_ = new java.util.ArrayList(callExtensions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder> callExtensionsBuilder_;
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public java.util.List getCallExtensionsList() {
if (callExtensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(callExtensions_);
} else {
return callExtensionsBuilder_.getMessageList();
}
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public int getCallExtensionsCount() {
if (callExtensionsBuilder_ == null) {
return callExtensions_.size();
} else {
return callExtensionsBuilder_.getCount();
}
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CallFeedItem getCallExtensions(int index) {
if (callExtensionsBuilder_ == null) {
return callExtensions_.get(index);
} else {
return callExtensionsBuilder_.getMessage(index);
}
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder setCallExtensions(
int index, com.google.ads.googleads.v10.common.CallFeedItem value) {
if (callExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallExtensionsIsMutable();
callExtensions_.set(index, value);
onChanged();
} else {
callExtensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder setCallExtensions(
int index, com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) {
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
callExtensions_.set(index, builderForValue.build());
onChanged();
} else {
callExtensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder addCallExtensions(com.google.ads.googleads.v10.common.CallFeedItem value) {
if (callExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallExtensionsIsMutable();
callExtensions_.add(value);
onChanged();
} else {
callExtensionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder addCallExtensions(
int index, com.google.ads.googleads.v10.common.CallFeedItem value) {
if (callExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCallExtensionsIsMutable();
callExtensions_.add(index, value);
onChanged();
} else {
callExtensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder addCallExtensions(
com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) {
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
callExtensions_.add(builderForValue.build());
onChanged();
} else {
callExtensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder addCallExtensions(
int index, com.google.ads.googleads.v10.common.CallFeedItem.Builder builderForValue) {
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
callExtensions_.add(index, builderForValue.build());
onChanged();
} else {
callExtensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder addAllCallExtensions(
java.lang.Iterable extends com.google.ads.googleads.v10.common.CallFeedItem> values) {
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, callExtensions_);
onChanged();
} else {
callExtensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder clearCallExtensions() {
if (callExtensionsBuilder_ == null) {
callExtensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
callExtensionsBuilder_.clear();
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public Builder removeCallExtensions(int index) {
if (callExtensionsBuilder_ == null) {
ensureCallExtensionsIsMutable();
callExtensions_.remove(index);
onChanged();
} else {
callExtensionsBuilder_.remove(index);
}
return this;
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CallFeedItem.Builder getCallExtensionsBuilder(
int index) {
return getCallExtensionsFieldBuilder().getBuilder(index);
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CallFeedItemOrBuilder getCallExtensionsOrBuilder(
int index) {
if (callExtensionsBuilder_ == null) {
return callExtensions_.get(index); } else {
return callExtensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public java.util.List extends com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>
getCallExtensionsOrBuilderList() {
if (callExtensionsBuilder_ != null) {
return callExtensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(callExtensions_);
}
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CallFeedItem.Builder addCallExtensionsBuilder() {
return getCallExtensionsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance());
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public com.google.ads.googleads.v10.common.CallFeedItem.Builder addCallExtensionsBuilder(
int index) {
return getCallExtensionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.CallFeedItem.getDefaultInstance());
}
/**
*
* Call extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.CallFeedItem call_extensions = 1;
*/
public java.util.List
getCallExtensionsBuilderList() {
return getCallExtensionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>
getCallExtensionsFieldBuilder() {
if (callExtensionsBuilder_ == null) {
callExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.CallFeedItem, com.google.ads.googleads.v10.common.CallFeedItem.Builder, com.google.ads.googleads.v10.common.CallFeedItemOrBuilder>(
callExtensions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
callExtensions_ = null;
}
return callExtensionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CallExtensionParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SitelinkExtensionParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
java.util.List
getSitelinkExtensionsList();
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
com.google.ads.googleads.v10.common.SitelinkFeedItem getSitelinkExtensions(int index);
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
int getSitelinkExtensionsCount();
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
java.util.List extends com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>
getSitelinkExtensionsOrBuilderList();
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getSitelinkExtensionsOrBuilder(
int index);
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters}
*/
public static final class SitelinkExtensionParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)
SitelinkExtensionParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use SitelinkExtensionParameters.newBuilder() to construct.
private SitelinkExtensionParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SitelinkExtensionParameters() {
sitelinkExtensions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SitelinkExtensionParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_SitelinkExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder.class);
}
public static final int SITELINK_EXTENSIONS_FIELD_NUMBER = 1;
private java.util.List sitelinkExtensions_;
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
@java.lang.Override
public java.util.List getSitelinkExtensionsList() {
return sitelinkExtensions_;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>
getSitelinkExtensionsOrBuilderList() {
return sitelinkExtensions_;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
@java.lang.Override
public int getSitelinkExtensionsCount() {
return sitelinkExtensions_.size();
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.SitelinkFeedItem getSitelinkExtensions(int index) {
return sitelinkExtensions_.get(index);
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getSitelinkExtensionsOrBuilder(
int index) {
return sitelinkExtensions_.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 < sitelinkExtensions_.size(); i++) {
output.writeMessage(1, sitelinkExtensions_.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 < sitelinkExtensions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, sitelinkExtensions_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) obj;
if (!getSitelinkExtensionsList()
.equals(other.getSitelinkExtensionsList())) 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 (getSitelinkExtensionsCount() > 0) {
hash = (37 * hash) + SITELINK_EXTENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getSitelinkExtensionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters 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;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_SitelinkExtensionParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (sitelinkExtensionsBuilder_ == null) {
sitelinkExtensions_ = java.util.Collections.emptyList();
} else {
sitelinkExtensions_ = null;
sitelinkExtensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_SitelinkExtensionParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters(this);
int from_bitField0_ = bitField0_;
if (sitelinkExtensionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
sitelinkExtensions_ = java.util.Collections.unmodifiableList(sitelinkExtensions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sitelinkExtensions_ = sitelinkExtensions_;
} else {
result.sitelinkExtensions_ = sitelinkExtensionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance()) return this;
if (sitelinkExtensionsBuilder_ == null) {
if (!other.sitelinkExtensions_.isEmpty()) {
if (sitelinkExtensions_.isEmpty()) {
sitelinkExtensions_ = other.sitelinkExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.addAll(other.sitelinkExtensions_);
}
onChanged();
}
} else {
if (!other.sitelinkExtensions_.isEmpty()) {
if (sitelinkExtensionsBuilder_.isEmpty()) {
sitelinkExtensionsBuilder_.dispose();
sitelinkExtensionsBuilder_ = null;
sitelinkExtensions_ = other.sitelinkExtensions_;
bitField0_ = (bitField0_ & ~0x00000001);
sitelinkExtensionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSitelinkExtensionsFieldBuilder() : null;
} else {
sitelinkExtensionsBuilder_.addAllMessages(other.sitelinkExtensions_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v10.common.SitelinkFeedItem m =
input.readMessage(
com.google.ads.googleads.v10.common.SitelinkFeedItem.parser(),
extensionRegistry);
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.add(m);
} else {
sitelinkExtensionsBuilder_.addMessage(m);
}
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 java.util.List sitelinkExtensions_ =
java.util.Collections.emptyList();
private void ensureSitelinkExtensionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sitelinkExtensions_ = new java.util.ArrayList(sitelinkExtensions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder> sitelinkExtensionsBuilder_;
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public java.util.List getSitelinkExtensionsList() {
if (sitelinkExtensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(sitelinkExtensions_);
} else {
return sitelinkExtensionsBuilder_.getMessageList();
}
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public int getSitelinkExtensionsCount() {
if (sitelinkExtensionsBuilder_ == null) {
return sitelinkExtensions_.size();
} else {
return sitelinkExtensionsBuilder_.getCount();
}
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public com.google.ads.googleads.v10.common.SitelinkFeedItem getSitelinkExtensions(int index) {
if (sitelinkExtensionsBuilder_ == null) {
return sitelinkExtensions_.get(index);
} else {
return sitelinkExtensionsBuilder_.getMessage(index);
}
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder setSitelinkExtensions(
int index, com.google.ads.googleads.v10.common.SitelinkFeedItem value) {
if (sitelinkExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.set(index, value);
onChanged();
} else {
sitelinkExtensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder setSitelinkExtensions(
int index, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) {
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.set(index, builderForValue.build());
onChanged();
} else {
sitelinkExtensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder addSitelinkExtensions(com.google.ads.googleads.v10.common.SitelinkFeedItem value) {
if (sitelinkExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.add(value);
onChanged();
} else {
sitelinkExtensionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder addSitelinkExtensions(
int index, com.google.ads.googleads.v10.common.SitelinkFeedItem value) {
if (sitelinkExtensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.add(index, value);
onChanged();
} else {
sitelinkExtensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder addSitelinkExtensions(
com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) {
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.add(builderForValue.build());
onChanged();
} else {
sitelinkExtensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder addSitelinkExtensions(
int index, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder builderForValue) {
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.add(index, builderForValue.build());
onChanged();
} else {
sitelinkExtensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder addAllSitelinkExtensions(
java.lang.Iterable extends com.google.ads.googleads.v10.common.SitelinkFeedItem> values) {
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sitelinkExtensions_);
onChanged();
} else {
sitelinkExtensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder clearSitelinkExtensions() {
if (sitelinkExtensionsBuilder_ == null) {
sitelinkExtensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
sitelinkExtensionsBuilder_.clear();
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public Builder removeSitelinkExtensions(int index) {
if (sitelinkExtensionsBuilder_ == null) {
ensureSitelinkExtensionsIsMutable();
sitelinkExtensions_.remove(index);
onChanged();
} else {
sitelinkExtensionsBuilder_.remove(index);
}
return this;
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder getSitelinkExtensionsBuilder(
int index) {
return getSitelinkExtensionsFieldBuilder().getBuilder(index);
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder getSitelinkExtensionsOrBuilder(
int index) {
if (sitelinkExtensionsBuilder_ == null) {
return sitelinkExtensions_.get(index); } else {
return sitelinkExtensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public java.util.List extends com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>
getSitelinkExtensionsOrBuilderList() {
if (sitelinkExtensionsBuilder_ != null) {
return sitelinkExtensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sitelinkExtensions_);
}
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder addSitelinkExtensionsBuilder() {
return getSitelinkExtensionsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance());
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder addSitelinkExtensionsBuilder(
int index) {
return getSitelinkExtensionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.SitelinkFeedItem.getDefaultInstance());
}
/**
*
* Sitelink extensions to be added. This is a required field.
*
*
* repeated .google.ads.googleads.v10.common.SitelinkFeedItem sitelink_extensions = 1;
*/
public java.util.List
getSitelinkExtensionsBuilderList() {
return getSitelinkExtensionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>
getSitelinkExtensionsFieldBuilder() {
if (sitelinkExtensionsBuilder_ == null) {
sitelinkExtensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.SitelinkFeedItem, com.google.ads.googleads.v10.common.SitelinkFeedItem.Builder, com.google.ads.googleads.v10.common.SitelinkFeedItemOrBuilder>(
sitelinkExtensions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
sitelinkExtensions_ = null;
}
return sitelinkExtensionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SitelinkExtensionParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MoveUnusedBudgetParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return Whether the budgetMicrosToMove field is set.
*/
boolean hasBudgetMicrosToMove();
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return The budgetMicrosToMove.
*/
long getBudgetMicrosToMove();
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters}
*/
public static final class MoveUnusedBudgetParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)
MoveUnusedBudgetParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use MoveUnusedBudgetParameters.newBuilder() to construct.
private MoveUnusedBudgetParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MoveUnusedBudgetParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MoveUnusedBudgetParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder.class);
}
private int bitField0_;
public static final int BUDGET_MICROS_TO_MOVE_FIELD_NUMBER = 2;
private long budgetMicrosToMove_;
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return Whether the budgetMicrosToMove field is set.
*/
@java.lang.Override
public boolean hasBudgetMicrosToMove() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return The budgetMicrosToMove.
*/
@java.lang.Override
public long getBudgetMicrosToMove() {
return budgetMicrosToMove_;
}
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, budgetMicrosToMove_);
}
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, budgetMicrosToMove_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) obj;
if (hasBudgetMicrosToMove() != other.hasBudgetMicrosToMove()) return false;
if (hasBudgetMicrosToMove()) {
if (getBudgetMicrosToMove()
!= other.getBudgetMicrosToMove()) 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 (hasBudgetMicrosToMove()) {
hash = (37 * hash) + BUDGET_MICROS_TO_MOVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBudgetMicrosToMove());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters 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;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
budgetMicrosToMove_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_MoveUnusedBudgetParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.budgetMicrosToMove_ = budgetMicrosToMove_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance()) return this;
if (other.hasBudgetMicrosToMove()) {
setBudgetMicrosToMove(other.getBudgetMicrosToMove());
}
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: {
budgetMicrosToMove_ = 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 budgetMicrosToMove_ ;
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return Whether the budgetMicrosToMove field is set.
*/
@java.lang.Override
public boolean hasBudgetMicrosToMove() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return The budgetMicrosToMove.
*/
@java.lang.Override
public long getBudgetMicrosToMove() {
return budgetMicrosToMove_;
}
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @param value The budgetMicrosToMove to set.
* @return This builder for chaining.
*/
public Builder setBudgetMicrosToMove(long value) {
bitField0_ |= 0x00000001;
budgetMicrosToMove_ = value;
onChanged();
return this;
}
/**
*
* Budget amount to move from excess budget to constrained budget. This is
* a required field.
*
*
* optional int64 budget_micros_to_move = 2;
* @return This builder for chaining.
*/
public Builder clearBudgetMicrosToMove() {
bitField0_ = (bitField0_ & ~0x00000001);
budgetMicrosToMove_ = 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.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MoveUnusedBudgetParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsiveSearchAdAssetParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return Whether the updatedAd field is set.
*/
boolean hasUpdatedAd();
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return The updatedAd.
*/
com.google.ads.googleads.v10.resources.Ad getUpdatedAd();
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
com.google.ads.googleads.v10.resources.AdOrBuilder getUpdatedAdOrBuilder();
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters}
*/
public static final class ResponsiveSearchAdAssetParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)
ResponsiveSearchAdAssetParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdAssetParameters.newBuilder() to construct.
private ResponsiveSearchAdAssetParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdAssetParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdAssetParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdAssetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdAssetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder.class);
}
public static final int UPDATED_AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.resources.Ad updatedAd_;
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return Whether the updatedAd field is set.
*/
@java.lang.Override
public boolean hasUpdatedAd() {
return updatedAd_ != null;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return The updatedAd.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Ad getUpdatedAd() {
return updatedAd_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : updatedAd_;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdOrBuilder getUpdatedAdOrBuilder() {
return getUpdatedAd();
}
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 (updatedAd_ != null) {
output.writeMessage(1, getUpdatedAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (updatedAd_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUpdatedAd());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) obj;
if (hasUpdatedAd() != other.hasUpdatedAd()) return false;
if (hasUpdatedAd()) {
if (!getUpdatedAd()
.equals(other.getUpdatedAd())) 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 (hasUpdatedAd()) {
hash = (37 * hash) + UPDATED_AD_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedAd().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters 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;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdAssetParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdAssetParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (updatedAdBuilder_ == null) {
updatedAd_ = null;
} else {
updatedAd_ = null;
updatedAdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdAssetParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters(this);
if (updatedAdBuilder_ == null) {
result.updatedAd_ = updatedAd_;
} else {
result.updatedAd_ = updatedAdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance()) return this;
if (other.hasUpdatedAd()) {
mergeUpdatedAd(other.getUpdatedAd());
}
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(
getUpdatedAdFieldBuilder().getBuilder(),
extensionRegistry);
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 com.google.ads.googleads.v10.resources.Ad updatedAd_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> updatedAdBuilder_;
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return Whether the updatedAd field is set.
*/
public boolean hasUpdatedAd() {
return updatedAdBuilder_ != null || updatedAd_ != null;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
* @return The updatedAd.
*/
public com.google.ads.googleads.v10.resources.Ad getUpdatedAd() {
if (updatedAdBuilder_ == null) {
return updatedAd_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : updatedAd_;
} else {
return updatedAdBuilder_.getMessage();
}
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public Builder setUpdatedAd(com.google.ads.googleads.v10.resources.Ad value) {
if (updatedAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updatedAd_ = value;
onChanged();
} else {
updatedAdBuilder_.setMessage(value);
}
return this;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public Builder setUpdatedAd(
com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) {
if (updatedAdBuilder_ == null) {
updatedAd_ = builderForValue.build();
onChanged();
} else {
updatedAdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public Builder mergeUpdatedAd(com.google.ads.googleads.v10.resources.Ad value) {
if (updatedAdBuilder_ == null) {
if (updatedAd_ != null) {
updatedAd_ =
com.google.ads.googleads.v10.resources.Ad.newBuilder(updatedAd_).mergeFrom(value).buildPartial();
} else {
updatedAd_ = value;
}
onChanged();
} else {
updatedAdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public Builder clearUpdatedAd() {
if (updatedAdBuilder_ == null) {
updatedAd_ = null;
onChanged();
} else {
updatedAd_ = null;
updatedAdBuilder_ = null;
}
return this;
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public com.google.ads.googleads.v10.resources.Ad.Builder getUpdatedAdBuilder() {
onChanged();
return getUpdatedAdFieldBuilder().getBuilder();
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
public com.google.ads.googleads.v10.resources.AdOrBuilder getUpdatedAdOrBuilder() {
if (updatedAdBuilder_ != null) {
return updatedAdBuilder_.getMessageOrBuilder();
} else {
return updatedAd_ == null ?
com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : updatedAd_;
}
}
/**
*
* Updated ad. The current ad's content will be replaced.
*
*
* .google.ads.googleads.v10.resources.Ad updated_ad = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder>
getUpdatedAdFieldBuilder() {
if (updatedAdBuilder_ == null) {
updatedAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder>(
getUpdatedAd(),
getParentForChildren(),
isClean());
updatedAd_ = null;
}
return updatedAdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdAssetParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsiveSearchAdParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the ad field is set.
*/
boolean hasAd();
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The ad.
*/
com.google.ads.googleads.v10.resources.Ad getAd();
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder();
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters}
*/
public static final class ResponsiveSearchAdParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)
ResponsiveSearchAdParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsiveSearchAdParameters.newBuilder() to construct.
private ResponsiveSearchAdParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsiveSearchAdParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsiveSearchAdParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder.class);
}
public static final int AD_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.resources.Ad ad_;
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the ad field is set.
*/
@java.lang.Override
public boolean hasAd() {
return ad_ != null;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The ad.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Ad getAd() {
return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() {
return getAd();
}
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 (ad_ != null) {
output.writeMessage(1, getAd());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ad_ != null) {
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.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) 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.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters 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;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (adBuilder_ == null) {
ad_ = null;
} else {
ad_ = null;
adBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_ResponsiveSearchAdParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters(this);
if (adBuilder_ == null) {
result.ad_ = ad_;
} else {
result.ad_ = adBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.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);
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 com.google.ads.googleads.v10.resources.Ad ad_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder> adBuilder_;
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the ad field is set.
*/
public boolean hasAd() {
return adBuilder_ != null || ad_ != null;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The ad.
*/
public com.google.ads.googleads.v10.resources.Ad getAd() {
if (adBuilder_ == null) {
return ad_ == null ? com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
} else {
return adBuilder_.getMessage();
}
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setAd(com.google.ads.googleads.v10.resources.Ad value) {
if (adBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ad_ = value;
onChanged();
} else {
adBuilder_.setMessage(value);
}
return this;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setAd(
com.google.ads.googleads.v10.resources.Ad.Builder builderForValue) {
if (adBuilder_ == null) {
ad_ = builderForValue.build();
onChanged();
} else {
adBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeAd(com.google.ads.googleads.v10.resources.Ad value) {
if (adBuilder_ == null) {
if (ad_ != null) {
ad_ =
com.google.ads.googleads.v10.resources.Ad.newBuilder(ad_).mergeFrom(value).buildPartial();
} else {
ad_ = value;
}
onChanged();
} else {
adBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearAd() {
if (adBuilder_ == null) {
ad_ = null;
onChanged();
} else {
ad_ = null;
adBuilder_ = null;
}
return this;
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.resources.Ad.Builder getAdBuilder() {
onChanged();
return getAdFieldBuilder().getBuilder();
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.resources.AdOrBuilder getAdOrBuilder() {
if (adBuilder_ != null) {
return adBuilder_.getMessageOrBuilder();
} else {
return ad_ == null ?
com.google.ads.googleads.v10.resources.Ad.getDefaultInstance() : ad_;
}
}
/**
*
* Required. New ad to add to recommended ad group.
*
*
* .google.ads.googleads.v10.resources.Ad ad = 1 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.resources.AdOrBuilder>
getAdFieldBuilder() {
if (adBuilder_ == null) {
adBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Ad, com.google.ads.googleads.v10.resources.Ad.Builder, com.google.ads.googleads.v10.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.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsiveSearchAdParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UseBroadMatchKeywordParametersOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)
com.google.protobuf.MessageOrBuilder {
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return Whether the newBudgetAmountMicros field is set.
*/
boolean hasNewBudgetAmountMicros();
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return The newBudgetAmountMicros.
*/
long getNewBudgetAmountMicros();
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters}
*/
public static final class UseBroadMatchKeywordParameters extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)
UseBroadMatchKeywordParametersOrBuilder {
private static final long serialVersionUID = 0L;
// Use UseBroadMatchKeywordParameters.newBuilder() to construct.
private UseBroadMatchKeywordParameters(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UseBroadMatchKeywordParameters() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UseBroadMatchKeywordParameters();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_UseBroadMatchKeywordParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_UseBroadMatchKeywordParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder.class);
}
private int bitField0_;
public static final int NEW_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 1;
private long newBudgetAmountMicros_;
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return Whether the newBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return The newBudgetAmountMicros.
*/
@java.lang.Override
public long getNewBudgetAmountMicros() {
return newBudgetAmountMicros_;
}
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(1, newBudgetAmountMicros_);
}
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(1, newBudgetAmountMicros_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) obj;
if (hasNewBudgetAmountMicros() != other.hasNewBudgetAmountMicros()) return false;
if (hasNewBudgetAmountMicros()) {
if (getNewBudgetAmountMicros()
!= other.getNewBudgetAmountMicros()) 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 (hasNewBudgetAmountMicros()) {
hash = (37 * hash) + NEW_BUDGET_AMOUNT_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewBudgetAmountMicros());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters 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;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_UseBroadMatchKeywordParameters_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_UseBroadMatchKeywordParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
newBudgetAmountMicros_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_UseBroadMatchKeywordParameters_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.newBudgetAmountMicros_ = newBudgetAmountMicros_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance()) return this;
if (other.hasNewBudgetAmountMicros()) {
setNewBudgetAmountMicros(other.getNewBudgetAmountMicros());
}
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: {
newBudgetAmountMicros_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
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 newBudgetAmountMicros_ ;
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return Whether the newBudgetAmountMicros field is set.
*/
@java.lang.Override
public boolean hasNewBudgetAmountMicros() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return The newBudgetAmountMicros.
*/
@java.lang.Override
public long getNewBudgetAmountMicros() {
return newBudgetAmountMicros_;
}
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @param value The newBudgetAmountMicros to set.
* @return This builder for chaining.
*/
public Builder setNewBudgetAmountMicros(long value) {
bitField0_ |= 0x00000001;
newBudgetAmountMicros_ = value;
onChanged();
return this;
}
/**
*
* New budget amount to set for target budget resource.
*
*
* optional int64 new_budget_amount_micros = 1;
* @return This builder for chaining.
*/
public Builder clearNewBudgetAmountMicros() {
bitField0_ = (bitField0_ & ~0x00000001);
newBudgetAmountMicros_ = 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.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UseBroadMatchKeywordParameters parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int applyParametersCase_ = 0;
private java.lang.Object applyParameters_;
public enum ApplyParametersCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CAMPAIGN_BUDGET(2),
TEXT_AD(3),
KEYWORD(4),
TARGET_CPA_OPT_IN(5),
TARGET_ROAS_OPT_IN(10),
CALLOUT_EXTENSION(6),
CALL_EXTENSION(7),
SITELINK_EXTENSION(8),
MOVE_UNUSED_BUDGET(9),
RESPONSIVE_SEARCH_AD(11),
USE_BROAD_MATCH_KEYWORD(12),
RESPONSIVE_SEARCH_AD_ASSET(13),
APPLYPARAMETERS_NOT_SET(0);
private final int value;
private ApplyParametersCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ApplyParametersCase valueOf(int value) {
return forNumber(value);
}
public static ApplyParametersCase forNumber(int value) {
switch (value) {
case 2: return CAMPAIGN_BUDGET;
case 3: return TEXT_AD;
case 4: return KEYWORD;
case 5: return TARGET_CPA_OPT_IN;
case 10: return TARGET_ROAS_OPT_IN;
case 6: return CALLOUT_EXTENSION;
case 7: return CALL_EXTENSION;
case 8: return SITELINK_EXTENSION;
case 9: return MOVE_UNUSED_BUDGET;
case 11: return RESPONSIVE_SEARCH_AD;
case 12: return USE_BROAD_MATCH_KEYWORD;
case 13: return RESPONSIVE_SEARCH_AD_ASSET;
case 0: return APPLYPARAMETERS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ApplyParametersCase
getApplyParametersCase() {
return ApplyParametersCase.forNumber(
applyParametersCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 2;
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
* @return Whether the campaignBudget field is set.
*/
@java.lang.Override
public boolean hasCampaignBudget() {
return applyParametersCase_ == 2;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
* @return The campaignBudget.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters getCampaignBudget() {
if (applyParametersCase_ == 2) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder getCampaignBudgetOrBuilder() {
if (applyParametersCase_ == 2) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
public static final int TEXT_AD_FIELD_NUMBER = 3;
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
* @return Whether the textAd field is set.
*/
@java.lang.Override
public boolean hasTextAd() {
return applyParametersCase_ == 3;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
* @return The textAd.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters getTextAd() {
if (applyParametersCase_ == 3) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder getTextAdOrBuilder() {
if (applyParametersCase_ == 3) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
public static final int KEYWORD_FIELD_NUMBER = 4;
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return applyParametersCase_ == 4;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters getKeyword() {
if (applyParametersCase_ == 4) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder getKeywordOrBuilder() {
if (applyParametersCase_ == 4) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
public static final int TARGET_CPA_OPT_IN_FIELD_NUMBER = 5;
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
* @return Whether the targetCpaOptIn field is set.
*/
@java.lang.Override
public boolean hasTargetCpaOptIn() {
return applyParametersCase_ == 5;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
* @return The targetCpaOptIn.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters getTargetCpaOptIn() {
if (applyParametersCase_ == 5) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder getTargetCpaOptInOrBuilder() {
if (applyParametersCase_ == 5) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
public static final int TARGET_ROAS_OPT_IN_FIELD_NUMBER = 10;
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
* @return Whether the targetRoasOptIn field is set.
*/
@java.lang.Override
public boolean hasTargetRoasOptIn() {
return applyParametersCase_ == 10;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
* @return The targetRoasOptIn.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters getTargetRoasOptIn() {
if (applyParametersCase_ == 10) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder getTargetRoasOptInOrBuilder() {
if (applyParametersCase_ == 10) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
public static final int CALLOUT_EXTENSION_FIELD_NUMBER = 6;
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
* @return Whether the calloutExtension field is set.
*/
@java.lang.Override
public boolean hasCalloutExtension() {
return applyParametersCase_ == 6;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
* @return The calloutExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters getCalloutExtension() {
if (applyParametersCase_ == 6) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder getCalloutExtensionOrBuilder() {
if (applyParametersCase_ == 6) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
public static final int CALL_EXTENSION_FIELD_NUMBER = 7;
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
* @return Whether the callExtension field is set.
*/
@java.lang.Override
public boolean hasCallExtension() {
return applyParametersCase_ == 7;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
* @return The callExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters getCallExtension() {
if (applyParametersCase_ == 7) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder getCallExtensionOrBuilder() {
if (applyParametersCase_ == 7) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
public static final int SITELINK_EXTENSION_FIELD_NUMBER = 8;
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
* @return Whether the sitelinkExtension field is set.
*/
@java.lang.Override
public boolean hasSitelinkExtension() {
return applyParametersCase_ == 8;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
* @return The sitelinkExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters getSitelinkExtension() {
if (applyParametersCase_ == 8) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder getSitelinkExtensionOrBuilder() {
if (applyParametersCase_ == 8) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
public static final int MOVE_UNUSED_BUDGET_FIELD_NUMBER = 9;
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
* @return Whether the moveUnusedBudget field is set.
*/
@java.lang.Override
public boolean hasMoveUnusedBudget() {
return applyParametersCase_ == 9;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
* @return The moveUnusedBudget.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters getMoveUnusedBudget() {
if (applyParametersCase_ == 9) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder getMoveUnusedBudgetOrBuilder() {
if (applyParametersCase_ == 9) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
public static final int RESPONSIVE_SEARCH_AD_FIELD_NUMBER = 11;
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
* @return Whether the responsiveSearchAd field is set.
*/
@java.lang.Override
public boolean hasResponsiveSearchAd() {
return applyParametersCase_ == 11;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
* @return The responsiveSearchAd.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters getResponsiveSearchAd() {
if (applyParametersCase_ == 11) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder getResponsiveSearchAdOrBuilder() {
if (applyParametersCase_ == 11) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
public static final int USE_BROAD_MATCH_KEYWORD_FIELD_NUMBER = 12;
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
* @return Whether the useBroadMatchKeyword field is set.
*/
@java.lang.Override
public boolean hasUseBroadMatchKeyword() {
return applyParametersCase_ == 12;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
* @return The useBroadMatchKeyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters getUseBroadMatchKeyword() {
if (applyParametersCase_ == 12) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder getUseBroadMatchKeywordOrBuilder() {
if (applyParametersCase_ == 12) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
public static final int RESPONSIVE_SEARCH_AD_ASSET_FIELD_NUMBER = 13;
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
* @return Whether the responsiveSearchAdAsset field is set.
*/
@java.lang.Override
public boolean hasResponsiveSearchAdAsset() {
return applyParametersCase_ == 13;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
* @return The responsiveSearchAdAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters getResponsiveSearchAdAsset() {
if (applyParametersCase_ == 13) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder getResponsiveSearchAdAssetOrBuilder() {
if (applyParametersCase_ == 13) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (applyParametersCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_);
}
if (applyParametersCase_ == 3) {
output.writeMessage(3, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_);
}
if (applyParametersCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_);
}
if (applyParametersCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_);
}
if (applyParametersCase_ == 6) {
output.writeMessage(6, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 7) {
output.writeMessage(7, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 8) {
output.writeMessage(8, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 9) {
output.writeMessage(9, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_);
}
if (applyParametersCase_ == 10) {
output.writeMessage(10, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_);
}
if (applyParametersCase_ == 11) {
output.writeMessage(11, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_);
}
if (applyParametersCase_ == 12) {
output.writeMessage(12, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_);
}
if (applyParametersCase_ == 13) {
output.writeMessage(13, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (applyParametersCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_);
}
if (applyParametersCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_);
}
if (applyParametersCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_);
}
if (applyParametersCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_);
}
if (applyParametersCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_);
}
if (applyParametersCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_);
}
if (applyParametersCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_);
}
if (applyParametersCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_);
}
if (applyParametersCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_);
}
if (applyParametersCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.ApplyRecommendationOperation other = (com.google.ads.googleads.v10.services.ApplyRecommendationOperation) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (!getApplyParametersCase().equals(other.getApplyParametersCase())) return false;
switch (applyParametersCase_) {
case 2:
if (!getCampaignBudget()
.equals(other.getCampaignBudget())) return false;
break;
case 3:
if (!getTextAd()
.equals(other.getTextAd())) return false;
break;
case 4:
if (!getKeyword()
.equals(other.getKeyword())) return false;
break;
case 5:
if (!getTargetCpaOptIn()
.equals(other.getTargetCpaOptIn())) return false;
break;
case 10:
if (!getTargetRoasOptIn()
.equals(other.getTargetRoasOptIn())) return false;
break;
case 6:
if (!getCalloutExtension()
.equals(other.getCalloutExtension())) return false;
break;
case 7:
if (!getCallExtension()
.equals(other.getCallExtension())) return false;
break;
case 8:
if (!getSitelinkExtension()
.equals(other.getSitelinkExtension())) return false;
break;
case 9:
if (!getMoveUnusedBudget()
.equals(other.getMoveUnusedBudget())) return false;
break;
case 11:
if (!getResponsiveSearchAd()
.equals(other.getResponsiveSearchAd())) return false;
break;
case 12:
if (!getUseBroadMatchKeyword()
.equals(other.getUseBroadMatchKeyword())) return false;
break;
case 13:
if (!getResponsiveSearchAdAsset()
.equals(other.getResponsiveSearchAdAsset())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
switch (applyParametersCase_) {
case 2:
hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getCampaignBudget().hashCode();
break;
case 3:
hash = (37 * hash) + TEXT_AD_FIELD_NUMBER;
hash = (53 * hash) + getTextAd().hashCode();
break;
case 4:
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
break;
case 5:
hash = (37 * hash) + TARGET_CPA_OPT_IN_FIELD_NUMBER;
hash = (53 * hash) + getTargetCpaOptIn().hashCode();
break;
case 10:
hash = (37 * hash) + TARGET_ROAS_OPT_IN_FIELD_NUMBER;
hash = (53 * hash) + getTargetRoasOptIn().hashCode();
break;
case 6:
hash = (37 * hash) + CALLOUT_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getCalloutExtension().hashCode();
break;
case 7:
hash = (37 * hash) + CALL_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getCallExtension().hashCode();
break;
case 8:
hash = (37 * hash) + SITELINK_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getSitelinkExtension().hashCode();
break;
case 9:
hash = (37 * hash) + MOVE_UNUSED_BUDGET_FIELD_NUMBER;
hash = (53 * hash) + getMoveUnusedBudget().hashCode();
break;
case 11:
hash = (37 * hash) + RESPONSIVE_SEARCH_AD_FIELD_NUMBER;
hash = (53 * hash) + getResponsiveSearchAd().hashCode();
break;
case 12:
hash = (37 * hash) + USE_BROAD_MATCH_KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getUseBroadMatchKeyword().hashCode();
break;
case 13:
hash = (37 * hash) + RESPONSIVE_SEARCH_AD_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getResponsiveSearchAdAsset().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v10.services.ApplyRecommendationOperation 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 the operation to apply a recommendation and any parameters
* to customize it.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.ApplyRecommendationOperation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.ApplyRecommendationOperation)
com.google.ads.googleads.v10.services.ApplyRecommendationOperationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.class, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.ApplyRecommendationOperation.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
if (campaignBudgetBuilder_ != null) {
campaignBudgetBuilder_.clear();
}
if (textAdBuilder_ != null) {
textAdBuilder_.clear();
}
if (keywordBuilder_ != null) {
keywordBuilder_.clear();
}
if (targetCpaOptInBuilder_ != null) {
targetCpaOptInBuilder_.clear();
}
if (targetRoasOptInBuilder_ != null) {
targetRoasOptInBuilder_.clear();
}
if (calloutExtensionBuilder_ != null) {
calloutExtensionBuilder_.clear();
}
if (callExtensionBuilder_ != null) {
callExtensionBuilder_.clear();
}
if (sitelinkExtensionBuilder_ != null) {
sitelinkExtensionBuilder_.clear();
}
if (moveUnusedBudgetBuilder_ != null) {
moveUnusedBudgetBuilder_.clear();
}
if (responsiveSearchAdBuilder_ != null) {
responsiveSearchAdBuilder_.clear();
}
if (useBroadMatchKeywordBuilder_ != null) {
useBroadMatchKeywordBuilder_.clear();
}
if (responsiveSearchAdAssetBuilder_ != null) {
responsiveSearchAdAssetBuilder_.clear();
}
applyParametersCase_ = 0;
applyParameters_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.RecommendationServiceProto.internal_static_google_ads_googleads_v10_services_ApplyRecommendationOperation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation build() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation buildPartial() {
com.google.ads.googleads.v10.services.ApplyRecommendationOperation result = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation(this);
result.resourceName_ = resourceName_;
if (applyParametersCase_ == 2) {
if (campaignBudgetBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = campaignBudgetBuilder_.build();
}
}
if (applyParametersCase_ == 3) {
if (textAdBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = textAdBuilder_.build();
}
}
if (applyParametersCase_ == 4) {
if (keywordBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = keywordBuilder_.build();
}
}
if (applyParametersCase_ == 5) {
if (targetCpaOptInBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = targetCpaOptInBuilder_.build();
}
}
if (applyParametersCase_ == 10) {
if (targetRoasOptInBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = targetRoasOptInBuilder_.build();
}
}
if (applyParametersCase_ == 6) {
if (calloutExtensionBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = calloutExtensionBuilder_.build();
}
}
if (applyParametersCase_ == 7) {
if (callExtensionBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = callExtensionBuilder_.build();
}
}
if (applyParametersCase_ == 8) {
if (sitelinkExtensionBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = sitelinkExtensionBuilder_.build();
}
}
if (applyParametersCase_ == 9) {
if (moveUnusedBudgetBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = moveUnusedBudgetBuilder_.build();
}
}
if (applyParametersCase_ == 11) {
if (responsiveSearchAdBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = responsiveSearchAdBuilder_.build();
}
}
if (applyParametersCase_ == 12) {
if (useBroadMatchKeywordBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = useBroadMatchKeywordBuilder_.build();
}
}
if (applyParametersCase_ == 13) {
if (responsiveSearchAdAssetBuilder_ == null) {
result.applyParameters_ = applyParameters_;
} else {
result.applyParameters_ = responsiveSearchAdAssetBuilder_.build();
}
}
result.applyParametersCase_ = applyParametersCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.services.ApplyRecommendationOperation) {
return mergeFrom((com.google.ads.googleads.v10.services.ApplyRecommendationOperation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.ApplyRecommendationOperation other) {
if (other == com.google.ads.googleads.v10.services.ApplyRecommendationOperation.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
switch (other.getApplyParametersCase()) {
case CAMPAIGN_BUDGET: {
mergeCampaignBudget(other.getCampaignBudget());
break;
}
case TEXT_AD: {
mergeTextAd(other.getTextAd());
break;
}
case KEYWORD: {
mergeKeyword(other.getKeyword());
break;
}
case TARGET_CPA_OPT_IN: {
mergeTargetCpaOptIn(other.getTargetCpaOptIn());
break;
}
case TARGET_ROAS_OPT_IN: {
mergeTargetRoasOptIn(other.getTargetRoasOptIn());
break;
}
case CALLOUT_EXTENSION: {
mergeCalloutExtension(other.getCalloutExtension());
break;
}
case CALL_EXTENSION: {
mergeCallExtension(other.getCallExtension());
break;
}
case SITELINK_EXTENSION: {
mergeSitelinkExtension(other.getSitelinkExtension());
break;
}
case MOVE_UNUSED_BUDGET: {
mergeMoveUnusedBudget(other.getMoveUnusedBudget());
break;
}
case RESPONSIVE_SEARCH_AD: {
mergeResponsiveSearchAd(other.getResponsiveSearchAd());
break;
}
case USE_BROAD_MATCH_KEYWORD: {
mergeUseBroadMatchKeyword(other.getUseBroadMatchKeyword());
break;
}
case RESPONSIVE_SEARCH_AD_ASSET: {
mergeResponsiveSearchAdAsset(other.getResponsiveSearchAdAsset());
break;
}
case APPLYPARAMETERS_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getCampaignBudgetFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getTextAdFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getKeywordFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getTargetCpaOptInFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getCalloutExtensionFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getCallExtensionFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getSitelinkExtensionFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getMoveUnusedBudgetFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getTargetRoasOptInFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getResponsiveSearchAdFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getUseBroadMatchKeywordFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getResponsiveSearchAdAssetFieldBuilder().getBuilder(),
extensionRegistry);
applyParametersCase_ = 13;
break;
} // case 106
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 applyParametersCase_ = 0;
private java.lang.Object applyParameters_;
public ApplyParametersCase
getApplyParametersCase() {
return ApplyParametersCase.forNumber(
applyParametersCase_);
}
public Builder clearApplyParameters() {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
return this;
}
private java.lang.Object resourceName_ = "";
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
* The resource name of the recommendation to apply.
*
*
* string resource_name = 1 [(.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder> campaignBudgetBuilder_;
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
* @return Whether the campaignBudget field is set.
*/
@java.lang.Override
public boolean hasCampaignBudget() {
return applyParametersCase_ == 2;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
* @return The campaignBudget.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters getCampaignBudget() {
if (campaignBudgetBuilder_ == null) {
if (applyParametersCase_ == 2) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 2) {
return campaignBudgetBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
public Builder setCampaignBudget(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters value) {
if (campaignBudgetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
campaignBudgetBuilder_.setMessage(value);
}
applyParametersCase_ = 2;
return this;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
public Builder setCampaignBudget(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder builderForValue) {
if (campaignBudgetBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
campaignBudgetBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 2;
return this;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
public Builder mergeCampaignBudget(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters value) {
if (campaignBudgetBuilder_ == null) {
if (applyParametersCase_ == 2 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 2) {
campaignBudgetBuilder_.mergeFrom(value);
} else {
campaignBudgetBuilder_.setMessage(value);
}
}
applyParametersCase_ = 2;
return this;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
public Builder clearCampaignBudget() {
if (campaignBudgetBuilder_ == null) {
if (applyParametersCase_ == 2) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 2) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
campaignBudgetBuilder_.clear();
}
return this;
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder getCampaignBudgetBuilder() {
return getCampaignBudgetFieldBuilder().getBuilder();
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder getCampaignBudgetOrBuilder() {
if ((applyParametersCase_ == 2) && (campaignBudgetBuilder_ != null)) {
return campaignBudgetBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 2) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying a campaign budget
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters campaign_budget = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder>
getCampaignBudgetFieldBuilder() {
if (campaignBudgetBuilder_ == null) {
if (!(applyParametersCase_ == 2)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.getDefaultInstance();
}
campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CampaignBudgetParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 2;
onChanged();;
return campaignBudgetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder> textAdBuilder_;
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
* @return Whether the textAd field is set.
*/
@java.lang.Override
public boolean hasTextAd() {
return applyParametersCase_ == 3;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
* @return The textAd.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters getTextAd() {
if (textAdBuilder_ == null) {
if (applyParametersCase_ == 3) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 3) {
return textAdBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
public Builder setTextAd(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters value) {
if (textAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
textAdBuilder_.setMessage(value);
}
applyParametersCase_ = 3;
return this;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
public Builder setTextAd(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder builderForValue) {
if (textAdBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
textAdBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 3;
return this;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
public Builder mergeTextAd(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters value) {
if (textAdBuilder_ == null) {
if (applyParametersCase_ == 3 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 3) {
textAdBuilder_.mergeFrom(value);
} else {
textAdBuilder_.setMessage(value);
}
}
applyParametersCase_ = 3;
return this;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
public Builder clearTextAd() {
if (textAdBuilder_ == null) {
if (applyParametersCase_ == 3) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 3) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
textAdBuilder_.clear();
}
return this;
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder getTextAdBuilder() {
return getTextAdFieldBuilder().getBuilder();
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder getTextAdOrBuilder() {
if ((applyParametersCase_ == 3) && (textAdBuilder_ != null)) {
return textAdBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 3) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying a text ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters text_ad = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder>
getTextAdFieldBuilder() {
if (textAdBuilder_ == null) {
if (!(applyParametersCase_ == 3)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.getDefaultInstance();
}
textAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TextAdParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 3;
onChanged();;
return textAdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder> keywordBuilder_;
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return applyParametersCase_ == 4;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
* @return The keyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters getKeyword() {
if (keywordBuilder_ == null) {
if (applyParametersCase_ == 4) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 4) {
return keywordBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
public Builder setKeyword(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters value) {
if (keywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
keywordBuilder_.setMessage(value);
}
applyParametersCase_ = 4;
return this;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
public Builder setKeyword(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder builderForValue) {
if (keywordBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
keywordBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 4;
return this;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
public Builder mergeKeyword(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters value) {
if (keywordBuilder_ == null) {
if (applyParametersCase_ == 4 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 4) {
keywordBuilder_.mergeFrom(value);
} else {
keywordBuilder_.setMessage(value);
}
}
applyParametersCase_ = 4;
return this;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
public Builder clearKeyword() {
if (keywordBuilder_ == null) {
if (applyParametersCase_ == 4) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 4) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
keywordBuilder_.clear();
}
return this;
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder getKeywordBuilder() {
return getKeywordFieldBuilder().getBuilder();
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder getKeywordOrBuilder() {
if ((applyParametersCase_ == 4) && (keywordBuilder_ != null)) {
return keywordBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 4) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters keyword = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder>
getKeywordFieldBuilder() {
if (keywordBuilder_ == null) {
if (!(applyParametersCase_ == 4)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.getDefaultInstance();
}
keywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.KeywordParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 4;
onChanged();;
return keywordBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder> targetCpaOptInBuilder_;
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
* @return Whether the targetCpaOptIn field is set.
*/
@java.lang.Override
public boolean hasTargetCpaOptIn() {
return applyParametersCase_ == 5;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
* @return The targetCpaOptIn.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters getTargetCpaOptIn() {
if (targetCpaOptInBuilder_ == null) {
if (applyParametersCase_ == 5) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 5) {
return targetCpaOptInBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
public Builder setTargetCpaOptIn(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters value) {
if (targetCpaOptInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
targetCpaOptInBuilder_.setMessage(value);
}
applyParametersCase_ = 5;
return this;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
public Builder setTargetCpaOptIn(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder builderForValue) {
if (targetCpaOptInBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
targetCpaOptInBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 5;
return this;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
public Builder mergeTargetCpaOptIn(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters value) {
if (targetCpaOptInBuilder_ == null) {
if (applyParametersCase_ == 5 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 5) {
targetCpaOptInBuilder_.mergeFrom(value);
} else {
targetCpaOptInBuilder_.setMessage(value);
}
}
applyParametersCase_ = 5;
return this;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
public Builder clearTargetCpaOptIn() {
if (targetCpaOptInBuilder_ == null) {
if (applyParametersCase_ == 5) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 5) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
targetCpaOptInBuilder_.clear();
}
return this;
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder getTargetCpaOptInBuilder() {
return getTargetCpaOptInFieldBuilder().getBuilder();
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder getTargetCpaOptInOrBuilder() {
if ((applyParametersCase_ == 5) && (targetCpaOptInBuilder_ != null)) {
return targetCpaOptInBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 5) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying target CPA opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters target_cpa_opt_in = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder>
getTargetCpaOptInFieldBuilder() {
if (targetCpaOptInBuilder_ == null) {
if (!(applyParametersCase_ == 5)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.getDefaultInstance();
}
targetCpaOptInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetCpaOptInParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 5;
onChanged();;
return targetCpaOptInBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder> targetRoasOptInBuilder_;
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
* @return Whether the targetRoasOptIn field is set.
*/
@java.lang.Override
public boolean hasTargetRoasOptIn() {
return applyParametersCase_ == 10;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
* @return The targetRoasOptIn.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters getTargetRoasOptIn() {
if (targetRoasOptInBuilder_ == null) {
if (applyParametersCase_ == 10) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 10) {
return targetRoasOptInBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
public Builder setTargetRoasOptIn(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters value) {
if (targetRoasOptInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
targetRoasOptInBuilder_.setMessage(value);
}
applyParametersCase_ = 10;
return this;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
public Builder setTargetRoasOptIn(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder builderForValue) {
if (targetRoasOptInBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
targetRoasOptInBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 10;
return this;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
public Builder mergeTargetRoasOptIn(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters value) {
if (targetRoasOptInBuilder_ == null) {
if (applyParametersCase_ == 10 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 10) {
targetRoasOptInBuilder_.mergeFrom(value);
} else {
targetRoasOptInBuilder_.setMessage(value);
}
}
applyParametersCase_ = 10;
return this;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
public Builder clearTargetRoasOptIn() {
if (targetRoasOptInBuilder_ == null) {
if (applyParametersCase_ == 10) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 10) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
targetRoasOptInBuilder_.clear();
}
return this;
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder getTargetRoasOptInBuilder() {
return getTargetRoasOptInFieldBuilder().getBuilder();
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder getTargetRoasOptInOrBuilder() {
if ((applyParametersCase_ == 10) && (targetRoasOptInBuilder_ != null)) {
return targetRoasOptInBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 10) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
}
/**
*
* Optional parameters to use when applying target ROAS opt-in
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters target_roas_opt_in = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder>
getTargetRoasOptInFieldBuilder() {
if (targetRoasOptInBuilder_ == null) {
if (!(applyParametersCase_ == 10)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.getDefaultInstance();
}
targetRoasOptInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.TargetRoasOptInParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 10;
onChanged();;
return targetRoasOptInBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder> calloutExtensionBuilder_;
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
* @return Whether the calloutExtension field is set.
*/
@java.lang.Override
public boolean hasCalloutExtension() {
return applyParametersCase_ == 6;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
* @return The calloutExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters getCalloutExtension() {
if (calloutExtensionBuilder_ == null) {
if (applyParametersCase_ == 6) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 6) {
return calloutExtensionBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
public Builder setCalloutExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters value) {
if (calloutExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
calloutExtensionBuilder_.setMessage(value);
}
applyParametersCase_ = 6;
return this;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
public Builder setCalloutExtension(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder builderForValue) {
if (calloutExtensionBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
calloutExtensionBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 6;
return this;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
public Builder mergeCalloutExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters value) {
if (calloutExtensionBuilder_ == null) {
if (applyParametersCase_ == 6 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 6) {
calloutExtensionBuilder_.mergeFrom(value);
} else {
calloutExtensionBuilder_.setMessage(value);
}
}
applyParametersCase_ = 6;
return this;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
public Builder clearCalloutExtension() {
if (calloutExtensionBuilder_ == null) {
if (applyParametersCase_ == 6) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 6) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
calloutExtensionBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder getCalloutExtensionBuilder() {
return getCalloutExtensionFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder getCalloutExtensionOrBuilder() {
if ((applyParametersCase_ == 6) && (calloutExtensionBuilder_ != null)) {
return calloutExtensionBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 6) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying callout extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters callout_extension = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder>
getCalloutExtensionFieldBuilder() {
if (calloutExtensionBuilder_ == null) {
if (!(applyParametersCase_ == 6)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.getDefaultInstance();
}
calloutExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CalloutExtensionParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 6;
onChanged();;
return calloutExtensionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder> callExtensionBuilder_;
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
* @return Whether the callExtension field is set.
*/
@java.lang.Override
public boolean hasCallExtension() {
return applyParametersCase_ == 7;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
* @return The callExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters getCallExtension() {
if (callExtensionBuilder_ == null) {
if (applyParametersCase_ == 7) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 7) {
return callExtensionBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
public Builder setCallExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters value) {
if (callExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
callExtensionBuilder_.setMessage(value);
}
applyParametersCase_ = 7;
return this;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
public Builder setCallExtension(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder builderForValue) {
if (callExtensionBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
callExtensionBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 7;
return this;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
public Builder mergeCallExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters value) {
if (callExtensionBuilder_ == null) {
if (applyParametersCase_ == 7 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 7) {
callExtensionBuilder_.mergeFrom(value);
} else {
callExtensionBuilder_.setMessage(value);
}
}
applyParametersCase_ = 7;
return this;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
public Builder clearCallExtension() {
if (callExtensionBuilder_ == null) {
if (applyParametersCase_ == 7) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 7) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
callExtensionBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder getCallExtensionBuilder() {
return getCallExtensionFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder getCallExtensionOrBuilder() {
if ((applyParametersCase_ == 7) && (callExtensionBuilder_ != null)) {
return callExtensionBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 7) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying call extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters call_extension = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder>
getCallExtensionFieldBuilder() {
if (callExtensionBuilder_ == null) {
if (!(applyParametersCase_ == 7)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.getDefaultInstance();
}
callExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.CallExtensionParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 7;
onChanged();;
return callExtensionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder> sitelinkExtensionBuilder_;
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
* @return Whether the sitelinkExtension field is set.
*/
@java.lang.Override
public boolean hasSitelinkExtension() {
return applyParametersCase_ == 8;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
* @return The sitelinkExtension.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters getSitelinkExtension() {
if (sitelinkExtensionBuilder_ == null) {
if (applyParametersCase_ == 8) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 8) {
return sitelinkExtensionBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
public Builder setSitelinkExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters value) {
if (sitelinkExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
sitelinkExtensionBuilder_.setMessage(value);
}
applyParametersCase_ = 8;
return this;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
public Builder setSitelinkExtension(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder builderForValue) {
if (sitelinkExtensionBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
sitelinkExtensionBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 8;
return this;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
public Builder mergeSitelinkExtension(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters value) {
if (sitelinkExtensionBuilder_ == null) {
if (applyParametersCase_ == 8 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 8) {
sitelinkExtensionBuilder_.mergeFrom(value);
} else {
sitelinkExtensionBuilder_.setMessage(value);
}
}
applyParametersCase_ = 8;
return this;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
public Builder clearSitelinkExtension() {
if (sitelinkExtensionBuilder_ == null) {
if (applyParametersCase_ == 8) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 8) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
sitelinkExtensionBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder getSitelinkExtensionBuilder() {
return getSitelinkExtensionFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder getSitelinkExtensionOrBuilder() {
if ((applyParametersCase_ == 8) && (sitelinkExtensionBuilder_ != null)) {
return sitelinkExtensionBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 8) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying sitelink extension recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters sitelink_extension = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder>
getSitelinkExtensionFieldBuilder() {
if (sitelinkExtensionBuilder_ == null) {
if (!(applyParametersCase_ == 8)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.getDefaultInstance();
}
sitelinkExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.SitelinkExtensionParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 8;
onChanged();;
return sitelinkExtensionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder> moveUnusedBudgetBuilder_;
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
* @return Whether the moveUnusedBudget field is set.
*/
@java.lang.Override
public boolean hasMoveUnusedBudget() {
return applyParametersCase_ == 9;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
* @return The moveUnusedBudget.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters getMoveUnusedBudget() {
if (moveUnusedBudgetBuilder_ == null) {
if (applyParametersCase_ == 9) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 9) {
return moveUnusedBudgetBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
public Builder setMoveUnusedBudget(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters value) {
if (moveUnusedBudgetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
moveUnusedBudgetBuilder_.setMessage(value);
}
applyParametersCase_ = 9;
return this;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
public Builder setMoveUnusedBudget(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder builderForValue) {
if (moveUnusedBudgetBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
moveUnusedBudgetBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 9;
return this;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
public Builder mergeMoveUnusedBudget(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters value) {
if (moveUnusedBudgetBuilder_ == null) {
if (applyParametersCase_ == 9 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 9) {
moveUnusedBudgetBuilder_.mergeFrom(value);
} else {
moveUnusedBudgetBuilder_.setMessage(value);
}
}
applyParametersCase_ = 9;
return this;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
public Builder clearMoveUnusedBudget() {
if (moveUnusedBudgetBuilder_ == null) {
if (applyParametersCase_ == 9) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 9) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
moveUnusedBudgetBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder getMoveUnusedBudgetBuilder() {
return getMoveUnusedBudgetFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder getMoveUnusedBudgetOrBuilder() {
if ((applyParametersCase_ == 9) && (moveUnusedBudgetBuilder_ != null)) {
return moveUnusedBudgetBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 9) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying move unused budget recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters move_unused_budget = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder>
getMoveUnusedBudgetFieldBuilder() {
if (moveUnusedBudgetBuilder_ == null) {
if (!(applyParametersCase_ == 9)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.getDefaultInstance();
}
moveUnusedBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 9;
onChanged();;
return moveUnusedBudgetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder> responsiveSearchAdBuilder_;
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
* @return Whether the responsiveSearchAd field is set.
*/
@java.lang.Override
public boolean hasResponsiveSearchAd() {
return applyParametersCase_ == 11;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
* @return The responsiveSearchAd.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters getResponsiveSearchAd() {
if (responsiveSearchAdBuilder_ == null) {
if (applyParametersCase_ == 11) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 11) {
return responsiveSearchAdBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
public Builder setResponsiveSearchAd(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters value) {
if (responsiveSearchAdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
responsiveSearchAdBuilder_.setMessage(value);
}
applyParametersCase_ = 11;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
public Builder setResponsiveSearchAd(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder builderForValue) {
if (responsiveSearchAdBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
responsiveSearchAdBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 11;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
public Builder mergeResponsiveSearchAd(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters value) {
if (responsiveSearchAdBuilder_ == null) {
if (applyParametersCase_ == 11 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 11) {
responsiveSearchAdBuilder_.mergeFrom(value);
} else {
responsiveSearchAdBuilder_.setMessage(value);
}
}
applyParametersCase_ = 11;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
public Builder clearResponsiveSearchAd() {
if (responsiveSearchAdBuilder_ == null) {
if (applyParametersCase_ == 11) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 11) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
responsiveSearchAdBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder getResponsiveSearchAdBuilder() {
return getResponsiveSearchAdFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder getResponsiveSearchAdOrBuilder() {
if ((applyParametersCase_ == 11) && (responsiveSearchAdBuilder_ != null)) {
return responsiveSearchAdBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 11) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a responsive search ad recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters responsive_search_ad = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder>
getResponsiveSearchAdFieldBuilder() {
if (responsiveSearchAdBuilder_ == null) {
if (!(applyParametersCase_ == 11)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.getDefaultInstance();
}
responsiveSearchAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 11;
onChanged();;
return responsiveSearchAdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder> useBroadMatchKeywordBuilder_;
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
* @return Whether the useBroadMatchKeyword field is set.
*/
@java.lang.Override
public boolean hasUseBroadMatchKeyword() {
return applyParametersCase_ == 12;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
* @return The useBroadMatchKeyword.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters getUseBroadMatchKeyword() {
if (useBroadMatchKeywordBuilder_ == null) {
if (applyParametersCase_ == 12) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 12) {
return useBroadMatchKeywordBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
public Builder setUseBroadMatchKeyword(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters value) {
if (useBroadMatchKeywordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
useBroadMatchKeywordBuilder_.setMessage(value);
}
applyParametersCase_ = 12;
return this;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
public Builder setUseBroadMatchKeyword(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder builderForValue) {
if (useBroadMatchKeywordBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
useBroadMatchKeywordBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 12;
return this;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
public Builder mergeUseBroadMatchKeyword(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters value) {
if (useBroadMatchKeywordBuilder_ == null) {
if (applyParametersCase_ == 12 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 12) {
useBroadMatchKeywordBuilder_.mergeFrom(value);
} else {
useBroadMatchKeywordBuilder_.setMessage(value);
}
}
applyParametersCase_ = 12;
return this;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
public Builder clearUseBroadMatchKeyword() {
if (useBroadMatchKeywordBuilder_ == null) {
if (applyParametersCase_ == 12) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 12) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
useBroadMatchKeywordBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder getUseBroadMatchKeywordBuilder() {
return getUseBroadMatchKeywordFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder getUseBroadMatchKeywordOrBuilder() {
if ((applyParametersCase_ == 12) && (useBroadMatchKeywordBuilder_ != null)) {
return useBroadMatchKeywordBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 12) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a use broad match keyword recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters use_broad_match_keyword = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder>
getUseBroadMatchKeywordFieldBuilder() {
if (useBroadMatchKeywordBuilder_ == null) {
if (!(applyParametersCase_ == 12)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.getDefaultInstance();
}
useBroadMatchKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.UseBroadMatchKeywordParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 12;
onChanged();;
return useBroadMatchKeywordBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder> responsiveSearchAdAssetBuilder_;
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
* @return Whether the responsiveSearchAdAsset field is set.
*/
@java.lang.Override
public boolean hasResponsiveSearchAdAsset() {
return applyParametersCase_ == 13;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
* @return The responsiveSearchAdAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters getResponsiveSearchAdAsset() {
if (responsiveSearchAdAssetBuilder_ == null) {
if (applyParametersCase_ == 13) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
} else {
if (applyParametersCase_ == 13) {
return responsiveSearchAdAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
public Builder setResponsiveSearchAdAsset(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters value) {
if (responsiveSearchAdAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applyParameters_ = value;
onChanged();
} else {
responsiveSearchAdAssetBuilder_.setMessage(value);
}
applyParametersCase_ = 13;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
public Builder setResponsiveSearchAdAsset(
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder builderForValue) {
if (responsiveSearchAdAssetBuilder_ == null) {
applyParameters_ = builderForValue.build();
onChanged();
} else {
responsiveSearchAdAssetBuilder_.setMessage(builderForValue.build());
}
applyParametersCase_ = 13;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
public Builder mergeResponsiveSearchAdAsset(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters value) {
if (responsiveSearchAdAssetBuilder_ == null) {
if (applyParametersCase_ == 13 &&
applyParameters_ != com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance()) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.newBuilder((com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_)
.mergeFrom(value).buildPartial();
} else {
applyParameters_ = value;
}
onChanged();
} else {
if (applyParametersCase_ == 13) {
responsiveSearchAdAssetBuilder_.mergeFrom(value);
} else {
responsiveSearchAdAssetBuilder_.setMessage(value);
}
}
applyParametersCase_ = 13;
return this;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
public Builder clearResponsiveSearchAdAsset() {
if (responsiveSearchAdAssetBuilder_ == null) {
if (applyParametersCase_ == 13) {
applyParametersCase_ = 0;
applyParameters_ = null;
onChanged();
}
} else {
if (applyParametersCase_ == 13) {
applyParametersCase_ = 0;
applyParameters_ = null;
}
responsiveSearchAdAssetBuilder_.clear();
}
return this;
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder getResponsiveSearchAdAssetBuilder() {
return getResponsiveSearchAdAssetFieldBuilder().getBuilder();
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder getResponsiveSearchAdAssetOrBuilder() {
if ((applyParametersCase_ == 13) && (responsiveSearchAdAssetBuilder_ != null)) {
return responsiveSearchAdAssetBuilder_.getMessageOrBuilder();
} else {
if (applyParametersCase_ == 13) {
return (com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_;
}
return com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
}
/**
*
* Parameters to use when applying a responsive search ad asset
* recommendation.
*
*
* .google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters responsive_search_ad_asset = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder>
getResponsiveSearchAdAssetFieldBuilder() {
if (responsiveSearchAdAssetBuilder_ == null) {
if (!(applyParametersCase_ == 13)) {
applyParameters_ = com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.getDefaultInstance();
}
responsiveSearchAdAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters.Builder, com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParametersOrBuilder>(
(com.google.ads.googleads.v10.services.ApplyRecommendationOperation.ResponsiveSearchAdAssetParameters) applyParameters_,
getParentForChildren(),
isClean());
applyParameters_ = null;
}
applyParametersCase_ = 13;
onChanged();;
return responsiveSearchAdAssetBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.ApplyRecommendationOperation)
private static final com.google.ads.googleads.v10.services.ApplyRecommendationOperation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.ApplyRecommendationOperation();
}
public static com.google.ads.googleads.v10.services.ApplyRecommendationOperation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplyRecommendationOperation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.ApplyRecommendationOperation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy