Skip to content

Commit

Permalink
add java-vertexai to the monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenyiQ committed Dec 8, 2023
1 parent 5f98645 commit 4cb1920
Show file tree
Hide file tree
Showing 713 changed files with 357,462 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gapic-libraries-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<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} -->
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-workflows-bom</artifactId>
Expand Down
36 changes: 36 additions & 0 deletions java-vertexai/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


deep-remove-regex:
- "/java-vertexai/grpc-google-.*/src"
- "/java-vertexai/proto-google-.*/src"
- "/java-vertexai/google-.*/src"
- "/java-vertexai/samples/snippets/generated"

deep-preserve-regex:
- "/java-vertexai/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"

deep-copy-regex:
- source: "/google/cloud/vertexai/(v.*)/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-vertexai/$1/proto-google-cloud-vertexai-$1/src"
- source: "/google/cloud/vertexai/(v.*)/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/java-vertexai/$1/grpc-google-cloud-vertexai-$1/src"
- source: "/google/cloud/vertexai/(v.*)/.*-java/gapic-google-.*/src"
dest: "/owl-bot-staging/java-vertexai/$1/google-cloud-vertexai/src"
- source: "/google/cloud/vertexai/(v.*)/.*-java/samples/snippets/generated"
dest: "/owl-bot-staging/java-vertexai/$1/samples/snippets/generated"


api-name: vertexai
16 changes: 16 additions & 0 deletions java-vertexai/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"api_shortname": "vertexai",
"name_pretty": "VertexAI API",
"product_documentation": "https://cloud.google.com/vertex-ai/docs",
"api_description": "Vertex AI is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle.",
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/overview",
"release_level": "preview",
"transport": "both",
"language": "java",
"repo": "googleapis/java-vertexai",
"repo_short": "java-vertexai",
"distribution_name": "com.google.cloud:google-cloud-vertexai",
"api_id": "vertexai.googleapis.com",
"library_type": "GAPIC_AUTO",
"requires_billing": true
}
13 changes: 13 additions & 0 deletions java-vertexai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Vertex AI Java SDK

> [!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.

*More details and information coming soon!*

## License

Apache 2.0 - See [LICENSE] for more information.

54 changes: 54 additions & 0 deletions java-vertexai/google-cloud-vertexai-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vertexai-bom</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-vertexai:current} -->
<packaging>pom</packaging>

<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pom-parent</artifactId>
<version>1.26.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-java:current} -->
<relativePath>../../google-cloud-pom-parent/pom.xml</relativePath>
</parent>

<name>Google VertexAI API BOM</name>
<description>
BOM for VertexAI API
</description>

<properties>
<maven.antrun.skip>true</maven.antrun.skip>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vertexai</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-vertexai:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-vertexai-v1</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-vertexai-v1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-vertexai-v1beta1</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-vertexai-v1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-vertexai-v1beta1</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-vertexai-v1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-vertexai-v1</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-vertexai-v1:current} -->
</dependency>
</dependencies>
</dependencyManagement>
</project>
134 changes: 134 additions & 0 deletions java-vertexai/google-cloud-vertexai/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vertexai</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-vertexai:current} -->
<packaging>jar</packaging>
<name>Google VertexAI API</name>
<description>VertexAI API Vertex AI is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle.</description>
<parent>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-vertexai-parent</artifactId>
<version>0.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-vertexai:current} -->
</parent>
<properties>
<site.installationModule>google-cloud-vertexai</site.installationModule>
<mockito.version>5.7.0</mockito.version>
</properties>
<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>api-common</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-vertexai-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-vertexai-v1beta1</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax-grpc</artifactId>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax-httpjson</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-iam-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-iam-v1</artifactId>
</dependency>
<dependency>
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-vertexai-v1beta1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-vertexai-v1</artifactId>
<scope>test</scope>
</dependency>
<!-- Need testing utility classes for generated gRPC clients tests -->
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax</artifactId>
<classifier>testlib</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax-grpc</artifactId>
<classifier>testlib</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api</groupId>
<artifactId>gax-httpjson</artifactId>
<classifier>testlib</classifier>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.google.cloud.vertexai;

/** Transport used for sending request */
public enum Transport {
REST,
GRPC
}
Loading

0 comments on commit 4cb1920

Please sign in to comment.