Class Event.Builder

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

    public static final class Event.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<Event,​Event.Builder>
    implements EventOrBuilder
    Protobuf type streamlayer.triggers.Event
    • Method Detail

      • getId

        public java.lang.String getId()
         unique raw event identifier from datasource
         
        string id = 1 [json_name = "id"];
        Specified by:
        getId in interface EventOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         unique raw event identifier from datasource
         
        string id = 1 [json_name = "id"];
        Specified by:
        getIdBytes in interface EventOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Event.Builder setId​(java.lang.String value)
         unique raw event identifier from datasource
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Event.Builder clearId()
         unique raw event identifier from datasource
         
        string id = 1 [json_name = "id"];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Event.Builder setIdBytes​(com.google.protobuf.ByteString value)
         unique raw event identifier from datasource
         
        string id = 1 [json_name = "id"];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getDatasource

        public java.lang.String getDatasource()
         datasource
         
        string datasource = 2 [json_name = "datasource"];
        Specified by:
        getDatasource in interface EventOrBuilder
        Returns:
        The datasource.
      • getDatasourceBytes

        public com.google.protobuf.ByteString getDatasourceBytes()
         datasource
         
        string datasource = 2 [json_name = "datasource"];
        Specified by:
        getDatasourceBytes in interface EventOrBuilder
        Returns:
        The bytes for datasource.
      • setDatasource

        public Event.Builder setDatasource​(java.lang.String value)
         datasource
         
        string datasource = 2 [json_name = "datasource"];
        Parameters:
        value - The datasource to set.
        Returns:
        This builder for chaining.
      • clearDatasource

        public Event.Builder clearDatasource()
         datasource
         
        string datasource = 2 [json_name = "datasource"];
        Returns:
        This builder for chaining.
      • setDatasourceBytes

        public Event.Builder setDatasourceBytes​(com.google.protobuf.ByteString value)
         datasource
         
        string datasource = 2 [json_name = "datasource"];
        Parameters:
        value - The bytes for datasource to set.
        Returns:
        This builder for chaining.
      • getScope

        public java.lang.String getScope()
         scope of event
         
        string scope = 3 [json_name = "scope"];
        Specified by:
        getScope in interface EventOrBuilder
        Returns:
        The scope.
      • getScopeBytes

        public com.google.protobuf.ByteString getScopeBytes()
         scope of event
         
        string scope = 3 [json_name = "scope"];
        Specified by:
        getScopeBytes in interface EventOrBuilder
        Returns:
        The bytes for scope.
      • setScope

        public Event.Builder setScope​(java.lang.String value)
         scope of event
         
        string scope = 3 [json_name = "scope"];
        Parameters:
        value - The scope to set.
        Returns:
        This builder for chaining.
      • clearScope

        public Event.Builder clearScope()
         scope of event
         
        string scope = 3 [json_name = "scope"];
        Returns:
        This builder for chaining.
      • setScopeBytes

        public Event.Builder setScopeBytes​(com.google.protobuf.ByteString value)
         scope of event
         
        string scope = 3 [json_name = "scope"];
        Parameters:
        value - The bytes for scope to set.
        Returns:
        This builder for chaining.
      • getScopeId

        public java.lang.String getScopeId()
         unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
         
        string scope_id = 4 [json_name = "scopeId"];
        Specified by:
        getScopeId in interface EventOrBuilder
        Returns:
        The scopeId.
      • getScopeIdBytes

        public com.google.protobuf.ByteString getScopeIdBytes()
         unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
         
        string scope_id = 4 [json_name = "scopeId"];
        Specified by:
        getScopeIdBytes in interface EventOrBuilder
        Returns:
        The bytes for scopeId.
      • setScopeId

        public Event.Builder setScopeId​(java.lang.String value)
         unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
         
        string scope_id = 4 [json_name = "scopeId"];
        Parameters:
        value - The scopeId to set.
        Returns:
        This builder for chaining.
      • clearScopeId

        public Event.Builder clearScopeId()
         unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
         
        string scope_id = 4 [json_name = "scopeId"];
        Returns:
        This builder for chaining.
      • setScopeIdBytes

        public Event.Builder setScopeIdBytes​(com.google.protobuf.ByteString value)
         unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
         
        string scope_id = 4 [json_name = "scopeId"];
        Parameters:
        value - The bytes for scopeId to set.
        Returns:
        This builder for chaining.
      • getName

        public java.lang.String getName()
         event name
         
        string name = 5 [json_name = "name"];
        Specified by:
        getName in interface EventOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         event name
         
        string name = 5 [json_name = "name"];
        Specified by:
        getNameBytes in interface EventOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Event.Builder setName​(java.lang.String value)
         event name
         
        string name = 5 [json_name = "name"];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Event.Builder clearName()
         event name
         
        string name = 5 [json_name = "name"];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Event.Builder setNameBytes​(com.google.protobuf.ByteString value)
         event name
         
        string name = 5 [json_name = "name"];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getValue

        public java.lang.String getValue()
         event value
         
        string value = 6 [json_name = "value"];
        Specified by:
        getValue in interface EventOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         event value
         
        string value = 6 [json_name = "value"];
        Specified by:
        getValueBytes in interface EventOrBuilder
        Returns:
        The bytes for value.
      • setValue

        public Event.Builder setValue​(java.lang.String value)
         event value
         
        string value = 6 [json_name = "value"];
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public Event.Builder clearValue()
         event value
         
        string value = 6 [json_name = "value"];
        Returns:
        This builder for chaining.
      • setValueBytes

        public Event.Builder setValueBytes​(com.google.protobuf.ByteString value)
         event value
         
        string value = 6 [json_name = "value"];
        Parameters:
        value - The bytes for value to set.
        Returns:
        This builder for chaining.
      • getTimestamp

        public long getTimestamp()
         timestamp, unixtime millis
         
        int64 timestamp = 7 [json_name = "timestamp"];
        Specified by:
        getTimestamp in interface EventOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public Event.Builder setTimestamp​(long value)
         timestamp, unixtime millis
         
        int64 timestamp = 7 [json_name = "timestamp"];
        Parameters:
        value - The timestamp to set.
        Returns:
        This builder for chaining.
      • clearTimestamp

        public Event.Builder clearTimestamp()
         timestamp, unixtime millis
         
        int64 timestamp = 7 [json_name = "timestamp"];
        Returns:
        This builder for chaining.