Class CommonData.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, CommonDataOrBuilder, java.lang.Cloneable
    Enclosing class:
    CommonData

    public static final class CommonData.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<CommonData,​CommonData.Builder>
    implements CommonDataOrBuilder
    Protobuf type streamlayer.analytics.v2.streaming.CommonData
    • Method Detail

      • hasEventId

        public boolean hasEventId()
         current event id
         
        optional uint64 event_id = 1 [json_name = "eventId"];
        Specified by:
        hasEventId in interface CommonDataOrBuilder
        Returns:
        Whether the eventId field is set.
      • getEventId

        public long getEventId()
         current event id
         
        optional uint64 event_id = 1 [json_name = "eventId"];
        Specified by:
        getEventId in interface CommonDataOrBuilder
        Returns:
        The eventId.
      • setEventId

        public CommonData.Builder setEventId​(long value)
         current event id
         
        optional uint64 event_id = 1 [json_name = "eventId"];
        Parameters:
        value - The eventId to set.
        Returns:
        This builder for chaining.
      • clearEventId

        public CommonData.Builder clearEventId()
         current event id
         
        optional uint64 event_id = 1 [json_name = "eventId"];
        Returns:
        This builder for chaining.
      • hasCategory

        public boolean hasCategory()
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Specified by:
        hasCategory in interface CommonDataOrBuilder
        Returns:
        Whether the category field is set.
      • getCategoryValue

        public int getCategoryValue()
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Specified by:
        getCategoryValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for category.
      • setCategoryValue

        public CommonData.Builder setCategoryValue​(int value)
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Parameters:
        value - The category to set.
        Returns:
        This builder for chaining.
      • getCategory

        public Category getCategory()
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Specified by:
        getCategory in interface CommonDataOrBuilder
        Returns:
        The category.
      • setCategory

        public CommonData.Builder setCategory​(Category value)
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Parameters:
        value - The enum numeric value on the wire for category to set.
        Returns:
        This builder for chaining.
      • clearCategory

        public CommonData.Builder clearCategory()
         category
         
        optional .streamlayer.analytics.v1.common.Category category = 2 [json_name = "category"];
        Returns:
        This builder for chaining.
      • hasKind

        public boolean hasKind()
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Specified by:
        hasKind in interface CommonDataOrBuilder
        Returns:
        Whether the kind field is set.
      • getKindValue

        public int getKindValue()
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Specified by:
        getKindValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for kind.
      • setKindValue

        public CommonData.Builder setKindValue​(int value)
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • getKind

        public Kind getKind()
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Specified by:
        getKind in interface CommonDataOrBuilder
        Returns:
        The kind.
      • setKind

        public CommonData.Builder setKind​(Kind value)
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Parameters:
        value - The enum numeric value on the wire for kind to set.
        Returns:
        This builder for chaining.
      • clearKind

        public CommonData.Builder clearKind()
         kind
         
        optional .streamlayer.analytics.v1.common.Kind kind = 3 [json_name = "kind"];
        Returns:
        This builder for chaining.
      • hasScreenOrientation

        public boolean hasScreenOrientation()
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Specified by:
        hasScreenOrientation in interface CommonDataOrBuilder
        Returns:
        Whether the screenOrientation field is set.
      • getScreenOrientationValue

        public int getScreenOrientationValue()
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Specified by:
        getScreenOrientationValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for screenOrientation.
      • setScreenOrientationValue

        public CommonData.Builder setScreenOrientationValue​(int value)
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Parameters:
        value - The screenOrientation to set.
        Returns:
        This builder for chaining.
      • getScreenOrientation

        public ScreenOrientation getScreenOrientation()
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Specified by:
        getScreenOrientation in interface CommonDataOrBuilder
        Returns:
        The screenOrientation.
      • setScreenOrientation

        public CommonData.Builder setScreenOrientation​(ScreenOrientation value)
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Parameters:
        value - The enum numeric value on the wire for screenOrientation to set.
        Returns:
        This builder for chaining.
      • clearScreenOrientation

        public CommonData.Builder clearScreenOrientation()
         how we are holding device
         
        optional .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 4 [json_name = "screenOrientation"];
        Returns:
        This builder for chaining.
      • hasSessionId

        public boolean hasSessionId()
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Specified by:
        hasSessionId in interface CommonDataOrBuilder
        Returns:
        Whether the sessionId field is set.
      • getSessionId

        public java.lang.String getSessionId()
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Specified by:
        getSessionId in interface CommonDataOrBuilder
        Returns:
        The sessionId.
      • getSessionIdBytes

        public com.google.protobuf.ByteString getSessionIdBytes()
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Specified by:
        getSessionIdBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for sessionId.
      • setSessionId

        public CommonData.Builder setSessionId​(java.lang.String value)
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Parameters:
        value - The sessionId to set.
        Returns:
        This builder for chaining.
      • clearSessionId

        public CommonData.Builder clearSessionId()
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Returns:
        This builder for chaining.
      • setSessionIdBytes

        public CommonData.Builder setSessionIdBytes​(com.google.protobuf.ByteString value)
         session id
         
        optional string session_id = 5 [json_name = "sessionId"];
        Parameters:
        value - The bytes for sessionId to set.
        Returns:
        This builder for chaining.
      • hasOverlaySessionId

        public boolean hasOverlaySessionId()
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Specified by:
        hasOverlaySessionId in interface CommonDataOrBuilder
        Returns:
        Whether the overlaySessionId field is set.
      • getOverlaySessionId

        public java.lang.String getOverlaySessionId()
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Specified by:
        getOverlaySessionId in interface CommonDataOrBuilder
        Returns:
        The overlaySessionId.
      • getOverlaySessionIdBytes

        public com.google.protobuf.ByteString getOverlaySessionIdBytes()
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Specified by:
        getOverlaySessionIdBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for overlaySessionId.
      • setOverlaySessionId

        public CommonData.Builder setOverlaySessionId​(java.lang.String value)
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Parameters:
        value - The overlaySessionId to set.
        Returns:
        This builder for chaining.
      • clearOverlaySessionId

        public CommonData.Builder clearOverlaySessionId()
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Returns:
        This builder for chaining.
      • setOverlaySessionIdBytes

        public CommonData.Builder setOverlaySessionIdBytes​(com.google.protobuf.ByteString value)
         overlay_session id
         
        optional string overlay_session_id = 6 [json_name = "overlaySessionId"];
        Parameters:
        value - The bytes for overlaySessionId to set.
        Returns:
        This builder for chaining.
      • hasTopicId

        public boolean hasTopicId()
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Specified by:
        hasTopicId in interface CommonDataOrBuilder
        Returns:
        Whether the topicId field is set.
      • getTopicId

        public java.lang.String getTopicId()
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Specified by:
        getTopicId in interface CommonDataOrBuilder
        Returns:
        The topicId.
      • getTopicIdBytes

        public com.google.protobuf.ByteString getTopicIdBytes()
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Specified by:
        getTopicIdBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for topicId.
      • setTopicId

        public CommonData.Builder setTopicId​(java.lang.String value)
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Parameters:
        value - The topicId to set.
        Returns:
        This builder for chaining.
      • clearTopicId

        public CommonData.Builder clearTopicId()
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Returns:
        This builder for chaining.
      • setTopicIdBytes

        public CommonData.Builder setTopicIdBytes​(com.google.protobuf.ByteString value)
         topic id
         
        optional string topic_id = 7 [json_name = "topicId"];
        Parameters:
        value - The bytes for topicId to set.
        Returns:
        This builder for chaining.
      • hasTopicType

        public boolean hasTopicType()
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Specified by:
        hasTopicType in interface CommonDataOrBuilder
        Returns:
        Whether the topicType field is set.
      • getTopicTypeValue

        public int getTopicTypeValue()
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Specified by:
        getTopicTypeValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for topicType.
      • setTopicTypeValue

        public CommonData.Builder setTopicTypeValue​(int value)
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Parameters:
        value - The topicType to set.
        Returns:
        This builder for chaining.
      • getTopicType

        public TopicType getTopicType()
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Specified by:
        getTopicType in interface CommonDataOrBuilder
        Returns:
        The topicType.
      • setTopicType

        public CommonData.Builder setTopicType​(TopicType value)
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Parameters:
        value - The enum numeric value on the wire for topicType to set.
        Returns:
        This builder for chaining.
      • clearTopicType

        public CommonData.Builder clearTopicType()
         topic type
         
        optional .streamlayer.analytics.v1.common.TopicType topic_type = 8 [json_name = "topicType"];
        Returns:
        This builder for chaining.
      • hasParentTopicId

        public boolean hasParentTopicId()
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Specified by:
        hasParentTopicId in interface CommonDataOrBuilder
        Returns:
        Whether the parentTopicId field is set.
      • getParentTopicId

        public java.lang.String getParentTopicId()
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Specified by:
        getParentTopicId in interface CommonDataOrBuilder
        Returns:
        The parentTopicId.
      • getParentTopicIdBytes

        public com.google.protobuf.ByteString getParentTopicIdBytes()
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Specified by:
        getParentTopicIdBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for parentTopicId.
      • setParentTopicId

        public CommonData.Builder setParentTopicId​(java.lang.String value)
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Parameters:
        value - The parentTopicId to set.
        Returns:
        This builder for chaining.
      • clearParentTopicId

        public CommonData.Builder clearParentTopicId()
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Returns:
        This builder for chaining.
      • setParentTopicIdBytes

        public CommonData.Builder setParentTopicIdBytes​(com.google.protobuf.ByteString value)
         parent topic id
         
        optional string parent_topic_id = 9 [json_name = "parentTopicId"];
        Parameters:
        value - The bytes for parentTopicId to set.
        Returns:
        This builder for chaining.
      • hasParentTopicType

        public boolean hasParentTopicType()
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Specified by:
        hasParentTopicType in interface CommonDataOrBuilder
        Returns:
        Whether the parentTopicType field is set.
      • getParentTopicTypeValue

        public int getParentTopicTypeValue()
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Specified by:
        getParentTopicTypeValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for parentTopicType.
      • setParentTopicTypeValue

        public CommonData.Builder setParentTopicTypeValue​(int value)
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Parameters:
        value - The parentTopicType to set.
        Returns:
        This builder for chaining.
      • getParentTopicType

        public TopicType getParentTopicType()
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Specified by:
        getParentTopicType in interface CommonDataOrBuilder
        Returns:
        The parentTopicType.
      • setParentTopicType

        public CommonData.Builder setParentTopicType​(TopicType value)
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Parameters:
        value - The enum numeric value on the wire for parentTopicType to set.
        Returns:
        This builder for chaining.
      • clearParentTopicType

        public CommonData.Builder clearParentTopicType()
         parent topic type
         
        optional .streamlayer.analytics.v1.common.TopicType parent_topic_type = 10 [json_name = "parentTopicType"];
        Returns:
        This builder for chaining.
      • hasParticipantsCount

        public boolean hasParticipantsCount()
         participants count
         
        optional uint32 participants_count = 11 [json_name = "participantsCount"];
        Specified by:
        hasParticipantsCount in interface CommonDataOrBuilder
        Returns:
        Whether the participantsCount field is set.
      • getParticipantsCount

        public int getParticipantsCount()
         participants count
         
        optional uint32 participants_count = 11 [json_name = "participantsCount"];
        Specified by:
        getParticipantsCount in interface CommonDataOrBuilder
        Returns:
        The participantsCount.
      • setParticipantsCount

        public CommonData.Builder setParticipantsCount​(int value)
         participants count
         
        optional uint32 participants_count = 11 [json_name = "participantsCount"];
        Parameters:
        value - The participantsCount to set.
        Returns:
        This builder for chaining.
      • clearParticipantsCount

        public CommonData.Builder clearParticipantsCount()
         participants count
         
        optional uint32 participants_count = 11 [json_name = "participantsCount"];
        Returns:
        This builder for chaining.
      • hasRouteMap

        public boolean hasRouteMap()
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Specified by:
        hasRouteMap in interface CommonDataOrBuilder
        Returns:
        Whether the routeMap field is set.
      • getRouteMap

        public java.lang.String getRouteMap()
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Specified by:
        getRouteMap in interface CommonDataOrBuilder
        Returns:
        The routeMap.
      • getRouteMapBytes

        public com.google.protobuf.ByteString getRouteMapBytes()
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Specified by:
        getRouteMapBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for routeMap.
      • setRouteMap

        public CommonData.Builder setRouteMap​(java.lang.String value)
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Parameters:
        value - The routeMap to set.
        Returns:
        This builder for chaining.
      • clearRouteMap

        public CommonData.Builder clearRouteMap()
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Returns:
        This builder for chaining.
      • setRouteMapBytes

        public CommonData.Builder setRouteMapBytes​(com.google.protobuf.ByteString value)
         where we are in the app right now
         
        optional string route_map = 12 [json_name = "routeMap"];
        Parameters:
        value - The bytes for routeMap to set.
        Returns:
        This builder for chaining.
      • hasTrackTimestamp

        public boolean hasTrackTimestamp()
         event time
         
        optional uint64 track_timestamp = 13 [json_name = "trackTimestamp"];
        Specified by:
        hasTrackTimestamp in interface CommonDataOrBuilder
        Returns:
        Whether the trackTimestamp field is set.
      • getTrackTimestamp

        public long getTrackTimestamp()
         event time
         
        optional uint64 track_timestamp = 13 [json_name = "trackTimestamp"];
        Specified by:
        getTrackTimestamp in interface CommonDataOrBuilder
        Returns:
        The trackTimestamp.
      • setTrackTimestamp

        public CommonData.Builder setTrackTimestamp​(long value)
         event time
         
        optional uint64 track_timestamp = 13 [json_name = "trackTimestamp"];
        Parameters:
        value - The trackTimestamp to set.
        Returns:
        This builder for chaining.
      • clearTrackTimestamp

        public CommonData.Builder clearTrackTimestamp()
         event time
         
        optional uint64 track_timestamp = 13 [json_name = "trackTimestamp"];
        Returns:
        This builder for chaining.
      • hasTopicSubType

        public boolean hasTopicSubType()
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Specified by:
        hasTopicSubType in interface CommonDataOrBuilder
        Returns:
        Whether the topicSubType field is set.
      • getTopicSubTypeValue

        public int getTopicSubTypeValue()
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Specified by:
        getTopicSubTypeValue in interface CommonDataOrBuilder
        Returns:
        The enum numeric value on the wire for topicSubType.
      • setTopicSubTypeValue

        public CommonData.Builder setTopicSubTypeValue​(int value)
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Parameters:
        value - The topicSubType to set.
        Returns:
        This builder for chaining.
      • getTopicSubType

        public TopicSubType getTopicSubType()
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Specified by:
        getTopicSubType in interface CommonDataOrBuilder
        Returns:
        The topicSubType.
      • setTopicSubType

        public CommonData.Builder setTopicSubType​(TopicSubType value)
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Parameters:
        value - The enum numeric value on the wire for topicSubType to set.
        Returns:
        This builder for chaining.
      • clearTopicSubType

        public CommonData.Builder clearTopicSubType()
         currently used in gamification, but it is common enough to include here
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 14 [json_name = "topicSubType"];
        Returns:
        This builder for chaining.
      • hasCountry

        public boolean hasCountry()
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Specified by:
        hasCountry in interface CommonDataOrBuilder
        Returns:
        Whether the country field is set.
      • getCountry

        public java.lang.String getCountry()
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Specified by:
        getCountry in interface CommonDataOrBuilder
        Returns:
        The country.
      • getCountryBytes

        public com.google.protobuf.ByteString getCountryBytes()
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Specified by:
        getCountryBytes in interface CommonDataOrBuilder
        Returns:
        The bytes for country.
      • setCountry

        public CommonData.Builder setCountry​(java.lang.String value)
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Parameters:
        value - The country to set.
        Returns:
        This builder for chaining.
      • clearCountry

        public CommonData.Builder clearCountry()
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Returns:
        This builder for chaining.
      • setCountryBytes

        public CommonData.Builder setCountryBytes​(com.google.protobuf.ByteString value)
         country from which the request was made
         
        optional string country = 15 [json_name = "country"];
        Parameters:
        value - The bytes for country to set.
        Returns:
        This builder for chaining.