Class EventMapping.Builder

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

public static final class EventMapping.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventMapping.Builder> implements EventMappingOrBuilder
 Event setting conditions to match an event.
 
Protobuf type google.analytics.admin.v1alpha.EventMapping
  • 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<EventMapping.Builder>
    • clear

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

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

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

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

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

      public EventMapping.Builder mergeFrom(EventMapping other)
    • isInitialized

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

      public EventMapping.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<EventMapping.Builder>
      Throws:
      IOException
    • getEventName

      public String getEventName()
       Required. Name of the Google Analytics event. It must always be set.
       The max allowed display name length is 40 UTF-16 code units.
       
      string event_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventName in interface EventMappingOrBuilder
      Returns:
      The eventName.
    • getEventNameBytes

      public com.google.protobuf.ByteString getEventNameBytes()
       Required. Name of the Google Analytics event. It must always be set.
       The max allowed display name length is 40 UTF-16 code units.
       
      string event_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEventNameBytes in interface EventMappingOrBuilder
      Returns:
      The bytes for eventName.
    • setEventName

      public EventMapping.Builder setEventName(String value)
       Required. Name of the Google Analytics event. It must always be set.
       The max allowed display name length is 40 UTF-16 code units.
       
      string event_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The eventName to set.
      Returns:
      This builder for chaining.
    • clearEventName

      public EventMapping.Builder clearEventName()
       Required. Name of the Google Analytics event. It must always be set.
       The max allowed display name length is 40 UTF-16 code units.
       
      string event_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setEventNameBytes

      public EventMapping.Builder setEventNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the Google Analytics event. It must always be set.
       The max allowed display name length is 40 UTF-16 code units.
       
      string event_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for eventName to set.
      Returns:
      This builder for chaining.
    • hasMinEventCount

      public boolean hasMinEventCount()
       At least one of the following four min/max values must be set. The
       values set will be ANDed together to qualify an event.
       The minimum number of times the event occurred. If not set, minimum event
       count won't be checked.
       
      optional int64 min_event_count = 2;
      Specified by:
      hasMinEventCount in interface EventMappingOrBuilder
      Returns:
      Whether the minEventCount field is set.
    • getMinEventCount

      public long getMinEventCount()
       At least one of the following four min/max values must be set. The
       values set will be ANDed together to qualify an event.
       The minimum number of times the event occurred. If not set, minimum event
       count won't be checked.
       
      optional int64 min_event_count = 2;
      Specified by:
      getMinEventCount in interface EventMappingOrBuilder
      Returns:
      The minEventCount.
    • setMinEventCount

      public EventMapping.Builder setMinEventCount(long value)
       At least one of the following four min/max values must be set. The
       values set will be ANDed together to qualify an event.
       The minimum number of times the event occurred. If not set, minimum event
       count won't be checked.
       
      optional int64 min_event_count = 2;
      Parameters:
      value - The minEventCount to set.
      Returns:
      This builder for chaining.
    • clearMinEventCount

      public EventMapping.Builder clearMinEventCount()
       At least one of the following four min/max values must be set. The
       values set will be ANDed together to qualify an event.
       The minimum number of times the event occurred. If not set, minimum event
       count won't be checked.
       
      optional int64 min_event_count = 2;
      Returns:
      This builder for chaining.
    • hasMaxEventCount

      public boolean hasMaxEventCount()
       The maximum number of times the event occurred. If not set, maximum event
       count won't be checked.
       
      optional int64 max_event_count = 3;
      Specified by:
      hasMaxEventCount in interface EventMappingOrBuilder
      Returns:
      Whether the maxEventCount field is set.
    • getMaxEventCount

      public long getMaxEventCount()
       The maximum number of times the event occurred. If not set, maximum event
       count won't be checked.
       
      optional int64 max_event_count = 3;
      Specified by:
      getMaxEventCount in interface EventMappingOrBuilder
      Returns:
      The maxEventCount.
    • setMaxEventCount

      public EventMapping.Builder setMaxEventCount(long value)
       The maximum number of times the event occurred. If not set, maximum event
       count won't be checked.
       
      optional int64 max_event_count = 3;
      Parameters:
      value - The maxEventCount to set.
      Returns:
      This builder for chaining.
    • clearMaxEventCount

      public EventMapping.Builder clearMaxEventCount()
       The maximum number of times the event occurred. If not set, maximum event
       count won't be checked.
       
      optional int64 max_event_count = 3;
      Returns:
      This builder for chaining.
    • hasMinEventValue

      public boolean hasMinEventValue()
       The minimum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, minimum event value won't be
       checked.
       
      optional double min_event_value = 4;
      Specified by:
      hasMinEventValue in interface EventMappingOrBuilder
      Returns:
      Whether the minEventValue field is set.
    • getMinEventValue

      public double getMinEventValue()
       The minimum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, minimum event value won't be
       checked.
       
      optional double min_event_value = 4;
      Specified by:
      getMinEventValue in interface EventMappingOrBuilder
      Returns:
      The minEventValue.
    • setMinEventValue

      public EventMapping.Builder setMinEventValue(double value)
       The minimum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, minimum event value won't be
       checked.
       
      optional double min_event_value = 4;
      Parameters:
      value - The minEventValue to set.
      Returns:
      This builder for chaining.
    • clearMinEventValue

      public EventMapping.Builder clearMinEventValue()
       The minimum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, minimum event value won't be
       checked.
       
      optional double min_event_value = 4;
      Returns:
      This builder for chaining.
    • hasMaxEventValue

      public boolean hasMaxEventValue()
       The maximum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, maximum event value won't be
       checked.
       
      optional double max_event_value = 5;
      Specified by:
      hasMaxEventValue in interface EventMappingOrBuilder
      Returns:
      Whether the maxEventValue field is set.
    • getMaxEventValue

      public double getMaxEventValue()
       The maximum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, maximum event value won't be
       checked.
       
      optional double max_event_value = 5;
      Specified by:
      getMaxEventValue in interface EventMappingOrBuilder
      Returns:
      The maxEventValue.
    • setMaxEventValue

      public EventMapping.Builder setMaxEventValue(double value)
       The maximum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, maximum event value won't be
       checked.
       
      optional double max_event_value = 5;
      Parameters:
      value - The maxEventValue to set.
      Returns:
      This builder for chaining.
    • clearMaxEventValue

      public EventMapping.Builder clearMaxEventValue()
       The maximum revenue generated due to the event. Revenue currency will be
       defined at the property level. If not set, maximum event value won't be
       checked.
       
      optional double max_event_value = 5;
      Returns:
      This builder for chaining.