Skip to content

Commit 511e445

Browse files
1 parent 08b92e9 commit 511e445

28 files changed

+2197
-21
lines changed

clients/google-api-services-firestore/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-firestore</artifactId>
25-
<version>v1-rev20251203-2.0.0</version>
25+
<version>v1-rev20260105-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-firestore:v1-rev20251203-2.0.0'
38+
implementation 'com.google.apis:google-api-services-firestore:v1-rev20260105-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-firestore/v1/2.0.0/com/google/api/services/firestore/v1/Firestore.java

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4691,6 +4691,141 @@ public Delete set(String parameterName, Object value) {
46914691
return (Delete) super.set(parameterName, value);
46924692
}
46934693
}
4694+
/**
4695+
* Executes a pipeline query.
4696+
*
4697+
* Create a request for the method "documents.executePipeline".
4698+
*
4699+
* This request holds the parameters needed by the firestore server. After setting any optional
4700+
* parameters, call the {@link ExecutePipeline#execute()} method to invoke the remote operation.
4701+
*
4702+
* @param database Required. Database identifier, in the form `projects/{project}/databases/{database}`.
4703+
* @param content the {@link com.google.api.services.firestore.v1.model.ExecutePipelineRequest}
4704+
* @return the request
4705+
*/
4706+
public ExecutePipeline executePipeline(java.lang.String database, com.google.api.services.firestore.v1.model.ExecutePipelineRequest content) throws java.io.IOException {
4707+
ExecutePipeline result = new ExecutePipeline(database, content);
4708+
initialize(result);
4709+
return result;
4710+
}
4711+
4712+
public class ExecutePipeline extends FirestoreRequest<com.google.api.services.firestore.v1.model.ExecutePipelineResponse> {
4713+
4714+
private static final String REST_PATH = "v1/{+database}/documents:executePipeline";
4715+
4716+
private final java.util.regex.Pattern DATABASE_PATTERN =
4717+
java.util.regex.Pattern.compile("^projects/[^/]+/databases/[^/]+$");
4718+
4719+
/**
4720+
* Executes a pipeline query.
4721+
*
4722+
* Create a request for the method "documents.executePipeline".
4723+
*
4724+
* This request holds the parameters needed by the the firestore server. After setting any
4725+
* optional parameters, call the {@link ExecutePipeline#execute()} method to invoke the remote
4726+
* operation. <p> {@link ExecutePipeline#initialize(com.google.api.client.googleapis.services.Abst
4727+
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
4728+
* the constructor. </p>
4729+
*
4730+
* @param database Required. Database identifier, in the form `projects/{project}/databases/{database}`.
4731+
* @param content the {@link com.google.api.services.firestore.v1.model.ExecutePipelineRequest}
4732+
* @since 1.13
4733+
*/
4734+
protected ExecutePipeline(java.lang.String database, com.google.api.services.firestore.v1.model.ExecutePipelineRequest content) {
4735+
super(Firestore.this, "POST", REST_PATH, content, com.google.api.services.firestore.v1.model.ExecutePipelineResponse.class);
4736+
this.database = com.google.api.client.util.Preconditions.checkNotNull(database, "Required parameter database must be specified.");
4737+
if (!getSuppressPatternChecks()) {
4738+
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
4739+
"Parameter database must conform to the pattern " +
4740+
"^projects/[^/]+/databases/[^/]+$");
4741+
}
4742+
}
4743+
4744+
@Override
4745+
public ExecutePipeline set$Xgafv(java.lang.String $Xgafv) {
4746+
return (ExecutePipeline) super.set$Xgafv($Xgafv);
4747+
}
4748+
4749+
@Override
4750+
public ExecutePipeline setAccessToken(java.lang.String accessToken) {
4751+
return (ExecutePipeline) super.setAccessToken(accessToken);
4752+
}
4753+
4754+
@Override
4755+
public ExecutePipeline setAlt(java.lang.String alt) {
4756+
return (ExecutePipeline) super.setAlt(alt);
4757+
}
4758+
4759+
@Override
4760+
public ExecutePipeline setCallback(java.lang.String callback) {
4761+
return (ExecutePipeline) super.setCallback(callback);
4762+
}
4763+
4764+
@Override
4765+
public ExecutePipeline setFields(java.lang.String fields) {
4766+
return (ExecutePipeline) super.setFields(fields);
4767+
}
4768+
4769+
@Override
4770+
public ExecutePipeline setKey(java.lang.String key) {
4771+
return (ExecutePipeline) super.setKey(key);
4772+
}
4773+
4774+
@Override
4775+
public ExecutePipeline setOauthToken(java.lang.String oauthToken) {
4776+
return (ExecutePipeline) super.setOauthToken(oauthToken);
4777+
}
4778+
4779+
@Override
4780+
public ExecutePipeline setPrettyPrint(java.lang.Boolean prettyPrint) {
4781+
return (ExecutePipeline) super.setPrettyPrint(prettyPrint);
4782+
}
4783+
4784+
@Override
4785+
public ExecutePipeline setQuotaUser(java.lang.String quotaUser) {
4786+
return (ExecutePipeline) super.setQuotaUser(quotaUser);
4787+
}
4788+
4789+
@Override
4790+
public ExecutePipeline setUploadType(java.lang.String uploadType) {
4791+
return (ExecutePipeline) super.setUploadType(uploadType);
4792+
}
4793+
4794+
@Override
4795+
public ExecutePipeline setUploadProtocol(java.lang.String uploadProtocol) {
4796+
return (ExecutePipeline) super.setUploadProtocol(uploadProtocol);
4797+
}
4798+
4799+
/**
4800+
* Required. Database identifier, in the form `projects/{project}/databases/{database}`.
4801+
*/
4802+
@com.google.api.client.util.Key
4803+
private java.lang.String database;
4804+
4805+
/** Required. Database identifier, in the form `projects/{project}/databases/{database}`.
4806+
*/
4807+
public java.lang.String getDatabase() {
4808+
return database;
4809+
}
4810+
4811+
/**
4812+
* Required. Database identifier, in the form `projects/{project}/databases/{database}`.
4813+
*/
4814+
public ExecutePipeline setDatabase(java.lang.String database) {
4815+
if (!getSuppressPatternChecks()) {
4816+
com.google.api.client.util.Preconditions.checkArgument(DATABASE_PATTERN.matcher(database).matches(),
4817+
"Parameter database must conform to the pattern " +
4818+
"^projects/[^/]+/databases/[^/]+$");
4819+
}
4820+
this.database = database;
4821+
return this;
4822+
}
4823+
4824+
@Override
4825+
public ExecutePipeline set(String parameterName, Object value) {
4826+
return (ExecutePipeline) super.set(parameterName, value);
4827+
}
4828+
}
46944829
/**
46954830
* Gets a single document.
46964831
*
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.firestore.v1.model;
18+
19+
/**
20+
* The request for Firestore.ExecutePipeline.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Firestore API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class ExecutePipelineRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Execute the pipeline in a new transaction. The identifier of the newly created transaction will
34+
* be returned in the first response on the stream. This defaults to a read-only transaction.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private TransactionOptions newTransaction;
39+
40+
/**
41+
* Execute the pipeline in a snapshot transaction at the given time. This must be a microsecond
42+
* precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can
43+
* additionally be a whole minute timestamp within the past 7 days.
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private String readTime;
48+
49+
/**
50+
* A pipelined operation.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private StructuredPipeline structuredPipeline;
55+
56+
/**
57+
* Run the query within an already active transaction. The value here is the opaque transaction ID
58+
* to execute the query in.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private java.lang.String transaction;
63+
64+
/**
65+
* Execute the pipeline in a new transaction. The identifier of the newly created transaction will
66+
* be returned in the first response on the stream. This defaults to a read-only transaction.
67+
* @return value or {@code null} for none
68+
*/
69+
public TransactionOptions getNewTransaction() {
70+
return newTransaction;
71+
}
72+
73+
/**
74+
* Execute the pipeline in a new transaction. The identifier of the newly created transaction will
75+
* be returned in the first response on the stream. This defaults to a read-only transaction.
76+
* @param newTransaction newTransaction or {@code null} for none
77+
*/
78+
public ExecutePipelineRequest setNewTransaction(TransactionOptions newTransaction) {
79+
this.newTransaction = newTransaction;
80+
return this;
81+
}
82+
83+
/**
84+
* Execute the pipeline in a snapshot transaction at the given time. This must be a microsecond
85+
* precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can
86+
* additionally be a whole minute timestamp within the past 7 days.
87+
* @return value or {@code null} for none
88+
*/
89+
public String getReadTime() {
90+
return readTime;
91+
}
92+
93+
/**
94+
* Execute the pipeline in a snapshot transaction at the given time. This must be a microsecond
95+
* precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can
96+
* additionally be a whole minute timestamp within the past 7 days.
97+
* @param readTime readTime or {@code null} for none
98+
*/
99+
public ExecutePipelineRequest setReadTime(String readTime) {
100+
this.readTime = readTime;
101+
return this;
102+
}
103+
104+
/**
105+
* A pipelined operation.
106+
* @return value or {@code null} for none
107+
*/
108+
public StructuredPipeline getStructuredPipeline() {
109+
return structuredPipeline;
110+
}
111+
112+
/**
113+
* A pipelined operation.
114+
* @param structuredPipeline structuredPipeline or {@code null} for none
115+
*/
116+
public ExecutePipelineRequest setStructuredPipeline(StructuredPipeline structuredPipeline) {
117+
this.structuredPipeline = structuredPipeline;
118+
return this;
119+
}
120+
121+
/**
122+
* Run the query within an already active transaction. The value here is the opaque transaction ID
123+
* to execute the query in.
124+
* @see #decodeTransaction()
125+
* @return value or {@code null} for none
126+
*/
127+
public java.lang.String getTransaction() {
128+
return transaction;
129+
}
130+
131+
/**
132+
* Run the query within an already active transaction. The value here is the opaque transaction ID
133+
* to execute the query in.
134+
* @see #getTransaction()
135+
* @return Base64 decoded value or {@code null} for none
136+
*
137+
* @since 1.14
138+
*/
139+
public byte[] decodeTransaction() {
140+
return com.google.api.client.util.Base64.decodeBase64(transaction);
141+
}
142+
143+
/**
144+
* Run the query within an already active transaction. The value here is the opaque transaction ID
145+
* to execute the query in.
146+
* @see #encodeTransaction()
147+
* @param transaction transaction or {@code null} for none
148+
*/
149+
public ExecutePipelineRequest setTransaction(java.lang.String transaction) {
150+
this.transaction = transaction;
151+
return this;
152+
}
153+
154+
/**
155+
* Run the query within an already active transaction. The value here is the opaque transaction ID
156+
* to execute the query in.
157+
* @see #setTransaction()
158+
*
159+
* <p>
160+
* The value is encoded Base64 or {@code null} for none.
161+
* </p>
162+
*
163+
* @since 1.14
164+
*/
165+
public ExecutePipelineRequest encodeTransaction(byte[] transaction) {
166+
this.transaction = com.google.api.client.util.Base64.encodeBase64URLSafeString(transaction);
167+
return this;
168+
}
169+
170+
@Override
171+
public ExecutePipelineRequest set(String fieldName, Object value) {
172+
return (ExecutePipelineRequest) super.set(fieldName, value);
173+
}
174+
175+
@Override
176+
public ExecutePipelineRequest clone() {
177+
return (ExecutePipelineRequest) super.clone();
178+
}
179+
180+
}

0 commit comments

Comments
 (0)