Пример #1
0
 public void MergeFrom(AppConnectionDescriptor other)
 {
     if (other == null)
     {
         return;
     }
     if (other.connectionId_ != null)
     {
         if (connectionId_ == null)
         {
             ConnectionId = new global::Plexus.Interop.Testing.Generated.UniqueId();
         }
         ConnectionId.MergeFrom(other.ConnectionId);
     }
     if (other.AppId.Length != 0)
     {
         AppId = other.AppId;
     }
     if (other.appInstanceId_ != null)
     {
         if (appInstanceId_ == null)
         {
             AppInstanceId = new global::Plexus.Interop.Testing.Generated.UniqueId();
         }
         AppInstanceId.MergeFrom(other.AppInstanceId);
     }
     if (other.TransportType != global::Plexus.Interop.Testing.Generated.TransportType.Unknown)
     {
         TransportType = other.TransportType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (connectionId_ == null)
                    {
                        ConnectionId = new global::Plexus.Interop.Testing.Generated.UniqueId();
                    }
                    input.ReadMessage(ConnectionId);
                    break;
                }

                case 18: {
                    AppId = input.ReadString();
                    break;
                }

                case 26: {
                    if (appInstanceId_ == null)
                    {
                        AppInstanceId = new global::Plexus.Interop.Testing.Generated.UniqueId();
                    }
                    input.ReadMessage(AppInstanceId);
                    break;
                }

                case 32: {
                    TransportType = (global::Plexus.Interop.Testing.Generated.TransportType)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
Пример #3
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    if (connectionId_ == null)
                    {
                        ConnectionId = new global::Plexus.Interop.Testing.Generated.UniqueId();
                    }
                    input.ReadMessage(ConnectionId);
                    break;
                }

                case 18: {
                    AppId = input.ReadString();
                    break;
                }

                case 26: {
                    if (appInstanceId_ == null)
                    {
                        AppInstanceId = new global::Plexus.Interop.Testing.Generated.UniqueId();
                    }
                    input.ReadMessage(AppInstanceId);
                    break;
                }

                case 32: {
                    TransportType = (global::Plexus.Interop.Testing.Generated.TransportType)input.ReadEnum();
                    break;
                }
                }
            }
        }