Package cern.nxcals.api.extraction.thin
Class AvroData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AvroData.Builder>
-
- cern.nxcals.api.extraction.thin.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 typecern.nxcals.api.extraction.thin.AvroData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AvroData.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
AvroData
build()
AvroData
buildPartial()
AvroData.Builder
clear()
AvroData.Builder
clearAvroBytes()
Records encoded as avro bytes (file encoding).AvroData.Builder
clearAvroSchema()
Avro schemaAvroData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AvroData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AvroData.Builder
clearRecordCount()
Records countAvroData.Builder
clone()
com.google.protobuf.ByteString
getAvroBytes()
Records encoded as avro bytes (file encoding).java.lang.String
getAvroSchema()
Avro schemacom.google.protobuf.ByteString
getAvroSchemaBytes()
Avro schemaAvroData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getRecordCount()
Records countprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AvroData.Builder
mergeFrom(AvroData other)
AvroData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AvroData.Builder
mergeFrom(com.google.protobuf.Message other)
AvroData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AvroData.Builder
setAvroBytes(com.google.protobuf.ByteString value)
Records encoded as avro bytes (file encoding).AvroData.Builder
setAvroSchema(java.lang.String value)
Avro schemaAvroData.Builder
setAvroSchemaBytes(com.google.protobuf.ByteString value)
Avro schemaAvroData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
AvroData.Builder
setRecordCount(long value)
Records countAvroData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
AvroData.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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
-
-
-
-
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<AvroData.Builder>
-
clear
public AvroData.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<AvroData.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<AvroData.Builder>
-
getDefaultInstanceForType
public AvroData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AvroData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AvroData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AvroData.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<AvroData.Builder>
-
setField
public AvroData.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<AvroData.Builder>
-
clearField
public AvroData.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<AvroData.Builder>
-
clearOneof
public AvroData.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<AvroData.Builder>
-
setRepeatedField
public AvroData.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<AvroData.Builder>
-
addRepeatedField
public AvroData.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<AvroData.Builder>
-
mergeFrom
public AvroData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AvroData.Builder>
-
mergeFrom
public AvroData.Builder mergeFrom(AvroData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceAvroDataOrBuilder
- Returns:
- The avroSchema.
-
getAvroSchemaBytes
public com.google.protobuf.ByteString getAvroSchemaBytes()
Avro schema
string avro_schema = 1;
- Specified by:
getAvroSchemaBytes
in interfaceAvroDataOrBuilder
- 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 interfaceAvroDataOrBuilder
- 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 interfaceAvroDataOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroData.Builder>
-
mergeUnknownFields
public final AvroData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AvroData.Builder>
-
-