Class KeyEvent.DefaultValue.Builder

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

public static final class KeyEvent.DefaultValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeyEvent.DefaultValue.Builder> implements KeyEvent.DefaultValueOrBuilder
 Defines a default value/currency for a key event.
 
Protobuf type google.analytics.admin.v1alpha.KeyEvent.DefaultValue
  • 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<KeyEvent.DefaultValue.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<KeyEvent.DefaultValue.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<KeyEvent.DefaultValue.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public KeyEvent.DefaultValue.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<KeyEvent.DefaultValue.Builder>
      Throws:
      IOException
    • getNumericValue

      public double getNumericValue()
       Required. This will be used to populate the "value" parameter for all
       occurrences of this Key Event (specified by event_name) where that
       parameter is unset.
       
      double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNumericValue in interface KeyEvent.DefaultValueOrBuilder
      Returns:
      The numericValue.
    • setNumericValue

      public KeyEvent.DefaultValue.Builder setNumericValue(double value)
       Required. This will be used to populate the "value" parameter for all
       occurrences of this Key Event (specified by event_name) where that
       parameter is unset.
       
      double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The numericValue to set.
      Returns:
      This builder for chaining.
    • clearNumericValue

      public KeyEvent.DefaultValue.Builder clearNumericValue()
       Required. This will be used to populate the "value" parameter for all
       occurrences of this Key Event (specified by event_name) where that
       parameter is unset.
       
      double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getCurrencyCode

      public String getCurrencyCode()
       Required. When an occurrence of this Key Event (specified by 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.
       
      string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCurrencyCode in interface KeyEvent.DefaultValueOrBuilder
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      public com.google.protobuf.ByteString getCurrencyCodeBytes()
       Required. When an occurrence of this Key Event (specified by 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.
       
      string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCurrencyCodeBytes in interface KeyEvent.DefaultValueOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

      public KeyEvent.DefaultValue.Builder setCurrencyCode(String value)
       Required. When an occurrence of this Key Event (specified by 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.
       
      string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The currencyCode to set.
      Returns:
      This builder for chaining.
    • clearCurrencyCode

      public KeyEvent.DefaultValue.Builder clearCurrencyCode()
       Required. When an occurrence of this Key Event (specified by 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.
       
      string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCurrencyCodeBytes

      public KeyEvent.DefaultValue.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       Required. When an occurrence of this Key Event (specified by 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.
       
      string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for currencyCode to set.
      Returns:
      This builder for chaining.