Skip to content

Commit 73f03ff

Browse files
gcf-owl-bot[bot]jskeet
authored andcommitted
feat: add ValueType.STRUCT to Feature
feat: add encryption_spec to FeatureOnlineStore feat: add struct_value to FeatureValue feat: add encryption_spec, service_account, disable_container_logging to DeploymentResourcePool feat: add model_reference to Dataset feat: add tool_config to GenerateContentRequest feat: add dataplex_config to MetadataStore feat: add model_reference to DatasetVersion feat: add INVALID_SPARSE_DIMENSIONS, INVALID_SPARSE_EMBEDDING, INVALID_EMBEDDING to NearestNeighborSearchOperationMetadata.RecordError feat: add valid_sparse_record_count, invalid_sparse_record_count to NearestNeighborSearchOperationMetadata.ContentValidationStats feat: add sparse_embedding to IndexDatapoint feat: add sparse_vectors_count to IndexStats feat: add sparse_distance to FindNeighborsResponse.Neighbor feat: add more fields in FindNeighborsRequest.Query feat: add UpdateNotebookRuntimeTemplate to NotebookService feat: add direct_notebook_source to NotebookExecutionJob feat: add encryption_spec to NotebookRuntimeTemplate feat: add idle_shutdown_config, encryption_spec, satisfies_pzs, satisfies_pzi to NotebookRuntime feat: add RaySpec to PersistentResource fix!: An existing message `Segment` is removed fix!: An existing message `GroundingAttribution` is removed fix!: An existing field `grounding_attributions` is removed from message `.google.cloud.aiplatform.v1beta1.GroundingMetadata` fix!: An existing field `disable_attribution` is removed from message `.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval` docs: A comment for field `feature_vector` in message `.google.cloud.aiplatform.v1beta1.IndexDatapoint` is changed docs: A comment for field `vectors_count` in message `.google.cloud.aiplatform.v1beta1.IndexStats` is changed docs: A comment for enum value `EMBEDDING_SIZE_MISMATCH` in enum `RecordErrorType` is changed docs: A comment for field `exec` in message `.google.cloud.aiplatform.v1beta1.Probe` is changed PiperOrigin-RevId: 638338486 Source-Link: googleapis/googleapis@c2a9b99 Source-Link: googleapis/googleapis-gen@c4b0bd6 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiYzRiMGJkNjg2ZGQ2M2Q1YTM4ZGZiMjI0NmQxODBjMjExNTk3NzZhOCJ9
1 parent 544e07e commit 73f03ff

File tree

41 files changed

+5855
-1901
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5855
-1901
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_async_flattened]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedDatasetServiceClientSnippets
25+
{
26+
/// <summary>Snippet for UpdateDatasetVersionAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task UpdateDatasetVersionAsync()
35+
{
36+
// Create client
37+
DatasetServiceClient datasetServiceClient = await DatasetServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
DatasetVersion datasetVersion = new DatasetVersion();
40+
FieldMask updateMask = new FieldMask();
41+
// Make the request
42+
DatasetVersion response = await datasetServiceClient.UpdateDatasetVersionAsync(datasetVersion, updateMask);
43+
}
44+
}
45+
// [END aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_async_flattened]
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_async]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedDatasetServiceClientSnippets
25+
{
26+
/// <summary>Snippet for UpdateDatasetVersionAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task UpdateDatasetVersionRequestObjectAsync()
35+
{
36+
// Create client
37+
DatasetServiceClient datasetServiceClient = await DatasetServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
UpdateDatasetVersionRequest request = new UpdateDatasetVersionRequest
40+
{
41+
DatasetVersion = new DatasetVersion(),
42+
UpdateMask = new FieldMask(),
43+
};
44+
// Make the request
45+
DatasetVersion response = await datasetServiceClient.UpdateDatasetVersionAsync(request);
46+
}
47+
}
48+
// [END aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_async]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
23+
public sealed partial class GeneratedDatasetServiceClientSnippets
24+
{
25+
/// <summary>Snippet for UpdateDatasetVersion</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void UpdateDatasetVersionRequestObject()
34+
{
35+
// Create client
36+
DatasetServiceClient datasetServiceClient = DatasetServiceClient.Create();
37+
// Initialize request argument(s)
38+
UpdateDatasetVersionRequest request = new UpdateDatasetVersionRequest
39+
{
40+
DatasetVersion = new DatasetVersion(),
41+
UpdateMask = new FieldMask(),
42+
};
43+
// Make the request
44+
DatasetVersion response = datasetServiceClient.UpdateDatasetVersion(request);
45+
}
46+
}
47+
// [END aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync]
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync_flattened]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
23+
public sealed partial class GeneratedDatasetServiceClientSnippets
24+
{
25+
/// <summary>Snippet for UpdateDatasetVersion</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void UpdateDatasetVersion()
34+
{
35+
// Create client
36+
DatasetServiceClient datasetServiceClient = DatasetServiceClient.Create();
37+
// Initialize request argument(s)
38+
DatasetVersion datasetVersion = new DatasetVersion();
39+
FieldMask updateMask = new FieldMask();
40+
// Make the request
41+
DatasetVersion response = datasetServiceClient.UpdateDatasetVersion(datasetVersion, updateMask);
42+
}
43+
}
44+
// [END aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync_flattened]
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async_flattened]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedNotebookServiceClientSnippets
25+
{
26+
/// <summary>Snippet for UpdateNotebookRuntimeTemplateAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task UpdateNotebookRuntimeTemplateAsync()
35+
{
36+
// Create client
37+
NotebookServiceClient notebookServiceClient = await NotebookServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
NotebookRuntimeTemplate notebookRuntimeTemplate = new NotebookRuntimeTemplate();
40+
FieldMask updateMask = new FieldMask();
41+
// Make the request
42+
NotebookRuntimeTemplate response = await notebookServiceClient.UpdateNotebookRuntimeTemplateAsync(notebookRuntimeTemplate, updateMask);
43+
}
44+
}
45+
// [END aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async_flattened]
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
using System.Threading.Tasks;
23+
24+
public sealed partial class GeneratedNotebookServiceClientSnippets
25+
{
26+
/// <summary>Snippet for UpdateNotebookRuntimeTemplateAsync</summary>
27+
/// <remarks>
28+
/// This snippet has been automatically generated and should be regarded as a code template only.
29+
/// It will require modifications to work:
30+
/// - It may require correct/in-range values for request initialization.
31+
/// - It may require specifying regional endpoints when creating the service client as shown in
32+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
33+
/// </remarks>
34+
public async Task UpdateNotebookRuntimeTemplateRequestObjectAsync()
35+
{
36+
// Create client
37+
NotebookServiceClient notebookServiceClient = await NotebookServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
UpdateNotebookRuntimeTemplateRequest request = new UpdateNotebookRuntimeTemplateRequest
40+
{
41+
NotebookRuntimeTemplate = new NotebookRuntimeTemplate(),
42+
UpdateMask = new FieldMask(),
43+
};
44+
// Make the request
45+
NotebookRuntimeTemplate response = await notebookServiceClient.UpdateNotebookRuntimeTemplateAsync(request);
46+
}
47+
}
48+
// [END aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async]
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
23+
public sealed partial class GeneratedNotebookServiceClientSnippets
24+
{
25+
/// <summary>Snippet for UpdateNotebookRuntimeTemplate</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void UpdateNotebookRuntimeTemplateRequestObject()
34+
{
35+
// Create client
36+
NotebookServiceClient notebookServiceClient = NotebookServiceClient.Create();
37+
// Initialize request argument(s)
38+
UpdateNotebookRuntimeTemplateRequest request = new UpdateNotebookRuntimeTemplateRequest
39+
{
40+
NotebookRuntimeTemplate = new NotebookRuntimeTemplate(),
41+
UpdateMask = new FieldMask(),
42+
};
43+
// Make the request
44+
NotebookRuntimeTemplate response = notebookServiceClient.UpdateNotebookRuntimeTemplate(request);
45+
}
46+
}
47+
// [END aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync]
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2024 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 aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync_flattened]
20+
using Google.Cloud.AIPlatform.V1;
21+
using Google.Protobuf.WellKnownTypes;
22+
23+
public sealed partial class GeneratedNotebookServiceClientSnippets
24+
{
25+
/// <summary>Snippet for UpdateNotebookRuntimeTemplate</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public void UpdateNotebookRuntimeTemplate()
34+
{
35+
// Create client
36+
NotebookServiceClient notebookServiceClient = NotebookServiceClient.Create();
37+
// Initialize request argument(s)
38+
NotebookRuntimeTemplate notebookRuntimeTemplate = new NotebookRuntimeTemplate();
39+
FieldMask updateMask = new FieldMask();
40+
// Make the request
41+
NotebookRuntimeTemplate response = notebookServiceClient.UpdateNotebookRuntimeTemplate(notebookRuntimeTemplate, updateMask);
42+
}
43+
}
44+
// [END aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync_flattened]
45+
}

apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1.GeneratedSnippets/PredictionServiceClient.GenerateContentRequestObjectAsyncSnippet.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public async Task GenerateContentRequestObjectAsync()
4545
GenerationConfig = new GenerationConfig(),
4646
Model = "",
4747
Tools = { new Tool(), },
48+
ToolConfig = new ToolConfig(),
4849
SystemInstruction = new Content(),
4950
};
5051
// Make the request

apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1.GeneratedSnippets/PredictionServiceClient.GenerateContentRequestObjectSnippet.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void GenerateContentRequestObject()
4444
GenerationConfig = new GenerationConfig(),
4545
Model = "",
4646
Tools = { new Tool(), },
47+
ToolConfig = new ToolConfig(),
4748
SystemInstruction = new Content(),
4849
};
4950
// Make the request

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy