com.google.ads.googleads.v10.common.PolicyTopicConstraint Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/common/policy.proto
package com.google.ads.googleads.v10.common;
/**
*
* Describes the effect on serving that a policy topic entry will have.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint}
*/
public final class PolicyTopicConstraint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.PolicyTopicConstraint)
PolicyTopicConstraintOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolicyTopicConstraint.newBuilder() to construct.
private PolicyTopicConstraint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolicyTopicConstraint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolicyTopicConstraint();
}
@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.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.Builder.class);
}
public interface CountryConstraintListOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList)
com.google.protobuf.MessageOrBuilder {
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return Whether the totalTargetedCountries field is set.
*/
boolean hasTotalTargetedCountries();
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return The totalTargetedCountries.
*/
int getTotalTargetedCountries();
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
java.util.List
getCountriesList();
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint getCountries(int index);
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
int getCountriesCount();
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
java.util.List extends com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder>
getCountriesOrBuilderList();
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder getCountriesOrBuilder(
int index);
}
/**
*
* A list of countries where a resource's serving is constrained.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList}
*/
public static final class CountryConstraintList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList)
CountryConstraintListOrBuilder {
private static final long serialVersionUID = 0L;
// Use CountryConstraintList.newBuilder() to construct.
private CountryConstraintList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CountryConstraintList() {
countries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CountryConstraintList();
}
@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.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraintList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraintList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder.class);
}
private int bitField0_;
public static final int TOTAL_TARGETED_COUNTRIES_FIELD_NUMBER = 3;
private int totalTargetedCountries_;
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return Whether the totalTargetedCountries field is set.
*/
@java.lang.Override
public boolean hasTotalTargetedCountries() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return The totalTargetedCountries.
*/
@java.lang.Override
public int getTotalTargetedCountries() {
return totalTargetedCountries_;
}
public static final int COUNTRIES_FIELD_NUMBER = 2;
private java.util.List countries_;
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
@java.lang.Override
public java.util.List getCountriesList() {
return countries_;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder>
getCountriesOrBuilderList() {
return countries_;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
@java.lang.Override
public int getCountriesCount() {
return countries_.size();
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint getCountries(int index) {
return countries_.get(index);
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder getCountriesOrBuilder(
int index) {
return countries_.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 < countries_.size(); i++) {
output.writeMessage(2, countries_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(3, totalTargetedCountries_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < countries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, countries_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, totalTargetedCountries_);
}
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.common.PolicyTopicConstraint.CountryConstraintList)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList other = (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) obj;
if (hasTotalTargetedCountries() != other.hasTotalTargetedCountries()) return false;
if (hasTotalTargetedCountries()) {
if (getTotalTargetedCountries()
!= other.getTotalTargetedCountries()) return false;
}
if (!getCountriesList()
.equals(other.getCountriesList())) 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 (hasTotalTargetedCountries()) {
hash = (37 * hash) + TOTAL_TARGETED_COUNTRIES_FIELD_NUMBER;
hash = (53 * hash) + getTotalTargetedCountries();
}
if (getCountriesCount() > 0) {
hash = (37 * hash) + COUNTRIES_FIELD_NUMBER;
hash = (53 * hash) + getCountriesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList 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 countries where a resource's serving is constrained.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList)
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraintList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraintList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
totalTargetedCountries_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (countriesBuilder_ == null) {
countries_ = java.util.Collections.emptyList();
} else {
countries_ = null;
countriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraintList_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList build() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList buildPartial() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList result = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.totalTargetedCountries_ = totalTargetedCountries_;
to_bitField0_ |= 0x00000001;
}
if (countriesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
countries_ = java.util.Collections.unmodifiableList(countries_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.countries_ = countries_;
} else {
result.countries_ = countriesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) {
return mergeFrom((com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList other) {
if (other == com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance()) return this;
if (other.hasTotalTargetedCountries()) {
setTotalTargetedCountries(other.getTotalTargetedCountries());
}
if (countriesBuilder_ == null) {
if (!other.countries_.isEmpty()) {
if (countries_.isEmpty()) {
countries_ = other.countries_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCountriesIsMutable();
countries_.addAll(other.countries_);
}
onChanged();
}
} else {
if (!other.countries_.isEmpty()) {
if (countriesBuilder_.isEmpty()) {
countriesBuilder_.dispose();
countriesBuilder_ = null;
countries_ = other.countries_;
bitField0_ = (bitField0_ & ~0x00000002);
countriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCountriesFieldBuilder() : null;
} else {
countriesBuilder_.addAllMessages(other.countries_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint m =
input.readMessage(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.parser(),
extensionRegistry);
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(m);
} else {
countriesBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
totalTargetedCountries_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int totalTargetedCountries_ ;
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return Whether the totalTargetedCountries field is set.
*/
@java.lang.Override
public boolean hasTotalTargetedCountries() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return The totalTargetedCountries.
*/
@java.lang.Override
public int getTotalTargetedCountries() {
return totalTargetedCountries_;
}
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @param value The totalTargetedCountries to set.
* @return This builder for chaining.
*/
public Builder setTotalTargetedCountries(int value) {
bitField0_ |= 0x00000001;
totalTargetedCountries_ = value;
onChanged();
return this;
}
/**
*
* Total number of countries targeted by the resource.
*
*
* optional int32 total_targeted_countries = 3;
* @return This builder for chaining.
*/
public Builder clearTotalTargetedCountries() {
bitField0_ = (bitField0_ & ~0x00000001);
totalTargetedCountries_ = 0;
onChanged();
return this;
}
private java.util.List countries_ =
java.util.Collections.emptyList();
private void ensureCountriesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
countries_ = new java.util.ArrayList(countries_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder> countriesBuilder_;
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public java.util.List getCountriesList() {
if (countriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(countries_);
} else {
return countriesBuilder_.getMessageList();
}
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public int getCountriesCount() {
if (countriesBuilder_ == null) {
return countries_.size();
} else {
return countriesBuilder_.getCount();
}
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint getCountries(int index) {
if (countriesBuilder_ == null) {
return countries_.get(index);
} else {
return countriesBuilder_.getMessage(index);
}
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder setCountries(
int index, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.set(index, value);
onChanged();
} else {
countriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder setCountries(
int index, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.set(index, builderForValue.build());
onChanged();
} else {
countriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder addCountries(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.add(value);
onChanged();
} else {
countriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder addCountries(
int index, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint value) {
if (countriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountriesIsMutable();
countries_.add(index, value);
onChanged();
} else {
countriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder addCountries(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(builderForValue.build());
onChanged();
} else {
countriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder addCountries(
int index, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder builderForValue) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.add(index, builderForValue.build());
onChanged();
} else {
countriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder addAllCountries(
java.lang.Iterable extends com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint> values) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, countries_);
onChanged();
} else {
countriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder clearCountries() {
if (countriesBuilder_ == null) {
countries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
countriesBuilder_.clear();
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public Builder removeCountries(int index) {
if (countriesBuilder_ == null) {
ensureCountriesIsMutable();
countries_.remove(index);
onChanged();
} else {
countriesBuilder_.remove(index);
}
return this;
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder getCountriesBuilder(
int index) {
return getCountriesFieldBuilder().getBuilder(index);
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder getCountriesOrBuilder(
int index) {
if (countriesBuilder_ == null) {
return countries_.get(index); } else {
return countriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public java.util.List extends com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder>
getCountriesOrBuilderList() {
if (countriesBuilder_ != null) {
return countriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(countries_);
}
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder addCountriesBuilder() {
return getCountriesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.getDefaultInstance());
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder addCountriesBuilder(
int index) {
return getCountriesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.getDefaultInstance());
}
/**
*
* Countries in which serving is restricted.
*
*
* repeated .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint countries = 2;
*/
public java.util.List
getCountriesBuilderList() {
return getCountriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder>
getCountriesFieldBuilder() {
if (countriesBuilder_ == null) {
countriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder>(
countries_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
countries_ = null;
}
return countriesBuilder_;
}
@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.common.PolicyTopicConstraint.CountryConstraintList)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList)
private static final com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList();
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CountryConstraintList 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.common.PolicyTopicConstraint.CountryConstraintList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResellerConstraintOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* Indicates that a policy topic was constrained due to disapproval of the
* website for reseller purposes.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint}
*/
public static final class ResellerConstraint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)
ResellerConstraintOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResellerConstraint.newBuilder() to construct.
private ResellerConstraint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResellerConstraint() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResellerConstraint();
}
@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.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_ResellerConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_ResellerConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint other = (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint 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;
}
/**
*
* Indicates that a policy topic was constrained due to disapproval of the
* website for reseller purposes.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_ResellerConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_ResellerConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_ResellerConstraint_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint build() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint buildPartial() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint result = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) {
return mergeFrom((com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint other) {
if (other == com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint)
private static final com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint();
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResellerConstraint 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.common.PolicyTopicConstraint.ResellerConstraint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CountryConstraintOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint)
com.google.protobuf.MessageOrBuilder {
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return Whether the countryCriterion field is set.
*/
boolean hasCountryCriterion();
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The countryCriterion.
*/
java.lang.String getCountryCriterion();
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The bytes for countryCriterion.
*/
com.google.protobuf.ByteString
getCountryCriterionBytes();
}
/**
*
* Indicates that a resource's ability to serve in a particular country is
* constrained.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint}
*/
public static final class CountryConstraint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint)
CountryConstraintOrBuilder {
private static final long serialVersionUID = 0L;
// Use CountryConstraint.newBuilder() to construct.
private CountryConstraint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CountryConstraint() {
countryCriterion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CountryConstraint();
}
@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.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder.class);
}
private int bitField0_;
public static final int COUNTRY_CRITERION_FIELD_NUMBER = 2;
private volatile java.lang.Object countryCriterion_;
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return Whether the countryCriterion field is set.
*/
@java.lang.Override
public boolean hasCountryCriterion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The countryCriterion.
*/
@java.lang.Override
public java.lang.String getCountryCriterion() {
java.lang.Object ref = countryCriterion_;
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();
countryCriterion_ = s;
return s;
}
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The bytes for countryCriterion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryCriterionBytes() {
java.lang.Object ref = countryCriterion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCriterion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, countryCriterion_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, countryCriterion_);
}
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.common.PolicyTopicConstraint.CountryConstraint)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint other = (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint) obj;
if (hasCountryCriterion() != other.hasCountryCriterion()) return false;
if (hasCountryCriterion()) {
if (!getCountryCriterion()
.equals(other.getCountryCriterion())) 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 (hasCountryCriterion()) {
hash = (37 * hash) + COUNTRY_CRITERION_FIELD_NUMBER;
hash = (53 * hash) + getCountryCriterion().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint 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;
}
/**
*
* Indicates that a resource's ability to serve in a particular country is
* constrained.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint)
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
countryCriterion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_CountryConstraint_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint build() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint buildPartial() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint result = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.countryCriterion_ = countryCriterion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint) {
return mergeFrom((com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint other) {
if (other == com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint.getDefaultInstance()) return this;
if (other.hasCountryCriterion()) {
bitField0_ |= 0x00000001;
countryCriterion_ = other.countryCriterion_;
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 18: {
countryCriterion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object countryCriterion_ = "";
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return Whether the countryCriterion field is set.
*/
public boolean hasCountryCriterion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The countryCriterion.
*/
public java.lang.String getCountryCriterion() {
java.lang.Object ref = countryCriterion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
countryCriterion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return The bytes for countryCriterion.
*/
public com.google.protobuf.ByteString
getCountryCriterionBytes() {
java.lang.Object ref = countryCriterion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
countryCriterion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @param value The countryCriterion to set.
* @return This builder for chaining.
*/
public Builder setCountryCriterion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
countryCriterion_ = value;
onChanged();
return this;
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @return This builder for chaining.
*/
public Builder clearCountryCriterion() {
bitField0_ = (bitField0_ & ~0x00000001);
countryCriterion_ = getDefaultInstance().getCountryCriterion();
onChanged();
return this;
}
/**
*
* Geo target constant resource name of the country in which serving is
* constrained.
*
*
* optional string country_criterion = 2;
* @param value The bytes for countryCriterion to set.
* @return This builder for chaining.
*/
public Builder setCountryCriterionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
countryCriterion_ = 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.common.PolicyTopicConstraint.CountryConstraint)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint)
private static final com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint();
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CountryConstraint 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.common.PolicyTopicConstraint.CountryConstraint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
COUNTRY_CONSTRAINT_LIST(1),
RESELLER_CONSTRAINT(2),
CERTIFICATE_MISSING_IN_COUNTRY_LIST(3),
CERTIFICATE_DOMAIN_MISMATCH_IN_COUNTRY_LIST(4),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(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 ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 1: return COUNTRY_CONSTRAINT_LIST;
case 2: return RESELLER_CONSTRAINT;
case 3: return CERTIFICATE_MISSING_IN_COUNTRY_LIST;
case 4: return CERTIFICATE_DOMAIN_MISMATCH_IN_COUNTRY_LIST;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public static final int COUNTRY_CONSTRAINT_LIST_FIELD_NUMBER = 1;
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
* @return Whether the countryConstraintList field is set.
*/
@java.lang.Override
public boolean hasCountryConstraintList() {
return valueCase_ == 1;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
* @return The countryConstraintList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCountryConstraintList() {
if (valueCase_ == 1) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCountryConstraintListOrBuilder() {
if (valueCase_ == 1) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
public static final int RESELLER_CONSTRAINT_FIELD_NUMBER = 2;
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
* @return Whether the resellerConstraint field is set.
*/
@java.lang.Override
public boolean hasResellerConstraint() {
return valueCase_ == 2;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
* @return The resellerConstraint.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint getResellerConstraint() {
if (valueCase_ == 2) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder getResellerConstraintOrBuilder() {
if (valueCase_ == 2) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
public static final int CERTIFICATE_MISSING_IN_COUNTRY_LIST_FIELD_NUMBER = 3;
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
* @return Whether the certificateMissingInCountryList field is set.
*/
@java.lang.Override
public boolean hasCertificateMissingInCountryList() {
return valueCase_ == 3;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
* @return The certificateMissingInCountryList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCertificateMissingInCountryList() {
if (valueCase_ == 3) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCertificateMissingInCountryListOrBuilder() {
if (valueCase_ == 3) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
public static final int CERTIFICATE_DOMAIN_MISMATCH_IN_COUNTRY_LIST_FIELD_NUMBER = 4;
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
* @return Whether the certificateDomainMismatchInCountryList field is set.
*/
@java.lang.Override
public boolean hasCertificateDomainMismatchInCountryList() {
return valueCase_ == 4;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
* @return The certificateDomainMismatchInCountryList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCertificateDomainMismatchInCountryList() {
if (valueCase_ == 4) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCertificateDomainMismatchInCountryListOrBuilder() {
if (valueCase_ == 4) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.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 (valueCase_ == 1) {
output.writeMessage(1, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
if (valueCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_);
}
if (valueCase_ == 3) {
output.writeMessage(3, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
if (valueCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (valueCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_);
}
if (valueCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
if (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_);
}
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.common.PolicyTopicConstraint)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.PolicyTopicConstraint other = (com.google.ads.googleads.v10.common.PolicyTopicConstraint) obj;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 1:
if (!getCountryConstraintList()
.equals(other.getCountryConstraintList())) return false;
break;
case 2:
if (!getResellerConstraint()
.equals(other.getResellerConstraint())) return false;
break;
case 3:
if (!getCertificateMissingInCountryList()
.equals(other.getCertificateMissingInCountryList())) return false;
break;
case 4:
if (!getCertificateDomainMismatchInCountryList()
.equals(other.getCertificateDomainMismatchInCountryList())) 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();
switch (valueCase_) {
case 1:
hash = (37 * hash) + COUNTRY_CONSTRAINT_LIST_FIELD_NUMBER;
hash = (53 * hash) + getCountryConstraintList().hashCode();
break;
case 2:
hash = (37 * hash) + RESELLER_CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + getResellerConstraint().hashCode();
break;
case 3:
hash = (37 * hash) + CERTIFICATE_MISSING_IN_COUNTRY_LIST_FIELD_NUMBER;
hash = (53 * hash) + getCertificateMissingInCountryList().hashCode();
break;
case 4:
hash = (37 * hash) + CERTIFICATE_DOMAIN_MISMATCH_IN_COUNTRY_LIST_FIELD_NUMBER;
hash = (53 * hash) + getCertificateDomainMismatchInCountryList().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint 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.common.PolicyTopicConstraint 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;
}
/**
*
* Describes the effect on serving that a policy topic entry will have.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.PolicyTopicConstraint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.PolicyTopicConstraint)
com.google.ads.googleads.v10.common.PolicyTopicConstraintOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.class, com.google.ads.googleads.v10.common.PolicyTopicConstraint.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.PolicyTopicConstraint.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (countryConstraintListBuilder_ != null) {
countryConstraintListBuilder_.clear();
}
if (resellerConstraintBuilder_ != null) {
resellerConstraintBuilder_.clear();
}
if (certificateMissingInCountryListBuilder_ != null) {
certificateMissingInCountryListBuilder_.clear();
}
if (certificateDomainMismatchInCountryListBuilder_ != null) {
certificateDomainMismatchInCountryListBuilder_.clear();
}
valueCase_ = 0;
value_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.PolicyProto.internal_static_google_ads_googleads_v10_common_PolicyTopicConstraint_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint build() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint buildPartial() {
com.google.ads.googleads.v10.common.PolicyTopicConstraint result = new com.google.ads.googleads.v10.common.PolicyTopicConstraint(this);
if (valueCase_ == 1) {
if (countryConstraintListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = countryConstraintListBuilder_.build();
}
}
if (valueCase_ == 2) {
if (resellerConstraintBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = resellerConstraintBuilder_.build();
}
}
if (valueCase_ == 3) {
if (certificateMissingInCountryListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = certificateMissingInCountryListBuilder_.build();
}
}
if (valueCase_ == 4) {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = certificateDomainMismatchInCountryListBuilder_.build();
}
}
result.valueCase_ = valueCase_;
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.common.PolicyTopicConstraint) {
return mergeFrom((com.google.ads.googleads.v10.common.PolicyTopicConstraint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.PolicyTopicConstraint other) {
if (other == com.google.ads.googleads.v10.common.PolicyTopicConstraint.getDefaultInstance()) return this;
switch (other.getValueCase()) {
case COUNTRY_CONSTRAINT_LIST: {
mergeCountryConstraintList(other.getCountryConstraintList());
break;
}
case RESELLER_CONSTRAINT: {
mergeResellerConstraint(other.getResellerConstraint());
break;
}
case CERTIFICATE_MISSING_IN_COUNTRY_LIST: {
mergeCertificateMissingInCountryList(other.getCertificateMissingInCountryList());
break;
}
case CERTIFICATE_DOMAIN_MISMATCH_IN_COUNTRY_LIST: {
mergeCertificateDomainMismatchInCountryList(other.getCertificateDomainMismatchInCountryList());
break;
}
case VALUE_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: {
input.readMessage(
getCountryConstraintListFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getResellerConstraintFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getCertificateMissingInCountryListFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getCertificateDomainMismatchInCountryListFieldBuilder().getBuilder(),
extensionRegistry);
valueCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int valueCase_ = 0;
private java.lang.Object value_;
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
public Builder clearValue() {
valueCase_ = 0;
value_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder> countryConstraintListBuilder_;
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
* @return Whether the countryConstraintList field is set.
*/
@java.lang.Override
public boolean hasCountryConstraintList() {
return valueCase_ == 1;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
* @return The countryConstraintList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCountryConstraintList() {
if (countryConstraintListBuilder_ == null) {
if (valueCase_ == 1) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
} else {
if (valueCase_ == 1) {
return countryConstraintListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
public Builder setCountryConstraintList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (countryConstraintListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
countryConstraintListBuilder_.setMessage(value);
}
valueCase_ = 1;
return this;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
public Builder setCountryConstraintList(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder builderForValue) {
if (countryConstraintListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
countryConstraintListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 1;
return this;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
public Builder mergeCountryConstraintList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (countryConstraintListBuilder_ == null) {
if (valueCase_ == 1 &&
value_ != com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance()) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.newBuilder((com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 1) {
countryConstraintListBuilder_.mergeFrom(value);
} else {
countryConstraintListBuilder_.setMessage(value);
}
}
valueCase_ = 1;
return this;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
public Builder clearCountryConstraintList() {
if (countryConstraintListBuilder_ == null) {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 1) {
valueCase_ = 0;
value_ = null;
}
countryConstraintListBuilder_.clear();
}
return this;
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder getCountryConstraintListBuilder() {
return getCountryConstraintListFieldBuilder().getBuilder();
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCountryConstraintListOrBuilder() {
if ((valueCase_ == 1) && (countryConstraintListBuilder_ != null)) {
return countryConstraintListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 1) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where the resource cannot serve.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList country_constraint_list = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>
getCountryConstraintListFieldBuilder() {
if (countryConstraintListBuilder_ == null) {
if (!(valueCase_ == 1)) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
countryConstraintListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>(
(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 1;
onChanged();;
return countryConstraintListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder> resellerConstraintBuilder_;
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
* @return Whether the resellerConstraint field is set.
*/
@java.lang.Override
public boolean hasResellerConstraint() {
return valueCase_ == 2;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
* @return The resellerConstraint.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint getResellerConstraint() {
if (resellerConstraintBuilder_ == null) {
if (valueCase_ == 2) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
} else {
if (valueCase_ == 2) {
return resellerConstraintBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
public Builder setResellerConstraint(com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint value) {
if (resellerConstraintBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
resellerConstraintBuilder_.setMessage(value);
}
valueCase_ = 2;
return this;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
public Builder setResellerConstraint(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder builderForValue) {
if (resellerConstraintBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
resellerConstraintBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 2;
return this;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
public Builder mergeResellerConstraint(com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint value) {
if (resellerConstraintBuilder_ == null) {
if (valueCase_ == 2 &&
value_ != com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance()) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.newBuilder((com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 2) {
resellerConstraintBuilder_.mergeFrom(value);
} else {
resellerConstraintBuilder_.setMessage(value);
}
}
valueCase_ = 2;
return this;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
public Builder clearResellerConstraint() {
if (resellerConstraintBuilder_ == null) {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 2) {
valueCase_ = 0;
value_ = null;
}
resellerConstraintBuilder_.clear();
}
return this;
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder getResellerConstraintBuilder() {
return getResellerConstraintFieldBuilder().getBuilder();
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder getResellerConstraintOrBuilder() {
if ((valueCase_ == 2) && (resellerConstraintBuilder_ != null)) {
return resellerConstraintBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 2) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
}
/**
*
* Reseller constraint.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint reseller_constraint = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder>
getResellerConstraintFieldBuilder() {
if (resellerConstraintBuilder_ == null) {
if (!(valueCase_ == 2)) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.getDefaultInstance();
}
resellerConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraintOrBuilder>(
(com.google.ads.googleads.v10.common.PolicyTopicConstraint.ResellerConstraint) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 2;
onChanged();;
return resellerConstraintBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder> certificateMissingInCountryListBuilder_;
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
* @return Whether the certificateMissingInCountryList field is set.
*/
@java.lang.Override
public boolean hasCertificateMissingInCountryList() {
return valueCase_ == 3;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
* @return The certificateMissingInCountryList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCertificateMissingInCountryList() {
if (certificateMissingInCountryListBuilder_ == null) {
if (valueCase_ == 3) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
} else {
if (valueCase_ == 3) {
return certificateMissingInCountryListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
public Builder setCertificateMissingInCountryList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (certificateMissingInCountryListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
certificateMissingInCountryListBuilder_.setMessage(value);
}
valueCase_ = 3;
return this;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
public Builder setCertificateMissingInCountryList(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder builderForValue) {
if (certificateMissingInCountryListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
certificateMissingInCountryListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 3;
return this;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
public Builder mergeCertificateMissingInCountryList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (certificateMissingInCountryListBuilder_ == null) {
if (valueCase_ == 3 &&
value_ != com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance()) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.newBuilder((com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 3) {
certificateMissingInCountryListBuilder_.mergeFrom(value);
} else {
certificateMissingInCountryListBuilder_.setMessage(value);
}
}
valueCase_ = 3;
return this;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
public Builder clearCertificateMissingInCountryList() {
if (certificateMissingInCountryListBuilder_ == null) {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 3) {
valueCase_ = 0;
value_ = null;
}
certificateMissingInCountryListBuilder_.clear();
}
return this;
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder getCertificateMissingInCountryListBuilder() {
return getCertificateMissingInCountryListFieldBuilder().getBuilder();
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCertificateMissingInCountryListOrBuilder() {
if ((valueCase_ == 3) && (certificateMissingInCountryListBuilder_ != null)) {
return certificateMissingInCountryListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 3) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where a certificate is required for serving.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_missing_in_country_list = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>
getCertificateMissingInCountryListFieldBuilder() {
if (certificateMissingInCountryListBuilder_ == null) {
if (!(valueCase_ == 3)) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
certificateMissingInCountryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>(
(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 3;
onChanged();;
return certificateMissingInCountryListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder> certificateDomainMismatchInCountryListBuilder_;
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
* @return Whether the certificateDomainMismatchInCountryList field is set.
*/
@java.lang.Override
public boolean hasCertificateDomainMismatchInCountryList() {
return valueCase_ == 4;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
* @return The certificateDomainMismatchInCountryList.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList getCertificateDomainMismatchInCountryList() {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
if (valueCase_ == 4) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
} else {
if (valueCase_ == 4) {
return certificateDomainMismatchInCountryListBuilder_.getMessage();
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
public Builder setCertificateDomainMismatchInCountryList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
certificateDomainMismatchInCountryListBuilder_.setMessage(value);
}
valueCase_ = 4;
return this;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
public Builder setCertificateDomainMismatchInCountryList(
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder builderForValue) {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
certificateDomainMismatchInCountryListBuilder_.setMessage(builderForValue.build());
}
valueCase_ = 4;
return this;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
public Builder mergeCertificateDomainMismatchInCountryList(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList value) {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
if (valueCase_ == 4 &&
value_ != com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance()) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.newBuilder((com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_)
.mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
if (valueCase_ == 4) {
certificateDomainMismatchInCountryListBuilder_.mergeFrom(value);
} else {
certificateDomainMismatchInCountryListBuilder_.setMessage(value);
}
}
valueCase_ = 4;
return this;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
public Builder clearCertificateDomainMismatchInCountryList() {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
} else {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
}
certificateDomainMismatchInCountryListBuilder_.clear();
}
return this;
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder getCertificateDomainMismatchInCountryListBuilder() {
return getCertificateDomainMismatchInCountryListFieldBuilder().getBuilder();
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder getCertificateDomainMismatchInCountryListOrBuilder() {
if ((valueCase_ == 4) && (certificateDomainMismatchInCountryListBuilder_ != null)) {
return certificateDomainMismatchInCountryListBuilder_.getMessageOrBuilder();
} else {
if (valueCase_ == 4) {
return (com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_;
}
return com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
}
/**
*
* Countries where the resource's domain is not covered by the
* certificates associated with it.
*
*
* .google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList certificate_domain_mismatch_in_country_list = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>
getCertificateDomainMismatchInCountryListFieldBuilder() {
if (certificateDomainMismatchInCountryListBuilder_ == null) {
if (!(valueCase_ == 4)) {
value_ = com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.getDefaultInstance();
}
certificateDomainMismatchInCountryListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList.Builder, com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintListOrBuilder>(
(com.google.ads.googleads.v10.common.PolicyTopicConstraint.CountryConstraintList) value_,
getParentForChildren(),
isClean());
value_ = null;
}
valueCase_ = 4;
onChanged();;
return certificateDomainMismatchInCountryListBuilder_;
}
@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.common.PolicyTopicConstraint)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.PolicyTopicConstraint)
private static final com.google.ads.googleads.v10.common.PolicyTopicConstraint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.PolicyTopicConstraint();
}
public static com.google.ads.googleads.v10.common.PolicyTopicConstraint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolicyTopicConstraint 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.common.PolicyTopicConstraint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy