Package io.hstream.internal
Class Query.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
- io.hstream.internal.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 typehstream.server.Query
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Query.Builder
addAllSources(Iterable<String> values)
repeated string sources = 5;
Query.Builder
addSources(String value)
repeated string sources = 5;
Query.Builder
addSourcesBytes(com.google.protobuf.ByteString value)
repeated string sources = 5;
Query
build()
Query
buildPartial()
Query.Builder
clear()
Query.Builder
clearCreatedTime()
int64 createdTime = 3;
Query.Builder
clearId()
string id = 1;
Query.Builder
clearNodeId()
Id of the node to execute the queryQuery.Builder
clearQueryText()
string queryText = 4;
Query.Builder
clearResultName()
string resultName = 6;
Query.Builder
clearSources()
repeated string sources = 5;
Query.Builder
clearStatus()
.hstream.server.TaskStatusPB status = 2;
Query.Builder
clearType()
type: CreateStreamAs: resultName is result stream name CreateViewAs: resultName is result view namelong
getCreatedTime()
int64 createdTime = 3;
Query
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getId()
string id = 1;
com.google.protobuf.ByteString
getIdBytes()
string id = 1;
int
getNodeId()
Id of the node to execute the queryString
getQueryText()
string queryText = 4;
com.google.protobuf.ByteString
getQueryTextBytes()
string queryText = 4;
String
getResultName()
string resultName = 6;
com.google.protobuf.ByteString
getResultNameBytes()
string resultName = 6;
String
getSources(int index)
repeated string sources = 5;
com.google.protobuf.ByteString
getSourcesBytes(int index)
repeated string sources = 5;
int
getSourcesCount()
repeated string sources = 5;
com.google.protobuf.ProtocolStringList
getSourcesList()
repeated string sources = 5;
TaskStatusPB
getStatus()
.hstream.server.TaskStatusPB status = 2;
int
getStatusValue()
.hstream.server.TaskStatusPB status = 2;
QueryType
getType()
type: CreateStreamAs: resultName is result stream name CreateViewAs: resultName is result view nameint
getTypeValue()
type: CreateStreamAs: resultName is result stream name CreateViewAs: resultName is result view nameprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Query.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Query.Builder
mergeFrom(com.google.protobuf.Message other)
Query.Builder
mergeFrom(Query other)
Query.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Query.Builder
setCreatedTime(long value)
int64 createdTime = 3;
Query.Builder
setId(String value)
string id = 1;
Query.Builder
setIdBytes(com.google.protobuf.ByteString value)
string id = 1;
Query.Builder
setNodeId(int value)
Id of the node to execute the queryQuery.Builder
setQueryText(String value)
string queryText = 4;
Query.Builder
setQueryTextBytes(com.google.protobuf.ByteString value)
string queryText = 4;
Query.Builder
setResultName(String value)
string resultName = 6;
Query.Builder
setResultNameBytes(com.google.protobuf.ByteString value)
string resultName = 6;
Query.Builder
setSources(int index, String value)
repeated string sources = 5;
Query.Builder
setStatus(TaskStatusPB value)
.hstream.server.TaskStatusPB status = 2;
Query.Builder
setStatusValue(int value)
.hstream.server.TaskStatusPB status = 2;
Query.Builder
setType(QueryType value)
type: CreateStreamAs: resultName is result stream name CreateViewAs: resultName is result view nameQuery.Builder
setTypeValue(int value)
type: CreateStreamAs: resultName is result stream name CreateViewAs: resultName is result view nameQuery.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
clear
public Query.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
getDefaultInstanceForType
public Query getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Query build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Query buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Query.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Query.Builder>
-
mergeFrom
public Query.Builder mergeFrom(Query other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Query.Builder>
- Throws:
IOException
-
getId
public String getId()
string id = 1;
- Specified by:
getId
in interfaceQueryOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1;
- Specified by:
getIdBytes
in interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- 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.
-
getStatus
public TaskStatusPB getStatus()
.hstream.server.TaskStatusPB status = 2;
- Specified by:
getStatus
in interfaceQueryOrBuilder
- Returns:
- The status.
-
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 interfaceQueryOrBuilder
- 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.
-
getQueryText
public String getQueryText()
string queryText = 4;
- Specified by:
getQueryText
in interfaceQueryOrBuilder
- Returns:
- The queryText.
-
getQueryTextBytes
public com.google.protobuf.ByteString getQueryTextBytes()
string queryText = 4;
- Specified by:
getQueryTextBytes
in interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- Returns:
- A list containing the sources.
-
getSourcesCount
public int getSourcesCount()
repeated string sources = 5;
- Specified by:
getSourcesCount
in interfaceQueryOrBuilder
- Returns:
- The count of sources.
-
getSources
public String getSources(int index)
repeated string sources = 5;
- Specified by:
getSources
in interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- 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.
-
getResultName
public String getResultName()
string resultName = 6;
- Specified by:
getResultName
in interfaceQueryOrBuilder
- Returns:
- The resultName.
-
getResultNameBytes
public com.google.protobuf.ByteString getResultNameBytes()
string resultName = 6;
- Specified by:
getResultNameBytes
in interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- 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 interfaceQueryOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
mergeUnknownFields
public final Query.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Query.Builder>
-
-