public override int GetHashCode() { int hash = 1; if (Selector.Length != 0) { hash ^= Selector.GetHashCode(); } if (patternCase_ == PatternOneofCase.Get) { hash ^= Get.GetHashCode(); } if (patternCase_ == PatternOneofCase.Put) { hash ^= Put.GetHashCode(); } if (patternCase_ == PatternOneofCase.Post) { hash ^= Post.GetHashCode(); } if (patternCase_ == PatternOneofCase.Delete) { hash ^= Delete.GetHashCode(); } if (patternCase_ == PatternOneofCase.Patch) { hash ^= Patch.GetHashCode(); } if (patternCase_ == PatternOneofCase.Custom) { hash ^= Custom.GetHashCode(); } if (Body.Length != 0) { hash ^= Body.GetHashCode(); } if (ResponseBody.Length != 0) { hash ^= ResponseBody.GetHashCode(); } hash ^= additionalBindings_.GetHashCode(); hash ^= (int)patternCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }