public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { shape_.AddEntriesFrom(input, _repeated_shape_codec); break; } case 16: { compressionType_ = (global::MLAgents.CommunicatorObjects.CompressionTypeProto)input.ReadEnum(); break; } case 26: { Data = input.ReadBytes(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { shape_.AddEntriesFrom(input, _repeated_shape_codec); break; } case 16: { compressionType_ = (global::MLAgents.CommunicatorObjects.CompressionTypeProto)input.ReadEnum(); break; } case 26: { CompressedData = input.ReadBytes(); break; } case 34: { global::MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData subBuilder = new global::MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData(); if (observationDataCase_ == ObservationDataOneofCase.FloatData) { subBuilder.MergeFrom(FloatData); } input.ReadMessage(subBuilder); FloatData = subBuilder; break; } } } }