Class ConversionEvent.Builder

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

public static final class ConversionEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversionEvent.Builder> implements ConversionEventOrBuilder
 A conversion event in a Google Analytics property.
 
Protobuf type google.analytics.admin.v1alpha.ConversionEvent
  • 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.Builder>
    • clear

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

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

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

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

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

      public ConversionEvent.Builder mergeFrom(ConversionEvent other)
    • isInitialized

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

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

      public String getName()
       Identifier. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ConversionEventOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ConversionEventOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ConversionEvent.Builder setName(String value)
       Identifier. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ConversionEvent.Builder clearName()
       Identifier. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ConversionEvent.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEventName

      public String getEventName()
       Immutable. The event name for this conversion event.
       Examples: 'click', 'purchase'
       
      string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getEventName in interface ConversionEventOrBuilder
      Returns:
      The eventName.
    • getEventNameBytes

      public com.google.protobuf.ByteString getEventNameBytes()
       Immutable. The event name for this conversion event.
       Examples: 'click', 'purchase'
       
      string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getEventNameBytes in interface ConversionEventOrBuilder
      Returns:
      The bytes for eventName.
    • setEventName

      public ConversionEvent.Builder setEventName(String value)
       Immutable. The event name for this conversion event.
       Examples: 'click', 'purchase'
       
      string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The eventName to set.
      Returns:
      This builder for chaining.
    • clearEventName

      public ConversionEvent.Builder clearEventName()
       Immutable. The event name for this conversion event.
       Examples: 'click', 'purchase'
       
      string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setEventNameBytes

      public ConversionEvent.Builder setEventNameBytes(com.google.protobuf.ByteString value)
       Immutable. The event name for this conversion event.
       Examples: 'click', 'purchase'
       
      string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for eventName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ConversionEventOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ConversionEventOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ConversionEvent.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public ConversionEvent.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public ConversionEvent.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public ConversionEvent.Builder clearCreateTime()
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this conversion event was created in the property.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ConversionEventOrBuilder
    • getDeletable

      public boolean getDeletable()
       Output only. If set, this event can currently be deleted with
       DeleteConversionEvent.
       
      bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeletable in interface ConversionEventOrBuilder
      Returns:
      The deletable.
    • setDeletable

      public ConversionEvent.Builder setDeletable(boolean value)
       Output only. If set, this event can currently be deleted with
       DeleteConversionEvent.
       
      bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The deletable to set.
      Returns:
      This builder for chaining.
    • clearDeletable

      public ConversionEvent.Builder clearDeletable()
       Output only. If set, this event can currently be deleted with
       DeleteConversionEvent.
       
      bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCustom

      public boolean getCustom()
       Output only. If set to true, this conversion event refers to a custom
       event.  If set to false, this conversion event refers to a default event in
       GA. Default events typically have special meaning in GA. Default events are
       usually created for you by the GA system, but in some cases can be created
       by property admins. Custom events count towards the maximum number of
       custom conversion events that may be created per property.
       
      bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCustom in interface ConversionEventOrBuilder
      Returns:
      The custom.
    • setCustom

      public ConversionEvent.Builder setCustom(boolean value)
       Output only. If set to true, this conversion event refers to a custom
       event.  If set to false, this conversion event refers to a default event in
       GA. Default events typically have special meaning in GA. Default events are
       usually created for you by the GA system, but in some cases can be created
       by property admins. Custom events count towards the maximum number of
       custom conversion events that may be created per property.
       
      bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The custom to set.
      Returns:
      This builder for chaining.
    • clearCustom

      public ConversionEvent.Builder clearCustom()
       Output only. If set to true, this conversion event refers to a custom
       event.  If set to false, this conversion event refers to a default event in
       GA. Default events typically have special meaning in GA. Default events are
       usually created for you by the GA system, but in some cases can be created
       by property admins. Custom events count towards the maximum number of
       custom conversion events that may be created per property.
       
      bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCountingMethodValue

      public int getCountingMethodValue()
       Optional. The method by which conversions will be counted across multiple
       events within a session. If this value is not provided, it will be set to
       `ONCE_PER_EVENT`.
       
      .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCountingMethodValue in interface ConversionEventOrBuilder
      Returns:
      The enum numeric value on the wire for countingMethod.
    • setCountingMethodValue

      public ConversionEvent.Builder setCountingMethodValue(int value)
       Optional. The method by which conversions will be counted across multiple
       events within a session. If this value is not provided, it will be set to
       `ONCE_PER_EVENT`.
       
      .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for countingMethod to set.
      Returns:
      This builder for chaining.
    • getCountingMethod

      public ConversionEvent.ConversionCountingMethod getCountingMethod()
       Optional. The method by which conversions will be counted across multiple
       events within a session. If this value is not provided, it will be set to
       `ONCE_PER_EVENT`.
       
      .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCountingMethod in interface ConversionEventOrBuilder
      Returns:
      The countingMethod.
    • setCountingMethod

       Optional. The method by which conversions will be counted across multiple
       events within a session. If this value is not provided, it will be set to
       `ONCE_PER_EVENT`.
       
      .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The countingMethod to set.
      Returns:
      This builder for chaining.
    • clearCountingMethod

      public ConversionEvent.Builder clearCountingMethod()
       Optional. The method by which conversions will be counted across multiple
       events within a session. If this value is not provided, it will be set to
       `ONCE_PER_EVENT`.
       
      .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasDefaultConversionValue

      public boolean hasDefaultConversionValue()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDefaultConversionValue in interface ConversionEventOrBuilder
      Returns:
      Whether the defaultConversionValue field is set.
    • getDefaultConversionValue

      public ConversionEvent.DefaultConversionValue getDefaultConversionValue()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultConversionValue in interface ConversionEventOrBuilder
      Returns:
      The defaultConversionValue.
    • setDefaultConversionValue

      public ConversionEvent.Builder setDefaultConversionValue(ConversionEvent.DefaultConversionValue value)
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setDefaultConversionValue

      public ConversionEvent.Builder setDefaultConversionValue(ConversionEvent.DefaultConversionValue.Builder builderForValue)
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDefaultConversionValue

      public ConversionEvent.Builder mergeDefaultConversionValue(ConversionEvent.DefaultConversionValue value)
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearDefaultConversionValue

      public ConversionEvent.Builder clearDefaultConversionValue()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getDefaultConversionValueBuilder

      public ConversionEvent.DefaultConversionValue.Builder getDefaultConversionValueBuilder()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getDefaultConversionValueOrBuilder

      public ConversionEvent.DefaultConversionValueOrBuilder getDefaultConversionValueOrBuilder()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultConversionValueOrBuilder in interface ConversionEventOrBuilder