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

feat: add java-vertexai to the monorepo #10129

Merged
merged 13 commits into from Dec 12, 2023
Merged

Conversation

ZhenyiQ
Copy link
Collaborator

@ZhenyiQ ZhenyiQ commented Dec 8, 2023

BEGIN_COMMIT_OVERRIDE
feat: [vertexai] Initial release of Vertex Java SDK (#10129)
END_COMMIT_OVERRIDE

Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

Copy link

snippet-bot bot commented Dec 8, 2023

Here is the summary of changes.

You are about to add 280 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

</parent>
<properties>
<site.installationModule>google-cloud-vertexai</site.installationModule>
<mockito.version>5.7.0</mockito.version>
Copy link
Member

Choose a reason for hiding this comment

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

I believe the mockito version is already managed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed my dependency to mockito-all without version specification. Thanks!

* <p>Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
@Generated("by gapic-generator-java")
public class EndpointServiceClient implements BackgroundResource {
Copy link
Member

Choose a reason for hiding this comment

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

Is EndpointServiceClient needed? I thought that only PredictionServiceClient was being added.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I honestly don't know. Earlier I was trying to remove the endpoint proto but got an error message that was something like "endpoint service was not found" and gave up triming it further down. I'm not sure if it's related to the google.api.method_policy option in the rpc definition (can send an internal link to you via chat)

<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vertexai-bom</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-vertexai:current} -->
Copy link
Member

Choose a reason for hiding this comment

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

Is 0.0.1 the version you want to launch with? If not, you should update it in versions.txt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to 0.1.0-SNAPSHOT. Thank you!

# limitations under the License.


deep-remove-regex:
Copy link
Member

@suztomo suztomo Dec 8, 2023

Choose a reason for hiding this comment

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

I read that OwlBot is not supposed to touch these files. Then do not add OwlBot configuration file. This will remove files that match these regular expression.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for catching this! Removed the .Owlbot yaml file

> [!IMPORTANT]
> Thanks for your interest in the Vertex AI SDKs! **You can start using this SDK and its samples on December 13, 2023.** Until then, check out our [blog post](https://blog.google/technology/ai/google-gemini-ai/) to learn more about Google's Gemini multimodal model.

The Vertex AI <language> SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications.
Copy link
Member

Choose a reason for hiding this comment

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

<language>

It seems missed to be updated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The autogenerated file was manually modified to this and we'll flip the content before release (12/13)

@meltsufin meltsufin added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 8, 2023
@@ -96,10 +96,10 @@ removeArtifactVersion 'dependency' 'google-api-services-cloudresourcemanager'
removeArtifactVersion 'dependency' 'google-api-services-storage'
removeArtifactVersion 'dependency' 'google-cloud-storage'
removeArtifactVersion 'plugin' 'maven-checkstyle-plugin'
removeArtifactVersion 'dependency' 'mockito-all'
removeArtifactVersion 'dependency' 'mockito-core'
Copy link
Member

Choose a reason for hiding this comment

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

I don't think any changes to this file are needed. This was relevant when we were migrating from split repos.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reverted this change!

@meltsufin meltsufin added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 11, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 11, 2023
"repo_short": "java-vertexai",
"distribution_name": "com.google.cloud:google-cloud-vertexai",
"api_id": "vertexai.googleapis.com",
"library_type": "GAPIC_AUTO",
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably want to change this to GAPIC_COMBO as this library includes both handwritten and generated code. See an example in Spanner.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point! Done!

@meltsufin meltsufin added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 11, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 11, 2023
@meltsufin meltsufin removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 12, 2023
@meltsufin meltsufin merged commit 91eccd5 into googleapis:main Dec 12, 2023
32 of 34 checks passed
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.

None yet

4 participants