public override int GetHashCode() { int hash = 1; if (keyCase_ == KeyOneofCase.ItemName) { hash ^= ItemName.GetHashCode(); } if (keyCase_ == KeyOneofCase.AncestorName) { hash ^= AncestorName.GetHashCode(); } if (consolidationStrategy_ != null) { hash ^= ConsolidationStrategy.GetHashCode(); } if (PageSize != 0) { hash ^= PageSize.GetHashCode(); } if (PageToken.Length != 0) { hash ^= PageToken.GetHashCode(); } if (Filter.Length != 0) { hash ^= Filter.GetHashCode(); } hash ^= (int)keyCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
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); }