Class UploadClickConversionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UploadClickConversionsRequest.Builder>
com.google.ads.googleads.v18.services.UploadClickConversionsRequest.Builder
All Implemented Interfaces:
UploadClickConversionsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UploadClickConversionsRequest

public static final class UploadClickConversionsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UploadClickConversionsRequest.Builder> implements UploadClickConversionsRequestOrBuilder
 Request message for
 [ConversionUploadService.UploadClickConversions][google.ads.googleads.v18.services.ConversionUploadService.UploadClickConversions].
 
Protobuf type google.ads.googleads.v18.services.UploadClickConversionsRequest
  • Method Details

    • 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<UploadClickConversionsRequest.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<UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UploadClickConversionsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<UploadClickConversionsRequest.Builder>
    • setField

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

      public UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>
    • clearOneof

      public UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>
    • setRepeatedField

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

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

      public UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public UploadClickConversionsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<UploadClickConversionsRequest.Builder>
      Throws:
      IOException
    • getCustomerId

      public String getCustomerId()
       Required. The ID of the customer performing the upload.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the customer performing the upload.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public UploadClickConversionsRequest.Builder setCustomerId(String value)
       Required. The ID of the customer performing the upload.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public UploadClickConversionsRequest.Builder clearCustomerId()
       Required. The ID of the customer performing the upload.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public UploadClickConversionsRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the customer performing the upload.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • getConversionsList

      public List<ClickConversion> getConversionsList()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversionsList in interface UploadClickConversionsRequestOrBuilder
    • getConversionsCount

      public int getConversionsCount()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversionsCount in interface UploadClickConversionsRequestOrBuilder
    • getConversions

      public ClickConversion getConversions(int index)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversions in interface UploadClickConversionsRequestOrBuilder
    • setConversions

      public UploadClickConversionsRequest.Builder setConversions(int index, ClickConversion value)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • setConversions

      public UploadClickConversionsRequest.Builder setConversions(int index, ClickConversion.Builder builderForValue)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addConversions

       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addConversions

      public UploadClickConversionsRequest.Builder addConversions(int index, ClickConversion value)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addConversions

      public UploadClickConversionsRequest.Builder addConversions(ClickConversion.Builder builderForValue)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addConversions

      public UploadClickConversionsRequest.Builder addConversions(int index, ClickConversion.Builder builderForValue)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllConversions

      public UploadClickConversionsRequest.Builder addAllConversions(Iterable<? extends ClickConversion> values)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearConversions

      public UploadClickConversionsRequest.Builder clearConversions()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeConversions

      public UploadClickConversionsRequest.Builder removeConversions(int index)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversionsBuilder

      public ClickConversion.Builder getConversionsBuilder(int index)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversionsOrBuilder

      public ClickConversionOrBuilder getConversionsOrBuilder(int index)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversionsOrBuilder in interface UploadClickConversionsRequestOrBuilder
    • getConversionsOrBuilderList

      public List<? extends ClickConversionOrBuilder> getConversionsOrBuilderList()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConversionsOrBuilderList in interface UploadClickConversionsRequestOrBuilder
    • addConversionsBuilder

      public ClickConversion.Builder addConversionsBuilder()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addConversionsBuilder

      public ClickConversion.Builder addConversionsBuilder(int index)
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getConversionsBuilderList

      public List<ClickConversion.Builder> getConversionsBuilderList()
       Required. The conversions that are being uploaded.
       
      repeated .google.ads.googleads.v18.services.ClickConversion conversions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPartialFailure

      public boolean getPartialFailure()
       Required. If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       This should always be set to true.
       See
       https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
       for more information about partial failure.
       
      bool partial_failure = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPartialFailure in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The partialFailure.
    • setPartialFailure

      public UploadClickConversionsRequest.Builder setPartialFailure(boolean value)
       Required. If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       This should always be set to true.
       See
       https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
       for more information about partial failure.
       
      bool partial_failure = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The partialFailure to set.
      Returns:
      This builder for chaining.
    • clearPartialFailure

      public UploadClickConversionsRequest.Builder clearPartialFailure()
       Required. If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       This should always be set to true.
       See
       https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
       for more information about partial failure.
       
      bool partial_failure = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getValidateOnly

      public boolean getValidateOnly()
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 4;
      Specified by:
      getValidateOnly in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UploadClickConversionsRequest.Builder setValidateOnly(boolean value)
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 4;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UploadClickConversionsRequest.Builder clearValidateOnly()
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 4;
      Returns:
      This builder for chaining.
    • getDebugEnabled

      public boolean getDebugEnabled()
       If true, the API will perform all upload checks and return errors if
       any are found. If false, it will perform only basic input validation,
       skip subsequent upload checks, and return success even if no click
       was found for the provided `user_identifiers`.
      
       This setting only affects Enhanced conversions for leads uploads that use
       `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When
       uploading enhanced conversions for leads, you should upload all conversion
       events to the API, including those that may not come from Google Ads
       campaigns. The upload of an event that is not from a Google Ads campaign
       will result in a `CLICK_NOT_FOUND` error if this field is set to `true`.
       Since these errors are expected for such events, set this field to `false`
       so you can confirm your uploads are properly formatted but ignore
       `CLICK_NOT_FOUND` errors from all of the conversions that are not from a
       Google Ads campaign. This will allow you to focus only on errors that you
       can address.
      
       Default is false.
       
      bool debug_enabled = 5;
      Specified by:
      getDebugEnabled in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The debugEnabled.
    • setDebugEnabled

      public UploadClickConversionsRequest.Builder setDebugEnabled(boolean value)
       If true, the API will perform all upload checks and return errors if
       any are found. If false, it will perform only basic input validation,
       skip subsequent upload checks, and return success even if no click
       was found for the provided `user_identifiers`.
      
       This setting only affects Enhanced conversions for leads uploads that use
       `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When
       uploading enhanced conversions for leads, you should upload all conversion
       events to the API, including those that may not come from Google Ads
       campaigns. The upload of an event that is not from a Google Ads campaign
       will result in a `CLICK_NOT_FOUND` error if this field is set to `true`.
       Since these errors are expected for such events, set this field to `false`
       so you can confirm your uploads are properly formatted but ignore
       `CLICK_NOT_FOUND` errors from all of the conversions that are not from a
       Google Ads campaign. This will allow you to focus only on errors that you
       can address.
      
       Default is false.
       
      bool debug_enabled = 5;
      Parameters:
      value - The debugEnabled to set.
      Returns:
      This builder for chaining.
    • clearDebugEnabled

      public UploadClickConversionsRequest.Builder clearDebugEnabled()
       If true, the API will perform all upload checks and return errors if
       any are found. If false, it will perform only basic input validation,
       skip subsequent upload checks, and return success even if no click
       was found for the provided `user_identifiers`.
      
       This setting only affects Enhanced conversions for leads uploads that use
       `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When
       uploading enhanced conversions for leads, you should upload all conversion
       events to the API, including those that may not come from Google Ads
       campaigns. The upload of an event that is not from a Google Ads campaign
       will result in a `CLICK_NOT_FOUND` error if this field is set to `true`.
       Since these errors are expected for such events, set this field to `false`
       so you can confirm your uploads are properly formatted but ignore
       `CLICK_NOT_FOUND` errors from all of the conversions that are not from a
       Google Ads campaign. This will allow you to focus only on errors that you
       can address.
      
       Default is false.
       
      bool debug_enabled = 5;
      Returns:
      This builder for chaining.
    • hasJobId

      public boolean hasJobId()
       Optional. Optional input to set job ID. Must be a non-negative number that
       is less than 2^31 if provided. If this field is not provided, the API will
       generate a job ID in the range [2^31, (2^63)-1]. The API will return the
       value for this request in the `job_id` field of the
       `UploadClickConversionsResponse`.
       
      optional int32 job_id = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasJobId in interface UploadClickConversionsRequestOrBuilder
      Returns:
      Whether the jobId field is set.
    • getJobId

      public int getJobId()
       Optional. Optional input to set job ID. Must be a non-negative number that
       is less than 2^31 if provided. If this field is not provided, the API will
       generate a job ID in the range [2^31, (2^63)-1]. The API will return the
       value for this request in the `job_id` field of the
       `UploadClickConversionsResponse`.
       
      optional int32 job_id = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJobId in interface UploadClickConversionsRequestOrBuilder
      Returns:
      The jobId.
    • setJobId

      public UploadClickConversionsRequest.Builder setJobId(int value)
       Optional. Optional input to set job ID. Must be a non-negative number that
       is less than 2^31 if provided. If this field is not provided, the API will
       generate a job ID in the range [2^31, (2^63)-1]. The API will return the
       value for this request in the `job_id` field of the
       `UploadClickConversionsResponse`.
       
      optional int32 job_id = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

       Optional. Optional input to set job ID. Must be a non-negative number that
       is less than 2^31 if provided. If this field is not provided, the API will
       generate a job ID in the range [2^31, (2^63)-1]. The API will return the
       value for this request in the `job_id` field of the
       `UploadClickConversionsResponse`.
       
      optional int32 job_id = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>
    • mergeUnknownFields

      public final UploadClickConversionsRequest.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<UploadClickConversionsRequest.Builder>