public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (DisplayName.Length != 0) { hash ^= DisplayName.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (imageTypeCase_ == ImageTypeOneofCase.VmImage) { hash ^= VmImage.GetHashCode(); } if (imageTypeCase_ == ImageTypeOneofCase.ContainerImage) { hash ^= ContainerImage.GetHashCode(); } if (PostStartupScript.Length != 0) { hash ^= PostStartupScript.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } hash ^= (int)imageTypeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }