byte[] buf = new byte[length]; in.readFully(buf); Data data = Data.parseFrom(buf); this.eventDate = data.getDate(); if (data.hasDataType()) try { this.dataType = TypeRegistry.getType(data.getDataType()); } catch (IllegalStateException ise) { this.dataType = TypeRegistry.getType(data.getDataType()); if (data.hasUid()) this.uid = UID.parse(data.getUid()); errors = new ConcurrentSkipListSet<>(); if (0 != data.getErrorsCount()) { errors.addAll(data.getErrorsList()); if (data.hasVisibility() && null != data.getVisibility()) setVisibility(new ColumnVisibility(data.getVisibility().toByteArray())); if (data.hasRawFileName()) this.rawFileName = data.getRawFileName(); if (data.hasRawFileTimeStamp()) this.rawFileTimeStamp = data.getRawFileTimeStamp(); if (data.hasRawRecordNumber()) this.rawRecordNumber = data.getRawRecordNumber(); if (0 != data.getUuidsCount()) this.ids = new ArrayList<>(data.getUuidsList()); if (data.hasRawData() && null != data.getRawData())
size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getDataTypeBytes()); size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, getUidBytes()); size += 1 * getErrorsList().size(); size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, getRawFileNameBytes()); size += 1 * getUuidsList().size(); size += com.google.protobuf.CodedOutputStream.computeUInt64Size(11, rawFileTimeStamp_); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
public Builder mergeFrom(datawave.ingest.protobuf.RawRecordContainer.Data other) { if (other == datawave.ingest.protobuf.RawRecordContainer.Data.getDefaultInstance()) return this; if (other.hasDate()) { setDate(other.getDate()); if (other.hasDataType()) { bitField0_ |= 0x00000002; dataType_ = other.dataType_; onChanged(); if (other.hasUid()) { bitField0_ |= 0x00000004; uid_ = other.uid_; if (other.hasVisibility()) { setVisibility(other.getVisibility()); if (other.hasRawFileName()) { bitField0_ |= 0x00000020; rawFileName_ = other.rawFileName_; onChanged(); if (other.hasRawRecordNumber()) { setRawRecordNumber(other.getRawRecordNumber()); if (other.hasRawData()) { setRawData(other.getRawData()); if (other.hasRequiresMasking()) {
public datawave.ingest.protobuf.RawRecordContainer.Data buildPartial() { datawave.ingest.protobuf.RawRecordContainer.Data result = new datawave.ingest.protobuf.RawRecordContainer.Data(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, date_); output.writeBytes(2, getDataTypeBytes()); output.writeBytes(3, getUidBytes()); output.writeBytes(6, getRawFileNameBytes()); output.writeUInt64(11, rawFileTimeStamp_); getUnknownFields().writeTo(output);
public datawave.ingest.protobuf.RawRecordContainer.Data getDefaultInstanceForType() { return datawave.ingest.protobuf.RawRecordContainer.Data.getDefaultInstance(); }
/** * <code>optional bytes visibility = 5;</code> */ public Builder clearVisibility() { bitField0_ = (bitField0_ & ~0x00000010); visibility_ = getDefaultInstance().getVisibility(); onChanged(); return this; }
/** * <code>optional string uid = 3;</code> */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000004); uid_ = getDefaultInstance().getUid(); onChanged(); return this; }
/** * <code>optional bytes rawData = 9;</code> */ public Builder clearRawData() { bitField0_ = (bitField0_ & ~0x00000100); rawData_ = getDefaultInstance().getRawData(); onChanged(); return this; }
/** * <code>optional string rawFileName = 6;</code> */ public Builder clearRawFileName() { bitField0_ = (bitField0_ & ~0x00000020); rawFileName_ = getDefaultInstance().getRawFileName(); onChanged(); return this; }
/** * <code>optional string dataType = 2;</code> */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000002); dataType_ = getDefaultInstance().getDataType(); onChanged(); return this; }