public override int GetHashCode() { int hash = 1; if (valueCase_ == ValueOneofCase.S) { hash ^= S.GetHashCode(); } if (valueCase_ == ValueOneofCase.I) { hash ^= I.GetHashCode(); } if (valueCase_ == ValueOneofCase.F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(F); } if (valueCase_ == ValueOneofCase.B) { hash ^= B.GetHashCode(); } if (valueCase_ == ValueOneofCase.Type) { hash ^= Type.GetHashCode(); } if (valueCase_ == ValueOneofCase.Shape) { hash ^= Shape.GetHashCode(); } if (valueCase_ == ValueOneofCase.Tensor) { hash ^= Tensor.GetHashCode(); } if (valueCase_ == ValueOneofCase.List) { hash ^= List.GetHashCode(); } if (valueCase_ == ValueOneofCase.Func) { hash ^= Func.GetHashCode(); } if (valueCase_ == ValueOneofCase.Placeholder) { hash ^= Placeholder.GetHashCode(); } hash ^= (int)valueCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (valueCase_ == ValueOneofCase.S) { hash ^= S.GetHashCode(); } if (valueCase_ == ValueOneofCase.I) { hash ^= I.GetHashCode(); } if (valueCase_ == ValueOneofCase.F) { hash ^= F.GetHashCode(); } if (valueCase_ == ValueOneofCase.B) { hash ^= B.GetHashCode(); } if (valueCase_ == ValueOneofCase.Type) { hash ^= Type.GetHashCode(); } if (valueCase_ == ValueOneofCase.Shape) { hash ^= Shape.GetHashCode(); } if (valueCase_ == ValueOneofCase.Tensor) { hash ^= Tensor.GetHashCode(); } if (valueCase_ == ValueOneofCase.List) { hash ^= List.GetHashCode(); } if (valueCase_ == ValueOneofCase.Func) { hash ^= Func.GetHashCode(); } if (valueCase_ == ValueOneofCase.Placeholder) { hash ^= Placeholder.GetHashCode(); } hash ^= (int)valueCase_; return(hash); }