Skip to content

Conversation

@powmax-commits
Copy link
Contributor

@powmax-commits powmax-commits commented Sep 22, 2025

Description

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Follow the CONTRIBUTING Guide.
  • Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
    • Important Prefixes for release-please:
      • fix: which represents bug fixes, and correlates to a SemVer patch.
      • feat: represents a new feature, and correlates to a SemVer minor.
      • feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.
  • Ensure the tests pass
  • Appropriate READMEs were updated (if necessary)

Fixes #286 🦕

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @powmax-commits, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request implements a significant renaming operation, changing all instances of pushNotification to pushNotificationConfig. This modification spans the Protobuf schema, generated Java gRPC code, and the core client and server-side logic, ensuring consistency and clarity in how push notification configurations are referenced and handled. The change is categorized as a breaking fix, indicating an important update to the API.

Highlights

  • API Renaming: The pushNotification field and its related methods have been consistently renamed to pushNotificationConfig across the codebase for improved clarity.
  • Protobuf Schema Update: The underlying Protobuf definition (a2a.proto) for SendMessageConfiguration was updated to reflect this rename, changing push_notification to push_notification_config.
  • Breaking Change: This rename is explicitly marked as a breaking change (fix!) due to its impact on the API and wire format, necessitating updates in client and server implementations.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a breaking change by renaming pushNotification to pushNotificationConfig for consistency. The changes are applied correctly across all relevant files, including the protobuf definition, generated code, and business logic. The refactoring is well-executed, and I have no further suggestions.

"le/api/field_behavior.proto\032\033google/prot" +
"obuf/empty.proto\032\034google/protobuf/struct" +
".proto\032\037google/protobuf/timestamp.proto\"" +
"\236\001\n\030SendMessageConfiguration\022\035\n\025accepted" +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We automatically generate this file using buf generate from the .proto specification file from the a2a repo. We can remove these changes from this PR for now and once updated upstream, we'll incorporate the changes here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


public static final int PUSH_NOTIFICATION_FIELD_NUMBER = 2;
private io.a2a.grpc.PushNotificationConfig pushNotification_;
public static final int PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER = 2;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, since we auto-generate this file, we can remove these changes for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

*
* <code>.a2a.v1.PushNotificationConfig push_notification = 2;</code>
* @return Whether the pushNotification field is set.
* <code>.a2a.v1.PushNotificationConfig push_notification_config = 2;</code>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, this is an auto-generated file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

repeated string accepted_output_modes = 1;
// A configuration of a webhook that can be used to receive updates
PushNotificationConfig push_notification = 2;
PushNotificationConfig push_notification_config = 2;
Copy link
Collaborator

@fjuma fjuma Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to raise an issue in https://github.com/a2aproject/A2A and submit a PR against that project with this change? (that's where we get this .proto file from and use it to generate the files).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending, will backlink here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks very much!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem - PR here: a2aproject/A2A#1092

Copy link
Collaborator

@fjuma fjuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, @powmax-commits!

I've just added some small comments here to remove the changes from the auto-generated gRPC files for now and submit a PR against https://github.com/a2aproject/A2A/issues to correct the gRPC .proto spec file. Once that change is included in a release, we'll update the generated files here accordingly.

Thanks very much!

@powmax-commits
Copy link
Contributor Author

Thanks for taking a look @fjuma - I'll address both and update the request.

@fjuma fjuma merged commit a201168 into a2aproject:main Sep 23, 2025
4 checks passed
kabir pushed a commit to kabir/a2a-java that referenced this pull request Sep 24, 2025
…) (a2aproject#290)

# Description

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make
sure it goes smoothly:

- [X] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md).
- [X] Make your Pull Request title in the
<https://www.conventionalcommits.org/> specification.
- Important Prefixes for
[release-please](https://github.com/googleapis/release-please):
- `fix:` which represents bug fixes, and correlates to a
[SemVer](https://semver.org/) patch.
- `feat:` represents a new feature, and correlates to a SemVer minor.
- `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking
change (indicated by the `!`) and will result in a SemVer major.
- [x] Ensure the tests pass
- [X] Appropriate READMEs were updated (if necessary)

Fixes a2aproject#286 🦕
kabir pushed a commit to kabir/a2a-java that referenced this pull request Dec 23, 2025
…) (a2aproject#290)

# Description

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make
sure it goes smoothly:

- [X] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md).
- [X] Make your Pull Request title in the
<https://www.conventionalcommits.org/> specification.
- Important Prefixes for
[release-please](https://github.com/googleapis/release-please):
- `fix:` which represents bug fixes, and correlates to a
[SemVer](https://semver.org/) patch.
- `feat:` represents a new feature, and correlates to a SemVer minor.
- `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking
change (indicated by the `!`) and will result in a SemVer major.
- [x] Ensure the tests pass
- [X] Appropriate READMEs were updated (if necessary)

Fixes a2aproject#286 🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MessageSendConfiguration::pushNotification should be pushNotificationConfig

3 participants