Class ConversionMetadata.Builder

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

public static final class ConversionMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversionMetadata.Builder> implements ConversionMetadataOrBuilder
 The metadata for a single conversion.

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

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

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

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

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

    • isInitialized

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

      public ConversionMetadata.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<ConversionMetadata.Builder>
      Throws:
      IOException
    • getConversionAction

      public String getConversionAction()
       The unique identifier of the conversion action. This ID is used to specify
       which conversions to include in a report by populating the
       `conversion_actions` field in the `ConversionsSpec` of a report request.
       For example, 'conversionActions/1234'.
       
      string conversion_action = 1;
      Specified by:
      getConversionAction in interface ConversionMetadataOrBuilder
      Returns:
      The conversionAction.
    • getConversionActionBytes

      public com.google.protobuf.ByteString getConversionActionBytes()
       The unique identifier of the conversion action. This ID is used to specify
       which conversions to include in a report by populating the
       `conversion_actions` field in the `ConversionsSpec` of a report request.
       For example, 'conversionActions/1234'.
       
      string conversion_action = 1;
      Specified by:
      getConversionActionBytes in interface ConversionMetadataOrBuilder
      Returns:
      The bytes for conversionAction.
    • setConversionAction

      public ConversionMetadata.Builder setConversionAction(String value)
       The unique identifier of the conversion action. This ID is used to specify
       which conversions to include in a report by populating the
       `conversion_actions` field in the `ConversionsSpec` of a report request.
       For example, 'conversionActions/1234'.
       
      string conversion_action = 1;
      Parameters:
      value - The conversionAction to set.
      Returns:
      This builder for chaining.
    • clearConversionAction

      public ConversionMetadata.Builder clearConversionAction()
       The unique identifier of the conversion action. This ID is used to specify
       which conversions to include in a report by populating the
       `conversion_actions` field in the `ConversionsSpec` of a report request.
       For example, 'conversionActions/1234'.
       
      string conversion_action = 1;
      Returns:
      This builder for chaining.
    • setConversionActionBytes

      public ConversionMetadata.Builder setConversionActionBytes(com.google.protobuf.ByteString value)
       The unique identifier of the conversion action. This ID is used to specify
       which conversions to include in a report by populating the
       `conversion_actions` field in the `ConversionsSpec` of a report request.
       For example, 'conversionActions/1234'.
       
      string conversion_action = 1;
      Parameters:
      value - The bytes for conversionAction to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       This conversion's name within the Google Analytics user interface.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface ConversionMetadataOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       This conversion's name within the Google Analytics user interface.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface ConversionMetadataOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ConversionMetadata.Builder setDisplayName(String value)
       This conversion's name within the Google Analytics user interface.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ConversionMetadata.Builder clearDisplayName()
       This conversion's name within the Google Analytics user interface.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ConversionMetadata.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       This conversion's name within the Google Analytics user interface.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.