示例#1
0
 public void MergeFrom(PingReturn other)
 {
     if (other == null)
     {
         return;
     }
     if (other.serverUuid_ != null)
     {
         if (serverUuid_ == null)
         {
             ServerUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         ServerUuid.MergeFrom(other.ServerUuid);
     }
     if (other.kudoUuid_ != null)
     {
         if (kudoUuid_ == null)
         {
             KudoUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         KudoUuid.MergeFrom(other.KudoUuid);
     }
     if (other.now_ != null)
     {
         if (now_ == null)
         {
             Now = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
         }
         Now.MergeFrom(other.Now);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#2
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 (serverUuid_ == null)
                    {
                        ServerUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
                    }
                    input.ReadMessage(ServerUuid);
                    break;
                }

                case 18: {
                    if (kudoUuid_ == null)
                    {
                        KudoUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
                    }
                    input.ReadMessage(KudoUuid);
                    break;
                }

                case 26: {
                    if (now_ == null)
                    {
                        Now = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
                    }
                    input.ReadMessage(Now);
                    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: {
                    if (certificateUuid_ == null)
                    {
                        CertificateUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
                    }
                    input.ReadMessage(CertificateUuid);
                    break;
                }

                case 18: {
                    if (rootGuid_ == null)
                    {
                        RootGuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
                    }
                    input.ReadMessage(RootGuid);
                    break;
                }

                case 24: {
                    CertType = (global::VRWorlds.Schemas.Browser.Standards.CertificateTypes)input.ReadEnum();
                    break;
                }

                case 32: {
                    IsSigner = input.ReadBool();
                    break;
                }

                case 42: {
                    DistinguisedName = input.ReadString();
                    break;
                }

                case 50: {
                    if (signerUuid_ == null)
                    {
                        SignerUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
                    }
                    input.ReadMessage(SignerUuid);
                    break;
                }

                case 58: {
                    Signature = input.ReadBytes();
                    break;
                }

                case 66: {
                    if (startTime_ == null)
                    {
                        StartTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
                    }
                    input.ReadMessage(StartTime);
                    break;
                }

                case 74: {
                    if (endTime_ == null)
                    {
                        EndTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
                    }
                    input.ReadMessage(EndTime);
                    break;
                }

                case 82: {
                    CertificateBody = input.ReadBytes();
                    break;
                }
                }
            }
        }
 public void MergeFrom(Certificate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.certificateUuid_ != null)
     {
         if (certificateUuid_ == null)
         {
             CertificateUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         CertificateUuid.MergeFrom(other.CertificateUuid);
     }
     if (other.rootGuid_ != null)
     {
         if (rootGuid_ == null)
         {
             RootGuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         RootGuid.MergeFrom(other.RootGuid);
     }
     if (other.CertType != 0)
     {
         CertType = other.CertType;
     }
     if (other.IsSigner != false)
     {
         IsSigner = other.IsSigner;
     }
     if (other.DistinguisedName.Length != 0)
     {
         DistinguisedName = other.DistinguisedName;
     }
     if (other.signerUuid_ != null)
     {
         if (signerUuid_ == null)
         {
             SignerUuid = new global::VRWorlds.Schemas.Browser.Standards.UUID();
         }
         SignerUuid.MergeFrom(other.SignerUuid);
     }
     if (other.Signature.Length != 0)
     {
         Signature = other.Signature;
     }
     if (other.startTime_ != null)
     {
         if (startTime_ == null)
         {
             StartTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
         }
         StartTime.MergeFrom(other.StartTime);
     }
     if (other.endTime_ != null)
     {
         if (endTime_ == null)
         {
             EndTime = new global::VRWorlds.Schemas.Browser.Standards.DateTimeOffset();
         }
         EndTime.MergeFrom(other.EndTime);
     }
     if (other.CertificateBody.Length != 0)
     {
         CertificateBody = other.CertificateBody;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }