Class EventSegmentExclusion.Builder

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

public static final class EventSegmentExclusion.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventSegmentExclusion.Builder> implements EventSegmentExclusionOrBuilder
 Specifies which events are excluded in this segment.
 
Protobuf type google.analytics.data.v1alpha.EventSegmentExclusion
  • 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<EventSegmentExclusion.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<EventSegmentExclusion.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<EventSegmentExclusion.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public EventSegmentExclusion.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<EventSegmentExclusion.Builder>
      Throws:
      IOException
    • getEventExclusionDurationValue

      public int getEventExclusionDurationValue()
       `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
      
       Optional. If unspecified, an `eventExclusionDuration` of
       `EVENT_EXCLUSION_PERMANENT` is used.
       
      .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
      Specified by:
      getEventExclusionDurationValue in interface EventSegmentExclusionOrBuilder
      Returns:
      The enum numeric value on the wire for eventExclusionDuration.
    • setEventExclusionDurationValue

      public EventSegmentExclusion.Builder setEventExclusionDurationValue(int value)
       `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
      
       Optional. If unspecified, an `eventExclusionDuration` of
       `EVENT_EXCLUSION_PERMANENT` is used.
       
      .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
      Parameters:
      value - The enum numeric value on the wire for eventExclusionDuration to set.
      Returns:
      This builder for chaining.
    • getEventExclusionDuration

      public EventExclusionDuration getEventExclusionDuration()
       `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
      
       Optional. If unspecified, an `eventExclusionDuration` of
       `EVENT_EXCLUSION_PERMANENT` is used.
       
      .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
      Specified by:
      getEventExclusionDuration in interface EventSegmentExclusionOrBuilder
      Returns:
      The eventExclusionDuration.
    • setEventExclusionDuration

      public EventSegmentExclusion.Builder setEventExclusionDuration(EventExclusionDuration value)
       `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
      
       Optional. If unspecified, an `eventExclusionDuration` of
       `EVENT_EXCLUSION_PERMANENT` is used.
       
      .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
      Parameters:
      value - The eventExclusionDuration to set.
      Returns:
      This builder for chaining.
    • clearEventExclusionDuration

      public EventSegmentExclusion.Builder clearEventExclusionDuration()
       `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
      
       Optional. If unspecified, an `eventExclusionDuration` of
       `EVENT_EXCLUSION_PERMANENT` is used.
       
      .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
      Returns:
      This builder for chaining.
    • hasEventExclusionCriteria

      public boolean hasEventExclusionCriteria()
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
      Specified by:
      hasEventExclusionCriteria in interface EventSegmentExclusionOrBuilder
      Returns:
      Whether the eventExclusionCriteria field is set.
    • getEventExclusionCriteria

      public EventSegmentCriteria getEventExclusionCriteria()
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
      Specified by:
      getEventExclusionCriteria in interface EventSegmentExclusionOrBuilder
      Returns:
      The eventExclusionCriteria.
    • setEventExclusionCriteria

      public EventSegmentExclusion.Builder setEventExclusionCriteria(EventSegmentCriteria value)
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
    • setEventExclusionCriteria

      public EventSegmentExclusion.Builder setEventExclusionCriteria(EventSegmentCriteria.Builder builderForValue)
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
    • mergeEventExclusionCriteria

      public EventSegmentExclusion.Builder mergeEventExclusionCriteria(EventSegmentCriteria value)
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
    • clearEventExclusionCriteria

      public EventSegmentExclusion.Builder clearEventExclusionCriteria()
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
    • getEventExclusionCriteriaBuilder

      public EventSegmentCriteria.Builder getEventExclusionCriteriaBuilder()
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
    • getEventExclusionCriteriaOrBuilder

      public EventSegmentCriteriaOrBuilder getEventExclusionCriteriaOrBuilder()
       If an event meets this condition, the event is excluded from membership
       in the segment for the `eventExclusionDuration`.
       
      .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
      Specified by:
      getEventExclusionCriteriaOrBuilder in interface EventSegmentExclusionOrBuilder