Class AvroData.Builder

  • All Implemented Interfaces:
    AvroDataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    AvroData

    public static final class AvroData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AvroData.Builder>
    implements AvroDataOrBuilder
    
     Contains the Avro records encoded with the default Avro file encoding as bytes. Must be decoded on the client side.
     
    Protobuf type cern.nxcals.api.extraction.thin.AvroData
    • 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<AvroData.Builder>
      • clear

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

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

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

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

        public AvroData.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<AvroData.Builder>
      • setField

        public AvroData.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<AvroData.Builder>
      • clearField

        public AvroData.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<AvroData.Builder>
      • clearOneof

        public AvroData.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<AvroData.Builder>
      • setRepeatedField

        public AvroData.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<AvroData.Builder>
      • addRepeatedField

        public AvroData.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<AvroData.Builder>
      • mergeFrom

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

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

        public AvroData.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<AvroData.Builder>
        Throws:
        java.io.IOException
      • getAvroSchema

        public java.lang.String getAvroSchema()
        Avro schema
         
        string avro_schema = 1;
        Specified by:
        getAvroSchema in interface AvroDataOrBuilder
        Returns:
        The avroSchema.
      • getAvroSchemaBytes

        public com.google.protobuf.ByteString getAvroSchemaBytes()
        Avro schema
         
        string avro_schema = 1;
        Specified by:
        getAvroSchemaBytes in interface AvroDataOrBuilder
        Returns:
        The bytes for avroSchema.
      • setAvroSchema

        public AvroData.Builder setAvroSchema​(java.lang.String value)
        Avro schema
         
        string avro_schema = 1;
        Parameters:
        value - The avroSchema to set.
        Returns:
        This builder for chaining.
      • clearAvroSchema

        public AvroData.Builder clearAvroSchema()
        Avro schema
         
        string avro_schema = 1;
        Returns:
        This builder for chaining.
      • setAvroSchemaBytes

        public AvroData.Builder setAvroSchemaBytes​(com.google.protobuf.ByteString value)
        Avro schema
         
        string avro_schema = 1;
        Parameters:
        value - The bytes for avroSchema to set.
        Returns:
        This builder for chaining.
      • getAvroBytes

        public com.google.protobuf.ByteString getAvroBytes()
        Records encoded as avro bytes (file encoding).
         
        bytes avro_bytes = 2;
        Specified by:
        getAvroBytes in interface AvroDataOrBuilder
        Returns:
        The avroBytes.
      • setAvroBytes

        public AvroData.Builder setAvroBytes​(com.google.protobuf.ByteString value)
        Records encoded as avro bytes (file encoding).
         
        bytes avro_bytes = 2;
        Parameters:
        value - The avroBytes to set.
        Returns:
        This builder for chaining.
      • clearAvroBytes

        public AvroData.Builder clearAvroBytes()
        Records encoded as avro bytes (file encoding).
         
        bytes avro_bytes = 2;
        Returns:
        This builder for chaining.
      • getRecordCount

        public long getRecordCount()
        Records count
         
        int64 record_count = 3;
        Specified by:
        getRecordCount in interface AvroDataOrBuilder
        Returns:
        The recordCount.
      • setRecordCount

        public AvroData.Builder setRecordCount​(long value)
        Records count
         
        int64 record_count = 3;
        Parameters:
        value - The recordCount to set.
        Returns:
        This builder for chaining.
      • clearRecordCount

        public AvroData.Builder clearRecordCount()
        Records count
         
        int64 record_count = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AvroData.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<AvroData.Builder>
      • mergeUnknownFields

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