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: {
                    ItemName = input.ReadString();
                    break;
                }

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

                case 42: {
                    if (consolidationStrategy_ == null)
                    {
                        ConsolidationStrategy = new global::Google.Apps.Drive.Activity.V2.ConsolidationStrategy();
                    }
                    input.ReadMessage(ConsolidationStrategy);
                    break;
                }

                case 48: {
                    PageSize = input.ReadInt32();
                    break;
                }

                case 58: {
                    PageToken = input.ReadString();
                    break;
                }

                case 66: {
                    Filter = input.ReadString();
                    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: {
                    ItemName = input.ReadString();
                    break;
                }

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

                case 42: {
                    if (consolidationStrategy_ == null)
                    {
                        ConsolidationStrategy = new global::Google.Apps.Drive.Activity.V2.ConsolidationStrategy();
                    }
                    input.ReadMessage(ConsolidationStrategy);
                    break;
                }

                case 48: {
                    PageSize = input.ReadInt32();
                    break;
                }

                case 58: {
                    PageToken = input.ReadString();
                    break;
                }

                case 66: {
                    Filter = input.ReadString();
                    break;
                }
                }
            }
        }
        public void MergeFrom(QueryDriveActivityRequest other)
        {
            if (other == null)
            {
                return;
            }
            if (other.consolidationStrategy_ != null)
            {
                if (consolidationStrategy_ == null)
                {
                    ConsolidationStrategy = new global::Google.Apps.Drive.Activity.V2.ConsolidationStrategy();
                }
                ConsolidationStrategy.MergeFrom(other.ConsolidationStrategy);
            }
            if (other.PageSize != 0)
            {
                PageSize = other.PageSize;
            }
            if (other.PageToken.Length != 0)
            {
                PageToken = other.PageToken;
            }
            if (other.Filter.Length != 0)
            {
                Filter = other.Filter;
            }
            switch (other.KeyCase)
            {
            case KeyOneofCase.ItemName:
                ItemName = other.ItemName;
                break;

            case KeyOneofCase.AncestorName:
                AncestorName = other.AncestorName;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }