Class ConversionSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder>
com.google.analytics.data.v1alpha.ConversionSpec.Builder
All Implemented Interfaces:
ConversionSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConversionSpec

public static final class ConversionSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversionSpec.Builder> implements ConversionSpecOrBuilder
 Controls conversion reporting.

 <aside class="caution">
 This feature may not be available to your Google Analytics property. The
 Google Analytics team is actively working to expand this feature to more
 properties. Please reach out to your
 <a href="https://support.google.com/analytics/gethelp">support team</a> if
 you have questions about the eligibility of your property.
 </aside>
 
Protobuf type google.analytics.data.v1alpha.ConversionSpec
  • Method Details

    • getDescriptor

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

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

      public ConversionSpec.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.GeneratedMessage.Builder<ConversionSpec.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.GeneratedMessage.Builder<ConversionSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ConversionSpec.Builder mergeFrom(ConversionSpec other)
    • isInitialized

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

      public ConversionSpec.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<ConversionSpec.Builder>
      Throws:
      IOException
    • getConversionActionsList

      public com.google.protobuf.ProtocolStringList getConversionActionsList()
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Specified by:
      getConversionActionsList in interface ConversionSpecOrBuilder
      Returns:
      A list containing the conversionActions.
    • getConversionActionsCount

      public int getConversionActionsCount()
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Specified by:
      getConversionActionsCount in interface ConversionSpecOrBuilder
      Returns:
      The count of conversionActions.
    • getConversionActions

      public String getConversionActions(int index)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Specified by:
      getConversionActions in interface ConversionSpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The conversionActions at the given index.
    • getConversionActionsBytes

      public com.google.protobuf.ByteString getConversionActionsBytes(int index)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Specified by:
      getConversionActionsBytes in interface ConversionSpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the conversionActions at the given index.
    • setConversionActions

      public ConversionSpec.Builder setConversionActions(int index, String value)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Parameters:
      index - The index to set the value at.
      value - The conversionActions to set.
      Returns:
      This builder for chaining.
    • addConversionActions

      public ConversionSpec.Builder addConversionActions(String value)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Parameters:
      value - The conversionActions to add.
      Returns:
      This builder for chaining.
    • addAllConversionActions

      public ConversionSpec.Builder addAllConversionActions(Iterable<String> values)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Parameters:
      values - The conversionActions to add.
      Returns:
      This builder for chaining.
    • clearConversionActions

      public ConversionSpec.Builder clearConversionActions()
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Returns:
      This builder for chaining.
    • addConversionActionsBytes

      public ConversionSpec.Builder addConversionActionsBytes(com.google.protobuf.ByteString value)
       The conversion action IDs to include in the report. If empty, all
       conversions are included. Valid conversion action IDs can be retrieved from
       the `conversion_action` field within the `conversions` list in the
       response of the `GetMetadata` method. For example,
       'conversionActions/1234'.
       
      repeated string conversion_actions = 1;
      Parameters:
      value - The bytes of the conversionActions to add.
      Returns:
      This builder for chaining.
    • getAttributionModelValue

      public int getAttributionModelValue()
       The attribution model to use in the Conversion Report. If unspecified,
       `DATA_DRIVEN` is used.
       
      .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;
      Specified by:
      getAttributionModelValue in interface ConversionSpecOrBuilder
      Returns:
      The enum numeric value on the wire for attributionModel.
    • setAttributionModelValue

      public ConversionSpec.Builder setAttributionModelValue(int value)
       The attribution model to use in the Conversion Report. If unspecified,
       `DATA_DRIVEN` is used.
       
      .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;
      Parameters:
      value - The enum numeric value on the wire for attributionModel to set.
      Returns:
      This builder for chaining.
    • getAttributionModel

      public ConversionSpec.AttributionModel getAttributionModel()
       The attribution model to use in the Conversion Report. If unspecified,
       `DATA_DRIVEN` is used.
       
      .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;
      Specified by:
      getAttributionModel in interface ConversionSpecOrBuilder
      Returns:
      The attributionModel.
    • setAttributionModel

      public ConversionSpec.Builder setAttributionModel(ConversionSpec.AttributionModel value)
       The attribution model to use in the Conversion Report. If unspecified,
       `DATA_DRIVEN` is used.
       
      .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;
      Parameters:
      value - The attributionModel to set.
      Returns:
      This builder for chaining.
    • clearAttributionModel

      public ConversionSpec.Builder clearAttributionModel()
       The attribution model to use in the Conversion Report. If unspecified,
       `DATA_DRIVEN` is used.
       
      .google.analytics.data.v1alpha.ConversionSpec.AttributionModel attribution_model = 2;
      Returns:
      This builder for chaining.