forked from quarkusio/pt.quarkus.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcp-functions.adoc.po
577 lines (486 loc) · 29.4 KB
/
gcp-functions.adoc.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-10-29 08:09+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. This guide is maintained in the main Quarkus repository
#. and pull requests should be submitted there:
#. https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc
#. type: Title =
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Google Cloud Functions (Serverless)"
msgstr "Google Cloud Functions (sem servidor)"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus-google-cloud-functions` extension allows you to use Quarkus to build your Google Cloud Functions.\n"
"Your functions can use injection annotations from CDI or Spring and other Quarkus facilities as you need them."
msgstr "A extensão `quarkus-google-cloud-functions` permite que o senhor use o Quarkus para criar o Google Cloud Functions. Suas funções podem usar anotações de injeção do CDI ou do Spring e outros recursos do Quarkus, conforme a necessidade do senhor."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Prerequisites"
msgstr "Pré-requisitos"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "https://cloud.google.com/[A Google Cloud Account]. Free accounts work."
msgstr "link:https://cloud.google.com/[Uma conta do Google Cloud] . As contas gratuitas funcionam."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "https://cloud.google.com/sdk[Cloud SDK CLI Installed]"
msgstr "link:https://cloud.google.com/sdk[CLI do Cloud SDK instalada]"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Solution"
msgstr "Solução"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This guide walks you through generating a sample project followed by creating multiple functions showing how to implement `HttpFunction`, `BackgroundFunction` and `RawBackgroundFunction` in Quarkus.\n"
"Once built, you will be able to deploy the project to Google Cloud."
msgstr "Este guia orienta o senhor na geração de um projeto de amostra, seguido da criação de várias funções que mostram como implementar `HttpFunction` , `BackgroundFunction` e `RawBackgroundFunction` no Quarkus. Depois de criado, o senhor poderá implantar o projeto no Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "If you don't want to follow all these steps, you can go right to the completed example."
msgstr "Se não quiser seguir todas essas etapas, o senhor pode ir direto para o exemplo concluído."
#. type: Plain text
#: _guides/gcp-functions.adoc
msgid "Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive]."
msgstr "Clone o repositório Git: `git clone {quickstarts-clone-url}`, ou baixe um {quickstarts-archive-url}[arquivo]."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The solution is located in the `google-cloud-functions-quickstart` link:{quickstarts-tree-url}/google-cloud-functions-quickstart[directory]."
msgstr "A solução está localizada no link:{quickstarts-tree-url}/google-cloud-functions-quickstart[diretório] `google-cloud-functions-quickstart` ."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "Creating the Maven Deployment Project"
msgstr "Criando o Maven Deployment Project"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Create an application with the `quarkus-google-cloud-functions` extension.\n"
"You can use the following Maven command to create it:"
msgstr "Crie um aplicativo com a extensão `quarkus-google-cloud-functions` . O senhor pode usar o seguinte comando Maven para criá-lo:"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Login to Google Cloud"
msgstr "Faça login no Google Cloud"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Login to Google Cloud is necessary for deploying the application. It can be done as follows:"
msgstr "O login no Google Cloud é necessário para implantar o aplicativo. Isso pode ser feito da seguinte forma:"
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Creating the functions"
msgstr "Criando as funções"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"For this example project, we will create four functions, one `HttpFunction`, one `BackgroundFunction` (Storage event),\n"
"one `RawBackgroundFunction` (PubSub event) and one `CloudEventsFunction` (storage event using the Cloud Events specification)."
msgstr "Para este projeto de exemplo, criaremos quatro funções, uma `HttpFunction` , uma `BackgroundFunction` (evento de armazenamento), uma `RawBackgroundFunction` (evento PubSub) e uma `CloudEventsFunction` (evento de armazenamento usando a especificação Cloud Events)."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Choose Your Function"
msgstr "Escolha sua função"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus-google-cloud-functions` extension scans your project for a class that directly implements the Google Cloud `HttpFunction`, `BackgroundFunction`, `RawBackgroundFunction` or `CloudEventsFunction` interface.\n"
"It must find a class in your project that implements one of these interfaces, or it will throw a build time failure.\n"
"If it finds more than one function classes, a build time exception will also be thrown."
msgstr "A extensão `quarkus-google-cloud-functions` procura no seu projeto uma classe que implemente diretamente a interface do Google Cloud `HttpFunction` , `BackgroundFunction` , `RawBackgroundFunction` ou `CloudEventsFunction` . Ela deve encontrar uma classe em seu projeto que implemente uma dessas interfaces, caso contrário, lançará uma falha no tempo de compilação. Se ele encontrar mais de uma classe de função, também será lançada uma exceção de tempo de compilação."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Sometimes, though, you might have a few related functions that share code and creating multiple maven modules is just\n"
"an overhead you don't want to do. The extension allows you to bundle multiple functions in one\n"
"project and use configuration or an environment variable to pick the function you want to deploy."
msgstr "Às vezes, porém, o senhor pode ter algumas funções relacionadas que compartilham código e a criação de vários módulos maven é apenas uma sobrecarga que não deseja fazer. A extensão permite agrupar várias funções em um projeto e usar a configuração ou uma variável de ambiente para escolher a função que deseja implantar."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To configure the name of the function, you can use the following configuration property:"
msgstr "Para configurar o nome da função, o senhor pode usar a seguinte propriedade de configuração:"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The `quarkus.google-cloud-functions.function` property tells Quarkus which function to deploy. This can be overridden\n"
"with an environment variable too."
msgstr "A propriedade `quarkus.google-cloud-functions.function` informa ao Quarkus qual função deve ser implantada. Isso também pode ser substituído por uma variável de ambiente."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"The CDI name of the function class must match the value specified within the `quarkus.google-cloud-functions.function` property.\n"
"This must be done using the `@Named` annotation."
msgstr "O nome CDI da classe de função deve corresponder ao valor especificado na propriedade `quarkus.google-cloud-functions.function` . Isso deve ser feito usando a anotação `@Named` ."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The HttpFunction"
msgstr "A HttpFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The `@Named` annotation allows to name the CDI bean to be used by the `quarkus.google-cloud-functions.function` property, this is optional."
msgstr "A anotação `@Named` permite nomear o bean CDI a ser usado pela propriedade `quarkus.google-cloud-functions.function` , o que é opcional."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The function must be a CDI bean"
msgstr "A função deve ser um bean CDI"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.HttpFunction`."
msgstr "Esta é uma implementação normal da Função do Google Cloud, portanto, ela precisa implementar `com.google.cloud.functions.HttpFunction` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Injection works inside your function."
msgstr "A injeção funciona dentro de sua função."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is standard Google Cloud Function implementation, nothing fancy here."
msgstr "Essa é a implementação padrão do Google Cloud Function, nada de sofisticado aqui."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The BackgroundFunction"
msgstr "A BackgroundFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `BackgroundFunction` is triggered by a Storage event, you can use any events supported by Google Cloud instead."
msgstr "Este `BackgroundFunction` é acionado por um evento do Storage; em vez disso, o senhor pode usar qualquer evento compatível com o Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.BackgroundFunction`."
msgstr "Esta é uma implementação normal da Função do Google Cloud, portanto, ela precisa implementar `com.google.cloud.functions.BackgroundFunction` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is the class the event will be deserialized to."
msgstr "Essa é a classe para a qual o evento será desserializado."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The RawBackgroundFunction"
msgstr "A função RawBackgroundFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `RawBackgroundFunction` is triggered by a PubSub event, you can use any events supported by Google Cloud instead."
msgstr "Este `RawBackgroundFunction` é acionado por um evento PubSub, mas o senhor pode usar qualquer evento compatível com o Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.RawBackgroundFunction`."
msgstr "Esta é uma implementação normal da Função do Google Cloud, portanto, ela precisa implementar `com.google.cloud.functions.RawBackgroundFunction` ."
#. type: Title ===
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "The CloudEventsFunction"
msgstr "A função CloudEventsFunction"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This `CloudEventsFunction` is triggered by a Cloud Events Storage event, you can use any Cloud Events supported by Google Cloud instead."
msgstr "Este `CloudEventsFunction` é acionado por um evento de armazenamento do Cloud Events. Em vez disso, o senhor pode usar qualquer Cloud Events compatível com o Google Cloud."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a regular Google Cloud Function implementation, so it needs to implement `com.google.cloud.functions.CloudEventsFunction`."
msgstr "Esta é uma implementação normal da Função do Google Cloud, portanto, ela precisa implementar `com.google.cloud.functions.CloudEventsFunction` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is standard Google Cloud Function implementation, nothing fancy here except that it receives a `io.cloudevents.CloudEvent`."
msgstr "Esta é a implementação padrão da Função do Google Cloud, nada de especial aqui, exceto que ela recebe um `io.cloudevents.CloudEvent` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is the storage event inside the Cloud Events."
msgstr "Esse é o evento de armazenamento dentro do Cloud Events."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Build and Deploy to Google Cloud"
msgstr "Criar e implementar no Google Cloud"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To build your application, you can package it using the standard command:"
msgstr "Para compilar seu aplicativo, o senhor pode empacotá-lo usando o comando padrão:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The result of the previous command is a single JAR file inside the `target/deployment` repository that contains classes and dependencies of the project."
msgstr "O resultado do comando anterior é um único arquivo JAR dentro do repositório `target/deployment` que contém classes e dependências do projeto."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"Then you will be able to use `gcloud` to deploy your function to Google Cloud.\n"
"The `gcloud` command will be different depending on which event triggers your function."
msgstr "Em seguida, o senhor poderá usar o `gcloud` para implementar a função no Google Cloud. O comando `gcloud` será diferente, dependendo do evento que aciona a função."
#: _guides/gcp-functions.adoc
msgid "We will use the Java 21 runtime but you can switch to the Java 17 runtime by using `--runtime=java17` instead of `--runtime=java21` on the deploy commands."
msgstr ""
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The first time you launch this command, you can have the following error message:"
msgstr "Na primeira vez que o comando for iniciado, o senhor poderá receber a seguinte mensagem de erro:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This means that Cloud Build is not activated yet. To overcome this error, open the URL shown in the error, follow the instructions and then wait a few minutes before retrying the command."
msgstr "Isso significa que o Cloud Build ainda não está ativado. Para solucionar esse erro, abra a URL mostrada no erro, siga as instruções e aguarde alguns minutos antes de tentar novamente o comando."
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is an example command to deploy your `HttpFunction` to Google Cloud:"
msgstr "Este é um exemplo de comando para implementar o `HttpFunction` no Google Cloud:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusHttpFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "O ponto de entrada deve ser sempre definido como `io.quarkus.gcp.functions.QuarkusHttpFunction` , pois essa é a classe que integra o Cloud Functions ao Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This command will give you as output a `httpsTrigger.url` that points to your function."
msgstr "Esse comando dará ao senhor como saída um `httpsTrigger.url` que aponta para a sua função."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Before deploying your function, you need to create a bucket."
msgstr "Antes de implementar sua função, o senhor precisa criar um bucket."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `BackgroundFunction` to Google Cloud, as the function is triggered by a Storage event,\n"
"it needs to use `--trigger-event google.storage.object.finalize` and the `--trigger-resource` parameter with the name of a previously created bucket:"
msgstr "Este é um exemplo de comando para implementar seu `BackgroundFunction` no Google Cloud. Como a função é acionada por um evento de armazenamento, ela precisa usar `--trigger-event google.storage.object.finalize` e o parâmetro `--trigger-resource` com o nome de um bucket criado anteriormente:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusBackgroundFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "O ponto de entrada deve ser sempre definido como `io.quarkus.gcp.functions.QuarkusBackgroundFunction` , pois essa é a classe que integra o Cloud Functions ao Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the GCS `quarkus-hello` bucket, or you can use gcloud to simulate one:"
msgstr "Para acionar o evento, o senhor pode enviar um arquivo para o bucket do GCS `quarkus-hello` ou pode usar o gcloud para simular um:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`--data` contains the GCS event, it is a JSON document with the name of the file added to the bucket."
msgstr "`--data` contém o evento GCS, é um documento JSON com o nome do arquivo adicionado ao bucket."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `RawBackgroundFunction` to Google Cloud, as the function is triggered by a PubSub event,\n"
"it needs to use `--trigger-event google.pubsub.topic.publish` and the `--trigger-resource` parameter with the name of a previously created topic:"
msgstr "Este é um exemplo de comando para implantar seu `RawBackgroundFunction` no Google Cloud. Como a função é acionada por um evento PubSub, ela precisa usar `--trigger-event google.pubsub.topic.publish` e o parâmetro `--trigger-resource` com o nome de um tópico criado anteriormente:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the `hello_topic` topic, or you can use gcloud to simulate one:"
msgstr "Para acionar o evento, o senhor pode enviar um arquivo para o tópico `hello_topic` ou pode usar o gcloud para simular um:"
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This is an example command to deploy your `CloudEventsFunction` to Google Cloud, as the function is triggered by a Storage event,\n"
"it needs to use `--trigger-bucket` parameter with the name of a previously created bucket:"
msgstr "Este é um exemplo de comando para implantar seu `CloudEventsFunction` no Google Cloud. Como a função é acionada por um evento de armazenamento, ela precisa usar o parâmetro `--trigger-bucket` com o nome de um bucket criado anteriormente:"
#. type: delimited block =
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The entry point must always be set to `io.quarkus.gcp.functions.QuarkusCloudEventsFunction` as this is the class that integrates Cloud Functions with Quarkus."
msgstr "O ponto de entrada deve ser sempre definido como `io.quarkus.gcp.functions.QuarkusCloudEventsFunction` , pois essa é a classe que integra o Cloud Functions ao Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To trigger the event, you can send a file to the GCS `example-cloud-event` bucket."
msgstr "Para acionar o evento, o senhor pode enviar um arquivo para o bucket do GCS `example-cloud-event` ."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Running locally"
msgstr "Executando localmente"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The easiest way to locally run your function is using the Cloud Function invoker JAR."
msgstr "A maneira mais fácil de executar sua função localmente é usar o JAR do invocador de funções da nuvem."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "You can download it via Maven using the following command:"
msgstr "O senhor pode baixá-lo via Maven usando o seguinte comando:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Before using the invoker, you first need to build your function via:"
msgstr "Antes de usar o invocador, o senhor precisa primeiro criar sua função via:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For an `HttpFunction`, you can use this command to launch your function locally."
msgstr "Para um `HttpFunction` , o senhor pode usar esse comando para iniciar sua função localmente."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The `--classpath` parameter needs to be set to the previously packaged JAR that contains your function class and all Quarkus related classes."
msgstr "O parâmetro `--classpath` precisa ser definido como o JAR previamente empacotado que contém sua classe de função e todas as classes relacionadas ao Quarkus."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Your endpoints will be available on http://localhost:8080."
msgstr "Seus endpoints estarão disponíveis em link:http://localhost:8080[http://localhost:8080.]"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For background functions, you launch the invoker with a target class of `io.quarkus.gcp.functions.BackgroundFunction`."
msgstr "Para funções em segundo plano, o senhor inicia o invocador com uma classe de destino de `io.quarkus.gcp.functions.BackgroundFunction` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Then you can call your background function via an HTTP call with a payload containing the event:"
msgstr "Em seguida, o senhor pode chamar a função em segundo plano por meio de uma chamada HTTP com um payload contendo o evento:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your Storage background function with an event `{\"name\":\"hello.txt\"}`, so an event on the `hello.txt` file."
msgstr "Isso chamará a função em segundo plano do Storage com um evento `{\"name\":\"hello.txt\"}` , portanto, um evento no arquivo `hello.txt` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your PubSub background function with a PubSubMessage `{\"greeting\":\"world\"}`."
msgstr "Isso chamará a função de fundo do PubSub com uma PubSubMessage `{\"greeting\":\"world\"}` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "For cloud events functions, you launch the invoker with a target class of `io.quarkus.gcp.functions.QuarkusCloudEventsFunction`."
msgstr "Para funções de eventos na nuvem, o senhor inicia o invocador com uma classe de destino de `io.quarkus.gcp.functions.QuarkusCloudEventsFunction` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Then you can call your cloud events function via an HTTP call with a payload containing the event:"
msgstr "Em seguida, o senhor pode chamar sua função de eventos na nuvem por meio de uma chamada HTTP com uma carga útil contendo o evento:"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This will call your cloud events function with an event on the `\"MY_FILE.txt` file."
msgstr "Isso chamará sua função de eventos na nuvem com um evento no arquivo `\"MY_FILE.txt` ."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, fuzzy, no-wrap
msgid "Testing your function"
msgstr "Testar sua função"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "Quarkus provides built-in support for testing your Google Cloud functions via the `quarkus-test-google-cloud-functions` dependency."
msgstr "O Quarkus oferece suporte integrado para testar suas funções do Google Cloud por meio da dependência `quarkus-test-google-cloud-functions` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "To use it, you must add the following test dependency in your `pom.xml`."
msgstr "Para usá-lo, o senhor deve adicionar a seguinte dependência de teste em seu site `pom.xml` ."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid ""
"This extension provides a `@WithFunction` annotation that can be used to annotate `@QuarkusTest` test cases to start a Cloud Function invoker before you test cases and stop it at the end.\n"
"This annotation must be configured with the type of the function you want to launch, and optionally the name of the function in case you have multiple functions inside your application."
msgstr "Essa extensão fornece uma anotação `@WithFunction` que pode ser usada para anotar os casos de teste `@QuarkusTest` para iniciar um invocador de função da nuvem antes dos casos de teste e interrompê-lo no final. Essa anotação deve ser configurada com o tipo da função que deseja iniciar e, opcionalmente, com o nome da função, caso haja várias funções no aplicativo."
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The default Quarkus test port configuration (`quarkus.http.test-port`) will be honored and if you set it to 0 a random port will be assigned to the function invoker."
msgstr "A configuração padrão da porta de teste do Quarkus ( `quarkus.http.test-port` ) será respeitada e, se o senhor defini-la como 0, uma porta aleatória será atribuída ao invocador da função."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "This is a standard Quarkus test that must be annotated by `@QuarkusTest`."
msgstr "Este é um teste padrão do Quarkus que deve ser anotado por `@QuarkusTest` ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.HTTP)` indicates to launch the function as an HTTP function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.HTTP)` indica o lançamento da função como uma função HTTP. Se houver várias funções no mesmo aplicativo, o atributo `functionName` deverá ser usado para indicar qual delas deve ser iniciada."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, `Hello World!` will be sent to it via the invoker."
msgstr "O REST-assured é usado para testar a função, `Hello World!` será enviado a ele por meio do invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.BACKGROUND)` indicates to launch the function as a background function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.BACKGROUND)` indica o lançamento da função como uma função em segundo plano. Se houver várias funções no mesmo aplicativo, o atributo `functionName` deverá ser usado para indicar qual delas deve ser iniciada."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, `{\"name\":\"hello.txt\"}` will be sent to it via the invoker."
msgstr "O REST-assured é usado para testar a função, `{\"name\":\"hello.txt\"}` será enviado a ele por meio do invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.RAW_BACKGROUND)` indicates to launch the function as a raw background function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.RAW_BACKGROUND)` indica que a função deve ser iniciada como uma função de fundo bruta. Se houver várias funções no mesmo aplicativo, o atributo `functionName` deverá ser usado para indicar qual delas deve ser iniciada."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "`@WithFunction(FunctionType.CLOUD_EVENTS)` indicates to launch the function as a cloud events function. If multiple functions exist in the same application, the `functionName` attribute must be used to denote which one should be launched."
msgstr "`@WithFunction(FunctionType.CLOUD_EVENTS)` indica o lançamento da função como uma função de eventos na nuvem. Se houver várias funções no mesmo aplicativo, o atributo `functionName` deverá ser usado para indicar qual delas deve ser iniciada."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "REST-assured is used to test the function, this payload that describe a storage event will be sent to it via the invoker."
msgstr "O REST-assured é usado para testar a função; essa carga útil que descreve um evento de armazenamento será enviada a ele por meio do invocador."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "The cloud events headers must be sent via HTTP headers."
msgstr "Os cabeçalhos dos eventos da nuvem devem ser enviados por meio de cabeçalhos HTTP."
#. type: Title ==
#: _guides/gcp-functions.adoc
#, no-wrap
msgid "What's next?"
msgstr "O que vem a seguir?"
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "If you are looking for Jakarta REST, Servlet or Vert.x support for Google Cloud Functions, we have it thanks to our xref:gcp-functions-http.adoc[Google Cloud Functions HTTP binding]."
msgstr "Se o senhor estiver procurando suporte a Jakarta REST, Servlet ou Vert.x para o Google Cloud Functions, nós o temos graças à nossa xref:gcp-functions-http.adoc[associação HTTP do Google Cloud Functions] ."
#. type: Plain text
#: _guides/gcp-functions.adoc
#, fuzzy
msgid "If you are looking for a provider-agnostic implementation of your Google Cloud Functions, we have it thanks to our xref:funqy-gcp-functions.adoc[Funqy Google Cloud Functions extension]."
msgstr "Se o senhor estiver procurando uma implementação independente de provedor do seu Google Cloud Functions, nós a temos graças à nossa xref:funqy-gcp-functions.adoc[extensão Funqy Google Cloud Functions] ."