Package cern.nxcals.api.extraction.thin
Class AvroQuery.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
- cern.nxcals.api.extraction.thin.AvroQuery.Builder
-
- All Implemented Interfaces:
AvroQueryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- AvroQuery
public static final class AvroQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder> implements AvroQueryOrBuilder
Name comes from the fact that we have to pass the compression codec that relates only with Avro. GRPC does not allow multiple input parameters to methods, must be only one.
Protobuf typecern.nxcals.api.extraction.thin.AvroQuery
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AvroQuery.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
AvroQuery
build()
AvroQuery
buildPartial()
AvroQuery.Builder
clear()
AvroQuery.Builder
clearCompression()
Compression codec (does not have to be set if not needed)AvroQuery.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AvroQuery.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AvroQuery.Builder
clearScript()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.AvroQuery.Builder
clearWaitTimeMs()
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds.AvroQuery.Builder
clone()
AvroQuery.Codec
getCompression()
Compression codec (does not have to be set if not needed)int
getCompressionValue()
Compression codec (does not have to be set if not needed)AvroQuery
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getScript()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.com.google.protobuf.ByteString
getScriptBytes()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.int
getWaitTimeMs()
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AvroQuery.Builder
mergeFrom(AvroQuery other)
AvroQuery.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AvroQuery.Builder
mergeFrom(com.google.protobuf.Message other)
AvroQuery.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AvroQuery.Builder
setCompression(AvroQuery.Codec value)
Compression codec (does not have to be set if not needed)AvroQuery.Builder
setCompressionValue(int value)
Compression codec (does not have to be set if not needed)AvroQuery.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
AvroQuery.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
AvroQuery.Builder
setScript(java.lang.String value)
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.AvroQuery.Builder
setScriptBytes(com.google.protobuf.ByteString value)
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.AvroQuery.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AvroQuery.Builder
setWaitTimeMs(int value)
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds.-
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, 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<AvroQuery.Builder>
-
clear
public AvroQuery.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<AvroQuery.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<AvroQuery.Builder>
-
getDefaultInstanceForType
public AvroQuery getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AvroQuery build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AvroQuery buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AvroQuery.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<AvroQuery.Builder>
-
setField
public AvroQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
clearField
public AvroQuery.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<AvroQuery.Builder>
-
clearOneof
public AvroQuery.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<AvroQuery.Builder>
-
setRepeatedField
public AvroQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
addRepeatedField
public AvroQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
mergeFrom
public AvroQuery.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AvroQuery.Builder>
-
mergeFrom
public AvroQuery.Builder mergeFrom(AvroQuery other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
mergeFrom
public AvroQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<AvroQuery.Builder>
- Throws:
java.io.IOException
-
getScript
public java.lang.String getScript()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.
string script = 1;
- Specified by:
getScript
in interfaceAvroQueryOrBuilder
- Returns:
- The script.
-
getScriptBytes
public com.google.protobuf.ByteString getScriptBytes()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.
string script = 1;
- Specified by:
getScriptBytes
in interfaceAvroQueryOrBuilder
- Returns:
- The bytes for script.
-
setScript
public AvroQuery.Builder setScript(java.lang.String value)
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.
string script = 1;
- Parameters:
value
- The script to set.- Returns:
- This builder for chaining.
-
clearScript
public AvroQuery.Builder clearScript()
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.
string script = 1;
- Returns:
- This builder for chaining.
-
setScriptBytes
public AvroQuery.Builder setScriptBytes(com.google.protobuf.ByteString value)
Script that has to be in JavaScript syntax using NXCALS DataQuery objects that can be executed on the client.
string script = 1;
- Parameters:
value
- The bytes for script to set.- Returns:
- This builder for chaining.
-
getCompressionValue
public int getCompressionValue()
Compression codec (does not have to be set if not needed)
.cern.nxcals.api.extraction.thin.AvroQuery.Codec compression = 2;
- Specified by:
getCompressionValue
in interfaceAvroQueryOrBuilder
- Returns:
- The enum numeric value on the wire for compression.
-
setCompressionValue
public AvroQuery.Builder setCompressionValue(int value)
Compression codec (does not have to be set if not needed)
.cern.nxcals.api.extraction.thin.AvroQuery.Codec compression = 2;
- Parameters:
value
- The enum numeric value on the wire for compression to set.- Returns:
- This builder for chaining.
-
getCompression
public AvroQuery.Codec getCompression()
Compression codec (does not have to be set if not needed)
.cern.nxcals.api.extraction.thin.AvroQuery.Codec compression = 2;
- Specified by:
getCompression
in interfaceAvroQueryOrBuilder
- Returns:
- The compression.
-
setCompression
public AvroQuery.Builder setCompression(AvroQuery.Codec value)
Compression codec (does not have to be set if not needed)
.cern.nxcals.api.extraction.thin.AvroQuery.Codec compression = 2;
- Parameters:
value
- The compression to set.- Returns:
- This builder for chaining.
-
clearCompression
public AvroQuery.Builder clearCompression()
Compression codec (does not have to be set if not needed)
.cern.nxcals.api.extraction.thin.AvroQuery.Codec compression = 2;
- Returns:
- This builder for chaining.
-
getWaitTimeMs
public int getWaitTimeMs()
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds. If the resources cannot be acquired the server will return UNAVAILABLE status. NOT IMPLEMENTED YET (for future use)
int32 wait_time_ms = 3;
- Specified by:
getWaitTimeMs
in interfaceAvroQueryOrBuilder
- Returns:
- The waitTimeMs.
-
setWaitTimeMs
public AvroQuery.Builder setWaitTimeMs(int value)
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds. If the resources cannot be acquired the server will return UNAVAILABLE status. NOT IMPLEMENTED YET (for future use)
int32 wait_time_ms = 3;
- Parameters:
value
- The waitTimeMs to set.- Returns:
- This builder for chaining.
-
clearWaitTimeMs
public AvroQuery.Builder clearWaitTimeMs()
If set to non zero, the call will be accepted by the service even if it has no available resources and will block there waiting for specified time in milliseconds. If the resources cannot be acquired the server will return UNAVAILABLE status. NOT IMPLEMENTED YET (for future use)
int32 wait_time_ms = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final AvroQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
mergeUnknownFields
public final AvroQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
-
-