Esempio n. 1
0
 public void MergeFrom(ArCoreSdkLog other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SdkInstanceId.Length != 0)
     {
         SdkInstanceId = other.SdkInstanceId;
     }
     if (other.ArcoreSdkVersion.Length != 0)
     {
         ArcoreSdkVersion = other.ArcoreSdkVersion;
     }
     if (other.OsVersion.Length != 0)
     {
         OsVersion = other.OsVersion;
     }
     if (other.unity_ != null)
     {
         if (unity_ == null)
         {
             unity_ = new global::GoogleARCore.InstantPreview.Editor.Proto.ArCoreSdkLog.Types.UnityEngine();
         }
         Unity.MergeFrom(other.Unity);
     }
     if (other.SdkSessionId.Length != 0)
     {
         SdkSessionId = other.SdkSessionId;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 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: {
                    SdkInstanceId = input.ReadString();
                    break;
                }

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

                case 26: {
                    OsVersion = input.ReadString();
                    break;
                }

                case 34: {
                    if (unity_ == null)
                    {
                        unity_ = new global::GoogleARCore.InstantPreview.Editor.Proto.ArCoreSdkLog.Types.UnityEngine();
                    }
                    input.ReadMessage(unity_);
                    break;
                }

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