Package org.apache.drill.exec.proto
Class UserBitShared.QueryInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
org.apache.drill.exec.proto.UserBitShared.QueryInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,UserBitShared.QueryInfoOrBuilder
- Enclosing class:
- UserBitShared.QueryInfo
public static final class UserBitShared.QueryInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
implements UserBitShared.QueryInfoOrBuilder
Protobuf type
exec.shared.QueryInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional .exec.DrillbitEndpoint foreman = 5;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string options_json = 6;
optional string query = 1;
optional string queue_name = 8 [default = "-"];
optional int64 start = 2;
optional .exec.shared.QueryResult.QueryState state = 3;
optional double total_cost = 7;
optional string user = 4 [default = "-"];
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional .exec.DrillbitEndpoint foreman = 5;
optional .exec.DrillbitEndpoint foreman = 5;
optional .exec.DrillbitEndpoint foreman = 5;
optional string options_json = 6;
com.google.protobuf.ByteString
optional string options_json = 6;
getQuery()
optional string query = 1;
com.google.protobuf.ByteString
optional string query = 1;
optional string queue_name = 8 [default = "-"];
com.google.protobuf.ByteString
optional string queue_name = 8 [default = "-"];
long
getStart()
optional int64 start = 2;
getState()
optional .exec.shared.QueryResult.QueryState state = 3;
double
optional double total_cost = 7;
getUser()
optional string user = 4 [default = "-"];
com.google.protobuf.ByteString
optional string user = 4 [default = "-"];
boolean
optional .exec.DrillbitEndpoint foreman = 5;
boolean
optional string options_json = 6;
boolean
hasQuery()
optional string query = 1;
boolean
optional string queue_name = 8 [default = "-"];
boolean
hasStart()
optional int64 start = 2;
boolean
hasState()
optional .exec.shared.QueryResult.QueryState state = 3;
boolean
optional double total_cost = 7;
boolean
hasUser()
optional string user = 4 [default = "-"];
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
optional .exec.DrillbitEndpoint foreman = 5;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(UserBitShared.QueryInfo other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional .exec.DrillbitEndpoint foreman = 5;
setForeman
(CoordinationProtos.DrillbitEndpoint.Builder builderForValue) optional .exec.DrillbitEndpoint foreman = 5;
setOptionsJson
(String value) optional string options_json = 6;
setOptionsJsonBytes
(com.google.protobuf.ByteString value) optional string options_json = 6;
optional string query = 1;
setQueryBytes
(com.google.protobuf.ByteString value) optional string query = 1;
setQueueName
(String value) optional string queue_name = 8 [default = "-"];
setQueueNameBytes
(com.google.protobuf.ByteString value) optional string queue_name = 8 [default = "-"];
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStart
(long value) optional int64 start = 2;
optional .exec.shared.QueryResult.QueryState state = 3;
setTotalCost
(double value) optional double total_cost = 7;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional string user = 4 [default = "-"];
setUserBytes
(com.google.protobuf.ByteString value) optional string user = 4 [default = "-"];
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<UserBitShared.QueryInfo.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<UserBitShared.QueryInfo.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<UserBitShared.QueryInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
setField
public UserBitShared.QueryInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
clearField
public UserBitShared.QueryInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
clearOneof
public UserBitShared.QueryInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
setRepeatedField
public UserBitShared.QueryInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
addRepeatedField
public UserBitShared.QueryInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserBitShared.QueryInfo.Builder>
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
mergeFrom
public UserBitShared.QueryInfo.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<UserBitShared.QueryInfo.Builder>
- Throws:
IOException
-
hasQuery
public boolean hasQuery()optional string query = 1;
- Specified by:
hasQuery
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the query field is set.
-
getQuery
optional string query = 1;
- Specified by:
getQuery
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()optional string query = 1;
- Specified by:
getQueryBytes
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The bytes for query.
-
setQuery
optional string query = 1;
- Parameters:
value
- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
optional string query = 1;
- Returns:
- This builder for chaining.
-
setQueryBytes
optional string query = 1;
- Parameters:
value
- The bytes for query to set.- Returns:
- This builder for chaining.
-
hasStart
public boolean hasStart()optional int64 start = 2;
- Specified by:
hasStart
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public long getStart()optional int64 start = 2;
- Specified by:
getStart
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The start.
-
setStart
optional int64 start = 2;
- Parameters:
value
- The start to set.- Returns:
- This builder for chaining.
-
clearStart
optional int64 start = 2;
- Returns:
- This builder for chaining.
-
hasState
public boolean hasState()optional .exec.shared.QueryResult.QueryState state = 3;
- Specified by:
hasState
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the state field is set.
-
getState
optional .exec.shared.QueryResult.QueryState state = 3;
- Specified by:
getState
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The state.
-
clearState
optional .exec.shared.QueryResult.QueryState state = 3;
- Returns:
- This builder for chaining.
-
hasUser
public boolean hasUser()optional string user = 4 [default = "-"];
- Specified by:
hasUser
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
optional string user = 4 [default = "-"];
- Specified by:
getUser
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.ByteString getUserBytes()optional string user = 4 [default = "-"];
- Specified by:
getUserBytes
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The bytes for user.
-
setUser
optional string user = 4 [default = "-"];
- Parameters:
value
- The user to set.- Returns:
- This builder for chaining.
-
clearUser
optional string user = 4 [default = "-"];
- Returns:
- This builder for chaining.
-
setUserBytes
optional string user = 4 [default = "-"];
- Parameters:
value
- The bytes for user to set.- Returns:
- This builder for chaining.
-
hasForeman
public boolean hasForeman()optional .exec.DrillbitEndpoint foreman = 5;
- Specified by:
hasForeman
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the foreman field is set.
-
getForeman
optional .exec.DrillbitEndpoint foreman = 5;
- Specified by:
getForeman
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The foreman.
-
setForeman
optional .exec.DrillbitEndpoint foreman = 5;
-
setForeman
public UserBitShared.QueryInfo.Builder setForeman(CoordinationProtos.DrillbitEndpoint.Builder builderForValue) optional .exec.DrillbitEndpoint foreman = 5;
-
mergeForeman
optional .exec.DrillbitEndpoint foreman = 5;
-
clearForeman
optional .exec.DrillbitEndpoint foreman = 5;
-
getForemanBuilder
optional .exec.DrillbitEndpoint foreman = 5;
-
getForemanOrBuilder
optional .exec.DrillbitEndpoint foreman = 5;
- Specified by:
getForemanOrBuilder
in interfaceUserBitShared.QueryInfoOrBuilder
-
hasOptionsJson
public boolean hasOptionsJson()optional string options_json = 6;
- Specified by:
hasOptionsJson
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the optionsJson field is set.
-
getOptionsJson
optional string options_json = 6;
- Specified by:
getOptionsJson
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The optionsJson.
-
getOptionsJsonBytes
public com.google.protobuf.ByteString getOptionsJsonBytes()optional string options_json = 6;
- Specified by:
getOptionsJsonBytes
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The bytes for optionsJson.
-
setOptionsJson
optional string options_json = 6;
- Parameters:
value
- The optionsJson to set.- Returns:
- This builder for chaining.
-
clearOptionsJson
optional string options_json = 6;
- Returns:
- This builder for chaining.
-
setOptionsJsonBytes
optional string options_json = 6;
- Parameters:
value
- The bytes for optionsJson to set.- Returns:
- This builder for chaining.
-
hasTotalCost
public boolean hasTotalCost()optional double total_cost = 7;
- Specified by:
hasTotalCost
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the totalCost field is set.
-
getTotalCost
public double getTotalCost()optional double total_cost = 7;
- Specified by:
getTotalCost
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The totalCost.
-
setTotalCost
optional double total_cost = 7;
- Parameters:
value
- The totalCost to set.- Returns:
- This builder for chaining.
-
clearTotalCost
optional double total_cost = 7;
- Returns:
- This builder for chaining.
-
hasQueueName
public boolean hasQueueName()optional string queue_name = 8 [default = "-"];
- Specified by:
hasQueueName
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- Whether the queueName field is set.
-
getQueueName
optional string queue_name = 8 [default = "-"];
- Specified by:
getQueueName
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The queueName.
-
getQueueNameBytes
public com.google.protobuf.ByteString getQueueNameBytes()optional string queue_name = 8 [default = "-"];
- Specified by:
getQueueNameBytes
in interfaceUserBitShared.QueryInfoOrBuilder
- Returns:
- The bytes for queueName.
-
setQueueName
optional string queue_name = 8 [default = "-"];
- Parameters:
value
- The queueName to set.- Returns:
- This builder for chaining.
-
clearQueueName
optional string queue_name = 8 [default = "-"];
- Returns:
- This builder for chaining.
-
setQueueNameBytes
optional string queue_name = 8 [default = "-"];
- Parameters:
value
- The bytes for queueName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserBitShared.QueryInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-
mergeUnknownFields
public final UserBitShared.QueryInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserBitShared.QueryInfo.Builder>
-