public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(2, dataType_); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(4, atts_.get(i)); } if (unsigned_ != false) { output.writeBool(5, unsigned_); } if (!data_.isEmpty()) { output.writeBytes(6, data_); } if (!getEnumTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 7, enumType_); } }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, dataType_.getNumber()); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(4, atts_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(5, unsigned_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(6, data_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(7, getEnumTypeBytes()); } getUnknownFields().writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, dataType_.getNumber()); } for (int i = 0; i < shape_.size(); i++) { output.writeMessage(3, shape_.get(i)); } for (int i = 0; i < atts_.size(); i++) { output.writeMessage(4, atts_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(5, unsigned_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(6, data_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(7, getEnumTypeBytes()); } getUnknownFields().writeTo(output); }
if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes());
if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes());
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);