Skip to content

Commit dda5e1e

Browse files
regen: Regenerate Google.Cloud.Firestore at API commit 534adc5
feat: publish the pipelines API to the stable branch PiperOrigin-RevId: 840829013 Source-Link: googleapis/googleapis@534adc5
1 parent d26f4f4 commit dda5e1e

File tree

12 files changed

+2846
-245
lines changed

12 files changed

+2846
-245
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// Copyright 2025 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Generated code. DO NOT EDIT!
16+
17+
namespace GoogleCSharpSnippets
18+
{
19+
// [START firestore_v1_generated_Firestore_ExecutePipeline_sync]
20+
using Google.Api.Gax.Grpc;
21+
using Google.Cloud.Firestore.V1;
22+
using Google.Protobuf;
23+
using System.Threading.Tasks;
24+
25+
public sealed partial class GeneratedFirestoreClientSnippets
26+
{
27+
/// <summary>Snippet for ExecutePipeline</summary>
28+
/// <remarks>
29+
/// This snippet has been automatically generated and should be regarded as a code template only.
30+
/// It will require modifications to work:
31+
/// - It may require correct/in-range values for request initialization.
32+
/// - It may require specifying regional endpoints when creating the service client as shown in
33+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
34+
/// </remarks>
35+
public async Task ExecutePipelineRequestObject()
36+
{
37+
// Create client
38+
FirestoreClient firestoreClient = FirestoreClient.Create();
39+
// Initialize request argument(s)
40+
ExecutePipelineRequest request = new ExecutePipelineRequest
41+
{
42+
Database = "",
43+
StructuredPipeline = new StructuredPipeline(),
44+
Transaction = ByteString.Empty,
45+
};
46+
// Make the request, returning a streaming response
47+
using FirestoreClient.ExecutePipelineStream response = firestoreClient.ExecutePipeline(request);
48+
49+
// Read streaming responses from server until complete
50+
// Note that C# 8 code can use await foreach
51+
AsyncResponseStream<ExecutePipelineResponse> responseStream = response.GetResponseStream();
52+
while (await responseStream.MoveNextAsync())
53+
{
54+
ExecutePipelineResponse responseItem = responseStream.Current;
55+
// Do something with streamed response
56+
}
57+
// The response stream has completed
58+
}
59+
}
60+
// [END firestore_v1_generated_Firestore_ExecutePipeline_sync]
61+
}

apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1.GeneratedSnippets/snippet_metadata_google.firestore.v1.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,54 @@
12801280
}
12811281
]
12821282
},
1283+
{
1284+
"regionTag": "firestore_v1_generated_Firestore_ExecutePipeline_sync",
1285+
"title": "ExecutePipelineRequestObject",
1286+
"description": "Snippet for ExecutePipeline",
1287+
"file": "FirestoreClient.ExecutePipelineRequestObjectSnippet.g.cs",
1288+
"language": "C_SHARP",
1289+
"clientMethod": {
1290+
"shortName": "ExecutePipeline",
1291+
"fullName": "Google.Cloud.Firestore.V1.FirestoreClient.ExecutePipeline",
1292+
"parameters": [
1293+
{
1294+
"type": "Google.Cloud.Firestore.V1.ExecutePipelineRequest",
1295+
"name": "request"
1296+
},
1297+
{
1298+
"type": "Google.Api.Gax.Grpc.CallSettings",
1299+
"name": "callSettings"
1300+
}
1301+
],
1302+
"resultType": "Google.Cloud.Firestore.V1.FirestoreClient+ExecutePipelineStream",
1303+
"client": {
1304+
"shortName": "FirestoreClient",
1305+
"fullName": "Google.Cloud.Firestore.V1.FirestoreClient"
1306+
},
1307+
"method": {
1308+
"shortName": "ExecutePipeline",
1309+
"fullName": "google.firestore.v1.Firestore.ExecutePipeline",
1310+
"service": {
1311+
"shortName": "Firestore",
1312+
"fullName": "google.firestore.v1.Firestore"
1313+
}
1314+
}
1315+
},
1316+
"canonical": true,
1317+
"origin": "API_DEFINITION",
1318+
"segments": [
1319+
{
1320+
"start": 20,
1321+
"end": 59,
1322+
"type": "FULL"
1323+
},
1324+
{
1325+
"start": 37,
1326+
"end": 57,
1327+
"type": "SHORT"
1328+
}
1329+
]
1330+
},
12831331
{
12841332
"regionTag": "firestore_v1_generated_Firestore_RunAggregationQuery_sync",
12851333
"title": "RunAggregationQueryRequestObject",

apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1.Snippets/FirestoreClientSnippets.g.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,34 @@ public async Task RunQueryRequestObject()
552552
// End snippet
553553
}
554554

555+
/// <summary>Snippet for ExecutePipeline</summary>
556+
public async Task ExecutePipelineRequestObject()
557+
{
558+
// Snippet: ExecutePipeline(ExecutePipelineRequest, CallSettings)
559+
// Create client
560+
FirestoreClient firestoreClient = FirestoreClient.Create();
561+
// Initialize request argument(s)
562+
ExecutePipelineRequest request = new ExecutePipelineRequest
563+
{
564+
Database = "",
565+
StructuredPipeline = new StructuredPipeline(),
566+
Transaction = ByteString.Empty,
567+
};
568+
// Make the request, returning a streaming response
569+
using FirestoreClient.ExecutePipelineStream response = firestoreClient.ExecutePipeline(request);
570+
571+
// Read streaming responses from server until complete
572+
// Note that C# 8 code can use await foreach
573+
AsyncResponseStream<ExecutePipelineResponse> responseStream = response.GetResponseStream();
574+
while (await responseStream.MoveNextAsync())
575+
{
576+
ExecutePipelineResponse responseItem = responseStream.Current;
577+
// Do something with streamed response
578+
}
579+
// The response stream has completed
580+
// End snippet
581+
}
582+
555583
/// <summary>Snippet for RunAggregationQuery</summary>
556584
public async Task RunAggregationQueryRequestObject()
557585
{

0 commit comments

Comments
 (0)