
com.google.ads.googleads.v18.resources.ConversionValueRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v18 Show documentation
Show all versions of google-ads-stubs-v18 Show documentation
Stubs for GAAPI version google-ads-stubs-v18
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v18/resources/conversion_value_rule.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.resources;
/**
*
* A conversion value rule
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule}
*/
public final class ConversionValueRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule)
ConversionValueRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConversionValueRule.newBuilder() to construct.
private ConversionValueRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConversionValueRule() {
resourceName_ = "";
ownerCustomer_ = "";
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConversionValueRule();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.class, com.google.ads.googleads.v18.resources.ConversionValueRule.Builder.class);
}
public interface ValueRuleActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The enum numeric value on the wire for operation.
*/
int getOperationValue();
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The operation.
*/
com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation getOperation();
/**
*
* Specifies applied value.
*
*
* double value = 2;
* @return The value.
*/
double getValue();
}
/**
*
* Action applied when rule is applied.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction}
*/
public static final class ValueRuleAction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)
ValueRuleActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleAction.newBuilder() to construct.
private ValueRuleAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleAction() {
operation_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleAction();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private int operation_ = 0;
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The enum numeric value on the wire for operation.
*/
@java.lang.Override public int getOperationValue() {
return operation_;
}
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The operation.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation getOperation() {
com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation result = com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.forNumber(operation_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.UNRECOGNIZED : result;
}
public static final int VALUE_FIELD_NUMBER = 2;
private double value_ = 0D;
/**
*
* Specifies applied value.
*
*
* double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
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 (operation_ != com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.UNSPECIFIED.getNumber()) {
output.writeEnum(1, operation_);
}
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
output.writeDouble(2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, operation_);
}
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, 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.v18.resources.ConversionValueRule.ValueRuleAction)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction) obj;
if (operation_ != other.operation_) return false;
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + operation_;
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction 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;
}
/**
*
* Action applied when rule is applied.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operation_ = 0;
value_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAction_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operation_ = operation_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleAction) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance()) return this;
if (other.operation_ != 0) {
setOperationValue(other.getOperationValue());
}
if (other.getValue() != 0D) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
operation_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 17: {
value_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
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 operation_ = 0;
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The enum numeric value on the wire for operation.
*/
@java.lang.Override public int getOperationValue() {
return operation_;
}
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @param value The enum numeric value on the wire for operation to set.
* @return This builder for chaining.
*/
public Builder setOperationValue(int value) {
operation_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation getOperation() {
com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation result = com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.forNumber(operation_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation.UNRECOGNIZED : result;
}
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @param value The operation to set.
* @return This builder for chaining.
*/
public Builder setOperation(com.google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
operation_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Specifies applied operation.
*
*
* .google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1;
* @return This builder for chaining.
*/
public Builder clearOperation() {
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = 0;
onChanged();
return this;
}
private double value_ ;
/**
*
* Specifies applied value.
*
*
* double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
* Specifies applied value.
*
*
* double value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Specifies applied value.
*
*
* double value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleAction 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.v18.resources.ConversionValueRule.ValueRuleAction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleGeoLocationConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the excludedGeoTargetConstants.
*/
java.util.List
getExcludedGeoTargetConstantsList();
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return The count of excludedGeoTargetConstants.
*/
int getExcludedGeoTargetConstantsCount();
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The excludedGeoTargetConstants at the given index.
*/
java.lang.String getExcludedGeoTargetConstants(int index);
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the excludedGeoTargetConstants at the given index.
*/
com.google.protobuf.ByteString
getExcludedGeoTargetConstantsBytes(int index);
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The enum numeric value on the wire for excludedGeoMatchType.
*/
int getExcludedGeoMatchTypeValue();
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The excludedGeoMatchType.
*/
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getExcludedGeoMatchType();
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return A list containing the geoTargetConstants.
*/
java.util.List
getGeoTargetConstantsList();
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return The count of geoTargetConstants.
*/
int getGeoTargetConstantsCount();
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The geoTargetConstants at the given index.
*/
java.lang.String getGeoTargetConstants(int index);
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the geoTargetConstants at the given index.
*/
com.google.protobuf.ByteString
getGeoTargetConstantsBytes(int index);
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The enum numeric value on the wire for geoMatchType.
*/
int getGeoMatchTypeValue();
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The geoMatchType.
*/
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType();
}
/**
*
* Condition on Geo dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition}
*/
public static final class ValueRuleGeoLocationCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)
ValueRuleGeoLocationConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleGeoLocationCondition.newBuilder() to construct.
private ValueRuleGeoLocationCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleGeoLocationCondition() {
excludedGeoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
excludedGeoMatchType_ = 0;
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
geoMatchType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleGeoLocationCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleGeoLocationCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder.class);
}
public static final int EXCLUDED_GEO_TARGET_CONSTANTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList excludedGeoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the excludedGeoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getExcludedGeoTargetConstantsList() {
return excludedGeoTargetConstants_;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return The count of excludedGeoTargetConstants.
*/
public int getExcludedGeoTargetConstantsCount() {
return excludedGeoTargetConstants_.size();
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The excludedGeoTargetConstants at the given index.
*/
public java.lang.String getExcludedGeoTargetConstants(int index) {
return excludedGeoTargetConstants_.get(index);
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the excludedGeoTargetConstants at the given index.
*/
public com.google.protobuf.ByteString
getExcludedGeoTargetConstantsBytes(int index) {
return excludedGeoTargetConstants_.getByteString(index);
}
public static final int EXCLUDED_GEO_MATCH_TYPE_FIELD_NUMBER = 2;
private int excludedGeoMatchType_ = 0;
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The enum numeric value on the wire for excludedGeoMatchType.
*/
@java.lang.Override public int getExcludedGeoMatchTypeValue() {
return excludedGeoMatchType_;
}
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The excludedGeoMatchType.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getExcludedGeoMatchType() {
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.forNumber(excludedGeoMatchType_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result;
}
public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return A list containing the geoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getGeoTargetConstantsList() {
return geoTargetConstants_;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return The count of geoTargetConstants.
*/
public int getGeoTargetConstantsCount() {
return geoTargetConstants_.size();
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The geoTargetConstants at the given index.
*/
public java.lang.String getGeoTargetConstants(int index) {
return geoTargetConstants_.get(index);
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the geoTargetConstants at the given index.
*/
public com.google.protobuf.ByteString
getGeoTargetConstantsBytes(int index) {
return geoTargetConstants_.getByteString(index);
}
public static final int GEO_MATCH_TYPE_FIELD_NUMBER = 4;
private int geoMatchType_ = 0;
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The enum numeric value on the wire for geoMatchType.
*/
@java.lang.Override public int getGeoMatchTypeValue() {
return geoMatchType_;
}
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The geoMatchType.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType() {
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.forNumber(geoMatchType_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < excludedGeoTargetConstants_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, excludedGeoTargetConstants_.getRaw(i));
}
if (excludedGeoMatchType_ != com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNSPECIFIED.getNumber()) {
output.writeEnum(2, excludedGeoMatchType_);
}
for (int i = 0; i < geoTargetConstants_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, geoTargetConstants_.getRaw(i));
}
if (geoMatchType_ != com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNSPECIFIED.getNumber()) {
output.writeEnum(4, geoMatchType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < excludedGeoTargetConstants_.size(); i++) {
dataSize += computeStringSizeNoTag(excludedGeoTargetConstants_.getRaw(i));
}
size += dataSize;
size += 1 * getExcludedGeoTargetConstantsList().size();
}
if (excludedGeoMatchType_ != com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, excludedGeoMatchType_);
}
{
int dataSize = 0;
for (int i = 0; i < geoTargetConstants_.size(); i++) {
dataSize += computeStringSizeNoTag(geoTargetConstants_.getRaw(i));
}
size += dataSize;
size += 1 * getGeoTargetConstantsList().size();
}
if (geoMatchType_ != com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, geoMatchType_);
}
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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition) obj;
if (!getExcludedGeoTargetConstantsList()
.equals(other.getExcludedGeoTargetConstantsList())) return false;
if (excludedGeoMatchType_ != other.excludedGeoMatchType_) return false;
if (!getGeoTargetConstantsList()
.equals(other.getGeoTargetConstantsList())) return false;
if (geoMatchType_ != other.geoMatchType_) 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 (getExcludedGeoTargetConstantsCount() > 0) {
hash = (37 * hash) + EXCLUDED_GEO_TARGET_CONSTANTS_FIELD_NUMBER;
hash = (53 * hash) + getExcludedGeoTargetConstantsList().hashCode();
}
hash = (37 * hash) + EXCLUDED_GEO_MATCH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + excludedGeoMatchType_;
if (getGeoTargetConstantsCount() > 0) {
hash = (37 * hash) + GEO_TARGET_CONSTANTS_FIELD_NUMBER;
hash = (53 * hash) + getGeoTargetConstantsList().hashCode();
}
hash = (37 * hash) + GEO_MATCH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + geoMatchType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition 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;
}
/**
*
* Condition on Geo dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleGeoLocationCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
excludedGeoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
excludedGeoMatchType_ = 0;
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
geoMatchType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
excludedGeoTargetConstants_.makeImmutable();
result.excludedGeoTargetConstants_ = excludedGeoTargetConstants_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.excludedGeoMatchType_ = excludedGeoMatchType_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
geoTargetConstants_.makeImmutable();
result.geoTargetConstants_ = geoTargetConstants_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.geoMatchType_ = geoMatchType_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance()) return this;
if (!other.excludedGeoTargetConstants_.isEmpty()) {
if (excludedGeoTargetConstants_.isEmpty()) {
excludedGeoTargetConstants_ = other.excludedGeoTargetConstants_;
bitField0_ |= 0x00000001;
} else {
ensureExcludedGeoTargetConstantsIsMutable();
excludedGeoTargetConstants_.addAll(other.excludedGeoTargetConstants_);
}
onChanged();
}
if (other.excludedGeoMatchType_ != 0) {
setExcludedGeoMatchTypeValue(other.getExcludedGeoMatchTypeValue());
}
if (!other.geoTargetConstants_.isEmpty()) {
if (geoTargetConstants_.isEmpty()) {
geoTargetConstants_ = other.geoTargetConstants_;
bitField0_ |= 0x00000004;
} else {
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.addAll(other.geoTargetConstants_);
}
onChanged();
}
if (other.geoMatchType_ != 0) {
setGeoMatchTypeValue(other.getGeoMatchTypeValue());
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureExcludedGeoTargetConstantsIsMutable();
excludedGeoTargetConstants_.add(s);
break;
} // case 10
case 16: {
excludedGeoMatchType_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.add(s);
break;
} // case 26
case 32: {
geoMatchType_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList excludedGeoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExcludedGeoTargetConstantsIsMutable() {
if (!excludedGeoTargetConstants_.isModifiable()) {
excludedGeoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(excludedGeoTargetConstants_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the excludedGeoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getExcludedGeoTargetConstantsList() {
excludedGeoTargetConstants_.makeImmutable();
return excludedGeoTargetConstants_;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return The count of excludedGeoTargetConstants.
*/
public int getExcludedGeoTargetConstantsCount() {
return excludedGeoTargetConstants_.size();
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The excludedGeoTargetConstants at the given index.
*/
public java.lang.String getExcludedGeoTargetConstants(int index) {
return excludedGeoTargetConstants_.get(index);
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the excludedGeoTargetConstants at the given index.
*/
public com.google.protobuf.ByteString
getExcludedGeoTargetConstantsBytes(int index) {
return excludedGeoTargetConstants_.getByteString(index);
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The excludedGeoTargetConstants to set.
* @return This builder for chaining.
*/
public Builder setExcludedGeoTargetConstants(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludedGeoTargetConstantsIsMutable();
excludedGeoTargetConstants_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param value The excludedGeoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addExcludedGeoTargetConstants(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExcludedGeoTargetConstantsIsMutable();
excludedGeoTargetConstants_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param values The excludedGeoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addAllExcludedGeoTargetConstants(
java.lang.Iterable values) {
ensureExcludedGeoTargetConstantsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludedGeoTargetConstants_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearExcludedGeoTargetConstants() {
excludedGeoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to exclude.
*
*
* repeated string excluded_geo_target_constants = 1 [(.google.api.resource_reference) = { ... }
* @param value The bytes of the excludedGeoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addExcludedGeoTargetConstantsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureExcludedGeoTargetConstantsIsMutable();
excludedGeoTargetConstants_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int excludedGeoMatchType_ = 0;
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The enum numeric value on the wire for excludedGeoMatchType.
*/
@java.lang.Override public int getExcludedGeoMatchTypeValue() {
return excludedGeoMatchType_;
}
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @param value The enum numeric value on the wire for excludedGeoMatchType to set.
* @return This builder for chaining.
*/
public Builder setExcludedGeoMatchTypeValue(int value) {
excludedGeoMatchType_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return The excludedGeoMatchType.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getExcludedGeoMatchType() {
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.forNumber(excludedGeoMatchType_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result;
}
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @param value The excludedGeoMatchType to set.
* @return This builder for chaining.
*/
public Builder setExcludedGeoMatchType(com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
excludedGeoMatchType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Excluded Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;
* @return This builder for chaining.
*/
public Builder clearExcludedGeoMatchType() {
bitField0_ = (bitField0_ & ~0x00000002);
excludedGeoMatchType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureGeoTargetConstantsIsMutable() {
if (!geoTargetConstants_.isModifiable()) {
geoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(geoTargetConstants_);
}
bitField0_ |= 0x00000004;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return A list containing the geoTargetConstants.
*/
public com.google.protobuf.ProtocolStringList
getGeoTargetConstantsList() {
geoTargetConstants_.makeImmutable();
return geoTargetConstants_;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return The count of geoTargetConstants.
*/
public int getGeoTargetConstantsCount() {
return geoTargetConstants_.size();
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The geoTargetConstants at the given index.
*/
public java.lang.String getGeoTargetConstants(int index) {
return geoTargetConstants_.get(index);
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the geoTargetConstants at the given index.
*/
public com.google.protobuf.ByteString
getGeoTargetConstantsBytes(int index) {
return geoTargetConstants_.getByteString(index);
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The geoTargetConstants to set.
* @return This builder for chaining.
*/
public Builder setGeoTargetConstants(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param value The geoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addGeoTargetConstants(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param values The geoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addAllGeoTargetConstants(
java.lang.Iterable values) {
ensureGeoTargetConstantsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, geoTargetConstants_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearGeoTargetConstants() {
geoTargetConstants_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* Geo locations that advertisers want to include.
*
*
* repeated string geo_target_constants = 3 [(.google.api.resource_reference) = { ... }
* @param value The bytes of the geoTargetConstants to add.
* @return This builder for chaining.
*/
public Builder addGeoTargetConstantsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureGeoTargetConstantsIsMutable();
geoTargetConstants_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int geoMatchType_ = 0;
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The enum numeric value on the wire for geoMatchType.
*/
@java.lang.Override public int getGeoMatchTypeValue() {
return geoMatchType_;
}
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @param value The enum numeric value on the wire for geoMatchType to set.
* @return This builder for chaining.
*/
public Builder setGeoMatchTypeValue(int value) {
geoMatchType_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return The geoMatchType.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType() {
com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.forNumber(geoMatchType_);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result;
}
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @param value The geoMatchType to set.
* @return This builder for chaining.
*/
public Builder setGeoMatchType(com.google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
geoMatchType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Included Geo location match type.
*
*
* .google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4;
* @return This builder for chaining.
*/
public Builder clearGeoMatchType() {
bitField0_ = (bitField0_ & ~0x00000008);
geoMatchType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleGeoLocationCondition 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.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleDeviceConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the deviceTypes.
*/
java.util.List getDeviceTypesList();
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return The count of deviceTypes.
*/
int getDeviceTypesCount();
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the element to return.
* @return The deviceTypes at the given index.
*/
com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index);
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the enum numeric values on the wire for deviceTypes.
*/
java.util.List
getDeviceTypesValueList();
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceTypes at the given index.
*/
int getDeviceTypesValue(int index);
}
/**
*
* Condition on Device dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition}
*/
public static final class ValueRuleDeviceCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)
ValueRuleDeviceConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleDeviceCondition.newBuilder() to construct.
private ValueRuleDeviceCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleDeviceCondition() {
deviceTypes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleDeviceCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleDeviceCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder.class);
}
public static final int DEVICE_TYPES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List deviceTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType> deviceTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>() {
public com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType convert(java.lang.Integer from) {
com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType result = com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType.forNumber(from);
return result == null ? com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType.UNRECOGNIZED : result;
}
};
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the deviceTypes.
*/
@java.lang.Override
public java.util.List getDeviceTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>(deviceTypes_, deviceTypes_converter_);
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return The count of deviceTypes.
*/
@java.lang.Override
public int getDeviceTypesCount() {
return deviceTypes_.size();
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the element to return.
* @return The deviceTypes at the given index.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index) {
return deviceTypes_converter_.convert(deviceTypes_.get(index));
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the enum numeric values on the wire for deviceTypes.
*/
@java.lang.Override
public java.util.List
getDeviceTypesValueList() {
return deviceTypes_;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceTypes at the given index.
*/
@java.lang.Override
public int getDeviceTypesValue(int index) {
return deviceTypes_.get(index);
}
private int deviceTypesMemoizedSerializedSize;
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 {
getSerializedSize();
if (getDeviceTypesList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(deviceTypesMemoizedSerializedSize);
}
for (int i = 0; i < deviceTypes_.size(); i++) {
output.writeEnumNoTag(deviceTypes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < deviceTypes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(deviceTypes_.get(i));
}
size += dataSize;
if (!getDeviceTypesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}deviceTypesMemoizedSerializedSize = dataSize;
}
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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition) obj;
if (!deviceTypes_.equals(other.deviceTypes_)) 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 (getDeviceTypesCount() > 0) {
hash = (37 * hash) + DEVICE_TYPES_FIELD_NUMBER;
hash = (53 * hash) + deviceTypes_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition 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;
}
/**
*
* Condition on Device dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleDeviceCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deviceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition result) {
if (((bitField0_ & 0x00000001) != 0)) {
deviceTypes_ = java.util.Collections.unmodifiableList(deviceTypes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceTypes_ = deviceTypes_;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance()) return this;
if (!other.deviceTypes_.isEmpty()) {
if (deviceTypes_.isEmpty()) {
deviceTypes_ = other.deviceTypes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceTypesIsMutable();
deviceTypes_.addAll(other.deviceTypes_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
ensureDeviceTypesIsMutable();
deviceTypes_.add(tmpRaw);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensureDeviceTypesIsMutable();
deviceTypes_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List deviceTypes_ =
java.util.Collections.emptyList();
private void ensureDeviceTypesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deviceTypes_ = new java.util.ArrayList(deviceTypes_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the deviceTypes.
*/
public java.util.List getDeviceTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>(deviceTypes_, deviceTypes_converter_);
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return The count of deviceTypes.
*/
public int getDeviceTypesCount() {
return deviceTypes_.size();
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the element to return.
* @return The deviceTypes at the given index.
*/
public com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index) {
return deviceTypes_converter_.convert(deviceTypes_.get(index));
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index to set the value at.
* @param value The deviceTypes to set.
* @return This builder for chaining.
*/
public Builder setDeviceTypes(
int index, com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceTypesIsMutable();
deviceTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param value The deviceTypes to add.
* @return This builder for chaining.
*/
public Builder addDeviceTypes(com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceTypesIsMutable();
deviceTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param values The deviceTypes to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceTypes(
java.lang.Iterable extends com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType> values) {
ensureDeviceTypesIsMutable();
for (com.google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType value : values) {
deviceTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return This builder for chaining.
*/
public Builder clearDeviceTypes() {
deviceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @return A list containing the enum numeric values on the wire for deviceTypes.
*/
public java.util.List
getDeviceTypesValueList() {
return java.util.Collections.unmodifiableList(deviceTypes_);
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceTypes at the given index.
*/
public int getDeviceTypesValue(int index) {
return deviceTypes_.get(index);
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for deviceTypes to set.
* @return This builder for chaining.
*/
public Builder setDeviceTypesValue(
int index, int value) {
ensureDeviceTypesIsMutable();
deviceTypes_.set(index, value);
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param value The enum numeric value on the wire for deviceTypes to add.
* @return This builder for chaining.
*/
public Builder addDeviceTypesValue(int value) {
ensureDeviceTypesIsMutable();
deviceTypes_.add(value);
onChanged();
return this;
}
/**
*
* Value for device type condition.
*
*
* repeated .google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1;
* @param values The enum numeric values on the wire for deviceTypes to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceTypesValue(
java.lang.Iterable values) {
ensureDeviceTypesIsMutable();
for (int value : values) {
deviceTypes_.add(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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleDeviceCondition 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.v18.resources.ConversionValueRule.ValueRuleDeviceCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleAudienceConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the userLists.
*/
java.util.List
getUserListsList();
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return The count of userLists.
*/
int getUserListsCount();
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userLists at the given index.
*/
java.lang.String getUserLists(int index);
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userLists at the given index.
*/
com.google.protobuf.ByteString
getUserListsBytes(int index);
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return A list containing the userInterests.
*/
java.util.List
getUserInterestsList();
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return The count of userInterests.
*/
int getUserInterestsCount();
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userInterests at the given index.
*/
java.lang.String getUserInterests(int index);
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userInterests at the given index.
*/
com.google.protobuf.ByteString
getUserInterestsBytes(int index);
}
/**
*
* Condition on Audience dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition}
*/
public static final class ValueRuleAudienceCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)
ValueRuleAudienceConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleAudienceCondition.newBuilder() to construct.
private ValueRuleAudienceCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleAudienceCondition() {
userLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
userInterests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleAudienceCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAudienceCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder.class);
}
public static final int USER_LISTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList userLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the userLists.
*/
public com.google.protobuf.ProtocolStringList
getUserListsList() {
return userLists_;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return The count of userLists.
*/
public int getUserListsCount() {
return userLists_.size();
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userLists at the given index.
*/
public java.lang.String getUserLists(int index) {
return userLists_.get(index);
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userLists at the given index.
*/
public com.google.protobuf.ByteString
getUserListsBytes(int index) {
return userLists_.getByteString(index);
}
public static final int USER_INTERESTS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList userInterests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return A list containing the userInterests.
*/
public com.google.protobuf.ProtocolStringList
getUserInterestsList() {
return userInterests_;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return The count of userInterests.
*/
public int getUserInterestsCount() {
return userInterests_.size();
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userInterests at the given index.
*/
public java.lang.String getUserInterests(int index) {
return userInterests_.get(index);
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userInterests at the given index.
*/
public com.google.protobuf.ByteString
getUserInterestsBytes(int index) {
return userInterests_.getByteString(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 < userLists_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userLists_.getRaw(i));
}
for (int i = 0; i < userInterests_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userInterests_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < userLists_.size(); i++) {
dataSize += computeStringSizeNoTag(userLists_.getRaw(i));
}
size += dataSize;
size += 1 * getUserListsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < userInterests_.size(); i++) {
dataSize += computeStringSizeNoTag(userInterests_.getRaw(i));
}
size += dataSize;
size += 1 * getUserInterestsList().size();
}
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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition) obj;
if (!getUserListsList()
.equals(other.getUserListsList())) return false;
if (!getUserInterestsList()
.equals(other.getUserInterestsList())) 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 (getUserListsCount() > 0) {
hash = (37 * hash) + USER_LISTS_FIELD_NUMBER;
hash = (53 * hash) + getUserListsList().hashCode();
}
if (getUserInterestsCount() > 0) {
hash = (37 * hash) + USER_INTERESTS_FIELD_NUMBER;
hash = (53 * hash) + getUserInterestsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition 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;
}
/**
*
* Condition on Audience dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAudienceCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
userLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
userInterests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
userLists_.makeImmutable();
result.userLists_ = userLists_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
userInterests_.makeImmutable();
result.userInterests_ = userInterests_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance()) return this;
if (!other.userLists_.isEmpty()) {
if (userLists_.isEmpty()) {
userLists_ = other.userLists_;
bitField0_ |= 0x00000001;
} else {
ensureUserListsIsMutable();
userLists_.addAll(other.userLists_);
}
onChanged();
}
if (!other.userInterests_.isEmpty()) {
if (userInterests_.isEmpty()) {
userInterests_ = other.userInterests_;
bitField0_ |= 0x00000002;
} else {
ensureUserInterestsIsMutable();
userInterests_.addAll(other.userInterests_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureUserListsIsMutable();
userLists_.add(s);
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureUserInterestsIsMutable();
userInterests_.add(s);
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList userLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUserListsIsMutable() {
if (!userLists_.isModifiable()) {
userLists_ = new com.google.protobuf.LazyStringArrayList(userLists_);
}
bitField0_ |= 0x00000001;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return A list containing the userLists.
*/
public com.google.protobuf.ProtocolStringList
getUserListsList() {
userLists_.makeImmutable();
return userLists_;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return The count of userLists.
*/
public int getUserListsCount() {
return userLists_.size();
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userLists at the given index.
*/
public java.lang.String getUserLists(int index) {
return userLists_.get(index);
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userLists at the given index.
*/
public com.google.protobuf.ByteString
getUserListsBytes(int index) {
return userLists_.getByteString(index);
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The userLists to set.
* @return This builder for chaining.
*/
public Builder setUserLists(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserListsIsMutable();
userLists_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param value The userLists to add.
* @return This builder for chaining.
*/
public Builder addUserLists(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserListsIsMutable();
userLists_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param values The userLists to add.
* @return This builder for chaining.
*/
public Builder addAllUserLists(
java.lang.Iterable values) {
ensureUserListsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userLists_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearUserLists() {
userLists_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* User Lists.
*
*
* repeated string user_lists = 1 [(.google.api.resource_reference) = { ... }
* @param value The bytes of the userLists to add.
* @return This builder for chaining.
*/
public Builder addUserListsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureUserListsIsMutable();
userLists_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList userInterests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUserInterestsIsMutable() {
if (!userInterests_.isModifiable()) {
userInterests_ = new com.google.protobuf.LazyStringArrayList(userInterests_);
}
bitField0_ |= 0x00000002;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return A list containing the userInterests.
*/
public com.google.protobuf.ProtocolStringList
getUserInterestsList() {
userInterests_.makeImmutable();
return userInterests_;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return The count of userInterests.
*/
public int getUserInterestsCount() {
return userInterests_.size();
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the element to return.
* @return The userInterests at the given index.
*/
public java.lang.String getUserInterests(int index) {
return userInterests_.get(index);
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index of the value to return.
* @return The bytes of the userInterests at the given index.
*/
public com.google.protobuf.ByteString
getUserInterestsBytes(int index) {
return userInterests_.getByteString(index);
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param index The index to set the value at.
* @param value The userInterests to set.
* @return This builder for chaining.
*/
public Builder setUserInterests(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserInterestsIsMutable();
userInterests_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param value The userInterests to add.
* @return This builder for chaining.
*/
public Builder addUserInterests(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUserInterestsIsMutable();
userInterests_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param values The userInterests to add.
* @return This builder for chaining.
*/
public Builder addAllUserInterests(
java.lang.Iterable values) {
ensureUserInterestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userInterests_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearUserInterests() {
userInterests_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* User Interests.
*
*
* repeated string user_interests = 2 [(.google.api.resource_reference) = { ... }
* @param value The bytes of the userInterests to add.
* @return This builder for chaining.
*/
public Builder addUserInterestsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureUserInterestsIsMutable();
userInterests_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleAudienceCondition 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.v18.resources.ConversionValueRule.ValueRuleAudienceCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleItineraryConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return Whether the advanceBookingWindow field is set.
*/
boolean hasAdvanceBookingWindow();
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return The advanceBookingWindow.
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getAdvanceBookingWindow();
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder getAdvanceBookingWindowOrBuilder();
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return Whether the travelLength field is set.
*/
boolean hasTravelLength();
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return The travelLength.
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getTravelLength();
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder getTravelLengthOrBuilder();
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return Whether the travelStartDay field is set.
*/
boolean hasTravelStartDay();
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return The travelStartDay.
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getTravelStartDay();
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder getTravelStartDayOrBuilder();
}
/**
*
* Condition on Itinerary dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition}
*/
public static final class ValueRuleItineraryCondition extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)
ValueRuleItineraryConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleItineraryCondition.newBuilder() to construct.
private ValueRuleItineraryCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleItineraryCondition() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleItineraryCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder.class);
}
private int bitField0_;
public static final int ADVANCE_BOOKING_WINDOW_FIELD_NUMBER = 1;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advanceBookingWindow_;
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return Whether the advanceBookingWindow field is set.
*/
@java.lang.Override
public boolean hasAdvanceBookingWindow() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return The advanceBookingWindow.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getAdvanceBookingWindow() {
return advanceBookingWindow_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance() : advanceBookingWindow_;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder getAdvanceBookingWindowOrBuilder() {
return advanceBookingWindow_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance() : advanceBookingWindow_;
}
public static final int TRAVEL_LENGTH_FIELD_NUMBER = 2;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travelLength_;
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return Whether the travelLength field is set.
*/
@java.lang.Override
public boolean hasTravelLength() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return The travelLength.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getTravelLength() {
return travelLength_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance() : travelLength_;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder getTravelLengthOrBuilder() {
return travelLength_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance() : travelLength_;
}
public static final int TRAVEL_START_DAY_FIELD_NUMBER = 3;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travelStartDay_;
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return Whether the travelStartDay field is set.
*/
@java.lang.Override
public boolean hasTravelStartDay() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return The travelStartDay.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getTravelStartDay() {
return travelStartDay_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance() : travelStartDay_;
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder getTravelStartDayOrBuilder() {
return travelStartDay_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance() : travelStartDay_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAdvanceBookingWindow());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getTravelLength());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getTravelStartDay());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAdvanceBookingWindow());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTravelLength());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTravelStartDay());
}
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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition) obj;
if (hasAdvanceBookingWindow() != other.hasAdvanceBookingWindow()) return false;
if (hasAdvanceBookingWindow()) {
if (!getAdvanceBookingWindow()
.equals(other.getAdvanceBookingWindow())) return false;
}
if (hasTravelLength() != other.hasTravelLength()) return false;
if (hasTravelLength()) {
if (!getTravelLength()
.equals(other.getTravelLength())) return false;
}
if (hasTravelStartDay() != other.hasTravelStartDay()) return false;
if (hasTravelStartDay()) {
if (!getTravelStartDay()
.equals(other.getTravelStartDay())) 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 (hasAdvanceBookingWindow()) {
hash = (37 * hash) + ADVANCE_BOOKING_WINDOW_FIELD_NUMBER;
hash = (53 * hash) + getAdvanceBookingWindow().hashCode();
}
if (hasTravelLength()) {
hash = (37 * hash) + TRAVEL_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getTravelLength().hashCode();
}
if (hasTravelStartDay()) {
hash = (37 * hash) + TRAVEL_START_DAY_FIELD_NUMBER;
hash = (53 * hash) + getTravelStartDay().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition 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;
}
/**
*
* Condition on Itinerary dimension.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAdvanceBookingWindowFieldBuilder();
getTravelLengthFieldBuilder();
getTravelStartDayFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
advanceBookingWindow_ = null;
if (advanceBookingWindowBuilder_ != null) {
advanceBookingWindowBuilder_.dispose();
advanceBookingWindowBuilder_ = null;
}
travelLength_ = null;
if (travelLengthBuilder_ != null) {
travelLengthBuilder_.dispose();
travelLengthBuilder_ = null;
}
travelStartDay_ = null;
if (travelStartDayBuilder_ != null) {
travelStartDayBuilder_.dispose();
travelStartDayBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryCondition_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.advanceBookingWindow_ = advanceBookingWindowBuilder_ == null
? advanceBookingWindow_
: advanceBookingWindowBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.travelLength_ = travelLengthBuilder_ == null
? travelLength_
: travelLengthBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.travelStartDay_ = travelStartDayBuilder_ == null
? travelStartDay_
: travelStartDayBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance()) return this;
if (other.hasAdvanceBookingWindow()) {
mergeAdvanceBookingWindow(other.getAdvanceBookingWindow());
}
if (other.hasTravelLength()) {
mergeTravelLength(other.getTravelLength());
}
if (other.hasTravelStartDay()) {
mergeTravelStartDay(other.getTravelStartDay());
}
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(
getAdvanceBookingWindowFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTravelLengthFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTravelStartDayFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advanceBookingWindow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder> advanceBookingWindowBuilder_;
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return Whether the advanceBookingWindow field is set.
*/
public boolean hasAdvanceBookingWindow() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
* @return The advanceBookingWindow.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getAdvanceBookingWindow() {
if (advanceBookingWindowBuilder_ == null) {
return advanceBookingWindow_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance() : advanceBookingWindow_;
} else {
return advanceBookingWindowBuilder_.getMessage();
}
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public Builder setAdvanceBookingWindow(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow value) {
if (advanceBookingWindowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
advanceBookingWindow_ = value;
} else {
advanceBookingWindowBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public Builder setAdvanceBookingWindow(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder builderForValue) {
if (advanceBookingWindowBuilder_ == null) {
advanceBookingWindow_ = builderForValue.build();
} else {
advanceBookingWindowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public Builder mergeAdvanceBookingWindow(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow value) {
if (advanceBookingWindowBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
advanceBookingWindow_ != null &&
advanceBookingWindow_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance()) {
getAdvanceBookingWindowBuilder().mergeFrom(value);
} else {
advanceBookingWindow_ = value;
}
} else {
advanceBookingWindowBuilder_.mergeFrom(value);
}
if (advanceBookingWindow_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public Builder clearAdvanceBookingWindow() {
bitField0_ = (bitField0_ & ~0x00000001);
advanceBookingWindow_ = null;
if (advanceBookingWindowBuilder_ != null) {
advanceBookingWindowBuilder_.dispose();
advanceBookingWindowBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder getAdvanceBookingWindowBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAdvanceBookingWindowFieldBuilder().getBuilder();
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder getAdvanceBookingWindowOrBuilder() {
if (advanceBookingWindowBuilder_ != null) {
return advanceBookingWindowBuilder_.getMessageOrBuilder();
} else {
return advanceBookingWindow_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance() : advanceBookingWindow_;
}
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder>
getAdvanceBookingWindowFieldBuilder() {
if (advanceBookingWindowBuilder_ == null) {
advanceBookingWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder>(
getAdvanceBookingWindow(),
getParentForChildren(),
isClean());
advanceBookingWindow_ = null;
}
return advanceBookingWindowBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travelLength_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder> travelLengthBuilder_;
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return Whether the travelLength field is set.
*/
public boolean hasTravelLength() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
* @return The travelLength.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getTravelLength() {
if (travelLengthBuilder_ == null) {
return travelLength_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance() : travelLength_;
} else {
return travelLengthBuilder_.getMessage();
}
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public Builder setTravelLength(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength value) {
if (travelLengthBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
travelLength_ = value;
} else {
travelLengthBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public Builder setTravelLength(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder builderForValue) {
if (travelLengthBuilder_ == null) {
travelLength_ = builderForValue.build();
} else {
travelLengthBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public Builder mergeTravelLength(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength value) {
if (travelLengthBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
travelLength_ != null &&
travelLength_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance()) {
getTravelLengthBuilder().mergeFrom(value);
} else {
travelLength_ = value;
}
} else {
travelLengthBuilder_.mergeFrom(value);
}
if (travelLength_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public Builder clearTravelLength() {
bitField0_ = (bitField0_ & ~0x00000002);
travelLength_ = null;
if (travelLengthBuilder_ != null) {
travelLengthBuilder_.dispose();
travelLengthBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder getTravelLengthBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTravelLengthFieldBuilder().getBuilder();
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder getTravelLengthOrBuilder() {
if (travelLengthBuilder_ != null) {
return travelLengthBuilder_.getMessageOrBuilder();
} else {
return travelLength_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance() : travelLength_;
}
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength travel_length = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder>
getTravelLengthFieldBuilder() {
if (travelLengthBuilder_ == null) {
travelLengthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder>(
getTravelLength(),
getParentForChildren(),
isClean());
travelLength_ = null;
}
return travelLengthBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travelStartDay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder> travelStartDayBuilder_;
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return Whether the travelStartDay field is set.
*/
public boolean hasTravelStartDay() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
* @return The travelStartDay.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getTravelStartDay() {
if (travelStartDayBuilder_ == null) {
return travelStartDay_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance() : travelStartDay_;
} else {
return travelStartDayBuilder_.getMessage();
}
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public Builder setTravelStartDay(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay value) {
if (travelStartDayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
travelStartDay_ = value;
} else {
travelStartDayBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public Builder setTravelStartDay(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder builderForValue) {
if (travelStartDayBuilder_ == null) {
travelStartDay_ = builderForValue.build();
} else {
travelStartDayBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public Builder mergeTravelStartDay(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay value) {
if (travelStartDayBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
travelStartDay_ != null &&
travelStartDay_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance()) {
getTravelStartDayBuilder().mergeFrom(value);
} else {
travelStartDay_ = value;
}
} else {
travelStartDayBuilder_.mergeFrom(value);
}
if (travelStartDay_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public Builder clearTravelStartDay() {
bitField0_ = (bitField0_ & ~0x00000004);
travelStartDay_ = null;
if (travelStartDayBuilder_ != null) {
travelStartDayBuilder_.dispose();
travelStartDayBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder getTravelStartDayBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTravelStartDayFieldBuilder().getBuilder();
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder getTravelStartDayOrBuilder() {
if (travelStartDayBuilder_ != null) {
return travelStartDayBuilder_.getMessageOrBuilder();
} else {
return travelStartDay_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance() : travelStartDay_;
}
}
/**
*
* The days of the week on which this itinerary's travel can start.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay travel_start_day = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder>
getTravelStartDayFieldBuilder() {
if (travelStartDayBuilder_ == null) {
travelStartDayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder>(
getTravelStartDay(),
getParentForChildren(),
isClean());
travelStartDay_ = null;
}
return travelStartDayBuilder_;
}
@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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleItineraryCondition 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.v18.resources.ConversionValueRule.ValueRuleItineraryCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleItineraryAdvanceBookingWindowOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)
com.google.protobuf.MessageOrBuilder {
/**
*
* Minimum number of days between the date of the booking the start date.
*
*
* int32 min_days = 1;
* @return The minDays.
*/
int getMinDays();
/**
*
* Maximum number of days between the date of the booking the start date.
*
*
* int32 max_days = 2;
* @return The maxDays.
*/
int getMaxDays();
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow}
*/
public static final class ValueRuleItineraryAdvanceBookingWindow extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)
ValueRuleItineraryAdvanceBookingWindowOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleItineraryAdvanceBookingWindow.newBuilder() to construct.
private ValueRuleItineraryAdvanceBookingWindow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleItineraryAdvanceBookingWindow() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleItineraryAdvanceBookingWindow();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder.class);
}
public static final int MIN_DAYS_FIELD_NUMBER = 1;
private int minDays_ = 0;
/**
*
* Minimum number of days between the date of the booking the start date.
*
*
* int32 min_days = 1;
* @return The minDays.
*/
@java.lang.Override
public int getMinDays() {
return minDays_;
}
public static final int MAX_DAYS_FIELD_NUMBER = 2;
private int maxDays_ = 0;
/**
*
* Maximum number of days between the date of the booking the start date.
*
*
* int32 max_days = 2;
* @return The maxDays.
*/
@java.lang.Override
public int getMaxDays() {
return maxDays_;
}
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 (minDays_ != 0) {
output.writeInt32(1, minDays_);
}
if (maxDays_ != 0) {
output.writeInt32(2, maxDays_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minDays_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, minDays_);
}
if (maxDays_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maxDays_);
}
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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow) obj;
if (getMinDays()
!= other.getMinDays()) return false;
if (getMaxDays()
!= other.getMaxDays()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_DAYS_FIELD_NUMBER;
hash = (53 * hash) + getMinDays();
hash = (37 * hash) + MAX_DAYS_FIELD_NUMBER;
hash = (53 * hash) + getMaxDays();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow 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;
}
/**
*
* Range for the number of days between the date of the booking and the
* start of the itinerary.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
minDays_ = 0;
maxDays_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryAdvanceBookingWindow_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minDays_ = minDays_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxDays_ = maxDays_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow.getDefaultInstance()) return this;
if (other.getMinDays() != 0) {
setMinDays(other.getMinDays());
}
if (other.getMaxDays() != 0) {
setMaxDays(other.getMaxDays());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
minDays_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxDays_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int minDays_ ;
/**
*
* Minimum number of days between the date of the booking the start date.
*
*
* int32 min_days = 1;
* @return The minDays.
*/
@java.lang.Override
public int getMinDays() {
return minDays_;
}
/**
*
* Minimum number of days between the date of the booking the start date.
*
*
* int32 min_days = 1;
* @param value The minDays to set.
* @return This builder for chaining.
*/
public Builder setMinDays(int value) {
minDays_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Minimum number of days between the date of the booking the start date.
*
*
* int32 min_days = 1;
* @return This builder for chaining.
*/
public Builder clearMinDays() {
bitField0_ = (bitField0_ & ~0x00000001);
minDays_ = 0;
onChanged();
return this;
}
private int maxDays_ ;
/**
*
* Maximum number of days between the date of the booking the start date.
*
*
* int32 max_days = 2;
* @return The maxDays.
*/
@java.lang.Override
public int getMaxDays() {
return maxDays_;
}
/**
*
* Maximum number of days between the date of the booking the start date.
*
*
* int32 max_days = 2;
* @param value The maxDays to set.
* @return This builder for chaining.
*/
public Builder setMaxDays(int value) {
maxDays_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Maximum number of days between the date of the booking the start date.
*
*
* int32 max_days = 2;
* @return This builder for chaining.
*/
public Builder clearMaxDays() {
bitField0_ = (bitField0_ & ~0x00000002);
maxDays_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleItineraryAdvanceBookingWindow 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.v18.resources.ConversionValueRule.ValueRuleItineraryAdvanceBookingWindow getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleItineraryTravelLengthOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)
com.google.protobuf.MessageOrBuilder {
/**
*
* Minimum number of nights between the start date and the end date.
*
*
* int32 min_nights = 1;
* @return The minNights.
*/
int getMinNights();
/**
*
* Maximum number of days between the start date and the end date.
*
*
* int32 max_nights = 2;
* @return The maxNights.
*/
int getMaxNights();
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength}
*/
public static final class ValueRuleItineraryTravelLength extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)
ValueRuleItineraryTravelLengthOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleItineraryTravelLength.newBuilder() to construct.
private ValueRuleItineraryTravelLength(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleItineraryTravelLength() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleItineraryTravelLength();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelLength_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelLength_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder.class);
}
public static final int MIN_NIGHTS_FIELD_NUMBER = 1;
private int minNights_ = 0;
/**
*
* Minimum number of nights between the start date and the end date.
*
*
* int32 min_nights = 1;
* @return The minNights.
*/
@java.lang.Override
public int getMinNights() {
return minNights_;
}
public static final int MAX_NIGHTS_FIELD_NUMBER = 2;
private int maxNights_ = 0;
/**
*
* Maximum number of days between the start date and the end date.
*
*
* int32 max_nights = 2;
* @return The maxNights.
*/
@java.lang.Override
public int getMaxNights() {
return maxNights_;
}
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 (minNights_ != 0) {
output.writeInt32(1, minNights_);
}
if (maxNights_ != 0) {
output.writeInt32(2, maxNights_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minNights_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, minNights_);
}
if (maxNights_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maxNights_);
}
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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength) obj;
if (getMinNights()
!= other.getMinNights()) return false;
if (getMaxNights()
!= other.getMaxNights()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_NIGHTS_FIELD_NUMBER;
hash = (53 * hash) + getMinNights();
hash = (37 * hash) + MAX_NIGHTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxNights();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength 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;
}
/**
*
* Range for the itinerary length in number of nights.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLengthOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelLength_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelLength_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
minNights_ = 0;
maxNights_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelLength_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minNights_ = minNights_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxNights_ = maxNights_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength.getDefaultInstance()) return this;
if (other.getMinNights() != 0) {
setMinNights(other.getMinNights());
}
if (other.getMaxNights() != 0) {
setMaxNights(other.getMaxNights());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
minNights_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxNights_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int minNights_ ;
/**
*
* Minimum number of nights between the start date and the end date.
*
*
* int32 min_nights = 1;
* @return The minNights.
*/
@java.lang.Override
public int getMinNights() {
return minNights_;
}
/**
*
* Minimum number of nights between the start date and the end date.
*
*
* int32 min_nights = 1;
* @param value The minNights to set.
* @return This builder for chaining.
*/
public Builder setMinNights(int value) {
minNights_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Minimum number of nights between the start date and the end date.
*
*
* int32 min_nights = 1;
* @return This builder for chaining.
*/
public Builder clearMinNights() {
bitField0_ = (bitField0_ & ~0x00000001);
minNights_ = 0;
onChanged();
return this;
}
private int maxNights_ ;
/**
*
* Maximum number of days between the start date and the end date.
*
*
* int32 max_nights = 2;
* @return The maxNights.
*/
@java.lang.Override
public int getMaxNights() {
return maxNights_;
}
/**
*
* Maximum number of days between the start date and the end date.
*
*
* int32 max_nights = 2;
* @param value The maxNights to set.
* @return This builder for chaining.
*/
public Builder setMaxNights(int value) {
maxNights_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Maximum number of days between the start date and the end date.
*
*
* int32 max_nights = 2;
* @return This builder for chaining.
*/
public Builder clearMaxNights() {
bitField0_ = (bitField0_ & ~0x00000002);
maxNights_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleItineraryTravelLength 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelLength getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueRuleItineraryTravelStartDayOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)
com.google.protobuf.MessageOrBuilder {
/**
*
* The travel can start on Monday.
*
*
* bool monday = 1;
* @return The monday.
*/
boolean getMonday();
/**
*
* The travel can start on Tuesday.
*
*
* bool tuesday = 2;
* @return The tuesday.
*/
boolean getTuesday();
/**
*
* The travel can start on Wednesday.
*
*
* bool wednesday = 3;
* @return The wednesday.
*/
boolean getWednesday();
/**
*
* The travel can start on Thursday.
*
*
* bool thursday = 4;
* @return The thursday.
*/
boolean getThursday();
/**
*
* The travel can start on Friday.
*
*
* bool friday = 5;
* @return The friday.
*/
boolean getFriday();
/**
*
* The travel can start on Saturday.
*
*
* bool saturday = 6;
* @return The saturday.
*/
boolean getSaturday();
/**
*
* The travel can start on Sunday.
*
*
* bool sunday = 7;
* @return The sunday.
*/
boolean getSunday();
}
/**
*
* The days of the week on which an itinerary's travel can start.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay}
*/
public static final class ValueRuleItineraryTravelStartDay extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)
ValueRuleItineraryTravelStartDayOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueRuleItineraryTravelStartDay.newBuilder() to construct.
private ValueRuleItineraryTravelStartDay(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueRuleItineraryTravelStartDay() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueRuleItineraryTravelStartDay();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelStartDay_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelStartDay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder.class);
}
public static final int MONDAY_FIELD_NUMBER = 1;
private boolean monday_ = false;
/**
*
* The travel can start on Monday.
*
*
* bool monday = 1;
* @return The monday.
*/
@java.lang.Override
public boolean getMonday() {
return monday_;
}
public static final int TUESDAY_FIELD_NUMBER = 2;
private boolean tuesday_ = false;
/**
*
* The travel can start on Tuesday.
*
*
* bool tuesday = 2;
* @return The tuesday.
*/
@java.lang.Override
public boolean getTuesday() {
return tuesday_;
}
public static final int WEDNESDAY_FIELD_NUMBER = 3;
private boolean wednesday_ = false;
/**
*
* The travel can start on Wednesday.
*
*
* bool wednesday = 3;
* @return The wednesday.
*/
@java.lang.Override
public boolean getWednesday() {
return wednesday_;
}
public static final int THURSDAY_FIELD_NUMBER = 4;
private boolean thursday_ = false;
/**
*
* The travel can start on Thursday.
*
*
* bool thursday = 4;
* @return The thursday.
*/
@java.lang.Override
public boolean getThursday() {
return thursday_;
}
public static final int FRIDAY_FIELD_NUMBER = 5;
private boolean friday_ = false;
/**
*
* The travel can start on Friday.
*
*
* bool friday = 5;
* @return The friday.
*/
@java.lang.Override
public boolean getFriday() {
return friday_;
}
public static final int SATURDAY_FIELD_NUMBER = 6;
private boolean saturday_ = false;
/**
*
* The travel can start on Saturday.
*
*
* bool saturday = 6;
* @return The saturday.
*/
@java.lang.Override
public boolean getSaturday() {
return saturday_;
}
public static final int SUNDAY_FIELD_NUMBER = 7;
private boolean sunday_ = false;
/**
*
* The travel can start on Sunday.
*
*
* bool sunday = 7;
* @return The sunday.
*/
@java.lang.Override
public boolean getSunday() {
return sunday_;
}
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 (monday_ != false) {
output.writeBool(1, monday_);
}
if (tuesday_ != false) {
output.writeBool(2, tuesday_);
}
if (wednesday_ != false) {
output.writeBool(3, wednesday_);
}
if (thursday_ != false) {
output.writeBool(4, thursday_);
}
if (friday_ != false) {
output.writeBool(5, friday_);
}
if (saturday_ != false) {
output.writeBool(6, saturday_);
}
if (sunday_ != false) {
output.writeBool(7, sunday_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (monday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, monday_);
}
if (tuesday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, tuesday_);
}
if (wednesday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, wednesday_);
}
if (thursday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, thursday_);
}
if (friday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, friday_);
}
if (saturday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, saturday_);
}
if (sunday_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, sunday_);
}
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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay other = (com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay) obj;
if (getMonday()
!= other.getMonday()) return false;
if (getTuesday()
!= other.getTuesday()) return false;
if (getWednesday()
!= other.getWednesday()) return false;
if (getThursday()
!= other.getThursday()) return false;
if (getFriday()
!= other.getFriday()) return false;
if (getSaturday()
!= other.getSaturday()) return false;
if (getSunday()
!= other.getSunday()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MONDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getMonday());
hash = (37 * hash) + TUESDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTuesday());
hash = (37 * hash) + WEDNESDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getWednesday());
hash = (37 * hash) + THURSDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getThursday());
hash = (37 * hash) + FRIDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFriday());
hash = (37 * hash) + SATURDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSaturday());
hash = (37 * hash) + SUNDAY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSunday());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The days of the week on which an itinerary's travel can start.
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDayOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelStartDay_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelStartDay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.class, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
monday_ = false;
tuesday_ = false;
wednesday_ = false;
thursday_ = false;
friday_ = false;
saturday_ = false;
sunday_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_ValueRuleItineraryTravelStartDay_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay build() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay result = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.monday_ = monday_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tuesday_ = tuesday_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.wednesday_ = wednesday_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.thursday_ = thursday_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.friday_ = friday_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.saturday_ = saturday_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.sunday_ = sunday_;
}
}
@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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay.getDefaultInstance()) return this;
if (other.getMonday() != false) {
setMonday(other.getMonday());
}
if (other.getTuesday() != false) {
setTuesday(other.getTuesday());
}
if (other.getWednesday() != false) {
setWednesday(other.getWednesday());
}
if (other.getThursday() != false) {
setThursday(other.getThursday());
}
if (other.getFriday() != false) {
setFriday(other.getFriday());
}
if (other.getSaturday() != false) {
setSaturday(other.getSaturday());
}
if (other.getSunday() != false) {
setSunday(other.getSunday());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
monday_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
tuesday_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
wednesday_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
thursday_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
friday_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
saturday_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
sunday_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
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 boolean monday_ ;
/**
*
* The travel can start on Monday.
*
*
* bool monday = 1;
* @return The monday.
*/
@java.lang.Override
public boolean getMonday() {
return monday_;
}
/**
*
* The travel can start on Monday.
*
*
* bool monday = 1;
* @param value The monday to set.
* @return This builder for chaining.
*/
public Builder setMonday(boolean value) {
monday_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The travel can start on Monday.
*
*
* bool monday = 1;
* @return This builder for chaining.
*/
public Builder clearMonday() {
bitField0_ = (bitField0_ & ~0x00000001);
monday_ = false;
onChanged();
return this;
}
private boolean tuesday_ ;
/**
*
* The travel can start on Tuesday.
*
*
* bool tuesday = 2;
* @return The tuesday.
*/
@java.lang.Override
public boolean getTuesday() {
return tuesday_;
}
/**
*
* The travel can start on Tuesday.
*
*
* bool tuesday = 2;
* @param value The tuesday to set.
* @return This builder for chaining.
*/
public Builder setTuesday(boolean value) {
tuesday_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The travel can start on Tuesday.
*
*
* bool tuesday = 2;
* @return This builder for chaining.
*/
public Builder clearTuesday() {
bitField0_ = (bitField0_ & ~0x00000002);
tuesday_ = false;
onChanged();
return this;
}
private boolean wednesday_ ;
/**
*
* The travel can start on Wednesday.
*
*
* bool wednesday = 3;
* @return The wednesday.
*/
@java.lang.Override
public boolean getWednesday() {
return wednesday_;
}
/**
*
* The travel can start on Wednesday.
*
*
* bool wednesday = 3;
* @param value The wednesday to set.
* @return This builder for chaining.
*/
public Builder setWednesday(boolean value) {
wednesday_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The travel can start on Wednesday.
*
*
* bool wednesday = 3;
* @return This builder for chaining.
*/
public Builder clearWednesday() {
bitField0_ = (bitField0_ & ~0x00000004);
wednesday_ = false;
onChanged();
return this;
}
private boolean thursday_ ;
/**
*
* The travel can start on Thursday.
*
*
* bool thursday = 4;
* @return The thursday.
*/
@java.lang.Override
public boolean getThursday() {
return thursday_;
}
/**
*
* The travel can start on Thursday.
*
*
* bool thursday = 4;
* @param value The thursday to set.
* @return This builder for chaining.
*/
public Builder setThursday(boolean value) {
thursday_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The travel can start on Thursday.
*
*
* bool thursday = 4;
* @return This builder for chaining.
*/
public Builder clearThursday() {
bitField0_ = (bitField0_ & ~0x00000008);
thursday_ = false;
onChanged();
return this;
}
private boolean friday_ ;
/**
*
* The travel can start on Friday.
*
*
* bool friday = 5;
* @return The friday.
*/
@java.lang.Override
public boolean getFriday() {
return friday_;
}
/**
*
* The travel can start on Friday.
*
*
* bool friday = 5;
* @param value The friday to set.
* @return This builder for chaining.
*/
public Builder setFriday(boolean value) {
friday_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* The travel can start on Friday.
*
*
* bool friday = 5;
* @return This builder for chaining.
*/
public Builder clearFriday() {
bitField0_ = (bitField0_ & ~0x00000010);
friday_ = false;
onChanged();
return this;
}
private boolean saturday_ ;
/**
*
* The travel can start on Saturday.
*
*
* bool saturday = 6;
* @return The saturday.
*/
@java.lang.Override
public boolean getSaturday() {
return saturday_;
}
/**
*
* The travel can start on Saturday.
*
*
* bool saturday = 6;
* @param value The saturday to set.
* @return This builder for chaining.
*/
public Builder setSaturday(boolean value) {
saturday_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The travel can start on Saturday.
*
*
* bool saturday = 6;
* @return This builder for chaining.
*/
public Builder clearSaturday() {
bitField0_ = (bitField0_ & ~0x00000020);
saturday_ = false;
onChanged();
return this;
}
private boolean sunday_ ;
/**
*
* The travel can start on Sunday.
*
*
* bool sunday = 7;
* @return The sunday.
*/
@java.lang.Override
public boolean getSunday() {
return sunday_;
}
/**
*
* The travel can start on Sunday.
*
*
* bool sunday = 7;
* @param value The sunday to set.
* @return This builder for chaining.
*/
public Builder setSunday(boolean value) {
sunday_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* The travel can start on Sunday.
*
*
* bool sunday = 7;
* @return This builder for chaining.
*/
public Builder clearSunday() {
bitField0_ = (bitField0_ & ~0x00000040);
sunday_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueRuleItineraryTravelStartDay 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.v18.resources.ConversionValueRule.ValueRuleItineraryTravelStartDay getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 2;
private long id_ = 0L;
/**
*
* Output only. The ID of the conversion value rule.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int ACTION_FIELD_NUMBER = 3;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action_;
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
* @return Whether the action field is set.
*/
@java.lang.Override
public boolean hasAction() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
* @return The action.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction getAction() {
return action_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_;
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder getActionOrBuilder() {
return action_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_;
}
public static final int GEO_LOCATION_CONDITION_FIELD_NUMBER = 4;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geoLocationCondition_;
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
* @return Whether the geoLocationCondition field is set.
*/
@java.lang.Override
public boolean hasGeoLocationCondition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
* @return The geoLocationCondition.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition getGeoLocationCondition() {
return geoLocationCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_;
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder getGeoLocationConditionOrBuilder() {
return geoLocationCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_;
}
public static final int DEVICE_CONDITION_FIELD_NUMBER = 5;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition deviceCondition_;
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
* @return Whether the deviceCondition field is set.
*/
@java.lang.Override
public boolean hasDeviceCondition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
* @return The deviceCondition.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition getDeviceCondition() {
return deviceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_;
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder getDeviceConditionOrBuilder() {
return deviceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_;
}
public static final int AUDIENCE_CONDITION_FIELD_NUMBER = 6;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audienceCondition_;
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
* @return Whether the audienceCondition field is set.
*/
@java.lang.Override
public boolean hasAudienceCondition() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
* @return The audienceCondition.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition getAudienceCondition() {
return audienceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_;
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder getAudienceConditionOrBuilder() {
return audienceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_;
}
public static final int ITINERARY_CONDITION_FIELD_NUMBER = 9;
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itineraryCondition_;
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
* @return Whether the itineraryCondition field is set.
*/
@java.lang.Override
public boolean hasItineraryCondition() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
* @return The itineraryCondition.
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition getItineraryCondition() {
return itineraryCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance() : itineraryCondition_;
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder getItineraryConditionOrBuilder() {
return itineraryCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance() : itineraryCondition_;
}
public static final int OWNER_CUSTOMER_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object ownerCustomer_ = "";
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The ownerCustomer.
*/
@java.lang.Override
public java.lang.String getOwnerCustomer() {
java.lang.Object ref = ownerCustomer_;
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();
ownerCustomer_ = s;
return s;
}
}
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for ownerCustomer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerCustomerBytes() {
java.lang.Object ref = ownerCustomer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerCustomer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 8;
private int status_ = 0;
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus getStatus() {
com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus result = com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (id_ != 0L) {
output.writeInt64(2, id_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getAction());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getGeoLocationCondition());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getDeviceCondition());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getAudienceCondition());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerCustomer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ownerCustomer_);
}
if (status_ != com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(8, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getItineraryCondition());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAction());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getGeoLocationCondition());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDeviceCondition());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAudienceCondition());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerCustomer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ownerCustomer_);
}
if (status_ != com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getItineraryCondition());
}
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.v18.resources.ConversionValueRule)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.resources.ConversionValueRule other = (com.google.ads.googleads.v18.resources.ConversionValueRule) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getId()
!= other.getId()) return false;
if (hasAction() != other.hasAction()) return false;
if (hasAction()) {
if (!getAction()
.equals(other.getAction())) return false;
}
if (hasGeoLocationCondition() != other.hasGeoLocationCondition()) return false;
if (hasGeoLocationCondition()) {
if (!getGeoLocationCondition()
.equals(other.getGeoLocationCondition())) return false;
}
if (hasDeviceCondition() != other.hasDeviceCondition()) return false;
if (hasDeviceCondition()) {
if (!getDeviceCondition()
.equals(other.getDeviceCondition())) return false;
}
if (hasAudienceCondition() != other.hasAudienceCondition()) return false;
if (hasAudienceCondition()) {
if (!getAudienceCondition()
.equals(other.getAudienceCondition())) return false;
}
if (hasItineraryCondition() != other.hasItineraryCondition()) return false;
if (hasItineraryCondition()) {
if (!getItineraryCondition()
.equals(other.getItineraryCondition())) return false;
}
if (!getOwnerCustomer()
.equals(other.getOwnerCustomer())) return false;
if (status_ != other.status_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
if (hasAction()) {
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + getAction().hashCode();
}
if (hasGeoLocationCondition()) {
hash = (37 * hash) + GEO_LOCATION_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getGeoLocationCondition().hashCode();
}
if (hasDeviceCondition()) {
hash = (37 * hash) + DEVICE_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getDeviceCondition().hashCode();
}
if (hasAudienceCondition()) {
hash = (37 * hash) + AUDIENCE_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getAudienceCondition().hashCode();
}
if (hasItineraryCondition()) {
hash = (37 * hash) + ITINERARY_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getItineraryCondition().hashCode();
}
hash = (37 * hash) + OWNER_CUSTOMER_FIELD_NUMBER;
hash = (53 * hash) + getOwnerCustomer().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule 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.v18.resources.ConversionValueRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule 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.v18.resources.ConversionValueRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule 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.v18.resources.ConversionValueRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule 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.v18.resources.ConversionValueRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule 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.v18.resources.ConversionValueRule 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 conversion value rule
*
*
* Protobuf type {@code google.ads.googleads.v18.resources.ConversionValueRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.resources.ConversionValueRule)
com.google.ads.googleads.v18.resources.ConversionValueRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.resources.ConversionValueRule.class, com.google.ads.googleads.v18.resources.ConversionValueRule.Builder.class);
}
// Construct using com.google.ads.googleads.v18.resources.ConversionValueRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getActionFieldBuilder();
getGeoLocationConditionFieldBuilder();
getDeviceConditionFieldBuilder();
getAudienceConditionFieldBuilder();
getItineraryConditionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
action_ = null;
if (actionBuilder_ != null) {
actionBuilder_.dispose();
actionBuilder_ = null;
}
geoLocationCondition_ = null;
if (geoLocationConditionBuilder_ != null) {
geoLocationConditionBuilder_.dispose();
geoLocationConditionBuilder_ = null;
}
deviceCondition_ = null;
if (deviceConditionBuilder_ != null) {
deviceConditionBuilder_.dispose();
deviceConditionBuilder_ = null;
}
audienceCondition_ = null;
if (audienceConditionBuilder_ != null) {
audienceConditionBuilder_.dispose();
audienceConditionBuilder_ = null;
}
itineraryCondition_ = null;
if (itineraryConditionBuilder_ != null) {
itineraryConditionBuilder_.dispose();
itineraryConditionBuilder_ = null;
}
ownerCustomer_ = "";
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v18_resources_ConversionValueRule_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule getDefaultInstanceForType() {
return com.google.ads.googleads.v18.resources.ConversionValueRule.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule build() {
com.google.ads.googleads.v18.resources.ConversionValueRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.resources.ConversionValueRule buildPartial() {
com.google.ads.googleads.v18.resources.ConversionValueRule result = new com.google.ads.googleads.v18.resources.ConversionValueRule(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.resources.ConversionValueRule result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.action_ = actionBuilder_ == null
? action_
: actionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.geoLocationCondition_ = geoLocationConditionBuilder_ == null
? geoLocationCondition_
: geoLocationConditionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.deviceCondition_ = deviceConditionBuilder_ == null
? deviceCondition_
: deviceConditionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.audienceCondition_ = audienceConditionBuilder_ == null
? audienceCondition_
: audienceConditionBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.itineraryCondition_ = itineraryConditionBuilder_ == null
? itineraryCondition_
: itineraryConditionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.ownerCustomer_ = ownerCustomer_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.status_ = status_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v18.resources.ConversionValueRule) {
return mergeFrom((com.google.ads.googleads.v18.resources.ConversionValueRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.resources.ConversionValueRule other) {
if (other == com.google.ads.googleads.v18.resources.ConversionValueRule.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getId() != 0L) {
setId(other.getId());
}
if (other.hasAction()) {
mergeAction(other.getAction());
}
if (other.hasGeoLocationCondition()) {
mergeGeoLocationCondition(other.getGeoLocationCondition());
}
if (other.hasDeviceCondition()) {
mergeDeviceCondition(other.getDeviceCondition());
}
if (other.hasAudienceCondition()) {
mergeAudienceCondition(other.getAudienceCondition());
}
if (other.hasItineraryCondition()) {
mergeItineraryCondition(other.getItineraryCondition());
}
if (!other.getOwnerCustomer().isEmpty()) {
ownerCustomer_ = other.ownerCustomer_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getActionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getGeoLocationConditionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getDeviceConditionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getAudienceConditionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
ownerCustomer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 58
case 64: {
status_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 64
case 74: {
input.readMessage(
getItineraryConditionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 74
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the conversion value rule.
* Conversion value rule resource names have the form:
*
* `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the conversion value rule.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the conversion value rule.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the conversion value rule.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder> actionBuilder_;
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
* @return Whether the action field is set.
*/
public boolean hasAction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
* @return The action.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction getAction() {
if (actionBuilder_ == null) {
return action_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_;
} else {
return actionBuilder_.getMessage();
}
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public Builder setAction(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction value) {
if (actionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
action_ = value;
} else {
actionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public Builder setAction(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder builderForValue) {
if (actionBuilder_ == null) {
action_ = builderForValue.build();
} else {
actionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public Builder mergeAction(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction value) {
if (actionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
action_ != null &&
action_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance()) {
getActionBuilder().mergeFrom(value);
} else {
action_ = value;
}
} else {
actionBuilder_.mergeFrom(value);
}
if (action_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public Builder clearAction() {
bitField0_ = (bitField0_ & ~0x00000004);
action_ = null;
if (actionBuilder_ != null) {
actionBuilder_.dispose();
actionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder getActionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getActionFieldBuilder().getBuilder();
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder getActionOrBuilder() {
if (actionBuilder_ != null) {
return actionBuilder_.getMessageOrBuilder();
} else {
return action_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_;
}
}
/**
*
* Action applied when the rule is triggered.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction action = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder>
getActionFieldBuilder() {
if (actionBuilder_ == null) {
actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleActionOrBuilder>(
getAction(),
getParentForChildren(),
isClean());
action_ = null;
}
return actionBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geoLocationCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder> geoLocationConditionBuilder_;
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
* @return Whether the geoLocationCondition field is set.
*/
public boolean hasGeoLocationCondition() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
* @return The geoLocationCondition.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition getGeoLocationCondition() {
if (geoLocationConditionBuilder_ == null) {
return geoLocationCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_;
} else {
return geoLocationConditionBuilder_.getMessage();
}
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public Builder setGeoLocationCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition value) {
if (geoLocationConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
geoLocationCondition_ = value;
} else {
geoLocationConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public Builder setGeoLocationCondition(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder builderForValue) {
if (geoLocationConditionBuilder_ == null) {
geoLocationCondition_ = builderForValue.build();
} else {
geoLocationConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public Builder mergeGeoLocationCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition value) {
if (geoLocationConditionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
geoLocationCondition_ != null &&
geoLocationCondition_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance()) {
getGeoLocationConditionBuilder().mergeFrom(value);
} else {
geoLocationCondition_ = value;
}
} else {
geoLocationConditionBuilder_.mergeFrom(value);
}
if (geoLocationCondition_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public Builder clearGeoLocationCondition() {
bitField0_ = (bitField0_ & ~0x00000008);
geoLocationCondition_ = null;
if (geoLocationConditionBuilder_ != null) {
geoLocationConditionBuilder_.dispose();
geoLocationConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder getGeoLocationConditionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getGeoLocationConditionFieldBuilder().getBuilder();
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder getGeoLocationConditionOrBuilder() {
if (geoLocationConditionBuilder_ != null) {
return geoLocationConditionBuilder_.getMessageOrBuilder();
} else {
return geoLocationCondition_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_;
}
}
/**
*
* Condition for Geo location that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder>
getGeoLocationConditionFieldBuilder() {
if (geoLocationConditionBuilder_ == null) {
geoLocationConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder>(
getGeoLocationCondition(),
getParentForChildren(),
isClean());
geoLocationCondition_ = null;
}
return geoLocationConditionBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition deviceCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder> deviceConditionBuilder_;
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
* @return Whether the deviceCondition field is set.
*/
public boolean hasDeviceCondition() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
* @return The deviceCondition.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition getDeviceCondition() {
if (deviceConditionBuilder_ == null) {
return deviceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_;
} else {
return deviceConditionBuilder_.getMessage();
}
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public Builder setDeviceCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition value) {
if (deviceConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceCondition_ = value;
} else {
deviceConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public Builder setDeviceCondition(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder builderForValue) {
if (deviceConditionBuilder_ == null) {
deviceCondition_ = builderForValue.build();
} else {
deviceConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public Builder mergeDeviceCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition value) {
if (deviceConditionBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
deviceCondition_ != null &&
deviceCondition_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance()) {
getDeviceConditionBuilder().mergeFrom(value);
} else {
deviceCondition_ = value;
}
} else {
deviceConditionBuilder_.mergeFrom(value);
}
if (deviceCondition_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public Builder clearDeviceCondition() {
bitField0_ = (bitField0_ & ~0x00000010);
deviceCondition_ = null;
if (deviceConditionBuilder_ != null) {
deviceConditionBuilder_.dispose();
deviceConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder getDeviceConditionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDeviceConditionFieldBuilder().getBuilder();
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder getDeviceConditionOrBuilder() {
if (deviceConditionBuilder_ != null) {
return deviceConditionBuilder_.getMessageOrBuilder();
} else {
return deviceCondition_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_;
}
}
/**
*
* Condition for device type that must be satisfied for the value rule to
* apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder>
getDeviceConditionFieldBuilder() {
if (deviceConditionBuilder_ == null) {
deviceConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder>(
getDeviceCondition(),
getParentForChildren(),
isClean());
deviceCondition_ = null;
}
return deviceConditionBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audienceCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder> audienceConditionBuilder_;
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
* @return Whether the audienceCondition field is set.
*/
public boolean hasAudienceCondition() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
* @return The audienceCondition.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition getAudienceCondition() {
if (audienceConditionBuilder_ == null) {
return audienceCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_;
} else {
return audienceConditionBuilder_.getMessage();
}
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public Builder setAudienceCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition value) {
if (audienceConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
audienceCondition_ = value;
} else {
audienceConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public Builder setAudienceCondition(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder builderForValue) {
if (audienceConditionBuilder_ == null) {
audienceCondition_ = builderForValue.build();
} else {
audienceConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public Builder mergeAudienceCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition value) {
if (audienceConditionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
audienceCondition_ != null &&
audienceCondition_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance()) {
getAudienceConditionBuilder().mergeFrom(value);
} else {
audienceCondition_ = value;
}
} else {
audienceConditionBuilder_.mergeFrom(value);
}
if (audienceCondition_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public Builder clearAudienceCondition() {
bitField0_ = (bitField0_ & ~0x00000020);
audienceCondition_ = null;
if (audienceConditionBuilder_ != null) {
audienceConditionBuilder_.dispose();
audienceConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder getAudienceConditionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAudienceConditionFieldBuilder().getBuilder();
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder getAudienceConditionOrBuilder() {
if (audienceConditionBuilder_ != null) {
return audienceConditionBuilder_.getMessageOrBuilder();
} else {
return audienceCondition_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_;
}
}
/**
*
* Condition for audience that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder>
getAudienceConditionFieldBuilder() {
if (audienceConditionBuilder_ == null) {
audienceConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder>(
getAudienceCondition(),
getParentForChildren(),
isClean());
audienceCondition_ = null;
}
return audienceConditionBuilder_;
}
private com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itineraryCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder> itineraryConditionBuilder_;
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
* @return Whether the itineraryCondition field is set.
*/
public boolean hasItineraryCondition() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
* @return The itineraryCondition.
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition getItineraryCondition() {
if (itineraryConditionBuilder_ == null) {
return itineraryCondition_ == null ? com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance() : itineraryCondition_;
} else {
return itineraryConditionBuilder_.getMessage();
}
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public Builder setItineraryCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition value) {
if (itineraryConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
itineraryCondition_ = value;
} else {
itineraryConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public Builder setItineraryCondition(
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder builderForValue) {
if (itineraryConditionBuilder_ == null) {
itineraryCondition_ = builderForValue.build();
} else {
itineraryConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public Builder mergeItineraryCondition(com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition value) {
if (itineraryConditionBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
itineraryCondition_ != null &&
itineraryCondition_ != com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance()) {
getItineraryConditionBuilder().mergeFrom(value);
} else {
itineraryCondition_ = value;
}
} else {
itineraryConditionBuilder_.mergeFrom(value);
}
if (itineraryCondition_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public Builder clearItineraryCondition() {
bitField0_ = (bitField0_ & ~0x00000040);
itineraryCondition_ = null;
if (itineraryConditionBuilder_ != null) {
itineraryConditionBuilder_.dispose();
itineraryConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder getItineraryConditionBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getItineraryConditionFieldBuilder().getBuilder();
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
public com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder getItineraryConditionOrBuilder() {
if (itineraryConditionBuilder_ != null) {
return itineraryConditionBuilder_.getMessageOrBuilder();
} else {
return itineraryCondition_ == null ?
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.getDefaultInstance() : itineraryCondition_;
}
}
/**
*
* Condition for itinerary that must be satisfied for the value rule to apply.
*
*
* .google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition itinerary_condition = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder>
getItineraryConditionFieldBuilder() {
if (itineraryConditionBuilder_ == null) {
itineraryConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryCondition.Builder, com.google.ads.googleads.v18.resources.ConversionValueRule.ValueRuleItineraryConditionOrBuilder>(
getItineraryCondition(),
getParentForChildren(),
isClean());
itineraryCondition_ = null;
}
return itineraryConditionBuilder_;
}
private java.lang.Object ownerCustomer_ = "";
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The ownerCustomer.
*/
public java.lang.String getOwnerCustomer() {
java.lang.Object ref = ownerCustomer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerCustomer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for ownerCustomer.
*/
public com.google.protobuf.ByteString
getOwnerCustomerBytes() {
java.lang.Object ref = ownerCustomer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerCustomer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The ownerCustomer to set.
* @return This builder for chaining.
*/
public Builder setOwnerCustomer(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ownerCustomer_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearOwnerCustomer() {
ownerCustomer_ = getDefaultInstance().getOwnerCustomer();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the conversion value rule's owner
* customer. When the value rule is inherited from a manager customer,
* owner_customer will be the resource name of the manager whereas the
* customer in the resource_name will be of the requesting serving customer.
* ** Read-only **
*
*
* string owner_customer = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for ownerCustomer to set.
* @return This builder for chaining.
*/
public Builder setOwnerCustomerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ownerCustomer_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus getStatus() {
com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus result = com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of the conversion value rule.
*
*
* .google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000100);
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.resources.ConversionValueRule)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.resources.ConversionValueRule)
private static final com.google.ads.googleads.v18.resources.ConversionValueRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.resources.ConversionValueRule();
}
public static com.google.ads.googleads.v18.resources.ConversionValueRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConversionValueRule 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.v18.resources.ConversionValueRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy