Exemple #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: {
                    global::Yandex.Cloud.Mdb.Mongodb.V1.AnytimeMaintenanceWindow subBuilder = new global::Yandex.Cloud.Mdb.Mongodb.V1.AnytimeMaintenanceWindow();
                    if (policyCase_ == PolicyOneofCase.Anytime)
                    {
                        subBuilder.MergeFrom(Anytime);
                    }
                    input.ReadMessage(subBuilder);
                    Anytime = subBuilder;
                    break;
                }

                case 18: {
                    global::Yandex.Cloud.Mdb.Mongodb.V1.WeeklyMaintenanceWindow subBuilder = new global::Yandex.Cloud.Mdb.Mongodb.V1.WeeklyMaintenanceWindow();
                    if (policyCase_ == PolicyOneofCase.WeeklyMaintenanceWindow)
                    {
                        subBuilder.MergeFrom(WeeklyMaintenanceWindow);
                    }
                    input.ReadMessage(subBuilder);
                    WeeklyMaintenanceWindow = subBuilder;
                    break;
                }
                }
            }
        }