All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v10.resources.ConversionValueRule Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/resources/conversion_value_rule.proto

package com.google.ads.googleads.v10.resources;

/**
 * 
 * A conversion value rule
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.ConversionValueRule} */ public final class ConversionValueRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.class, com.google.ads.googleads.v10.resources.ConversionValueRule.Builder.class); } public interface ValueRuleActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies applied operation.
     * 
* * .google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @return The enum numeric value on the wire for operation. */ int getOperationValue(); /** *
     * Specifies applied operation.
     * 
* * .google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @return The operation. */ com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAction} */ public static final class ValueRuleAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; private int operation_; /** *
     * Specifies applied operation.
     * 
* * .google.ads.googleads.v10.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.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @return The operation. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation getOperation() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation result = com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation.valueOf(operation_); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation.UNRECOGNIZED : result; } public static final int VALUE_FIELD_NUMBER = 2; private double value_; /** *
     * 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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleAction)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction other = (com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction) com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); operation_ = 0; value_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAction_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction build() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction buildPartial() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction result = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction(this); result.operation_ = operation_; result.value_ = value_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction) { return mergeFrom((com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction other) { if (other == com.google.ads.googleads.v10.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(); break; } // case 8 case 17: { value_ = input.readDouble(); 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 operation_ = 0; /** *
       * Specifies applied operation.
       * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
       * Specifies applied operation.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @return The operation. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation getOperation() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation result = com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation.valueOf(operation_); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation.UNRECOGNIZED : result; } /** *
       * Specifies applied operation.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @param value The operation to set. * @return This builder for chaining. */ public Builder setOperation(com.google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation value) { if (value == null) { throw new NullPointerException(); } operation_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies applied operation.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; * @return This builder for chaining. */ public Builder clearOperation() { 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; onChanged(); return this; } /** *
       * Specifies applied value.
       * 
* * double value = 2; * @return This builder for chaining. */ public Builder clearValue() { 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.v10.resources.ConversionValueRule.ValueRuleAction) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction) private static final com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction(); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueRuleGeoLocationConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2; * @return The excludedGeoMatchType. */ com.google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4; * @return The geoMatchType. */ com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType(); } /** *
   * Condition on Geo dimension.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition} */ public static final class ValueRuleGeoLocationCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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.EMPTY; excludedGeoMatchType_ = 0; geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; geoMatchType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValueRuleGeoLocationCondition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleGeoLocationCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder.class); } public static final int EXCLUDED_GEO_TARGET_CONSTANTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList excludedGeoTargetConstants_; /** *
     * 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_; /** *
     * Excluded Geo location match type.
     * 
* * .google.ads.googleads.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2; * @return The excludedGeoMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getExcludedGeoMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.valueOf(excludedGeoMatchType_); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result; } public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList geoTargetConstants_; /** *
     * 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_; /** *
     * Included Geo location match type.
     * 
* * .google.ads.googleads.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4; * @return The geoMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.valueOf(geoMatchType_); return result == null ? com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition other = (com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition) com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleGeoLocationCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); excludedGeoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); excludedGeoMatchType_ = 0; geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); geoMatchType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleGeoLocationCondition_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition build() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition buildPartial() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition result = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { excludedGeoTargetConstants_ = excludedGeoTargetConstants_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.excludedGeoTargetConstants_ = excludedGeoTargetConstants_; result.excludedGeoMatchType_ = excludedGeoMatchType_; if (((bitField0_ & 0x00000002) != 0)) { geoTargetConstants_ = geoTargetConstants_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.geoTargetConstants_ = geoTargetConstants_; result.geoMatchType_ = geoMatchType_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition) { return mergeFrom((com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition other) { if (other == com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance()) return this; if (!other.excludedGeoTargetConstants_.isEmpty()) { if (excludedGeoTargetConstants_.isEmpty()) { excludedGeoTargetConstants_ = other.excludedGeoTargetConstants_; bitField0_ = (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_ = (bitField0_ & ~0x00000002); } 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(); break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureGeoTargetConstantsIsMutable(); geoTargetConstants_.add(s); break; } // case 26 case 32: { geoMatchType_ = input.readEnum(); 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.LazyStringList excludedGeoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExcludedGeoTargetConstantsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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() { return excludedGeoTargetConstants_.getUnmodifiableView(); } /** *
       * 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); 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); 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_); 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.EMPTY; 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); onChanged(); return this; } private int excludedGeoMatchType_ = 0; /** *
       * Excluded Geo location match type.
       * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
       * Excluded Geo location match type.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2; * @return The excludedGeoMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getExcludedGeoMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.valueOf(excludedGeoMatchType_); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result; } /** *
       * Excluded Geo location match type.
       * 
* * .google.ads.googleads.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType value) { if (value == null) { throw new NullPointerException(); } excludedGeoMatchType_ = value.getNumber(); onChanged(); return this; } /** *
       * Excluded Geo location match type.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType excluded_geo_match_type = 2; * @return This builder for chaining. */ public Builder clearExcludedGeoMatchType() { excludedGeoMatchType_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGeoTargetConstantsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { geoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(geoTargetConstants_); bitField0_ |= 0x00000002; } } /** *
       * 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_.getUnmodifiableView(); } /** *
       * 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); 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); 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_); 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.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); 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); onChanged(); return this; } private int geoMatchType_ = 0; /** *
       * Included Geo location match type.
       * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
       * Included Geo location match type.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4; * @return The geoMatchType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType getGeoMatchType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType result = com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.valueOf(geoMatchType_); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType.UNRECOGNIZED : result; } /** *
       * Included Geo location match type.
       * 
* * .google.ads.googleads.v10.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.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType value) { if (value == null) { throw new NullPointerException(); } geoMatchType_ = value.getNumber(); onChanged(); return this; } /** *
       * Included Geo location match type.
       * 
* * .google.ads.googleads.v10.enums.ValueRuleGeoLocationMatchTypeEnum.ValueRuleGeoLocationMatchType geo_match_type = 4; * @return This builder for chaining. */ public Builder clearGeoMatchType() { 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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition) private static final com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition(); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueRuleDeviceConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition) com.google.protobuf.MessageOrBuilder { /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1; * @return The count of deviceTypes. */ int getDeviceTypesCount(); /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index); /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition} */ public static final class ValueRuleDeviceCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleDeviceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder.class); } public static final int DEVICE_TYPES_FIELD_NUMBER = 1; private java.util.List deviceTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType> deviceTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>() { public com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType result = com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType.valueOf(from); return result == null ? com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType.UNRECOGNIZED : result; } }; /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>(deviceTypes_, deviceTypes_converter_); } /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index) { return deviceTypes_converter_.convert(deviceTypes_.get(index)); } /** *
     * Value for device type condition.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition other = (com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition) com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleDeviceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); 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.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleDeviceCondition_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition build() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition buildPartial() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition result = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { deviceTypes_ = java.util.Collections.unmodifiableList(deviceTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.deviceTypes_ = deviceTypes_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition) { return mergeFrom((com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition other) { if (other == com.google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType>(deviceTypes_, deviceTypes_converter_); } /** *
       * Value for device type condition.
       * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType getDeviceTypes(int index) { return deviceTypes_converter_.convert(deviceTypes_.get(index)); } /** *
       * Value for device type condition.
       * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1; * @param value The deviceTypes to add. * @return This builder for chaining. */ public Builder addDeviceTypes(com.google.ads.googleads.v10.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.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType device_types = 1; * @param values The deviceTypes to add. * @return This builder for chaining. */ public Builder addAllDeviceTypes( java.lang.Iterable values) { ensureDeviceTypesIsMutable(); for (com.google.ads.googleads.v10.enums.ValueRuleDeviceTypeEnum.ValueRuleDeviceType value : values) { deviceTypes_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Value for device type condition.
       * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition) private static final com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition(); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueRuleAudienceConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition} */ public static final class ValueRuleAudienceCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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.EMPTY; userInterests_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValueRuleAudienceCondition(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAudienceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder.class); } public static final int USER_LISTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList userLists_; /** *
     * 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; private com.google.protobuf.LazyStringList userInterests_; /** *
     * 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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition other = (com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition) com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAudienceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.class, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); userLists_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); userInterests_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_ValueRuleAudienceCondition_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition build() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition buildPartial() { com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition result = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { userLists_ = userLists_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.userLists_ = userLists_; if (((bitField0_ & 0x00000002) != 0)) { userInterests_ = userInterests_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.userInterests_ = userInterests_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition) { return mergeFrom((com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition other) { if (other == com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance()) return this; if (!other.userLists_.isEmpty()) { if (userLists_.isEmpty()) { userLists_ = other.userLists_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUserListsIsMutable(); userLists_.addAll(other.userLists_); } onChanged(); } if (!other.userInterests_.isEmpty()) { if (userInterests_.isEmpty()) { userInterests_ = other.userInterests_; bitField0_ = (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.LazyStringList userLists_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUserListsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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() { return userLists_.getUnmodifiableView(); } /** *
       * 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); 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); 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_); 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.EMPTY; 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); onChanged(); return this; } private com.google.protobuf.LazyStringList userInterests_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUserInterestsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { 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() { return userInterests_.getUnmodifiableView(); } /** *
       * 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); 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); 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_); 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.EMPTY; 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); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition) private static final com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition(); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; 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_; /** *
   * 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.v10.resources.ConversionValueRule.ValueRuleAction action_; /** *
   * Action applied when the rule is triggered.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return action_ != null; } /** *
   * Action applied when the rule is triggered.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; * @return The action. */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction getAction() { return action_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_; } /** *
   * Action applied when the rule is triggered.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder getActionOrBuilder() { return getAction(); } public static final int GEO_LOCATION_CONDITION_FIELD_NUMBER = 4; private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geoLocationCondition_; /** *
   * Condition for Geo location that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; * @return Whether the geoLocationCondition field is set. */ @java.lang.Override public boolean hasGeoLocationCondition() { return geoLocationCondition_ != null; } /** *
   * Condition for Geo location that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; * @return The geoLocationCondition. */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition getGeoLocationCondition() { return geoLocationCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_; } /** *
   * Condition for Geo location that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder getGeoLocationConditionOrBuilder() { return getGeoLocationCondition(); } public static final int DEVICE_CONDITION_FIELD_NUMBER = 5; private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition deviceCondition_; /** *
   * Condition for device type that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; * @return Whether the deviceCondition field is set. */ @java.lang.Override public boolean hasDeviceCondition() { return deviceCondition_ != null; } /** *
   * Condition for device type that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; * @return The deviceCondition. */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition getDeviceCondition() { return deviceCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_; } /** *
   * Condition for device type that must be satisfied for the value rule to
   * apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder getDeviceConditionOrBuilder() { return getDeviceCondition(); } public static final int AUDIENCE_CONDITION_FIELD_NUMBER = 6; private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audienceCondition_; /** *
   * Condition for audience that must be satisfied for the value rule to apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; * @return Whether the audienceCondition field is set. */ @java.lang.Override public boolean hasAudienceCondition() { return audienceCondition_ != null; } /** *
   * Condition for audience that must be satisfied for the value rule to apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; * @return The audienceCondition. */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition getAudienceCondition() { return audienceCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_; } /** *
   * Condition for audience that must be satisfied for the value rule to apply.
   * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder getAudienceConditionOrBuilder() { return getAudienceCondition(); } public static final int OWNER_CUSTOMER_FIELD_NUMBER = 7; 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_; /** *
   * The status of the conversion value rule.
   * 
* * .google.ads.googleads.v10.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.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus result = com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.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 (action_ != null) { output.writeMessage(3, getAction()); } if (geoLocationCondition_ != null) { output.writeMessage(4, getGeoLocationCondition()); } if (deviceCondition_ != null) { output.writeMessage(5, getDeviceCondition()); } if (audienceCondition_ != null) { 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.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNSPECIFIED.getNumber()) { output.writeEnum(8, status_); } 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 (action_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAction()); } if (geoLocationCondition_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getGeoLocationCondition()); } if (deviceCondition_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDeviceCondition()); } if (audienceCondition_ != null) { 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.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, status_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v10.resources.ConversionValueRule)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.ConversionValueRule other = (com.google.ads.googleads.v10.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 (!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(); } 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.v10.resources.ConversionValueRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.resources.ConversionValueRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.ConversionValueRule) com.google.ads.googleads.v10.resources.ConversionValueRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.ConversionValueRule.class, com.google.ads.googleads.v10.resources.ConversionValueRule.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.ConversionValueRule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; id_ = 0L; if (actionBuilder_ == null) { action_ = null; } else { action_ = null; actionBuilder_ = null; } if (geoLocationConditionBuilder_ == null) { geoLocationCondition_ = null; } else { geoLocationCondition_ = null; geoLocationConditionBuilder_ = null; } if (deviceConditionBuilder_ == null) { deviceCondition_ = null; } else { deviceCondition_ = null; deviceConditionBuilder_ = null; } if (audienceConditionBuilder_ == null) { audienceCondition_ = null; } else { audienceCondition_ = null; audienceConditionBuilder_ = null; } ownerCustomer_ = ""; status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.ConversionValueRuleProto.internal_static_google_ads_googleads_v10_resources_ConversionValueRule_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.ConversionValueRule.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule build() { com.google.ads.googleads.v10.resources.ConversionValueRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.ConversionValueRule buildPartial() { com.google.ads.googleads.v10.resources.ConversionValueRule result = new com.google.ads.googleads.v10.resources.ConversionValueRule(this); result.resourceName_ = resourceName_; result.id_ = id_; if (actionBuilder_ == null) { result.action_ = action_; } else { result.action_ = actionBuilder_.build(); } if (geoLocationConditionBuilder_ == null) { result.geoLocationCondition_ = geoLocationCondition_; } else { result.geoLocationCondition_ = geoLocationConditionBuilder_.build(); } if (deviceConditionBuilder_ == null) { result.deviceCondition_ = deviceCondition_; } else { result.deviceCondition_ = deviceConditionBuilder_.build(); } if (audienceConditionBuilder_ == null) { result.audienceCondition_ = audienceCondition_; } else { result.audienceCondition_ = audienceConditionBuilder_.build(); } result.ownerCustomer_ = ownerCustomer_; result.status_ = status_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.ConversionValueRule) { return mergeFrom((com.google.ads.googleads.v10.resources.ConversionValueRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.ConversionValueRule other) { if (other == com.google.ads.googleads.v10.resources.ConversionValueRule.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; 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.getOwnerCustomer().isEmpty()) { ownerCustomer_ = other.ownerCustomer_; 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(); break; } // case 10 case 16: { id_ = input.readInt64(); break; } // case 16 case 26: { input.readMessage( getActionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { input.readMessage( getGeoLocationConditionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { input.readMessage( getDeviceConditionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 50: { input.readMessage( getAudienceConditionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { ownerCustomer_ = input.readStringRequireUtf8(); break; } // case 58 case 64: { status_ = input.readEnum(); break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private 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; 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(); 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; 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; 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() { id_ = 0L; onChanged(); return this; } private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder> actionBuilder_; /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; * @return Whether the action field is set. */ public boolean hasAction() { return actionBuilder_ != null || action_ != null; } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; * @return The action. */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction getAction() { if (actionBuilder_ == null) { return action_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public Builder setAction(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } return this; } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public Builder setAction( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder builderForValue) { if (actionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public Builder mergeAction(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction value) { if (actionBuilder_ == null) { if (action_ != null) { action_ = com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.newBuilder(action_).mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { actionBuilder_.mergeFrom(value); } return this; } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public Builder clearAction() { if (actionBuilder_ == null) { action_ = null; onChanged(); } else { action_ = null; actionBuilder_ = null; } return this; } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder getActionBuilder() { onChanged(); return getActionFieldBuilder().getBuilder(); } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder getActionOrBuilder() { if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { return action_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.getDefaultInstance() : action_; } } /** *
     * Action applied when the rule is triggered.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleActionOrBuilder>( getAction(), getParentForChildren(), isClean()); action_ = null; } return actionBuilder_; } private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geoLocationCondition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder> geoLocationConditionBuilder_; /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; * @return Whether the geoLocationCondition field is set. */ public boolean hasGeoLocationCondition() { return geoLocationConditionBuilder_ != null || geoLocationCondition_ != null; } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; * @return The geoLocationCondition. */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition getGeoLocationCondition() { if (geoLocationConditionBuilder_ == null) { return geoLocationCondition_ == null ? com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public Builder setGeoLocationCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition value) { if (geoLocationConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } geoLocationCondition_ = value; onChanged(); } else { geoLocationConditionBuilder_.setMessage(value); } return this; } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public Builder setGeoLocationCondition( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder builderForValue) { if (geoLocationConditionBuilder_ == null) { geoLocationCondition_ = builderForValue.build(); onChanged(); } else { geoLocationConditionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public Builder mergeGeoLocationCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition value) { if (geoLocationConditionBuilder_ == null) { if (geoLocationCondition_ != null) { geoLocationCondition_ = com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.newBuilder(geoLocationCondition_).mergeFrom(value).buildPartial(); } else { geoLocationCondition_ = value; } onChanged(); } else { geoLocationConditionBuilder_.mergeFrom(value); } return this; } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public Builder clearGeoLocationCondition() { if (geoLocationConditionBuilder_ == null) { geoLocationCondition_ = null; onChanged(); } else { geoLocationCondition_ = null; geoLocationConditionBuilder_ = null; } return this; } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder getGeoLocationConditionBuilder() { onChanged(); return getGeoLocationConditionFieldBuilder().getBuilder(); } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder getGeoLocationConditionOrBuilder() { if (geoLocationConditionBuilder_ != null) { return geoLocationConditionBuilder_.getMessageOrBuilder(); } else { return geoLocationCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.getDefaultInstance() : geoLocationCondition_; } } /** *
     * Condition for Geo location that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition geo_location_condition = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder> getGeoLocationConditionFieldBuilder() { if (geoLocationConditionBuilder_ == null) { geoLocationConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleGeoLocationConditionOrBuilder>( getGeoLocationCondition(), getParentForChildren(), isClean()); geoLocationCondition_ = null; } return geoLocationConditionBuilder_; } private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition deviceCondition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder> deviceConditionBuilder_; /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; * @return Whether the deviceCondition field is set. */ public boolean hasDeviceCondition() { return deviceConditionBuilder_ != null || deviceCondition_ != null; } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; * @return The deviceCondition. */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition getDeviceCondition() { if (deviceConditionBuilder_ == null) { return deviceCondition_ == null ? com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public Builder setDeviceCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition value) { if (deviceConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deviceCondition_ = value; onChanged(); } else { deviceConditionBuilder_.setMessage(value); } return this; } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public Builder setDeviceCondition( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder builderForValue) { if (deviceConditionBuilder_ == null) { deviceCondition_ = builderForValue.build(); onChanged(); } else { deviceConditionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public Builder mergeDeviceCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition value) { if (deviceConditionBuilder_ == null) { if (deviceCondition_ != null) { deviceCondition_ = com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.newBuilder(deviceCondition_).mergeFrom(value).buildPartial(); } else { deviceCondition_ = value; } onChanged(); } else { deviceConditionBuilder_.mergeFrom(value); } return this; } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public Builder clearDeviceCondition() { if (deviceConditionBuilder_ == null) { deviceCondition_ = null; onChanged(); } else { deviceCondition_ = null; deviceConditionBuilder_ = null; } return this; } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder getDeviceConditionBuilder() { onChanged(); return getDeviceConditionFieldBuilder().getBuilder(); } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder getDeviceConditionOrBuilder() { if (deviceConditionBuilder_ != null) { return deviceConditionBuilder_.getMessageOrBuilder(); } else { return deviceCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.getDefaultInstance() : deviceCondition_; } } /** *
     * Condition for device type that must be satisfied for the value rule to
     * apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder> getDeviceConditionFieldBuilder() { if (deviceConditionBuilder_ == null) { deviceConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceConditionOrBuilder>( getDeviceCondition(), getParentForChildren(), isClean()); deviceCondition_ = null; } return deviceConditionBuilder_; } private com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audienceCondition_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder> audienceConditionBuilder_; /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; * @return Whether the audienceCondition field is set. */ public boolean hasAudienceCondition() { return audienceConditionBuilder_ != null || audienceCondition_ != null; } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; * @return The audienceCondition. */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition getAudienceCondition() { if (audienceConditionBuilder_ == null) { return audienceCondition_ == null ? com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public Builder setAudienceCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition value) { if (audienceConditionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } audienceCondition_ = value; onChanged(); } else { audienceConditionBuilder_.setMessage(value); } return this; } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public Builder setAudienceCondition( com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder builderForValue) { if (audienceConditionBuilder_ == null) { audienceCondition_ = builderForValue.build(); onChanged(); } else { audienceConditionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public Builder mergeAudienceCondition(com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition value) { if (audienceConditionBuilder_ == null) { if (audienceCondition_ != null) { audienceCondition_ = com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.newBuilder(audienceCondition_).mergeFrom(value).buildPartial(); } else { audienceCondition_ = value; } onChanged(); } else { audienceConditionBuilder_.mergeFrom(value); } return this; } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public Builder clearAudienceCondition() { if (audienceConditionBuilder_ == null) { audienceCondition_ = null; onChanged(); } else { audienceCondition_ = null; audienceConditionBuilder_ = null; } return this; } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder getAudienceConditionBuilder() { onChanged(); return getAudienceConditionFieldBuilder().getBuilder(); } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ public com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder getAudienceConditionOrBuilder() { if (audienceConditionBuilder_ != null) { return audienceConditionBuilder_.getMessageOrBuilder(); } else { return audienceCondition_ == null ? com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.getDefaultInstance() : audienceCondition_; } } /** *
     * Condition for audience that must be satisfied for the value rule to apply.
     * 
* * .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder> getAudienceConditionFieldBuilder() { if (audienceConditionBuilder_ == null) { audienceConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition.Builder, com.google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceConditionOrBuilder>( getAudienceCondition(), getParentForChildren(), isClean()); audienceCondition_ = null; } return audienceConditionBuilder_; } 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; 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(); 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; onChanged(); return this; } private int status_ = 0; /** *
     * The status of the conversion value rule.
     * 
* * .google.ads.googleads.v10.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.v10.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; onChanged(); return this; } /** *
     * The status of the conversion value rule.
     * 
* * .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus result = com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus.UNRECOGNIZED : result; } /** *
     * The status of the conversion value rule.
     * 
* * .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * The status of the conversion value rule.
     * 
* * .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8; * @return This builder for chaining. */ public Builder clearStatus() { 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.v10.resources.ConversionValueRule) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.ConversionValueRule) private static final com.google.ads.googleads.v10.resources.ConversionValueRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.ConversionValueRule(); } public static com.google.ads.googleads.v10.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.v10.resources.ConversionValueRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy