Ejemplo n.º 1
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: {
                    Id = input.ReadString();
                    break;
                }

                case 18: {
                    global::Yandex.Cloud.Iam.V1.YandexPassportUserAccount subBuilder = new global::Yandex.Cloud.Iam.V1.YandexPassportUserAccount();
                    if (userAccountCase_ == UserAccountOneofCase.YandexPassportUserAccount)
                    {
                        subBuilder.MergeFrom(YandexPassportUserAccount);
                    }
                    input.ReadMessage(subBuilder);
                    YandexPassportUserAccount = subBuilder;
                    break;
                }

                case 26: {
                    global::Yandex.Cloud.Iam.V1.SamlUserAccount subBuilder = new global::Yandex.Cloud.Iam.V1.SamlUserAccount();
                    if (userAccountCase_ == UserAccountOneofCase.SamlUserAccount)
                    {
                        subBuilder.MergeFrom(SamlUserAccount);
                    }
                    input.ReadMessage(subBuilder);
                    SamlUserAccount = subBuilder;
                    break;
                }
                }
            }
        }