private NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile) throws InvalidProtocolBufferException { if (ncfile == null) ncfile = new NetcdfFileSubclass(); // not used i think ncfile.setLocation(proto.getLocation()); if (proto.getId().length() > 0) ncfile.setId(proto.getId()); if (proto.getTitle().length() > 0) ncfile.setTitle(proto.getTitle()); NcStreamProto.Group root = proto.getRoot(); NcStream.readGroup(root, ncfile, ncfile.getRootGroup()); ncfile.finish(); return ncfile; }
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Header other) { if (other == ucar.nc2.stream.NcStreamProto.Header.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); } if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasRoot()) { mergeRoot(other.getRoot()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } onChanged(); return this; }
public NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile) throws InvalidProtocolBufferException { if (ncfile == null) ncfile = new NetcdfFileSubclass(); // not used i think ncfile.setLocation(proto.getLocation()); if (proto.hasId()) ncfile.setId(proto.getId()); if (proto.hasTitle()) ncfile.setTitle(proto.getTitle()); NcStreamProto.Group root = proto.getRoot(); NcStream.readGroup(root, ncfile, ncfile.getRootGroup()); ncfile.finish(); return ncfile; }
/** * <code>optional string location = 1;</code> */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /**
public NetcdfFile proto2nc(NcStreamProto.Header proto, NetcdfFile ncfile) throws InvalidProtocolBufferException { if (ncfile == null) ncfile = new NetcdfFileStream(); // not used i think ncfile.setLocation(proto.getLocation()); if (proto.hasId()) ncfile.setId(proto.getId()); if (proto.hasTitle()) ncfile.setTitle(proto.getTitle()); NcStreamProto.Group root = proto.getRoot(); NcStream.readGroup(root, ncfile, ncfile.getRootGroup()); ncfile.finish(); return ncfile; }
/** * <code>optional string location = 1;</code> */ public Builder clearLocation() { bitField0_ = (bitField0_ & ~0x00000001); location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /**
/** * <code>optional string location = 1;</code> */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /**