Exemple #1
0
 public void MergeFrom(ResolveAppResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.appInstanceId_ != null)
     {
         if (appInstanceId_ == null)
         {
             appInstanceId_ = new global::Plexus.Host.Internal.Generated.UniqueId();
         }
         AppInstanceId.MergeFrom(other.AppInstanceId);
     }
     if (other.appConnectionId_ != null)
     {
         if (appConnectionId_ == null)
         {
             appConnectionId_ = new global::Plexus.Host.Internal.Generated.UniqueId();
         }
         AppConnectionId.MergeFrom(other.AppConnectionId);
     }
     if (other.IsNewInstanceLaunched != false)
     {
         IsNewInstanceLaunched = other.IsNewInstanceLaunched;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
 public void MergeFrom(AppConnectionDescriptor other)
 {
     if (other == null)
     {
         return;
     }
     if (other.connectionId_ != null)
     {
         if (connectionId_ == null)
         {
             connectionId_ = new global::Plexus.Host.Internal.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.Host.Internal.Generated.UniqueId();
         }
         AppInstanceId.MergeFrom(other.AppInstanceId);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        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.Host.Internal.Generated.UniqueId();
                    }
                    input.ReadMessage(ConnectionId);
                    break;
                }

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

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

                case 32: {
                    TransportType = (global::Plexus.Host.Internal.Generated.TransportType)input.ReadEnum();
                    break;
                }
                }
            }
    #endif
        }
        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.Host.Internal.Generated.UniqueId();
                    }
                    input.ReadMessage(ConnectionId);
                    break;
                }

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

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

                case 32: {
                    TransportType = (global::Plexus.Host.Internal.Generated.TransportType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #5
0
        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: {
                    if (appInstanceId_ == null)
                    {
                        appInstanceId_ = new global::Plexus.Host.Internal.Generated.UniqueId();
                    }
                    input.ReadMessage(appInstanceId_);
                    break;
                }

                case 18: {
                    if (appConnectionId_ == null)
                    {
                        appConnectionId_ = new global::Plexus.Host.Internal.Generated.UniqueId();
                    }
                    input.ReadMessage(appConnectionId_);
                    break;
                }

                case 24: {
                    IsNewInstanceLaunched = input.ReadBool();
                    break;
                }
                }
            }
        }