Class ConversionEvent

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.analytics.admin.v1beta.ConversionEvent
All Implemented Interfaces:
ConversionEventOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConversionEvent extends com.google.protobuf.GeneratedMessage implements ConversionEventOrBuilder
 A conversion event in a Google Analytics property.
 
Protobuf type google.analytics.admin.v1beta.ConversionEvent
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • EVENT_NAME_FIELD_NUMBER

      public static final int EVENT_NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • DELETABLE_FIELD_NUMBER

      public static final int DELETABLE_FIELD_NUMBER
      See Also:
    • CUSTOM_FIELD_NUMBER

      public static final int CUSTOM_FIELD_NUMBER
      See Also:
    • COUNTING_METHOD_FIELD_NUMBER

      public static final int COUNTING_METHOD_FIELD_NUMBER
      See Also:
    • DEFAULT_CONVERSION_VALUE_FIELD_NUMBER

      public static final int DEFAULT_CONVERSION_VALUE_FIELD_NUMBER
      See Also:
  • 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
    • getName

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

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of this conversion event.
       Format: properties/{property}/conversionEvents/{conversion_event}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface ConversionEventOrBuilder
      Returns:
      The bytes for name.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.v1beta.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.
    • 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.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCountingMethod in interface ConversionEventOrBuilder
      Returns:
      The countingMethod.
    • hasDefaultConversionValue

      public boolean hasDefaultConversionValue()
       Optional. Defines a default value/currency for a conversion event.
       
      optional .google.analytics.admin.v1beta.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.v1beta.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultConversionValue in interface ConversionEventOrBuilder
      Returns:
      The defaultConversionValue.
    • getDefaultConversionValueOrBuilder

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConversionEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConversionEvent parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversionEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversionEvent parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConversionEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversionEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConversionEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ConversionEvent.Builder newBuilder()
    • newBuilder

      public static ConversionEvent.Builder newBuilder(ConversionEvent prototype)
    • toBuilder

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

      protected ConversionEvent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConversionEvent getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConversionEvent> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConversionEvent> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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