Class Query.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, QueryOrBuilder, Cloneable
    Enclosing class:
    Query

    public static final class Query.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
    implements QueryOrBuilder
    Protobuf type hstream.server.Query
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
      • clear

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

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

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

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

        public Query.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<Query.Builder>
      • isInitialized

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

        public Query.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<Query.Builder>
        Throws:
        IOException
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
        string id = 1;
        Specified by:
        getIdBytes in interface QueryOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Query.Builder setId​(String value)
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Query.Builder clearId()
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Query.Builder setIdBytes​(com.google.protobuf.ByteString value)
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
        .hstream.server.TaskStatusPB status = 2;
        Specified by:
        getStatusValue in interface QueryOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public Query.Builder setStatusValue​(int value)
        .hstream.server.TaskStatusPB status = 2;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • setStatus

        public Query.Builder setStatus​(TaskStatusPB value)
        .hstream.server.TaskStatusPB status = 2;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Query.Builder clearStatus()
        .hstream.server.TaskStatusPB status = 2;
        Returns:
        This builder for chaining.
      • getCreatedTime

        public long getCreatedTime()
        int64 createdTime = 3;
        Specified by:
        getCreatedTime in interface QueryOrBuilder
        Returns:
        The createdTime.
      • setCreatedTime

        public Query.Builder setCreatedTime​(long value)
        int64 createdTime = 3;
        Parameters:
        value - The createdTime to set.
        Returns:
        This builder for chaining.
      • clearCreatedTime

        public Query.Builder clearCreatedTime()
        int64 createdTime = 3;
        Returns:
        This builder for chaining.
      • getQueryTextBytes

        public com.google.protobuf.ByteString getQueryTextBytes()
        string queryText = 4;
        Specified by:
        getQueryTextBytes in interface QueryOrBuilder
        Returns:
        The bytes for queryText.
      • setQueryText

        public Query.Builder setQueryText​(String value)
        string queryText = 4;
        Parameters:
        value - The queryText to set.
        Returns:
        This builder for chaining.
      • clearQueryText

        public Query.Builder clearQueryText()
        string queryText = 4;
        Returns:
        This builder for chaining.
      • setQueryTextBytes

        public Query.Builder setQueryTextBytes​(com.google.protobuf.ByteString value)
        string queryText = 4;
        Parameters:
        value - The bytes for queryText to set.
        Returns:
        This builder for chaining.
      • getSourcesList

        public com.google.protobuf.ProtocolStringList getSourcesList()
        repeated string sources = 5;
        Specified by:
        getSourcesList in interface QueryOrBuilder
        Returns:
        A list containing the sources.
      • getSourcesCount

        public int getSourcesCount()
        repeated string sources = 5;
        Specified by:
        getSourcesCount in interface QueryOrBuilder
        Returns:
        The count of sources.
      • getSources

        public String getSources​(int index)
        repeated string sources = 5;
        Specified by:
        getSources in interface QueryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sources at the given index.
      • getSourcesBytes

        public com.google.protobuf.ByteString getSourcesBytes​(int index)
        repeated string sources = 5;
        Specified by:
        getSourcesBytes in interface QueryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sources at the given index.
      • setSources

        public Query.Builder setSources​(int index,
                                        String value)
        repeated string sources = 5;
        Parameters:
        index - The index to set the value at.
        value - The sources to set.
        Returns:
        This builder for chaining.
      • addSources

        public Query.Builder addSources​(String value)
        repeated string sources = 5;
        Parameters:
        value - The sources to add.
        Returns:
        This builder for chaining.
      • addAllSources

        public Query.Builder addAllSources​(Iterable<String> values)
        repeated string sources = 5;
        Parameters:
        values - The sources to add.
        Returns:
        This builder for chaining.
      • clearSources

        public Query.Builder clearSources()
        repeated string sources = 5;
        Returns:
        This builder for chaining.
      • addSourcesBytes

        public Query.Builder addSourcesBytes​(com.google.protobuf.ByteString value)
        repeated string sources = 5;
        Parameters:
        value - The bytes of the sources to add.
        Returns:
        This builder for chaining.
      • getResultNameBytes

        public com.google.protobuf.ByteString getResultNameBytes()
        string resultName = 6;
        Specified by:
        getResultNameBytes in interface QueryOrBuilder
        Returns:
        The bytes for resultName.
      • setResultName

        public Query.Builder setResultName​(String value)
        string resultName = 6;
        Parameters:
        value - The resultName to set.
        Returns:
        This builder for chaining.
      • clearResultName

        public Query.Builder clearResultName()
        string resultName = 6;
        Returns:
        This builder for chaining.
      • setResultNameBytes

        public Query.Builder setResultNameBytes​(com.google.protobuf.ByteString value)
        string resultName = 6;
        Parameters:
        value - The bytes for resultName to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         type:
            CreateStreamAs: resultName is result stream name
            CreateViewAs: resultName is result view name
         
        .hstream.server.QueryType type = 7;
        Specified by:
        getTypeValue in interface QueryOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public Query.Builder setTypeValue​(int value)
         type:
            CreateStreamAs: resultName is result stream name
            CreateViewAs: resultName is result view name
         
        .hstream.server.QueryType type = 7;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public QueryType getType()
         type:
            CreateStreamAs: resultName is result stream name
            CreateViewAs: resultName is result view name
         
        .hstream.server.QueryType type = 7;
        Specified by:
        getType in interface QueryOrBuilder
        Returns:
        The type.
      • setType

        public Query.Builder setType​(QueryType value)
         type:
            CreateStreamAs: resultName is result stream name
            CreateViewAs: resultName is result view name
         
        .hstream.server.QueryType type = 7;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Query.Builder clearType()
         type:
            CreateStreamAs: resultName is result stream name
            CreateViewAs: resultName is result view name
         
        .hstream.server.QueryType type = 7;
        Returns:
        This builder for chaining.
      • getNodeId

        public int getNodeId()
         Id of the node to execute the query
         
        uint32 nodeId = 8;
        Specified by:
        getNodeId in interface QueryOrBuilder
        Returns:
        The nodeId.
      • setNodeId

        public Query.Builder setNodeId​(int value)
         Id of the node to execute the query
         
        uint32 nodeId = 8;
        Parameters:
        value - The nodeId to set.
        Returns:
        This builder for chaining.
      • clearNodeId

        public Query.Builder clearNodeId()
         Id of the node to execute the query
         
        uint32 nodeId = 8;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Query.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
      • mergeUnknownFields

        public final Query.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>