Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [VertexAI] Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests. #10694

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Apr 12, 2024

fix: Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests.

  • Implement lazy init using Suppliers.memorize instead of an explicit lock.
  • Add a newBuilder method in VertexAI.
  • Updates unit tests to avoid accessing private fields in VertexAI.

…ivate members in tests.

  - Implement lazy init using Suppliers.memorize instead of an explicit lock.
  - Add a newBuilder method in VertexAI.
  - Updates unit tests to avoid accessing private fields in VertexAI.

PiperOrigin-RevId: 624303836
@ZhenyiQ ZhenyiQ changed the title fix: Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests. fix: [VertexAI] Simplify VertexAI with Suppliers.memorize and avoid accessing private members in tests. Apr 17, 2024
@ZhenyiQ ZhenyiQ merged commit 7bdfa55 into main Apr 17, 2024
31 checks passed
@ZhenyiQ ZhenyiQ deleted the copybara_624303836 branch April 17, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants