)]}'
{
  "commit": "d1a3c6d08b3238415cb5c08609f42d88d9b227d3",
  "tree": "1cfb7a1167dba2e961c8f0f77d6db11c8df2df51",
  "parents": [
    "96b1fce6444d6595de43be5f10954c10e5c0d6de"
  ],
  "author": {
    "name": "Charles OuGuo",
    "email": "shaldengeki@gmail.com",
    "time": "Tue Jan 31 13:11:14 2023 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Jan 31 13:13:28 2023 -0800"
  },
  "message": "For Ruby oneof fields, generate hazzers for members (#11655)\n\nWhen generating Ruby clients for proto3 messages that have a oneof, we generate a hazzer for members of the oneof, not just a hazzer for the oneof itself.\n\nIn other words, for a proto like this:\n\n```\nsyntax \u003d \"proto3\";\nmessage Foo {\n  oneof bar {\n    string baz \u003d 1;\n  }\n}\n```\n\nThe generated `Foo` will now have a method called `has_baz?`, in addition to the (pre-existing) method `has_bar?`.\n\nI updated the unit tests, and verified that all the tests under `//ruby/...` pass.\n\nFixes https://github.com/protocolbuffers/protobuf/issues/9561.\n\nCloses #11655\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/protocolbuffers/protobuf/pull/11655 from shaldengeki:test-ruby-oneof-hazzer a15e474da69cac34cf71361413b751fb03b9341d\nPiperOrigin-RevId: 506090930\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9dc6f171f4b99a152b79b999323b17672849641e",
      "old_mode": 33188,
      "old_path": "ruby/ext/google/protobuf_c/message.c",
      "new_id": "99e29466ebd3d63cd202b55720721dac7c39e035",
      "new_mode": 33188,
      "new_path": "ruby/ext/google/protobuf_c/message.c"
    },
    {
      "type": "modify",
      "old_id": "301b95798215c052a450baabf0824b0ac7a7f1dd",
      "old_mode": 33188,
      "old_path": "ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java",
      "new_id": "92a31d6df224a83cf29cf51bd776bd0bdcb8c9b9",
      "new_mode": 33188,
      "new_path": "ruby/src/main/java/com/google/protobuf/jruby/RubyMessage.java"
    },
    {
      "type": "modify",
      "old_id": "5b781b7a692a22756fdc07eb15efeb647597ce98",
      "old_mode": 33261,
      "old_path": "ruby/tests/basic.rb",
      "new_id": "7351b9cd33e109ef4f3d01401e81f7915dfe91f1",
      "new_mode": 33261,
      "new_path": "ruby/tests/basic.rb"
    }
  ]
}
