Class SendPollsRequest.CreateRequestData.Builder

    • Method Detail

      • setEventId

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

        public SendPollsRequest.CreateRequestData.Builder setUserId​(long value)
         user id
         
        uint64 user_id = 2 [json_name = "userId"];
        Parameters:
        value - The userId to set.
        Returns:
        This builder for chaining.
      • setCategoryValue

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

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

        public SendPollsRequest.CreateRequestData.Builder setKindValue​(int value)
         kind: KIND_POLLS_VOTE
         
        .streamlayer.analytics.v1.common.Kind kind = 5 [json_name = "kind"];
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • setKind

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

        public SendPollsRequest.CreateRequestData.Builder setTrackTimestamp​(com.google.protobuf.Timestamp value)
         track timestamp
         
        .google.protobuf.Timestamp track_timestamp = 6 [json_name = "trackTimestamp"];
      • setTrackTimestamp

        public SendPollsRequest.CreateRequestData.Builder setTrackTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         track timestamp
         
        .google.protobuf.Timestamp track_timestamp = 6 [json_name = "trackTimestamp"];
      • mergeTrackTimestamp

        public SendPollsRequest.CreateRequestData.Builder mergeTrackTimestamp​(com.google.protobuf.Timestamp value)
         track timestamp
         
        .google.protobuf.Timestamp track_timestamp = 6 [json_name = "trackTimestamp"];
      • setRouteMap

        public SendPollsRequest.CreateRequestData.Builder setRouteMap​(java.lang.String value)
         route map
         
        string route_map = 7 [json_name = "routeMap"];
        Parameters:
        value - The routeMap to set.
        Returns:
        This builder for chaining.
      • setRouteMapBytes

        public SendPollsRequest.CreateRequestData.Builder setRouteMapBytes​(com.google.protobuf.ByteString value)
         route map
         
        string route_map = 7 [json_name = "routeMap"];
        Parameters:
        value - The bytes for routeMap to set.
        Returns:
        This builder for chaining.
      • setDeviceId

        public SendPollsRequest.CreateRequestData.Builder setDeviceId​(java.lang.String value)
         device id
         
        string device_id = 8 [json_name = "deviceId"];
        Parameters:
        value - The deviceId to set.
        Returns:
        This builder for chaining.
      • setDeviceIdBytes

        public SendPollsRequest.CreateRequestData.Builder setDeviceIdBytes​(com.google.protobuf.ByteString value)
         device id
         
        string device_id = 8 [json_name = "deviceId"];
        Parameters:
        value - The bytes for deviceId to set.
        Returns:
        This builder for chaining.
      • setOs

        public SendPollsRequest.CreateRequestData.Builder setOs​(java.lang.String value)
         operating system
         
        string os = 9 [json_name = "os"];
        Parameters:
        value - The os to set.
        Returns:
        This builder for chaining.
      • setOsBytes

        public SendPollsRequest.CreateRequestData.Builder setOsBytes​(com.google.protobuf.ByteString value)
         operating system
         
        string os = 9 [json_name = "os"];
        Parameters:
        value - The bytes for os to set.
        Returns:
        This builder for chaining.
      • setUserAgent

        public SendPollsRequest.CreateRequestData.Builder setUserAgent​(java.lang.String value)
         user agent
         
        string user_agent = 10 [json_name = "userAgent"];
        Parameters:
        value - The userAgent to set.
        Returns:
        This builder for chaining.
      • setUserAgentBytes

        public SendPollsRequest.CreateRequestData.Builder setUserAgentBytes​(com.google.protobuf.ByteString value)
         user agent
         
        string user_agent = 10 [json_name = "userAgent"];
        Parameters:
        value - The bytes for userAgent to set.
        Returns:
        This builder for chaining.
      • setSlSdkVersion

        public SendPollsRequest.CreateRequestData.Builder setSlSdkVersion​(java.lang.String value)
         sdk version
         
        string sl_sdk_version = 11 [json_name = "slSdkVersion"];
        Parameters:
        value - The slSdkVersion to set.
        Returns:
        This builder for chaining.
      • setSlSdkVersionBytes

        public SendPollsRequest.CreateRequestData.Builder setSlSdkVersionBytes​(com.google.protobuf.ByteString value)
         sdk version
         
        string sl_sdk_version = 11 [json_name = "slSdkVersion"];
        Parameters:
        value - The bytes for slSdkVersion to set.
        Returns:
        This builder for chaining.
      • setSessionId

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

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

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

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

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

        public SendPollsRequest.CreateRequestData.Builder setTopicId​(java.lang.String value)
         poll id
         
        string topic_id = 14 [json_name = "topicId"];
        Parameters:
        value - The topicId to set.
        Returns:
        This builder for chaining.
      • setTopicIdBytes

        public SendPollsRequest.CreateRequestData.Builder setTopicIdBytes​(com.google.protobuf.ByteString value)
         poll id
         
        string topic_id = 14 [json_name = "topicId"];
        Parameters:
        value - The bytes for topicId to set.
        Returns:
        This builder for chaining.
      • setUserIdStr

        public SendPollsRequest.CreateRequestData.Builder setUserIdStr​(java.lang.String value)
         user id as String
         
        string user_id_str = 15 [json_name = "userIdStr"];
        Parameters:
        value - The userIdStr to set.
        Returns:
        This builder for chaining.
      • setUserIdStrBytes

        public SendPollsRequest.CreateRequestData.Builder setUserIdStrBytes​(com.google.protobuf.ByteString value)
         user id as String
         
        string user_id_str = 15 [json_name = "userIdStr"];
        Parameters:
        value - The bytes for userIdStr to set.
        Returns:
        This builder for chaining.
      • getScreenOrientationValue

        public int getScreenOrientationValue()
         screen orientation
         
        .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 16 [json_name = "screenOrientation"];
        Specified by:
        getScreenOrientationValue in interface SendPollsRequest.CreateRequestDataOrBuilder
        Returns:
        The enum numeric value on the wire for screenOrientation.
      • setScreenOrientationValue

        public SendPollsRequest.CreateRequestData.Builder setScreenOrientationValue​(int value)
         screen orientation
         
        .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 16 [json_name = "screenOrientation"];
        Parameters:
        value - The screenOrientation to set.
        Returns:
        This builder for chaining.
      • setScreenOrientation

        public SendPollsRequest.CreateRequestData.Builder setScreenOrientation​(ScreenOrientation value)
         screen orientation
         
        .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 16 [json_name = "screenOrientation"];
        Parameters:
        value - The enum numeric value on the wire for screenOrientation to set.
        Returns:
        This builder for chaining.
      • clearScreenOrientation

        public SendPollsRequest.CreateRequestData.Builder clearScreenOrientation()
         screen orientation
         
        .streamlayer.analytics.v1.common.ScreenOrientation screen_orientation = 16 [json_name = "screenOrientation"];
        Returns:
        This builder for chaining.
      • setTopicTypeValue

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

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

        public SendPollsRequest.CreateRequestData.Builder clearTopicType()
         topic type
         
        .streamlayer.analytics.v1.common.TopicType topic_type = 17 [json_name = "topicType"];
        Returns:
        This builder for chaining.
      • getPollOpenedFromValue

        public int getPollOpenedFromValue()
         poll opened from
         
        .streamlayer.analytics.v1.common.PollOpenedFrom poll_opened_from = 18 [json_name = "pollOpenedFrom"];
        Specified by:
        getPollOpenedFromValue in interface SendPollsRequest.CreateRequestDataOrBuilder
        Returns:
        The enum numeric value on the wire for pollOpenedFrom.
      • setPollOpenedFromValue

        public SendPollsRequest.CreateRequestData.Builder setPollOpenedFromValue​(int value)
         poll opened from
         
        .streamlayer.analytics.v1.common.PollOpenedFrom poll_opened_from = 18 [json_name = "pollOpenedFrom"];
        Parameters:
        value - The pollOpenedFrom to set.
        Returns:
        This builder for chaining.
      • setPollOpenedFrom

        public SendPollsRequest.CreateRequestData.Builder setPollOpenedFrom​(PollOpenedFrom value)
         poll opened from
         
        .streamlayer.analytics.v1.common.PollOpenedFrom poll_opened_from = 18 [json_name = "pollOpenedFrom"];
        Parameters:
        value - The enum numeric value on the wire for pollOpenedFrom to set.
        Returns:
        This builder for chaining.
      • clearPollOpenedFrom

        public SendPollsRequest.CreateRequestData.Builder clearPollOpenedFrom()
         poll opened from
         
        .streamlayer.analytics.v1.common.PollOpenedFrom poll_opened_from = 18 [json_name = "pollOpenedFrom"];
        Returns:
        This builder for chaining.
      • hasTopicSubType

        public boolean hasTopicSubType()
         Required for promotion topic type e.g. promotion in-game 2:1
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 19 [json_name = "topicSubType"];
        Specified by:
        hasTopicSubType in interface SendPollsRequest.CreateRequestDataOrBuilder
        Returns:
        Whether the topicSubType field is set.
      • getTopicSubTypeValue

        public int getTopicSubTypeValue()
         Required for promotion topic type e.g. promotion in-game 2:1
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 19 [json_name = "topicSubType"];
        Specified by:
        getTopicSubTypeValue in interface SendPollsRequest.CreateRequestDataOrBuilder
        Returns:
        The enum numeric value on the wire for topicSubType.
      • setTopicSubTypeValue

        public SendPollsRequest.CreateRequestData.Builder setTopicSubTypeValue​(int value)
         Required for promotion topic type e.g. promotion in-game 2:1
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 19 [json_name = "topicSubType"];
        Parameters:
        value - The topicSubType to set.
        Returns:
        This builder for chaining.
      • setTopicSubType

        public SendPollsRequest.CreateRequestData.Builder setTopicSubType​(TopicSubType value)
         Required for promotion topic type e.g. promotion in-game 2:1
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 19 [json_name = "topicSubType"];
        Parameters:
        value - The enum numeric value on the wire for topicSubType to set.
        Returns:
        This builder for chaining.
      • clearTopicSubType

        public SendPollsRequest.CreateRequestData.Builder clearTopicSubType()
         Required for promotion topic type e.g. promotion in-game 2:1
         
        optional .streamlayer.analytics.v1.common.TopicSubType topic_sub_type = 19 [json_name = "topicSubType"];
        Returns:
        This builder for chaining.