Class ConversionEvent.DefaultConversionValue.Builder

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

public static final class ConversionEvent.DefaultConversionValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversionEvent.DefaultConversionValue.Builder> implements ConversionEvent.DefaultConversionValueOrBuilder
 Defines a default value/currency for a conversion event. Both value and
 currency must be provided.
 
Protobuf type google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue
  • 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<ConversionEvent.DefaultConversionValue.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<ConversionEvent.DefaultConversionValue.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<ConversionEvent.DefaultConversionValue.Builder>
    • getDefaultInstanceForType

      public ConversionEvent.DefaultConversionValue 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

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

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

      public ConversionEvent.DefaultConversionValue.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<ConversionEvent.DefaultConversionValue.Builder>
      Throws:
      IOException
    • hasValue

      public boolean hasValue()
       This value will be used to populate the value for all conversions
       of the specified event_name where the event "value" parameter is unset.
       
      optional double value = 1;
      Specified by:
      hasValue in interface ConversionEvent.DefaultConversionValueOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public double getValue()
       This value will be used to populate the value for all conversions
       of the specified event_name where the event "value" parameter is unset.
       
      optional double value = 1;
      Specified by:
      getValue in interface ConversionEvent.DefaultConversionValueOrBuilder
      Returns:
      The value.
    • setValue

      public ConversionEvent.DefaultConversionValue.Builder setValue(double value)
       This value will be used to populate the value for all conversions
       of the specified event_name where the event "value" parameter is unset.
       
      optional double value = 1;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

       This value will be used to populate the value for all conversions
       of the specified event_name where the event "value" parameter is unset.
       
      optional double value = 1;
      Returns:
      This builder for chaining.
    • hasCurrencyCode

      public boolean hasCurrencyCode()
       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Specified by:
      hasCurrencyCode in interface ConversionEvent.DefaultConversionValueOrBuilder
      Returns:
      Whether the currencyCode field is set.
    • getCurrencyCode

      public String getCurrencyCode()
       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Specified by:
      getCurrencyCode in interface ConversionEvent.DefaultConversionValueOrBuilder
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      public com.google.protobuf.ByteString getCurrencyCodeBytes()
       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Specified by:
      getCurrencyCodeBytes in interface ConversionEvent.DefaultConversionValueOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Parameters:
      value - The currencyCode to set.
      Returns:
      This builder for chaining.
    • clearCurrencyCode

       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Returns:
      This builder for chaining.
    • setCurrencyCodeBytes

      public ConversionEvent.DefaultConversionValue.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       When a conversion event for this event_name has no set currency,
       this currency will be applied as the default. Must be in ISO 4217
       currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
       more information.
       
      optional string currency_code = 2;
      Parameters:
      value - The bytes for currencyCode to set.
      Returns:
      This builder for chaining.