public void MergeFrom(ChaincodeSpec other) { if (other == null) { return; } if (other.Type != global::Protos.ChaincodeSpec.Types.Type.Undefined) { Type = other.Type; } if (other.chaincodeId_ != null) { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } ChaincodeId.MergeFrom(other.ChaincodeId); } if (other.input_ != null) { if (input_ == null) { Input = new global::Protos.ChaincodeInput(); } Input.MergeFrom(other.Input); } if (other.Timeout != 0) { Timeout = other.Timeout; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { PayloadVisibility = input.ReadBytes(); break; } case 18: { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } input.ReadMessage(ChaincodeId); 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: { Results = input.ReadBytes(); break; } case 18: { Events = input.ReadBytes(); break; } case 26: { if (response_ == null) { Response = new global::Protos.Response(); } input.ReadMessage(Response); break; } case 34: { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } input.ReadMessage(ChaincodeId); break; } case 42: { if (tokenExpectation_ == null) { TokenExpectation = new global::Protos.TokenExpectation(); } input.ReadMessage(TokenExpectation); 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 8: { Type = (global::Protos.ChaincodeSpec.Types.Type)input.ReadEnum(); break; } case 18: { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } input.ReadMessage(ChaincodeId); break; } case 26: { if (input_ == null) { Input = new global::Protos.ChaincodeInput(); } input.ReadMessage(Input); break; } case 32: { Timeout = input.ReadInt32(); break; } } } }
public void MergeFrom(ChaincodeHeaderExtension other) { if (other == null) { return; } if (other.PayloadVisibility.Length != 0) { PayloadVisibility = other.PayloadVisibility; } if (other.chaincodeId_ != null) { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } ChaincodeId.MergeFrom(other.ChaincodeId); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(ChaincodeAction other) { if (other == null) { return; } if (other.Results.Length != 0) { Results = other.Results; } if (other.Events.Length != 0) { Events = other.Events; } if (other.response_ != null) { if (response_ == null) { Response = new global::Protos.Response(); } Response.MergeFrom(other.Response); } if (other.chaincodeId_ != null) { if (chaincodeId_ == null) { ChaincodeId = new global::Protos.ChaincodeID(); } ChaincodeId.MergeFrom(other.ChaincodeId); } if (other.tokenExpectation_ != null) { if (tokenExpectation_ == null) { TokenExpectation = new global::Protos.TokenExpectation(); } TokenExpectation.MergeFrom(other.TokenExpectation); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }