Class 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 type cern.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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 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<AvroQuery.Builder>
      • clear

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

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

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

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

        public AvroQuery.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
      • clearField

        public AvroQuery.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
      • clearOneof

        public AvroQuery.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
      • mergeFrom

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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<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 interface AvroQueryOrBuilder
        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 interface AvroQueryOrBuilder
        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 interface AvroQueryOrBuilder
        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 interface AvroQueryOrBuilder
        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 interface AvroQueryOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AvroQuery.Builder>
      • mergeUnknownFields

        public final AvroQuery.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<AvroQuery.Builder>