public void MergeFrom(RequestEnvelope other) { if (other == null) { return; } if (other.ApplicationMessageId.Length != 0) { ApplicationMessageId = other.ApplicationMessageId; } if (other.ApplicationMessageSeqNo != 0L) { ApplicationMessageSeqNo = other.ApplicationMessageSeqNo; } if (other.TechnicalMessageType.Length != 0) { TechnicalMessageType = other.TechnicalMessageType; } if (other.TeamSetContextId.Length != 0) { TeamSetContextId = other.TeamSetContextId; } if (other.Mode != global::Agrirouter.Request.RequestEnvelope.Types.Mode.Direct) { Mode = other.Mode; } recipients_.Add(other.recipients_); if (other.chunkInfo_ != null) { if (chunkInfo_ == null) { ChunkInfo = new global::Agrirouter.Commons.ChunkComponent(); } ChunkInfo.MergeFrom(other.ChunkInfo); } if (other.timestamp_ != null) { if (timestamp_ == null) { Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Timestamp.MergeFrom(other.Timestamp); } if (other.metadata_ != null) { if (metadata_ == null) { Metadata = new global::Agrirouter.Commons.Metadata(); } Metadata.MergeFrom(other.Metadata); } _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: { ApplicationMessageId = input.ReadString(); break; } case 16: { ApplicationMessageSeqNo = input.ReadInt64(); break; } case 26: { TechnicalMessageType = input.ReadString(); break; } case 34: { TeamSetContextId = input.ReadString(); break; } case 40: { Mode = (global::Agrirouter.Request.RequestEnvelope.Types.Mode)input.ReadEnum(); break; } case 50: { recipients_.AddEntriesFrom(input, _repeated_recipients_codec); break; } case 58: { if (chunkInfo_ == null) { ChunkInfo = new global::Agrirouter.Commons.ChunkComponent(); } input.ReadMessage(ChunkInfo); break; } case 66: { if (timestamp_ == null) { Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Timestamp); break; } case 74: { if (metadata_ == null) { Metadata = new global::Agrirouter.Commons.Metadata(); } input.ReadMessage(Metadata); 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: { ReceiverId = input.ReadString(); break; } case 18: { TechnicalMessageType = input.ReadString(); break; } case 26: { TeamSetContextId = input.ReadString(); break; } case 34: { if (chunkContext_ == null) { ChunkContext = new global::Agrirouter.Commons.ChunkComponent(); } input.ReadMessage(ChunkContext); break; } case 40: { PayloadSize = input.ReadInt64(); break; } case 50: { if (sentTimestamp_ == null) { SentTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(SentTimestamp); break; } case 56: { SequenceNumber = input.ReadInt64(); break; } case 66: { SenderId = input.ReadString(); break; } case 74: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 82: { MessageId = input.ReadString(); break; } case 90: { if (metadata_ == null) { Metadata = new global::Agrirouter.Commons.Metadata(); } input.ReadMessage(Metadata); break; } } } }
public void MergeFrom(Header other) { if (other == null) { return; } if (other.ReceiverId.Length != 0) { ReceiverId = other.ReceiverId; } if (other.TechnicalMessageType.Length != 0) { TechnicalMessageType = other.TechnicalMessageType; } if (other.TeamSetContextId.Length != 0) { TeamSetContextId = other.TeamSetContextId; } if (other.chunkContext_ != null) { if (chunkContext_ == null) { ChunkContext = new global::Agrirouter.Commons.ChunkComponent(); } ChunkContext.MergeFrom(other.ChunkContext); } if (other.PayloadSize != 0L) { PayloadSize = other.PayloadSize; } if (other.sentTimestamp_ != null) { if (sentTimestamp_ == null) { SentTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } SentTimestamp.MergeFrom(other.SentTimestamp); } if (other.SequenceNumber != 0L) { SequenceNumber = other.SequenceNumber; } if (other.SenderId.Length != 0) { SenderId = other.SenderId; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.MessageId.Length != 0) { MessageId = other.MessageId; } if (other.metadata_ != null) { if (metadata_ == null) { Metadata = new global::Agrirouter.Commons.Metadata(); } Metadata.MergeFrom(other.Metadata); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }