public void writeTo(Output output, PhysicalDataset message) throws IOException { if(message.formatSettings != null) output.writeObject(1, message.formatSettings, com.dremio.service.namespace.file.proto.FileConfig.getSchema(), false); if(message.deprecatedDatasetSchema != null) output.writeBytes(2, message.deprecatedDatasetSchema, false); if(message.isAppendOnly != null && message.isAppendOnly != DEFAULT_IS_APPEND_ONLY) output.writeBool(3, message.isAppendOnly, false); if(message.accelerationSettings != null) output.writeObject(4, message.accelerationSettings, AccelerationSettings.getSchema(), false); if(message.allowApproxStats != null && message.allowApproxStats != DEFAULT_ALLOW_APPROX_STATS) output.writeBool(5, message.allowApproxStats, false); }
public void writeTo(Output output, PhysicalDatasetConfig message) throws IOException { if(message.name != null) output.writeString(1, message.name, false); if(message.formatSettings != null) output.writeObject(2, message.formatSettings, com.dremio.service.namespace.file.proto.FileConfig.getSchema(), false); if(message.type != null) output.writeEnum(3, message.type.number, false); if(message.fullPath != null) { for(String fullPath : message.fullPath) { if(fullPath != null) output.writeString(4, fullPath, true); } } if(message.version != null) output.writeInt64(5, message.version, false); if(message.id != null) output.writeString(8, message.id, false); if(message.tag != null) output.writeString(9, message.tag, false); }
break; case 2: message.formatSettings = input.mergeObject(message.formatSettings, com.dremio.service.namespace.file.proto.FileConfig.getSchema())
public void mergeFrom(Input input, PhysicalDataset message) throws IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: message.formatSettings = input.mergeObject(message.formatSettings, com.dremio.service.namespace.file.proto.FileConfig.getSchema()) ; break; case 2: message.deprecatedDatasetSchema = input.readBytes(); break; case 3: message.isAppendOnly = input.readBool(); break; case 4: message.accelerationSettings = input.mergeObject(message.accelerationSettings, AccelerationSettings.getSchema()) ; break; case 5: message.allowApproxStats = input.readBool(); break; default: input.handleUnknownField(number, this); } } }