Class ConversionValueRule.Builder

  • All Implemented Interfaces:
    ConversionValueRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ConversionValueRule

    public static final class ConversionValueRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
    implements ConversionValueRuleOrBuilder
     A conversion value rule
     
    Protobuf type google.ads.googleads.v10.resources.ConversionValueRule
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • clear

        public ConversionValueRule.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • getDefaultInstanceForType

        public ConversionValueRule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ConversionValueRule build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ConversionValueRule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ConversionValueRule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • setField

        public ConversionValueRule.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • clearField

        public ConversionValueRule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • clearOneof

        public ConversionValueRule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • setRepeatedField

        public ConversionValueRule.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • addRepeatedField

        public ConversionValueRule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • mergeFrom

        public ConversionValueRule.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionValueRule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • mergeFrom

        public ConversionValueRule.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionValueRule.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         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) = { ... }
        Specified by:
        getResourceName in interface ConversionValueRuleOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         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) = { ... }
        Specified by:
        getResourceNameBytes in interface ConversionValueRuleOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public ConversionValueRule.Builder setResourceName​(java.lang.String value)
         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) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public ConversionValueRule.Builder clearResourceName()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public ConversionValueRule.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getId

        public long getId()
         Output only. The ID of the conversion value rule.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface ConversionValueRuleOrBuilder
        Returns:
        The id.
      • setId

        public ConversionValueRule.Builder setId​(long value)
         Output only. The ID of the conversion value rule.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public ConversionValueRule.Builder clearId()
         Output only. The ID of the conversion value rule.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasAction

        public boolean hasAction()
         Action applied when the rule is triggered.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3;
        Specified by:
        hasAction in interface ConversionValueRuleOrBuilder
        Returns:
        Whether the action field is set.
      • clearAction

        public ConversionValueRule.Builder clearAction()
         Action applied when the rule is triggered.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3;
      • getActionBuilder

        public ConversionValueRule.ValueRuleAction.Builder getActionBuilder()
         Action applied when the rule is triggered.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAction action = 3;
      • hasGeoLocationCondition

        public boolean hasGeoLocationCondition()
         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;
        Specified by:
        hasGeoLocationCondition in interface ConversionValueRuleOrBuilder
        Returns:
        Whether the geoLocationCondition field is set.
      • clearGeoLocationCondition

        public ConversionValueRule.Builder clearGeoLocationCondition()
         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;
      • getGeoLocationConditionBuilder

        public ConversionValueRule.ValueRuleGeoLocationCondition.Builder getGeoLocationConditionBuilder()
         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;
      • hasDeviceCondition

        public boolean hasDeviceCondition()
         Condition for device type that must be satisfied for the value rule to
         apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
        Specified by:
        hasDeviceCondition in interface ConversionValueRuleOrBuilder
        Returns:
        Whether the deviceCondition field is set.
      • clearDeviceCondition

        public ConversionValueRule.Builder clearDeviceCondition()
         Condition for device type that must be satisfied for the value rule to
         apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
      • getDeviceConditionBuilder

        public ConversionValueRule.ValueRuleDeviceCondition.Builder getDeviceConditionBuilder()
         Condition for device type that must be satisfied for the value rule to
         apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleDeviceCondition device_condition = 5;
      • hasAudienceCondition

        public boolean hasAudienceCondition()
         Condition for audience that must be satisfied for the value rule to apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
        Specified by:
        hasAudienceCondition in interface ConversionValueRuleOrBuilder
        Returns:
        Whether the audienceCondition field is set.
      • clearAudienceCondition

        public ConversionValueRule.Builder clearAudienceCondition()
         Condition for audience that must be satisfied for the value rule to apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
      • getAudienceConditionBuilder

        public ConversionValueRule.ValueRuleAudienceCondition.Builder getAudienceConditionBuilder()
         Condition for audience that must be satisfied for the value rule to apply.
         
        .google.ads.googleads.v10.resources.ConversionValueRule.ValueRuleAudienceCondition audience_condition = 6;
      • getOwnerCustomer

        public java.lang.String getOwnerCustomer()
         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) = { ... }
        Specified by:
        getOwnerCustomer in interface ConversionValueRuleOrBuilder
        Returns:
        The ownerCustomer.
      • getOwnerCustomerBytes

        public com.google.protobuf.ByteString getOwnerCustomerBytes()
         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) = { ... }
        Specified by:
        getOwnerCustomerBytes in interface ConversionValueRuleOrBuilder
        Returns:
        The bytes for ownerCustomer.
      • setOwnerCustomer

        public ConversionValueRule.Builder setOwnerCustomer​(java.lang.String value)
         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) = { ... }
        Parameters:
        value - The ownerCustomer to set.
        Returns:
        This builder for chaining.
      • clearOwnerCustomer

        public ConversionValueRule.Builder clearOwnerCustomer()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setOwnerCustomerBytes

        public ConversionValueRule.Builder setOwnerCustomerBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for ownerCustomer to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         The status of the conversion value rule.
         
        .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
        Specified by:
        getStatusValue in interface ConversionValueRuleOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public ConversionValueRule.Builder setStatusValue​(int value)
         The status of the conversion value rule.
         
        .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public ConversionValueRule.Builder clearStatus()
         The status of the conversion value rule.
         
        .google.ads.googleads.v10.enums.ConversionValueRuleStatusEnum.ConversionValueRuleStatus status = 8;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ConversionValueRule.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>
      • mergeUnknownFields

        public final ConversionValueRule.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConversionValueRule.Builder>