Skip to content

Commit b35c1df

Browse files
committed
Manual changes to add proto, build rule and dependencies.
1 parent 395ced1 commit b35c1df

6 files changed

Lines changed: 77 additions & 2 deletions

File tree

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
<modules>
210210
<module>proto-google-cloud-firestore-admin-v1</module>
211211
<module>proto-google-cloud-firestore-v1</module>
212+
<module>proto-google-cloud-firestore-bundle-v1</module>
212213
<module>grpc-google-cloud-firestore-admin-v1</module>
213214
<module>grpc-google-cloud-firestore-v1</module>
214215
<module>google-cloud-firestore-admin</module>
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>proto-google-cloud-firestore-bundle-v1</artifactId>
8+
<version>1.0.0-SNAPSHOT</version>
9+
10+
<name>proto-google-cloud-firestore-bundle-v1</name>
11+
<description>PROTO library for proto-google-cloud-firestore-bundle-v1</description>
12+
<parent>
13+
<groupId>com.google.cloud</groupId>
14+
<artifactId>google-cloud-firestore-parent</artifactId>
15+
<version>2.0.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-firestore-parent:current} -->
16+
</parent>
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.google.protobuf</groupId>
20+
<artifactId>protobuf-java</artifactId>
21+
<scope>compile</scope>
22+
</dependency>
23+
<dependency>
24+
<groupId>com.google.api</groupId>
25+
<artifactId>api-common</artifactId>
26+
<scope>compile</scope>
27+
</dependency>
28+
<dependency>
29+
<groupId>com.google.api.grpc</groupId>
30+
<artifactId>proto-google-common-protos</artifactId>
31+
<scope>compile</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>com.google.guava</groupId>
35+
<artifactId>guava</artifactId>
36+
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>proto-google-cloud-firestore-v1</artifactId>
40+
</dependency>
41+
</dependencies>
42+
<build>
43+
<plugins>
44+
<plugin>
45+
<groupId>org.codehaus.mojo</groupId>
46+
<artifactId>flatten-maven-plugin</artifactId>
47+
</plugin>
48+
</plugins>
49+
</build>
50+
<profiles>
51+
<profile>
52+
<id>java9</id>
53+
<activation>
54+
<jdk>[9,)</jdk>
55+
</activation>
56+
<dependencies>
57+
<dependency>
58+
<groupId>javax.annotation</groupId>
59+
<artifactId>javax.annotation-api</artifactId>
60+
</dependency>
61+
</dependencies>
62+
</profile>
63+
</profiles>
64+
</project>

proto-google-cloud-firestore-v1/src/main/proto/firestore/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ java_proto_library(
4545

4646
# Open Source Packages
4747
java_gapic_assembly_gradle_pkg(
48-
name = "google-cloud-firestore-bundle-java",
48+
name = "google-cloud-firestore-bundle-v1-java",
4949
deps = [
5050
":firestore_bundle_java_proto",
5151
":firestore_bundle_proto",

proto-google-cloud-firestore-v1/src/main/proto/firestore/bundle.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ message BundledDocumentMetadata {
7979

8080
// Whether the document exists.
8181
bool exists = 3;
82+
83+
// The names of the queries in this bundle that this document matches to.
84+
repeated string queries = 4;
8285
}
8386

8487
// Metadata describing the bundle file/stream.

synth.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ def generate_client(service, version, proto_path=None, bazel_target=None, packag
120120
include_gapic=True
121121
)
122122

123+
bundle_v1 = generate_client(
124+
service='firestore-bundle',
125+
version='v1',
126+
proto_path='firestore',
127+
bazel_target='//firestore:google-cloud-firestore-bundle-v1-java',
128+
)
129+
123130
java.common_templates(excludes=[
124131
# firestore uses a different project for its integration tests
125132
# due to the default project running datastore

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cd "$TEMP_DIR"
3535
git clone --depth 1 https://github.com/googleapis/googleapis.git
3636

3737
# Tell synthtool to use the cloned googleapi repo.
38-
SYNTHTOOL_GOOGLEAPIS="$TEMP_DIR/googleapis"
38+
export SYNTHTOOL_GOOGLEAPIS="$TEMP_DIR/googleapis"
3939

4040
# Patch bundle.proto to local googleapi repo.
4141
mkdir "$SYNTHTOOL_GOOGLEAPIS/firestore"

0 commit comments

Comments
 (0)