Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: add audio export settings to security settings (#476)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

docs: update the doc on diagnostic info

PiperOrigin-RevId: 446763565

Source-Link: googleapis/googleapis@2d07d51

Source-Link: https://github.com/googleapis/googleapis-gen/commit/7cf0655ec0b71a5963081fe8c5da908fcc840e3e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2NmMDY1NWVjMGI3MWE1OTYzMDgxZmU4YzVkYTkwOGZjYzg0MGUzZSJ9

chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0
PiperOrigin-RevId: 446250659

Source-Link: googleapis/googleapis@dc4ef31

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored May 5, 2022
1 parent c74d734 commit 0ba08fa
Show file tree
Hide file tree
Showing 339 changed files with 4,535 additions and 465 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* 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.
Expand Down Expand Up @@ -48,6 +48,8 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* Agent response = agentsClient.getAgent(name);
Expand Down Expand Up @@ -83,6 +85,8 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* AgentsSettings agentsSettings =
* AgentsSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -93,6 +97,8 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* AgentsSettings agentsSettings = AgentsSettings.newBuilder().setEndpoint(myEndpoint).build();
* AgentsClient agentsClient = AgentsClient.create(agentsSettings);
* }</pre>
Expand Down Expand Up @@ -168,6 +174,8 @@ public final OperationsClient getOperationsClient() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Agent element : agentsClient.listAgents(parent).iterateAll()) {
Expand All @@ -193,6 +201,8 @@ public final ListAgentsPagedResponse listAgents(LocationName parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Agent element : agentsClient.listAgents(parent).iterateAll()) {
Expand All @@ -217,6 +227,8 @@ public final ListAgentsPagedResponse listAgents(String parent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ListAgentsRequest request =
* ListAgentsRequest.newBuilder()
Expand Down Expand Up @@ -244,6 +256,8 @@ public final ListAgentsPagedResponse listAgents(ListAgentsRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ListAgentsRequest request =
* ListAgentsRequest.newBuilder()
Expand All @@ -270,6 +284,8 @@ public final UnaryCallable<ListAgentsRequest, ListAgentsPagedResponse> listAgent
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ListAgentsRequest request =
* ListAgentsRequest.newBuilder()
Expand Down Expand Up @@ -303,6 +319,8 @@ public final UnaryCallable<ListAgentsRequest, ListAgentsResponse> listAgentsCall
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* Agent response = agentsClient.getAgent(name);
Expand All @@ -326,6 +344,8 @@ public final Agent getAgent(AgentName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
* Agent response = agentsClient.getAgent(name);
Expand All @@ -348,6 +368,8 @@ public final Agent getAgent(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* GetAgentRequest request =
* GetAgentRequest.newBuilder()
Expand All @@ -371,6 +393,8 @@ public final Agent getAgent(GetAgentRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* GetAgentRequest request =
* GetAgentRequest.newBuilder()
Expand All @@ -396,6 +420,8 @@ public final UnaryCallable<GetAgentRequest, Agent> getAgentCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Agent agent = Agent.newBuilder().build();
Expand Down Expand Up @@ -427,6 +453,8 @@ public final Agent createAgent(LocationName parent, Agent agent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Agent agent = Agent.newBuilder().build();
Expand Down Expand Up @@ -455,6 +483,8 @@ public final Agent createAgent(String parent, Agent agent) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* CreateAgentRequest request =
* CreateAgentRequest.newBuilder()
Expand Down Expand Up @@ -482,6 +512,8 @@ public final Agent createAgent(CreateAgentRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* CreateAgentRequest request =
* CreateAgentRequest.newBuilder()
Expand All @@ -508,6 +540,8 @@ public final UnaryCallable<CreateAgentRequest, Agent> createAgentCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* Agent agent = Agent.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
Expand Down Expand Up @@ -536,6 +570,8 @@ public final Agent updateAgent(Agent agent, FieldMask updateMask) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* UpdateAgentRequest request =
* UpdateAgentRequest.newBuilder()
Expand Down Expand Up @@ -563,6 +599,8 @@ public final Agent updateAgent(UpdateAgentRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* UpdateAgentRequest request =
* UpdateAgentRequest.newBuilder()
Expand All @@ -586,6 +624,8 @@ public final UnaryCallable<UpdateAgentRequest, Agent> updateAgentCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* agentsClient.deleteAgent(name);
Expand All @@ -609,6 +649,8 @@ public final void deleteAgent(AgentName name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
* agentsClient.deleteAgent(name);
Expand All @@ -631,6 +673,8 @@ public final void deleteAgent(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* DeleteAgentRequest request =
* DeleteAgentRequest.newBuilder()
Expand All @@ -654,6 +698,8 @@ public final void deleteAgent(DeleteAgentRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* DeleteAgentRequest request =
* DeleteAgentRequest.newBuilder()
Expand Down Expand Up @@ -684,6 +730,8 @@ public final UnaryCallable<DeleteAgentRequest, Empty> deleteAgentCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ExportAgentRequest request =
* ExportAgentRequest.newBuilder()
Expand Down Expand Up @@ -720,6 +768,8 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ExportAgentRequest request =
* ExportAgentRequest.newBuilder()
Expand Down Expand Up @@ -756,6 +806,8 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ExportAgentRequest request =
* ExportAgentRequest.newBuilder()
Expand Down Expand Up @@ -797,6 +849,8 @@ public final UnaryCallable<ExportAgentRequest, Operation> exportAgentCallable()
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* RestoreAgentRequest request =
* RestoreAgentRequest.newBuilder()
Expand Down Expand Up @@ -835,6 +889,8 @@ public final OperationFuture<Empty, Struct> restoreAgentAsync(RestoreAgentReques
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* RestoreAgentRequest request =
* RestoreAgentRequest.newBuilder()
Expand Down Expand Up @@ -874,6 +930,8 @@ public final OperationFuture<Empty, Struct> restoreAgentAsync(RestoreAgentReques
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* RestoreAgentRequest request =
* RestoreAgentRequest.newBuilder()
Expand All @@ -898,6 +956,8 @@ public final UnaryCallable<RestoreAgentRequest, Operation> restoreAgentCallable(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ValidateAgentRequest request =
* ValidateAgentRequest.newBuilder()
Expand All @@ -924,6 +984,8 @@ public final AgentValidationResult validateAgent(ValidateAgentRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* ValidateAgentRequest request =
* ValidateAgentRequest.newBuilder()
Expand All @@ -949,6 +1011,8 @@ public final UnaryCallable<ValidateAgentRequest, AgentValidationResult> validate
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* AgentValidationResultName name =
* AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
Expand Down Expand Up @@ -976,6 +1040,8 @@ public final AgentValidationResult getAgentValidationResult(AgentValidationResul
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* String name = AgentValidationResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
* AgentValidationResult response = agentsClient.getAgentValidationResult(name);
Expand All @@ -1000,6 +1066,8 @@ public final AgentValidationResult getAgentValidationResult(String name) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* GetAgentValidationResultRequest request =
* GetAgentValidationResultRequest.newBuilder()
Expand Down Expand Up @@ -1027,6 +1095,8 @@ public final AgentValidationResult getAgentValidationResult(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (AgentsClient agentsClient = AgentsClient.create()) {
* GetAgentValidationResultRequest request =
* GetAgentValidationResultRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* 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.
Expand Down Expand Up @@ -56,6 +56,8 @@
* <p>For example, to set the total timeout of getAgent to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* AgentsSettings.Builder agentsSettingsBuilder = AgentsSettings.newBuilder();
* agentsSettingsBuilder
* .getAgentSettings()
Expand Down
Loading

0 comments on commit 0ba08fa

Please sign in to comment.