com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo 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/smart_campaign_suggest_service.proto
package com.google.ads.googleads.v10.services;
/**
*
* Information needed to get suggestion for Smart Campaign. More information
* provided will help the system to derive better suggestions.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo}
*/
public final class SmartCampaignSuggestionInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo)
SmartCampaignSuggestionInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SmartCampaignSuggestionInfo.newBuilder() to construct.
private SmartCampaignSuggestionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SmartCampaignSuggestionInfo() {
finalUrl_ = "";
languageCode_ = "";
adSchedules_ = java.util.Collections.emptyList();
keywordThemes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SmartCampaignSuggestionInfo();
}
@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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.Builder.class);
}
public interface LocationListOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
java.util.List
getLocationsList();
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
com.google.ads.googleads.v10.common.LocationInfo getLocations(int index);
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
int getLocationsCount();
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
java.util.List extends com.google.ads.googleads.v10.common.LocationInfoOrBuilder>
getLocationsOrBuilderList();
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
com.google.ads.googleads.v10.common.LocationInfoOrBuilder getLocationsOrBuilder(
int index);
}
/**
*
* A list of locations.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList}
*/
public static final class LocationList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList)
LocationListOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocationList.newBuilder() to construct.
private LocationList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocationList() {
locations_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocationList();
}
@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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_LocationList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_LocationList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder.class);
}
public static final int LOCATIONS_FIELD_NUMBER = 1;
private java.util.List locations_;
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List getLocationsList() {
return locations_;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.LocationInfoOrBuilder>
getLocationsOrBuilderList() {
return locations_;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public int getLocationsCount() {
return locations_.size();
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfo getLocations(int index) {
return locations_.get(index);
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.LocationInfoOrBuilder getLocationsOrBuilder(
int index) {
return locations_.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 < locations_.size(); i++) {
output.writeMessage(1, locations_.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 < locations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, locations_.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.SmartCampaignSuggestionInfo.LocationList)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList other = (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) obj;
if (!getLocationsList()
.equals(other.getLocationsList())) 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 (getLocationsCount() > 0) {
hash = (37 * hash) + LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getLocationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList 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.SmartCampaignSuggestionInfo.LocationList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A list of locations.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList)
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_LocationList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_LocationList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
} else {
locations_ = null;
locationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_LocationList_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList build() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList buildPartial() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList result = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList(this);
int from_bitField0_ = bitField0_;
if (locationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.locations_ = locations_;
} else {
result.locations_ = locationsBuilder_.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.SmartCampaignSuggestionInfo.LocationList) {
return mergeFrom((com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList other) {
if (other == com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance()) return this;
if (locationsBuilder_ == null) {
if (!other.locations_.isEmpty()) {
if (locations_.isEmpty()) {
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLocationsIsMutable();
locations_.addAll(other.locations_);
}
onChanged();
}
} else {
if (!other.locations_.isEmpty()) {
if (locationsBuilder_.isEmpty()) {
locationsBuilder_.dispose();
locationsBuilder_ = null;
locations_ = other.locations_;
bitField0_ = (bitField0_ & ~0x00000001);
locationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocationsFieldBuilder() : null;
} else {
locationsBuilder_.addAllMessages(other.locations_);
}
}
}
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.LocationInfo m =
input.readMessage(
com.google.ads.googleads.v10.common.LocationInfo.parser(),
extensionRegistry);
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(m);
} else {
locationsBuilder_.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 locations_ =
java.util.Collections.emptyList();
private void ensureLocationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
locations_ = new java.util.ArrayList(locations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder> locationsBuilder_;
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List getLocationsList() {
if (locationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(locations_);
} else {
return locationsBuilder_.getMessageList();
}
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public int getLocationsCount() {
if (locationsBuilder_ == null) {
return locations_.size();
} else {
return locationsBuilder_.getCount();
}
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.common.LocationInfo getLocations(int index) {
if (locationsBuilder_ == null) {
return locations_.get(index);
} else {
return locationsBuilder_.getMessage(index);
}
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setLocations(
int index, com.google.ads.googleads.v10.common.LocationInfo value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.set(index, value);
onChanged();
} else {
locationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setLocations(
int index, com.google.ads.googleads.v10.common.LocationInfo.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.set(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addLocations(com.google.ads.googleads.v10.common.LocationInfo value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(value);
onChanged();
} else {
locationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addLocations(
int index, com.google.ads.googleads.v10.common.LocationInfo value) {
if (locationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationsIsMutable();
locations_.add(index, value);
onChanged();
} else {
locationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addLocations(
com.google.ads.googleads.v10.common.LocationInfo.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addLocations(
int index, com.google.ads.googleads.v10.common.LocationInfo.Builder builderForValue) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.add(index, builderForValue.build());
onChanged();
} else {
locationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder addAllLocations(
java.lang.Iterable extends com.google.ads.googleads.v10.common.LocationInfo> values) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, locations_);
onChanged();
} else {
locationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearLocations() {
if (locationsBuilder_ == null) {
locations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
locationsBuilder_.clear();
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder removeLocations(int index) {
if (locationsBuilder_ == null) {
ensureLocationsIsMutable();
locations_.remove(index);
onChanged();
} else {
locationsBuilder_.remove(index);
}
return this;
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.common.LocationInfo.Builder getLocationsBuilder(
int index) {
return getLocationsFieldBuilder().getBuilder(index);
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.common.LocationInfoOrBuilder getLocationsOrBuilder(
int index) {
if (locationsBuilder_ == null) {
return locations_.get(index); } else {
return locationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List extends com.google.ads.googleads.v10.common.LocationInfoOrBuilder>
getLocationsOrBuilderList() {
if (locationsBuilder_ != null) {
return locationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(locations_);
}
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.common.LocationInfo.Builder addLocationsBuilder() {
return getLocationsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance());
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v10.common.LocationInfo.Builder addLocationsBuilder(
int index) {
return getLocationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.LocationInfo.getDefaultInstance());
}
/**
*
* Required. Locations.
*
*
* repeated .google.ads.googleads.v10.common.LocationInfo locations = 1 [(.google.api.field_behavior) = REQUIRED];
*/
public java.util.List
getLocationsBuilderList() {
return getLocationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder>
getLocationsFieldBuilder() {
if (locationsBuilder_ == null) {
locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.LocationInfo, com.google.ads.googleads.v10.common.LocationInfo.Builder, com.google.ads.googleads.v10.common.LocationInfoOrBuilder>(
locations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
locations_ = null;
}
return locationsBuilder_;
}
@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.SmartCampaignSuggestionInfo.LocationList)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList)
private static final com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList();
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocationList 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.SmartCampaignSuggestionInfo.LocationList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BusinessContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessName.
*/
java.lang.String getBusinessName();
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for businessName.
*/
com.google.protobuf.ByteString
getBusinessNameBytes();
}
/**
*
* A context that describes a business.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext}
*/
public static final class BusinessContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext)
BusinessContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use BusinessContext.newBuilder() to construct.
private BusinessContext(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BusinessContext() {
businessName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BusinessContext();
}
@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.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_BusinessContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_BusinessContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder.class);
}
public static final int BUSINESS_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object businessName_;
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessName.
*/
@java.lang.Override
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
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();
businessName_ = s;
return s;
}
}
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for businessName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, businessName_);
}
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(businessName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, businessName_);
}
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.SmartCampaignSuggestionInfo.BusinessContext)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext other = (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) obj;
if (!getBusinessName()
.equals(other.getBusinessName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getBusinessName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A context that describes a business.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext)
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_BusinessContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_BusinessContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
businessName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_BusinessContext_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext build() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext buildPartial() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext result = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext(this);
result.businessName_ = businessName_;
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.SmartCampaignSuggestionInfo.BusinessContext) {
return mergeFrom((com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext other) {
if (other == com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance()) return this;
if (!other.getBusinessName().isEmpty()) {
businessName_ = other.businessName_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
businessName_ = input.readStringRequireUtf8();
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 java.lang.Object businessName_ = "";
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessName.
*/
public java.lang.String getBusinessName() {
java.lang.Object ref = businessName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for businessName.
*/
public com.google.protobuf.ByteString
getBusinessNameBytes() {
java.lang.Object ref = businessName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param value The businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
businessName_ = value;
onChanged();
return this;
}
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return This builder for chaining.
*/
public Builder clearBusinessName() {
businessName_ = getDefaultInstance().getBusinessName();
onChanged();
return this;
}
/**
*
* Optional. The name of the business.
*
*
* string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param value The bytes for businessName to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
businessName_ = value;
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.SmartCampaignSuggestionInfo.BusinessContext)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext)
private static final com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext();
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BusinessContext 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.SmartCampaignSuggestionInfo.BusinessContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int businessSettingCase_ = 0;
private java.lang.Object businessSetting_;
public enum BusinessSettingCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BUSINESS_CONTEXT(8),
BUSINESS_LOCATION_ID(2),
BUSINESSSETTING_NOT_SET(0);
private final int value;
private BusinessSettingCase(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 BusinessSettingCase valueOf(int value) {
return forNumber(value);
}
public static BusinessSettingCase forNumber(int value) {
switch (value) {
case 8: return BUSINESS_CONTEXT;
case 2: return BUSINESS_LOCATION_ID;
case 0: return BUSINESSSETTING_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public BusinessSettingCase
getBusinessSettingCase() {
return BusinessSettingCase.forNumber(
businessSettingCase_);
}
private int geoTargetCase_ = 0;
private java.lang.Object geoTarget_;
public enum GeoTargetCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOCATION_LIST(4),
PROXIMITY(5),
GEOTARGET_NOT_SET(0);
private final int value;
private GeoTargetCase(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 GeoTargetCase valueOf(int value) {
return forNumber(value);
}
public static GeoTargetCase forNumber(int value) {
switch (value) {
case 4: return LOCATION_LIST;
case 5: return PROXIMITY;
case 0: return GEOTARGET_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public GeoTargetCase
getGeoTargetCase() {
return GeoTargetCase.forNumber(
geoTargetCase_);
}
public static final int FINAL_URL_FIELD_NUMBER = 1;
private volatile java.lang.Object finalUrl_;
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The finalUrl.
*/
@java.lang.Override
public java.lang.String getFinalUrl() {
java.lang.Object ref = finalUrl_;
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();
finalUrl_ = s;
return s;
}
}
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for finalUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFinalUrlBytes() {
java.lang.Object ref = finalUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LANGUAGE_CODE_FIELD_NUMBER = 3;
private volatile java.lang.Object languageCode_;
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @return The languageCode.
*/
@java.lang.Override
public java.lang.String getLanguageCode() {
java.lang.Object ref = languageCode_;
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();
languageCode_ = s;
return s;
}
}
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for languageCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLanguageCodeBytes() {
java.lang.Object ref = languageCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AD_SCHEDULES_FIELD_NUMBER = 6;
private java.util.List adSchedules_;
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List getAdSchedulesList() {
return adSchedules_;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>
getAdSchedulesOrBuilderList() {
return adSchedules_;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public int getAdSchedulesCount() {
return adSchedules_.size();
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedules(int index) {
return adSchedules_.get(index);
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdSchedulesOrBuilder(
int index) {
return adSchedules_.get(index);
}
public static final int KEYWORD_THEMES_FIELD_NUMBER = 7;
private java.util.List keywordThemes_;
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List getKeywordThemesList() {
return keywordThemes_;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>
getKeywordThemesOrBuilderList() {
return keywordThemes_;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public int getKeywordThemesCount() {
return keywordThemes_.size();
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfo getKeywordThemes(int index) {
return keywordThemes_.get(index);
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder getKeywordThemesOrBuilder(
int index) {
return keywordThemes_.get(index);
}
public static final int BUSINESS_CONTEXT_FIELD_NUMBER = 8;
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the businessContext field is set.
*/
@java.lang.Override
public boolean hasBusinessContext() {
return businessSettingCase_ == 8;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessContext.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext getBusinessContext() {
if (businessSettingCase_ == 8) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder getBusinessContextOrBuilder() {
if (businessSettingCase_ == 8) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
public static final int BUSINESS_LOCATION_ID_FIELD_NUMBER = 2;
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the businessLocationId field is set.
*/
@java.lang.Override
public boolean hasBusinessLocationId() {
return businessSettingCase_ == 2;
}
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessLocationId.
*/
@java.lang.Override
public long getBusinessLocationId() {
if (businessSettingCase_ == 2) {
return (java.lang.Long) businessSetting_;
}
return 0L;
}
public static final int LOCATION_LIST_FIELD_NUMBER = 4;
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the locationList field is set.
*/
@java.lang.Override
public boolean hasLocationList() {
return geoTargetCase_ == 4;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
* @return The locationList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList getLocationList() {
if (geoTargetCase_ == 4) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder getLocationListOrBuilder() {
if (geoTargetCase_ == 4) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
public static final int PROXIMITY_FIELD_NUMBER = 5;
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the proximity field is set.
*/
@java.lang.Override
public boolean hasProximity() {
return geoTargetCase_ == 5;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return The proximity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfo getProximity() {
if (geoTargetCase_ == 5) {
return (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfoOrBuilder getProximityOrBuilder() {
if (geoTargetCase_ == 5) {
return (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.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(finalUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, finalUrl_);
}
if (businessSettingCase_ == 2) {
output.writeInt64(
2, (long)((java.lang.Long) businessSetting_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, languageCode_);
}
if (geoTargetCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_);
}
if (geoTargetCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_);
}
for (int i = 0; i < adSchedules_.size(); i++) {
output.writeMessage(6, adSchedules_.get(i));
}
for (int i = 0; i < keywordThemes_.size(); i++) {
output.writeMessage(7, keywordThemes_.get(i));
}
if (businessSettingCase_ == 8) {
output.writeMessage(8, (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_);
}
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(finalUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, finalUrl_);
}
if (businessSettingCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(
2, (long)((java.lang.Long) businessSetting_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_);
}
if (geoTargetCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_);
}
if (geoTargetCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_);
}
for (int i = 0; i < adSchedules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, adSchedules_.get(i));
}
for (int i = 0; i < keywordThemes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, keywordThemes_.get(i));
}
if (businessSettingCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_);
}
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.SmartCampaignSuggestionInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo other = (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo) obj;
if (!getFinalUrl()
.equals(other.getFinalUrl())) return false;
if (!getLanguageCode()
.equals(other.getLanguageCode())) return false;
if (!getAdSchedulesList()
.equals(other.getAdSchedulesList())) return false;
if (!getKeywordThemesList()
.equals(other.getKeywordThemesList())) return false;
if (!getBusinessSettingCase().equals(other.getBusinessSettingCase())) return false;
switch (businessSettingCase_) {
case 8:
if (!getBusinessContext()
.equals(other.getBusinessContext())) return false;
break;
case 2:
if (getBusinessLocationId()
!= other.getBusinessLocationId()) return false;
break;
case 0:
default:
}
if (!getGeoTargetCase().equals(other.getGeoTargetCase())) return false;
switch (geoTargetCase_) {
case 4:
if (!getLocationList()
.equals(other.getLocationList())) return false;
break;
case 5:
if (!getProximity()
.equals(other.getProximity())) 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) + FINAL_URL_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrl().hashCode();
hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getLanguageCode().hashCode();
if (getAdSchedulesCount() > 0) {
hash = (37 * hash) + AD_SCHEDULES_FIELD_NUMBER;
hash = (53 * hash) + getAdSchedulesList().hashCode();
}
if (getKeywordThemesCount() > 0) {
hash = (37 * hash) + KEYWORD_THEMES_FIELD_NUMBER;
hash = (53 * hash) + getKeywordThemesList().hashCode();
}
switch (businessSettingCase_) {
case 8:
hash = (37 * hash) + BUSINESS_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getBusinessContext().hashCode();
break;
case 2:
hash = (37 * hash) + BUSINESS_LOCATION_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBusinessLocationId());
break;
case 0:
default:
}
switch (geoTargetCase_) {
case 4:
hash = (37 * hash) + LOCATION_LIST_FIELD_NUMBER;
hash = (53 * hash) + getLocationList().hashCode();
break;
case 5:
hash = (37 * hash) + PROXIMITY_FIELD_NUMBER;
hash = (53 * hash) + getProximity().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo 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 needed to get suggestion for Smart Campaign. More information
* provided will help the system to derive better suggestions.
*
*
* Protobuf type {@code google.ads.googleads.v10.services.SmartCampaignSuggestionInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo)
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.class, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
finalUrl_ = "";
languageCode_ = "";
if (adSchedulesBuilder_ == null) {
adSchedules_ = java.util.Collections.emptyList();
} else {
adSchedules_ = null;
adSchedulesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (keywordThemesBuilder_ == null) {
keywordThemes_ = java.util.Collections.emptyList();
} else {
keywordThemes_ = null;
keywordThemesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (businessContextBuilder_ != null) {
businessContextBuilder_.clear();
}
if (locationListBuilder_ != null) {
locationListBuilder_.clear();
}
if (proximityBuilder_ != null) {
proximityBuilder_.clear();
}
businessSettingCase_ = 0;
businessSetting_ = null;
geoTargetCase_ = 0;
geoTarget_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestServiceProto.internal_static_google_ads_googleads_v10_services_SmartCampaignSuggestionInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo build() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo buildPartial() {
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo result = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo(this);
int from_bitField0_ = bitField0_;
result.finalUrl_ = finalUrl_;
result.languageCode_ = languageCode_;
if (adSchedulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
adSchedules_ = java.util.Collections.unmodifiableList(adSchedules_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.adSchedules_ = adSchedules_;
} else {
result.adSchedules_ = adSchedulesBuilder_.build();
}
if (keywordThemesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
keywordThemes_ = java.util.Collections.unmodifiableList(keywordThemes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.keywordThemes_ = keywordThemes_;
} else {
result.keywordThemes_ = keywordThemesBuilder_.build();
}
if (businessSettingCase_ == 8) {
if (businessContextBuilder_ == null) {
result.businessSetting_ = businessSetting_;
} else {
result.businessSetting_ = businessContextBuilder_.build();
}
}
if (businessSettingCase_ == 2) {
result.businessSetting_ = businessSetting_;
}
if (geoTargetCase_ == 4) {
if (locationListBuilder_ == null) {
result.geoTarget_ = geoTarget_;
} else {
result.geoTarget_ = locationListBuilder_.build();
}
}
if (geoTargetCase_ == 5) {
if (proximityBuilder_ == null) {
result.geoTarget_ = geoTarget_;
} else {
result.geoTarget_ = proximityBuilder_.build();
}
}
result.businessSettingCase_ = businessSettingCase_;
result.geoTargetCase_ = geoTargetCase_;
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.SmartCampaignSuggestionInfo) {
return mergeFrom((com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo other) {
if (other == com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.getDefaultInstance()) return this;
if (!other.getFinalUrl().isEmpty()) {
finalUrl_ = other.finalUrl_;
onChanged();
}
if (!other.getLanguageCode().isEmpty()) {
languageCode_ = other.languageCode_;
onChanged();
}
if (adSchedulesBuilder_ == null) {
if (!other.adSchedules_.isEmpty()) {
if (adSchedules_.isEmpty()) {
adSchedules_ = other.adSchedules_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdSchedulesIsMutable();
adSchedules_.addAll(other.adSchedules_);
}
onChanged();
}
} else {
if (!other.adSchedules_.isEmpty()) {
if (adSchedulesBuilder_.isEmpty()) {
adSchedulesBuilder_.dispose();
adSchedulesBuilder_ = null;
adSchedules_ = other.adSchedules_;
bitField0_ = (bitField0_ & ~0x00000001);
adSchedulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdSchedulesFieldBuilder() : null;
} else {
adSchedulesBuilder_.addAllMessages(other.adSchedules_);
}
}
}
if (keywordThemesBuilder_ == null) {
if (!other.keywordThemes_.isEmpty()) {
if (keywordThemes_.isEmpty()) {
keywordThemes_ = other.keywordThemes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureKeywordThemesIsMutable();
keywordThemes_.addAll(other.keywordThemes_);
}
onChanged();
}
} else {
if (!other.keywordThemes_.isEmpty()) {
if (keywordThemesBuilder_.isEmpty()) {
keywordThemesBuilder_.dispose();
keywordThemesBuilder_ = null;
keywordThemes_ = other.keywordThemes_;
bitField0_ = (bitField0_ & ~0x00000002);
keywordThemesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getKeywordThemesFieldBuilder() : null;
} else {
keywordThemesBuilder_.addAllMessages(other.keywordThemes_);
}
}
}
switch (other.getBusinessSettingCase()) {
case BUSINESS_CONTEXT: {
mergeBusinessContext(other.getBusinessContext());
break;
}
case BUSINESS_LOCATION_ID: {
setBusinessLocationId(other.getBusinessLocationId());
break;
}
case BUSINESSSETTING_NOT_SET: {
break;
}
}
switch (other.getGeoTargetCase()) {
case LOCATION_LIST: {
mergeLocationList(other.getLocationList());
break;
}
case PROXIMITY: {
mergeProximity(other.getProximity());
break;
}
case GEOTARGET_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: {
finalUrl_ = input.readStringRequireUtf8();
break;
} // case 10
case 16: {
businessSetting_ = input.readInt64();
businessSettingCase_ = 2;
break;
} // case 16
case 26: {
languageCode_ = input.readStringRequireUtf8();
break;
} // case 26
case 34: {
input.readMessage(
getLocationListFieldBuilder().getBuilder(),
extensionRegistry);
geoTargetCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getProximityFieldBuilder().getBuilder(),
extensionRegistry);
geoTargetCase_ = 5;
break;
} // case 42
case 50: {
com.google.ads.googleads.v10.common.AdScheduleInfo m =
input.readMessage(
com.google.ads.googleads.v10.common.AdScheduleInfo.parser(),
extensionRegistry);
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
adSchedules_.add(m);
} else {
adSchedulesBuilder_.addMessage(m);
}
break;
} // case 50
case 58: {
com.google.ads.googleads.v10.common.KeywordThemeInfo m =
input.readMessage(
com.google.ads.googleads.v10.common.KeywordThemeInfo.parser(),
extensionRegistry);
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
keywordThemes_.add(m);
} else {
keywordThemesBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
input.readMessage(
getBusinessContextFieldBuilder().getBuilder(),
extensionRegistry);
businessSettingCase_ = 8;
break;
} // case 66
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 businessSettingCase_ = 0;
private java.lang.Object businessSetting_;
public BusinessSettingCase
getBusinessSettingCase() {
return BusinessSettingCase.forNumber(
businessSettingCase_);
}
public Builder clearBusinessSetting() {
businessSettingCase_ = 0;
businessSetting_ = null;
onChanged();
return this;
}
private int geoTargetCase_ = 0;
private java.lang.Object geoTarget_;
public GeoTargetCase
getGeoTargetCase() {
return GeoTargetCase.forNumber(
geoTargetCase_);
}
public Builder clearGeoTarget() {
geoTargetCase_ = 0;
geoTarget_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object finalUrl_ = "";
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The finalUrl.
*/
public java.lang.String getFinalUrl() {
java.lang.Object ref = finalUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
finalUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for finalUrl.
*/
public com.google.protobuf.ByteString
getFinalUrlBytes() {
java.lang.Object ref = finalUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param value The finalUrl to set.
* @return This builder for chaining.
*/
public Builder setFinalUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
finalUrl_ = value;
onChanged();
return this;
}
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @return This builder for chaining.
*/
public Builder clearFinalUrl() {
finalUrl_ = getDefaultInstance().getFinalUrl();
onChanged();
return this;
}
/**
*
* Optional. Landing page URL of the campaign.
*
*
* string final_url = 1 [(.google.api.field_behavior) = OPTIONAL];
* @param value The bytes for finalUrl to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
finalUrl_ = value;
onChanged();
return this;
}
private java.lang.Object languageCode_ = "";
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @return The languageCode.
*/
public java.lang.String getLanguageCode() {
java.lang.Object ref = languageCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
languageCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @return The bytes for languageCode.
*/
public com.google.protobuf.ByteString
getLanguageCodeBytes() {
java.lang.Object ref = languageCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
languageCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @param value The languageCode to set.
* @return This builder for chaining.
*/
public Builder setLanguageCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
languageCode_ = value;
onChanged();
return this;
}
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @return This builder for chaining.
*/
public Builder clearLanguageCode() {
languageCode_ = getDefaultInstance().getLanguageCode();
onChanged();
return this;
}
/**
*
* Optional. The two letter advertising language for the Smart campaign to be
* constructed, default to 'en' if not set.
*
*
* string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
* @param value The bytes for languageCode to set.
* @return This builder for chaining.
*/
public Builder setLanguageCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
languageCode_ = value;
onChanged();
return this;
}
private java.util.List adSchedules_ =
java.util.Collections.emptyList();
private void ensureAdSchedulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
adSchedules_ = new java.util.ArrayList(adSchedules_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder> adSchedulesBuilder_;
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List getAdSchedulesList() {
if (adSchedulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(adSchedules_);
} else {
return adSchedulesBuilder_.getMessageList();
}
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public int getAdSchedulesCount() {
if (adSchedulesBuilder_ == null) {
return adSchedules_.size();
} else {
return adSchedulesBuilder_.getCount();
}
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfo getAdSchedules(int index) {
if (adSchedulesBuilder_ == null) {
return adSchedules_.get(index);
} else {
return adSchedulesBuilder_.getMessage(index);
}
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setAdSchedules(
int index, com.google.ads.googleads.v10.common.AdScheduleInfo value) {
if (adSchedulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdSchedulesIsMutable();
adSchedules_.set(index, value);
onChanged();
} else {
adSchedulesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setAdSchedules(
int index, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) {
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
adSchedules_.set(index, builderForValue.build());
onChanged();
} else {
adSchedulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAdSchedules(com.google.ads.googleads.v10.common.AdScheduleInfo value) {
if (adSchedulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdSchedulesIsMutable();
adSchedules_.add(value);
onChanged();
} else {
adSchedulesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAdSchedules(
int index, com.google.ads.googleads.v10.common.AdScheduleInfo value) {
if (adSchedulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdSchedulesIsMutable();
adSchedules_.add(index, value);
onChanged();
} else {
adSchedulesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAdSchedules(
com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) {
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
adSchedules_.add(builderForValue.build());
onChanged();
} else {
adSchedulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAdSchedules(
int index, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder builderForValue) {
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
adSchedules_.add(index, builderForValue.build());
onChanged();
} else {
adSchedulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAllAdSchedules(
java.lang.Iterable extends com.google.ads.googleads.v10.common.AdScheduleInfo> values) {
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, adSchedules_);
onChanged();
} else {
adSchedulesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearAdSchedules() {
if (adSchedulesBuilder_ == null) {
adSchedules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
adSchedulesBuilder_.clear();
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeAdSchedules(int index) {
if (adSchedulesBuilder_ == null) {
ensureAdSchedulesIsMutable();
adSchedules_.remove(index);
onChanged();
} else {
adSchedulesBuilder_.remove(index);
}
return this;
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder getAdSchedulesBuilder(
int index) {
return getAdSchedulesFieldBuilder().getBuilder(index);
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder getAdSchedulesOrBuilder(
int index) {
if (adSchedulesBuilder_ == null) {
return adSchedules_.get(index); } else {
return adSchedulesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List extends com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>
getAdSchedulesOrBuilderList() {
if (adSchedulesBuilder_ != null) {
return adSchedulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(adSchedules_);
}
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder addAdSchedulesBuilder() {
return getAdSchedulesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.AdScheduleInfo.Builder addAdSchedulesBuilder(
int index) {
return getAdSchedulesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* Optional. The business ad schedule.
*
*
* repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedules = 6 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List
getAdSchedulesBuilderList() {
return getAdSchedulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>
getAdSchedulesFieldBuilder() {
if (adSchedulesBuilder_ == null) {
adSchedulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.AdScheduleInfo, com.google.ads.googleads.v10.common.AdScheduleInfo.Builder, com.google.ads.googleads.v10.common.AdScheduleInfoOrBuilder>(
adSchedules_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
adSchedules_ = null;
}
return adSchedulesBuilder_;
}
private java.util.List keywordThemes_ =
java.util.Collections.emptyList();
private void ensureKeywordThemesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
keywordThemes_ = new java.util.ArrayList(keywordThemes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder> keywordThemesBuilder_;
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List getKeywordThemesList() {
if (keywordThemesBuilder_ == null) {
return java.util.Collections.unmodifiableList(keywordThemes_);
} else {
return keywordThemesBuilder_.getMessageList();
}
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public int getKeywordThemesCount() {
if (keywordThemesBuilder_ == null) {
return keywordThemes_.size();
} else {
return keywordThemesBuilder_.getCount();
}
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfo getKeywordThemes(int index) {
if (keywordThemesBuilder_ == null) {
return keywordThemes_.get(index);
} else {
return keywordThemesBuilder_.getMessage(index);
}
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setKeywordThemes(
int index, com.google.ads.googleads.v10.common.KeywordThemeInfo value) {
if (keywordThemesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordThemesIsMutable();
keywordThemes_.set(index, value);
onChanged();
} else {
keywordThemesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setKeywordThemes(
int index, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder builderForValue) {
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
keywordThemes_.set(index, builderForValue.build());
onChanged();
} else {
keywordThemesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addKeywordThemes(com.google.ads.googleads.v10.common.KeywordThemeInfo value) {
if (keywordThemesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordThemesIsMutable();
keywordThemes_.add(value);
onChanged();
} else {
keywordThemesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addKeywordThemes(
int index, com.google.ads.googleads.v10.common.KeywordThemeInfo value) {
if (keywordThemesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordThemesIsMutable();
keywordThemes_.add(index, value);
onChanged();
} else {
keywordThemesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addKeywordThemes(
com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder builderForValue) {
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
keywordThemes_.add(builderForValue.build());
onChanged();
} else {
keywordThemesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addKeywordThemes(
int index, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder builderForValue) {
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
keywordThemes_.add(index, builderForValue.build());
onChanged();
} else {
keywordThemesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAllKeywordThemes(
java.lang.Iterable extends com.google.ads.googleads.v10.common.KeywordThemeInfo> values) {
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keywordThemes_);
onChanged();
} else {
keywordThemesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearKeywordThemes() {
if (keywordThemesBuilder_ == null) {
keywordThemes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
keywordThemesBuilder_.clear();
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeKeywordThemes(int index) {
if (keywordThemesBuilder_ == null) {
ensureKeywordThemesIsMutable();
keywordThemes_.remove(index);
onChanged();
} else {
keywordThemesBuilder_.remove(index);
}
return this;
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder getKeywordThemesBuilder(
int index) {
return getKeywordThemesFieldBuilder().getBuilder(index);
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder getKeywordThemesOrBuilder(
int index) {
if (keywordThemesBuilder_ == null) {
return keywordThemes_.get(index); } else {
return keywordThemesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List extends com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>
getKeywordThemesOrBuilderList() {
if (keywordThemesBuilder_ != null) {
return keywordThemesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(keywordThemes_);
}
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder addKeywordThemesBuilder() {
return getKeywordThemesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance());
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder addKeywordThemesBuilder(
int index) {
return getKeywordThemesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.KeywordThemeInfo.getDefaultInstance());
}
/**
*
* Optional. Smart campaign keyword themes. This field may greatly improve suggestion
* accuracy and we recommend always setting it if possible.
*
*
* repeated .google.ads.googleads.v10.common.KeywordThemeInfo keyword_themes = 7 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List
getKeywordThemesBuilderList() {
return getKeywordThemesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>
getKeywordThemesFieldBuilder() {
if (keywordThemesBuilder_ == null) {
keywordThemesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.KeywordThemeInfo, com.google.ads.googleads.v10.common.KeywordThemeInfo.Builder, com.google.ads.googleads.v10.common.KeywordThemeInfoOrBuilder>(
keywordThemes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
keywordThemes_ = null;
}
return keywordThemesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder> businessContextBuilder_;
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the businessContext field is set.
*/
@java.lang.Override
public boolean hasBusinessContext() {
return businessSettingCase_ == 8;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessContext.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext getBusinessContext() {
if (businessContextBuilder_ == null) {
if (businessSettingCase_ == 8) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
} else {
if (businessSettingCase_ == 8) {
return businessContextBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setBusinessContext(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext value) {
if (businessContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
businessSetting_ = value;
onChanged();
} else {
businessContextBuilder_.setMessage(value);
}
businessSettingCase_ = 8;
return this;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setBusinessContext(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder builderForValue) {
if (businessContextBuilder_ == null) {
businessSetting_ = builderForValue.build();
onChanged();
} else {
businessContextBuilder_.setMessage(builderForValue.build());
}
businessSettingCase_ = 8;
return this;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder mergeBusinessContext(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext value) {
if (businessContextBuilder_ == null) {
if (businessSettingCase_ == 8 &&
businessSetting_ != com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance()) {
businessSetting_ = com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.newBuilder((com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_)
.mergeFrom(value).buildPartial();
} else {
businessSetting_ = value;
}
onChanged();
} else {
if (businessSettingCase_ == 8) {
businessContextBuilder_.mergeFrom(value);
} else {
businessContextBuilder_.setMessage(value);
}
}
businessSettingCase_ = 8;
return this;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearBusinessContext() {
if (businessContextBuilder_ == null) {
if (businessSettingCase_ == 8) {
businessSettingCase_ = 0;
businessSetting_ = null;
onChanged();
}
} else {
if (businessSettingCase_ == 8) {
businessSettingCase_ = 0;
businessSetting_ = null;
}
businessContextBuilder_.clear();
}
return this;
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder getBusinessContextBuilder() {
return getBusinessContextFieldBuilder().getBuilder();
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder getBusinessContextOrBuilder() {
if ((businessSettingCase_ == 8) && (businessContextBuilder_ != null)) {
return businessContextBuilder_.getMessageOrBuilder();
} else {
if (businessSettingCase_ == 8) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
}
/**
*
* Optional. Context describing the business to advertise.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext business_context = 8 [(.google.api.field_behavior) = OPTIONAL];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder>
getBusinessContextFieldBuilder() {
if (businessContextBuilder_ == null) {
if (!(businessSettingCase_ == 8)) {
businessSetting_ = com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.getDefaultInstance();
}
businessContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContextOrBuilder>(
(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.BusinessContext) businessSetting_,
getParentForChildren(),
isClean());
businessSetting_ = null;
}
businessSettingCase_ = 8;
onChanged();;
return businessContextBuilder_;
}
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the businessLocationId field is set.
*/
public boolean hasBusinessLocationId() {
return businessSettingCase_ == 2;
}
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return The businessLocationId.
*/
public long getBusinessLocationId() {
if (businessSettingCase_ == 2) {
return (java.lang.Long) businessSetting_;
}
return 0L;
}
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @param value The businessLocationId to set.
* @return This builder for chaining.
*/
public Builder setBusinessLocationId(long value) {
businessSettingCase_ = 2;
businessSetting_ = value;
onChanged();
return this;
}
/**
*
* Optional. The ID of the Business Profile location.
* The location ID can be fetched by Business Profile API with its form:
* accounts/{accountId}/locations/{locationId}. The last {locationId}
* component from the Business Profile API represents the
* business_location_id. See the [Business Profile API]
* (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)
*
*
* int64 business_location_id = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return This builder for chaining.
*/
public Builder clearBusinessLocationId() {
if (businessSettingCase_ == 2) {
businessSettingCase_ = 0;
businessSetting_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder> locationListBuilder_;
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the locationList field is set.
*/
@java.lang.Override
public boolean hasLocationList() {
return geoTargetCase_ == 4;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
* @return The locationList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList getLocationList() {
if (locationListBuilder_ == null) {
if (geoTargetCase_ == 4) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
} else {
if (geoTargetCase_ == 4) {
return locationListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setLocationList(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList value) {
if (locationListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoTarget_ = value;
onChanged();
} else {
locationListBuilder_.setMessage(value);
}
geoTargetCase_ = 4;
return this;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setLocationList(
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder builderForValue) {
if (locationListBuilder_ == null) {
geoTarget_ = builderForValue.build();
onChanged();
} else {
locationListBuilder_.setMessage(builderForValue.build());
}
geoTargetCase_ = 4;
return this;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder mergeLocationList(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList value) {
if (locationListBuilder_ == null) {
if (geoTargetCase_ == 4 &&
geoTarget_ != com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance()) {
geoTarget_ = com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.newBuilder((com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_)
.mergeFrom(value).buildPartial();
} else {
geoTarget_ = value;
}
onChanged();
} else {
if (geoTargetCase_ == 4) {
locationListBuilder_.mergeFrom(value);
} else {
locationListBuilder_.setMessage(value);
}
}
geoTargetCase_ = 4;
return this;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearLocationList() {
if (locationListBuilder_ == null) {
if (geoTargetCase_ == 4) {
geoTargetCase_ = 0;
geoTarget_ = null;
onChanged();
}
} else {
if (geoTargetCase_ == 4) {
geoTargetCase_ = 0;
geoTarget_ = null;
}
locationListBuilder_.clear();
}
return this;
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder getLocationListBuilder() {
return getLocationListFieldBuilder().getBuilder();
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder getLocationListOrBuilder() {
if ((geoTargetCase_ == 4) && (locationListBuilder_ != null)) {
return locationListBuilder_.getMessageOrBuilder();
} else {
if (geoTargetCase_ == 4) {
return (com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_;
}
return com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
}
/**
*
* Optional. The targeting geo location by locations.
*
*
* .google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList location_list = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder>
getLocationListFieldBuilder() {
if (locationListBuilder_ == null) {
if (!(geoTargetCase_ == 4)) {
geoTarget_ = com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.getDefaultInstance();
}
locationListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList.Builder, com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationListOrBuilder>(
(com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo.LocationList) geoTarget_,
getParentForChildren(),
isClean());
geoTarget_ = null;
}
geoTargetCase_ = 4;
onChanged();;
return locationListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder> proximityBuilder_;
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return Whether the proximity field is set.
*/
@java.lang.Override
public boolean hasProximity() {
return geoTargetCase_ == 5;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return The proximity.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfo getProximity() {
if (proximityBuilder_ == null) {
if (geoTargetCase_ == 5) {
return (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
} else {
if (geoTargetCase_ == 5) {
return proximityBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setProximity(com.google.ads.googleads.v10.common.ProximityInfo value) {
if (proximityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoTarget_ = value;
onChanged();
} else {
proximityBuilder_.setMessage(value);
}
geoTargetCase_ = 5;
return this;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setProximity(
com.google.ads.googleads.v10.common.ProximityInfo.Builder builderForValue) {
if (proximityBuilder_ == null) {
geoTarget_ = builderForValue.build();
onChanged();
} else {
proximityBuilder_.setMessage(builderForValue.build());
}
geoTargetCase_ = 5;
return this;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder mergeProximity(com.google.ads.googleads.v10.common.ProximityInfo value) {
if (proximityBuilder_ == null) {
if (geoTargetCase_ == 5 &&
geoTarget_ != com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance()) {
geoTarget_ = com.google.ads.googleads.v10.common.ProximityInfo.newBuilder((com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_)
.mergeFrom(value).buildPartial();
} else {
geoTarget_ = value;
}
onChanged();
} else {
if (geoTargetCase_ == 5) {
proximityBuilder_.mergeFrom(value);
} else {
proximityBuilder_.setMessage(value);
}
}
geoTargetCase_ = 5;
return this;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearProximity() {
if (proximityBuilder_ == null) {
if (geoTargetCase_ == 5) {
geoTargetCase_ = 0;
geoTarget_ = null;
onChanged();
}
} else {
if (geoTargetCase_ == 5) {
geoTargetCase_ = 0;
geoTarget_ = null;
}
proximityBuilder_.clear();
}
return this;
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v10.common.ProximityInfo.Builder getProximityBuilder() {
return getProximityFieldBuilder().getBuilder();
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.ProximityInfoOrBuilder getProximityOrBuilder() {
if ((geoTargetCase_ == 5) && (proximityBuilder_ != null)) {
return proximityBuilder_.getMessageOrBuilder();
} else {
if (geoTargetCase_ == 5) {
return (com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_;
}
return com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
}
/**
*
* Optional. The targeting geo location by proximity.
*
*
* .google.ads.googleads.v10.common.ProximityInfo proximity = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder>
getProximityFieldBuilder() {
if (proximityBuilder_ == null) {
if (!(geoTargetCase_ == 5)) {
geoTarget_ = com.google.ads.googleads.v10.common.ProximityInfo.getDefaultInstance();
}
proximityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.ProximityInfo, com.google.ads.googleads.v10.common.ProximityInfo.Builder, com.google.ads.googleads.v10.common.ProximityInfoOrBuilder>(
(com.google.ads.googleads.v10.common.ProximityInfo) geoTarget_,
getParentForChildren(),
isClean());
geoTarget_ = null;
}
geoTargetCase_ = 5;
onChanged();;
return proximityBuilder_;
}
@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.SmartCampaignSuggestionInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SmartCampaignSuggestionInfo)
private static final com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo();
}
public static com.google.ads.googleads.v10.services.SmartCampaignSuggestionInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SmartCampaignSuggestionInfo 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.SmartCampaignSuggestionInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy