diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelAsyncSnippet.g.cs new file mode 100644 index 000000000000..0140c2fb4aa3 --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelAsyncSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened] + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModelAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task RebaseTunedModelAsync() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectAsyncSnippet.g.cs new file mode 100644 index 000000000000..6a7d84991c22 --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectAsyncSnippet.g.cs @@ -0,0 +1,69 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModelAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task RebaseTunedModelRequestObjectAsync() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + RebaseTunedModelRequest request = new RebaseTunedModelRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + TunedModelRef = new TunedModelRef(), + TuningJob = new TuningJob(), + ArtifactDestination = new GcsDestination(), + DeployToSameEndpoint = false, + }; + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectSnippet.g.cs new file mode 100644 index 000000000000..1d09019a7a0f --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelRequestObjectSnippet.g.cs @@ -0,0 +1,68 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModel + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void RebaseTunedModelRequestObject() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + RebaseTunedModelRequest request = new RebaseTunedModelRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + TunedModelRef = new TunedModelRef(), + TuningJob = new TuningJob(), + ArtifactDestination = new GcsDestination(), + DeployToSameEndpoint = false, + }; + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesAsyncSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesAsyncSnippet.g.cs new file mode 100644 index 000000000000..62ace747c6e9 --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesAsyncSnippet.g.cs @@ -0,0 +1,63 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + using System.Threading.Tasks; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModelAsync + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public async Task RebaseTunedModelResourceNamesAsync() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesSnippet.g.cs new file mode 100644 index 000000000000..2b14c8f511d3 --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelResourceNamesSnippet.g.cs @@ -0,0 +1,62 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened_resourceNames] + using Google.Api.Gax.ResourceNames; + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModel + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void RebaseTunedModelResourceNames() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened_resourceNames] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelSnippet.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelSnippet.g.cs new file mode 100644 index 000000000000..6f4cbb2d3060 --- /dev/null +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/GenAiTuningServiceClient.RebaseTunedModelSnippet.g.cs @@ -0,0 +1,61 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace GoogleCSharpSnippets +{ + // [START aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened] + using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; + + public sealed partial class GeneratedGenAiTuningServiceClientSnippets + { + /// Snippet for RebaseTunedModel + /// + /// This snippet has been automatically generated and should be regarded as a code template only. + /// It will require modifications to work: + /// - It may require correct/in-range values for request initialization. + /// - It may require specifying regional endpoints when creating the service client as shown in + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. + /// + public void RebaseTunedModel() + { + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + } + } + // [END aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened] +} diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 4de7f826d6a0..c79e106c59c4 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.GeneratedSnippets/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -29777,6 +29777,309 @@ } ] }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync", + "title": "RebaseTunedModelRequestObject", + "description": "Snippet for RebaseTunedModel", + "file": "GenAiTuningServiceClient.RebaseTunedModelRequestObjectSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModel", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModel", + "parameters": [ + { + "type": "Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 66, + "type": "FULL" + }, + { + "start": 36, + "end": 64, + "type": "SHORT" + } + ] + }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async", + "title": "RebaseTunedModelRequestObjectAsync", + "description": "Snippet for RebaseTunedModelAsync", + "file": "GenAiTuningServiceClient.RebaseTunedModelRequestObjectAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModelAsync", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModelAsync", + "async": true, + "parameters": [ + { + "type": "Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest", + "name": "request" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 67, + "type": "FULL" + }, + { + "start": 37, + "end": 65, + "type": "SHORT" + } + ] + }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened", + "title": "RebaseTunedModel", + "description": "Snippet for RebaseTunedModel", + "file": "GenAiTuningServiceClient.RebaseTunedModelSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModel", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModel", + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.AIPlatform.V1Beta1.TunedModelRef", + "name": "tunedModelRef" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 59, + "type": "FULL" + }, + { + "start": 35, + "end": 57, + "type": "SHORT" + } + ] + }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened", + "title": "RebaseTunedModelAsync", + "description": "Snippet for RebaseTunedModelAsync", + "file": "GenAiTuningServiceClient.RebaseTunedModelAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModelAsync", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModelAsync", + "async": true, + "parameters": [ + { + "type": "System.String", + "name": "parent" + }, + { + "type": "Google.Cloud.AIPlatform.V1Beta1.TunedModelRef", + "name": "tunedModelRef" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_sync_flattened_resourceNames", + "title": "RebaseTunedModelResourceNames", + "description": "Snippet for RebaseTunedModel", + "file": "GenAiTuningServiceClient.RebaseTunedModelResourceNamesSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModel", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModel", + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.AIPlatform.V1Beta1.TunedModelRef", + "name": "tunedModelRef" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "Google.LongRunning.Operation", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 60, + "type": "FULL" + }, + { + "start": 36, + "end": 58, + "type": "SHORT" + } + ] + }, + { + "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async_flattened_resourceNames", + "title": "RebaseTunedModelResourceNamesAsync", + "description": "Snippet for RebaseTunedModelAsync", + "file": "GenAiTuningServiceClient.RebaseTunedModelResourceNamesAsyncSnippet.g.cs", + "language": "C_SHARP", + "clientMethod": { + "shortName": "RebaseTunedModelAsync", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient.RebaseTunedModelAsync", + "async": true, + "parameters": [ + { + "type": "Google.Api.Gax.ResourceNames.LocationName", + "name": "parent" + }, + { + "type": "Google.Cloud.AIPlatform.V1Beta1.TunedModelRef", + "name": "tunedModelRef" + }, + { + "type": "Google.Api.Gax.Grpc.CallSettings", + "name": "callSettings" + } + ], + "resultType": "System.Threading.Tasks.Task>", + "client": { + "shortName": "GenAiTuningServiceClient", + "fullName": "Google.Cloud.AIPlatform.V1Beta1.GenAiTuningServiceClient" + }, + "method": { + "shortName": "RebaseTunedModel", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", + "service": { + "shortName": "GenAiTuningService", + "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 61, + "type": "FULL" + }, + { + "start": 37, + "end": 59, + "type": "SHORT" + } + ] + }, { "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_CreateIndexEndpoint_sync", "title": "CreateIndexEndpointRequestObject", diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/GenAiTuningServiceClientSnippets.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/GenAiTuningServiceClientSnippets.g.cs index 2ff4722508a7..50783c8e2deb 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/GenAiTuningServiceClientSnippets.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1.Snippets/GenAiTuningServiceClientSnippets.g.cs @@ -19,6 +19,7 @@ namespace GoogleCSharpSnippets using Google.Api.Gax; using Google.Api.Gax.ResourceNames; using Google.Cloud.AIPlatform.V1Beta1; + using Google.LongRunning; using System; using System.Linq; using System.Threading.Tasks; @@ -570,5 +571,200 @@ public async Task CancelTuningJobResourceNamesAsync() await genAiTuningServiceClient.CancelTuningJobAsync(name); // End snippet } + + /// Snippet for RebaseTunedModel + public void RebaseTunedModelRequestObject() + { + // Snippet: RebaseTunedModel(RebaseTunedModelRequest, CallSettings) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + RebaseTunedModelRequest request = new RebaseTunedModelRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + TunedModelRef = new TunedModelRef(), + TuningJob = new TuningJob(), + ArtifactDestination = new GcsDestination(), + DeployToSameEndpoint = false, + }; + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RebaseTunedModelAsync + public async Task RebaseTunedModelRequestObjectAsync() + { + // Snippet: RebaseTunedModelAsync(RebaseTunedModelRequest, CallSettings) + // Additional: RebaseTunedModelAsync(RebaseTunedModelRequest, CancellationToken) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + RebaseTunedModelRequest request = new RebaseTunedModelRequest + { + ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), + TunedModelRef = new TunedModelRef(), + TuningJob = new TuningJob(), + ArtifactDestination = new GcsDestination(), + DeployToSameEndpoint = false, + }; + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(request); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RebaseTunedModel + public void RebaseTunedModel() + { + // Snippet: RebaseTunedModel(string, TunedModelRef, CallSettings) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RebaseTunedModelAsync + public async Task RebaseTunedModelAsync() + { + // Snippet: RebaseTunedModelAsync(string, TunedModelRef, CallSettings) + // Additional: RebaseTunedModelAsync(string, TunedModelRef, CancellationToken) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + string parent = "projects/[PROJECT]/locations/[LOCATION]"; + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RebaseTunedModel + public void RebaseTunedModelResourceNames() + { + // Snippet: RebaseTunedModel(LocationName, TunedModelRef, CallSettings) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = GenAiTuningServiceClient.Create(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = genAiTuningServiceClient.RebaseTunedModel(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = response.PollUntilCompleted(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = genAiTuningServiceClient.PollOnceRebaseTunedModel(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } + + /// Snippet for RebaseTunedModelAsync + public async Task RebaseTunedModelResourceNamesAsync() + { + // Snippet: RebaseTunedModelAsync(LocationName, TunedModelRef, CallSettings) + // Additional: RebaseTunedModelAsync(LocationName, TunedModelRef, CancellationToken) + // Create client + GenAiTuningServiceClient genAiTuningServiceClient = await GenAiTuningServiceClient.CreateAsync(); + // Initialize request argument(s) + LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); + TunedModelRef tunedModelRef = new TunedModelRef(); + // Make the request + Operation response = await genAiTuningServiceClient.RebaseTunedModelAsync(parent, tunedModelRef); + + // Poll until the returned long-running operation is complete + Operation completedResponse = await response.PollUntilCompletedAsync(); + // Retrieve the operation result + TuningJob result = completedResponse.Result; + + // Or get the name of the operation + string operationName = response.Name; + // This name can be stored, then the long-running operation retrieved later by name + Operation retrievedResponse = await genAiTuningServiceClient.PollOnceRebaseTunedModelAsync(operationName); + // Check if the retrieved long-running operation has completed + if (retrievedResponse.IsCompleted) + { + // If it has completed, then access the result + TuningJob retrievedResult = retrievedResponse.Result; + } + // End snippet + } } } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Content.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Content.g.cs index a437e4134da8..8c621454d447 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Content.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Content.g.cs @@ -46,114 +46,127 @@ static ContentReflection() { "ASgJQgPgQQISFQoIZmlsZV91cmkYAiABKAlCA+BBAiJ5Cg1WaWRlb01ldGFk", "YXRhEjQKDHN0YXJ0X29mZnNldBgBIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5E", "dXJhdGlvbkID4EEBEjIKCmVuZF9vZmZzZXQYAiABKAsyGS5nb29nbGUucHJv", - "dG9idWYuRHVyYXRpb25CA+BBASL9CQoQR2VuZXJhdGlvbkNvbmZpZxIdCgt0", + "dG9idWYuRHVyYXRpb25CA+BBASLhCgoQR2VuZXJhdGlvbkNvbmZpZxIdCgt0", "ZW1wZXJhdHVyZRgBIAEoAkID4EEBSACIAQESFwoFdG9wX3AYAiABKAJCA+BB", "AUgBiAEBEhcKBXRvcF9rGAMgASgCQgPgQQFIAogBARIhCg9jYW5kaWRhdGVf", "Y291bnQYBCABKAVCA+BBAUgDiAEBEiMKEW1heF9vdXRwdXRfdG9rZW5zGAUg", - "ASgFQgPgQQFIBIgBARIbCg5zdG9wX3NlcXVlbmNlcxgGIAMoCUID4EEBEiIK", - "EHByZXNlbmNlX3BlbmFsdHkYCCABKAJCA+BBAUgFiAEBEiMKEWZyZXF1ZW5j", - "eV9wZW5hbHR5GAkgASgCQgPgQQFIBogBARIWCgRzZWVkGAwgASgFQgPgQQFI", - "B4gBARIfChJyZXNwb25zZV9taW1lX3R5cGUYDSABKAlCA+BBARJRC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QY", + "BCABKAlCA+BBAyLMAgoOR3JvdW5kaW5nQ2h1bmsSQgoDd2ViGAEgASgLMjMu", + "Z29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5Hcm91bmRpbmdDaHVu", + "ay5XZWJIABJdChFyZXRyaWV2ZWRfY29udGV4dBgCIAEoCzJALmdvb2dsZS5j", + "bG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuR3JvdW5kaW5nQ2h1bmsuUmV0cmll", + "dmVkQ29udGV4dEgAGj0KA1dlYhIQCgN1cmkYASABKAlIAIgBARISCgV0aXRs", + "ZRgCIAEoCUgBiAEBQgYKBF91cmlCCAoGX3RpdGxlGkoKEFJldHJpZXZlZENv", + "bnRleHQSEAoDdXJpGAEgASgJSACIAQESEgoFdGl0bGUYAiABKAlIAYgBAUIG", + "CgRfdXJpQggKBl90aXRsZUIMCgpjaHVua190eXBlIpoBChBHcm91bmRpbmdT", + "dXBwb3J0Ej4KB3NlZ21lbnQYASABKAsyKC5nb29nbGUuY2xvdWQuYWlwbGF0", + "Zm9ybS52MWJldGExLlNlZ21lbnRIAIgBARIfChdncm91bmRpbmdfY2h1bmtf", + "aW5kaWNlcxgCIAMoBRIZChFjb25maWRlbmNlX3Njb3JlcxgDIAMoAkIKCghf", + "c2VnbWVudCLjAgoRR3JvdW5kaW5nTWV0YWRhdGESHwoSd2ViX3NlYXJjaF9x", + "dWVyaWVzGAEgAygJQgPgQQESVwoSc2VhcmNoX2VudHJ5X3BvaW50GAQgASgL", + "MjEuZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5TZWFyY2hFbnRy", + "eVBvaW50QgPgQQFIAIgBARIeChFyZXRyaWV2YWxfcXVlcmllcxgDIAMoCUID", + "4EEBEkkKEGdyb3VuZGluZ19jaHVua3MYBSADKAsyLy5nb29nbGUuY2xvdWQu", + "YWlwbGF0Zm9ybS52MWJldGExLkdyb3VuZGluZ0NodW5rElIKEmdyb3VuZGlu", + "Z19zdXBwb3J0cxgGIAMoCzIxLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYx", + "YmV0YTEuR3JvdW5kaW5nU3VwcG9ydEID4EEBQhUKE19zZWFyY2hfZW50cnlf", + "cG9pbnQiSAoQU2VhcmNoRW50cnlQb2ludBIdChByZW5kZXJlZF9jb250ZW50", + "GAEgASgJQgPgQQESFQoIc2RrX2Jsb2IYAiABKAxCA+BBASrXAQoMSGFybUNh", + "dGVnb3J5Eh0KGUhBUk1fQ0FURUdPUllfVU5TUEVDSUZJRUQQABIdChlIQVJN", + "X0NBVEVHT1JZX0hBVEVfU1BFRUNIEAESIwofSEFSTV9DQVRFR09SWV9EQU5H", + "RVJPVVNfQ09OVEVOVBACEhwKGEhBUk1fQ0FURUdPUllfSEFSQVNTTUVOVBAD", + "EiMKH0hBUk1fQ0FURUdPUllfU0VYVUFMTFlfRVhQTElDSVQQBBIhCh1IQVJN", + "X0NBVEVHT1JZX0NJVklDX0lOVEVHUklUWRAFQuMBCiNjb20uZ29vZ2xlLmNs", + "b3VkLmFpcGxhdGZvcm0udjFiZXRhMUIMQ29udGVudFByb3RvUAFaQ2Nsb3Vk", + "Lmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9ybS9hcGl2MWJldGExL2FpcGxhdGZv", + "cm1wYjthaXBsYXRmb3JtcGKqAh9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5W", + "MUJldGExygIfR29vZ2xlXENsb3VkXEFJUGxhdGZvcm1cVjFiZXRhMeoCIkdv", + "b2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYmV0YTFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.OpenapiReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ToolReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Type.DateReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.AIPlatform.V1Beta1.HarmCategory), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -162,13 +175,15 @@ static ContentReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.Blob), global::Google.Cloud.AIPlatform.V1Beta1.Blob.Parser, new[]{ "MimeType", "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.FileData), global::Google.Cloud.AIPlatform.V1Beta1.FileData.Parser, new[]{ "MimeType", "FileUri" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.VideoMetadata), global::Google.Cloud.AIPlatform.V1Beta1.VideoMetadata.Parser, new[]{ "StartOffset", "EndOffset" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Parser, new[]{ "Temperature", "TopP", "TopK", "CandidateCount", "MaxOutputTokens", "StopSequences", "PresencePenalty", "FrequencyPenalty", "Seed", "ResponseMimeType", "ResponseSchema", "RoutingConfig" }, new[]{ "Temperature", "TopP", "TopK", "CandidateCount", "MaxOutputTokens", "PresencePenalty", "FrequencyPenalty", "Seed", "ResponseSchema", "RoutingConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Parser, new[]{ "AutoMode", "ManualMode" }, new[]{ "RoutingConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode.Parser, new[]{ "ModelRoutingPreference" }, new[]{ "ModelRoutingPreference" }, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode.Types.ModelRoutingPreference) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Parser, new[]{ "Temperature", "TopP", "TopK", "CandidateCount", "MaxOutputTokens", "StopSequences", "ResponseLogprobs", "Logprobs", "PresencePenalty", "FrequencyPenalty", "Seed", "ResponseMimeType", "ResponseSchema", "RoutingConfig" }, new[]{ "Temperature", "TopP", "TopK", "CandidateCount", "MaxOutputTokens", "ResponseLogprobs", "Logprobs", "PresencePenalty", "FrequencyPenalty", "Seed", "ResponseSchema", "RoutingConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Parser, new[]{ "AutoMode", "ManualMode" }, new[]{ "RoutingConfig" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode.Parser, new[]{ "ModelRoutingPreference" }, new[]{ "ModelRoutingPreference" }, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.AutoRoutingMode.Types.ModelRoutingPreference) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.ManualRoutingMode), global::Google.Cloud.AIPlatform.V1Beta1.GenerationConfig.Types.RoutingConfig.Types.ManualRoutingMode.Parser, new[]{ "ModelName" }, new[]{ "ModelName" }, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetySetting), global::Google.Cloud.AIPlatform.V1Beta1.SafetySetting.Parser, new[]{ "Category", "Threshold", "Method" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetySetting.Types.HarmBlockThreshold), typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetySetting.Types.HarmBlockMethod) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetyRating), global::Google.Cloud.AIPlatform.V1Beta1.SafetyRating.Parser, new[]{ "Category", "Probability", "ProbabilityScore", "Severity", "SeverityScore", "Blocked" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetyRating.Types.HarmProbability), typeof(global::Google.Cloud.AIPlatform.V1Beta1.SafetyRating.Types.HarmSeverity) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CitationMetadata), global::Google.Cloud.AIPlatform.V1Beta1.CitationMetadata.Parser, new[]{ "Citations" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.Citation), global::Google.Cloud.AIPlatform.V1Beta1.Citation.Parser, new[]{ "StartIndex", "EndIndex", "Uri", "Title", "License", "PublicationDate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.Candidate), global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Parser, new[]{ "Index", "Content", "AvgLogprobs", "FinishReason", "SafetyRatings", "FinishMessage", "CitationMetadata", "GroundingMetadata" }, new[]{ "FinishMessage" }, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.Candidate), global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Parser, new[]{ "Index", "Content", "AvgLogprobs", "LogprobsResult", "FinishReason", "SafetyRatings", "FinishMessage", "CitationMetadata", "GroundingMetadata" }, new[]{ "FinishMessage" }, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult), global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Parser, new[]{ "TopCandidates", "ChosenCandidates" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.Candidate), global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.Candidate.Parser, new[]{ "Token", "TokenId", "LogProbability" }, new[]{ "Token", "TokenId", "LogProbability" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.TopCandidates), global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.TopCandidates.Parser, new[]{ "Candidates" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.Segment), global::Google.Cloud.AIPlatform.V1Beta1.Segment.Parser, new[]{ "PartIndex", "StartIndex", "EndIndex", "Text" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk), global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk.Parser, new[]{ "Web", "RetrievedContext" }, new[]{ "ChunkType" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk.Types.Web), global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk.Types.Web.Parser, new[]{ "Uri", "Title" }, new[]{ "Uri", "Title" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk.Types.RetrievedContext), global::Google.Cloud.AIPlatform.V1Beta1.GroundingChunk.Types.RetrievedContext.Parser, new[]{ "Uri", "Title" }, new[]{ "Uri", "Title" }, null, null, null)}), @@ -1781,6 +1796,8 @@ public GenerationConfig(GenerationConfig other) : this() { candidateCount_ = other.candidateCount_; maxOutputTokens_ = other.maxOutputTokens_; stopSequences_ = other.stopSequences_.Clone(); + responseLogprobs_ = other.responseLogprobs_; + logprobs_ = other.logprobs_; presencePenalty_ = other.presencePenalty_; frequencyPenalty_ = other.frequencyPenalty_; seed_ = other.seed_; @@ -1960,6 +1977,66 @@ public void ClearMaxOutputTokens() { get { return stopSequences_; } } + /// Field number for the "response_logprobs" field. + public const int ResponseLogprobsFieldNumber = 18; + private readonly static bool ResponseLogprobsDefaultValue = false; + + private bool responseLogprobs_; + /// + /// Optional. If true, export the logprobs results in response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool ResponseLogprobs { + get { if ((_hasBits0 & 512) != 0) { return responseLogprobs_; } else { return ResponseLogprobsDefaultValue; } } + set { + _hasBits0 |= 512; + responseLogprobs_ = value; + } + } + /// Gets whether the "response_logprobs" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasResponseLogprobs { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "response_logprobs" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearResponseLogprobs() { + _hasBits0 &= ~512; + } + + /// Field number for the "logprobs" field. + public const int LogprobsFieldNumber = 7; + private readonly static int LogprobsDefaultValue = 0; + + private int logprobs_; + /// + /// Optional. Logit probabilities. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Logprobs { + get { if ((_hasBits0 & 32) != 0) { return logprobs_; } else { return LogprobsDefaultValue; } } + set { + _hasBits0 |= 32; + logprobs_ = value; + } + } + /// Gets whether the "logprobs" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLogprobs { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "logprobs" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLogprobs() { + _hasBits0 &= ~32; + } + /// Field number for the "presence_penalty" field. public const int PresencePenaltyFieldNumber = 8; private readonly static float PresencePenaltyDefaultValue = 0F; @@ -1971,9 +2048,9 @@ public void ClearMaxOutputTokens() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float PresencePenalty { - get { if ((_hasBits0 & 32) != 0) { return presencePenalty_; } else { return PresencePenaltyDefaultValue; } } + get { if ((_hasBits0 & 64) != 0) { return presencePenalty_; } else { return PresencePenaltyDefaultValue; } } set { - _hasBits0 |= 32; + _hasBits0 |= 64; presencePenalty_ = value; } } @@ -1981,13 +2058,13 @@ public float PresencePenalty { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasPresencePenalty { - get { return (_hasBits0 & 32) != 0; } + get { return (_hasBits0 & 64) != 0; } } /// Clears the value of the "presence_penalty" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPresencePenalty() { - _hasBits0 &= ~32; + _hasBits0 &= ~64; } /// Field number for the "frequency_penalty" field. @@ -2001,9 +2078,9 @@ public void ClearPresencePenalty() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float FrequencyPenalty { - get { if ((_hasBits0 & 64) != 0) { return frequencyPenalty_; } else { return FrequencyPenaltyDefaultValue; } } + get { if ((_hasBits0 & 128) != 0) { return frequencyPenalty_; } else { return FrequencyPenaltyDefaultValue; } } set { - _hasBits0 |= 64; + _hasBits0 |= 128; frequencyPenalty_ = value; } } @@ -2011,13 +2088,13 @@ public float FrequencyPenalty { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasFrequencyPenalty { - get { return (_hasBits0 & 64) != 0; } + get { return (_hasBits0 & 128) != 0; } } /// Clears the value of the "frequency_penalty" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearFrequencyPenalty() { - _hasBits0 &= ~64; + _hasBits0 &= ~128; } /// Field number for the "seed" field. @@ -2031,9 +2108,9 @@ public void ClearFrequencyPenalty() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Seed { - get { if ((_hasBits0 & 128) != 0) { return seed_; } else { return SeedDefaultValue; } } + get { if ((_hasBits0 & 256) != 0) { return seed_; } else { return SeedDefaultValue; } } set { - _hasBits0 |= 128; + _hasBits0 |= 256; seed_ = value; } } @@ -2041,13 +2118,13 @@ public int Seed { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasSeed { - get { return (_hasBits0 & 128) != 0; } + get { return (_hasBits0 & 256) != 0; } } /// Clears the value of the "seed" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearSeed() { - _hasBits0 &= ~128; + _hasBits0 &= ~256; } /// Field number for the "response_mime_type" field. @@ -2128,6 +2205,8 @@ public bool Equals(GenerationConfig other) { if (CandidateCount != other.CandidateCount) return false; if (MaxOutputTokens != other.MaxOutputTokens) return false; if(!stopSequences_.Equals(other.stopSequences_)) return false; + if (ResponseLogprobs != other.ResponseLogprobs) return false; + if (Logprobs != other.Logprobs) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PresencePenalty, other.PresencePenalty)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FrequencyPenalty, other.FrequencyPenalty)) return false; if (Seed != other.Seed) return false; @@ -2147,6 +2226,8 @@ public override int GetHashCode() { if (HasCandidateCount) hash ^= CandidateCount.GetHashCode(); if (HasMaxOutputTokens) hash ^= MaxOutputTokens.GetHashCode(); hash ^= stopSequences_.GetHashCode(); + if (HasResponseLogprobs) hash ^= ResponseLogprobs.GetHashCode(); + if (HasLogprobs) hash ^= Logprobs.GetHashCode(); if (HasPresencePenalty) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PresencePenalty); if (HasFrequencyPenalty) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FrequencyPenalty); if (HasSeed) hash ^= Seed.GetHashCode(); @@ -2192,6 +2273,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteInt32(MaxOutputTokens); } stopSequences_.WriteTo(output, _repeated_stopSequences_codec); + if (HasLogprobs) { + output.WriteRawTag(56); + output.WriteInt32(Logprobs); + } if (HasPresencePenalty) { output.WriteRawTag(69); output.WriteFloat(PresencePenalty); @@ -2216,6 +2301,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(138, 1); output.WriteMessage(RoutingConfig); } + if (HasResponseLogprobs) { + output.WriteRawTag(144, 1); + output.WriteBool(ResponseLogprobs); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2247,6 +2336,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteInt32(MaxOutputTokens); } stopSequences_.WriteTo(ref output, _repeated_stopSequences_codec); + if (HasLogprobs) { + output.WriteRawTag(56); + output.WriteInt32(Logprobs); + } if (HasPresencePenalty) { output.WriteRawTag(69); output.WriteFloat(PresencePenalty); @@ -2271,6 +2364,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(138, 1); output.WriteMessage(RoutingConfig); } + if (HasResponseLogprobs) { + output.WriteRawTag(144, 1); + output.WriteBool(ResponseLogprobs); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2297,6 +2394,12 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxOutputTokens); } size += stopSequences_.CalculateSize(_repeated_stopSequences_codec); + if (HasResponseLogprobs) { + size += 2 + 1; + } + if (HasLogprobs) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Logprobs); + } if (HasPresencePenalty) { size += 1 + 4; } @@ -2343,6 +2446,12 @@ public void MergeFrom(GenerationConfig other) { MaxOutputTokens = other.MaxOutputTokens; } stopSequences_.Add(other.stopSequences_); + if (other.HasResponseLogprobs) { + ResponseLogprobs = other.ResponseLogprobs; + } + if (other.HasLogprobs) { + Logprobs = other.Logprobs; + } if (other.HasPresencePenalty) { PresencePenalty = other.PresencePenalty; } @@ -2406,6 +2515,10 @@ public void MergeFrom(pb::CodedInputStream input) { stopSequences_.AddEntriesFrom(input, _repeated_stopSequences_codec); break; } + case 56: { + Logprobs = input.ReadInt32(); + break; + } case 69: { PresencePenalty = input.ReadFloat(); break; @@ -2436,6 +2549,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(RoutingConfig); break; } + case 144: { + ResponseLogprobs = input.ReadBool(); + break; + } } } #endif @@ -2475,6 +2592,10 @@ public void MergeFrom(pb::CodedInputStream input) { stopSequences_.AddEntriesFrom(ref input, _repeated_stopSequences_codec); break; } + case 56: { + Logprobs = input.ReadInt32(); + break; + } case 69: { PresencePenalty = input.ReadFloat(); break; @@ -2505,6 +2626,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(RoutingConfig); break; } + case 144: { + ResponseLogprobs = input.ReadBool(); + break; + } } } } @@ -4700,6 +4825,7 @@ public Candidate(Candidate other) : this() { index_ = other.index_; content_ = other.content_ != null ? other.content_.Clone() : null; avgLogprobs_ = other.avgLogprobs_; + logprobsResult_ = other.logprobsResult_ != null ? other.logprobsResult_.Clone() : null; finishReason_ = other.finishReason_; safetyRatings_ = other.safetyRatings_.Clone(); finishMessage_ = other.finishMessage_; @@ -4759,6 +4885,21 @@ public double AvgLogprobs { } } + /// Field number for the "logprobs_result" field. + public const int LogprobsResultFieldNumber = 10; + private global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult logprobsResult_; + /// + /// Output only. Log-likelihood scores for the response tokens and top tokens + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult LogprobsResult { + get { return logprobsResult_; } + set { + logprobsResult_ = value; + } + } + /// Field number for the "finish_reason" field. public const int FinishReasonFieldNumber = 3; private global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason finishReason_ = global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason.Unspecified; @@ -4869,6 +5010,7 @@ public bool Equals(Candidate other) { if (Index != other.Index) return false; if (!object.Equals(Content, other.Content)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AvgLogprobs, other.AvgLogprobs)) return false; + if (!object.Equals(LogprobsResult, other.LogprobsResult)) return false; if (FinishReason != other.FinishReason) return false; if(!safetyRatings_.Equals(other.safetyRatings_)) return false; if (FinishMessage != other.FinishMessage) return false; @@ -4884,6 +5026,7 @@ public override int GetHashCode() { if (Index != 0) hash ^= Index.GetHashCode(); if (content_ != null) hash ^= Content.GetHashCode(); if (AvgLogprobs != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AvgLogprobs); + if (logprobsResult_ != null) hash ^= LogprobsResult.GetHashCode(); if (FinishReason != global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason.Unspecified) hash ^= FinishReason.GetHashCode(); hash ^= safetyRatings_.GetHashCode(); if (HasFinishMessage) hash ^= FinishMessage.GetHashCode(); @@ -4936,6 +5079,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(73); output.WriteDouble(AvgLogprobs); } + if (logprobsResult_ != null) { + output.WriteRawTag(82); + output.WriteMessage(LogprobsResult); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4975,6 +5122,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(73); output.WriteDouble(AvgLogprobs); } + if (logprobsResult_ != null) { + output.WriteRawTag(82); + output.WriteMessage(LogprobsResult); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4994,6 +5145,9 @@ public int CalculateSize() { if (AvgLogprobs != 0D) { size += 1 + 8; } + if (logprobsResult_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LogprobsResult); + } if (FinishReason != global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FinishReason); } @@ -5031,6 +5185,12 @@ public void MergeFrom(Candidate other) { if (other.AvgLogprobs != 0D) { AvgLogprobs = other.AvgLogprobs; } + if (other.logprobsResult_ != null) { + if (logprobsResult_ == null) { + LogprobsResult = new global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult(); + } + LogprobsResult.MergeFrom(other.LogprobsResult); + } if (other.FinishReason != global::Google.Cloud.AIPlatform.V1Beta1.Candidate.Types.FinishReason.Unspecified) { FinishReason = other.FinishReason; } @@ -5106,6 +5266,13 @@ public void MergeFrom(pb::CodedInputStream input) { AvgLogprobs = input.ReadDouble(); break; } + case 82: { + if (logprobsResult_ == null) { + LogprobsResult = new global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult(); + } + input.ReadMessage(LogprobsResult); + break; + } } } #endif @@ -5162,6 +5329,13 @@ public void MergeFrom(pb::CodedInputStream input) { AvgLogprobs = input.ReadDouble(); break; } + case 82: { + if (logprobsResult_ == null) { + LogprobsResult = new global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult(); + } + input.ReadMessage(LogprobsResult); + break; + } } } } @@ -5231,19 +5405,19 @@ public enum FinishReason { } /// - /// Segment of the content. + /// Logprobs Result /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class Segment : pb::IMessage + public sealed partial class LogprobsResult : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Segment()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LogprobsResult()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -5259,7 +5433,7 @@ public sealed partial class Segment : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Segment() { + public LogprobsResult() { OnConstruction(); } @@ -5267,101 +5441,64 @@ public Segment() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Segment(Segment other) : this() { - partIndex_ = other.partIndex_; - startIndex_ = other.startIndex_; - endIndex_ = other.endIndex_; - text_ = other.text_; + public LogprobsResult(LogprobsResult other) : this() { + topCandidates_ = other.topCandidates_.Clone(); + chosenCandidates_ = other.chosenCandidates_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Segment Clone() { - return new Segment(this); - } - - /// Field number for the "part_index" field. - public const int PartIndexFieldNumber = 1; - private int partIndex_; - /// - /// Output only. The index of a Part object within its parent Content object. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PartIndex { - get { return partIndex_; } - set { - partIndex_ = value; - } - } - - /// Field number for the "start_index" field. - public const int StartIndexFieldNumber = 2; - private int startIndex_; - /// - /// Output only. Start index in the given Part, measured in bytes. Offset from - /// the start of the Part, inclusive, starting at zero. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartIndex { - get { return startIndex_; } - set { - startIndex_ = value; - } + public LogprobsResult Clone() { + return new LogprobsResult(this); } - /// Field number for the "end_index" field. - public const int EndIndexFieldNumber = 3; - private int endIndex_; + /// Field number for the "top_candidates" field. + public const int TopCandidatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_topCandidates_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.TopCandidates.Parser); + private readonly pbc::RepeatedField topCandidates_ = new pbc::RepeatedField(); /// - /// Output only. End index in the given Part, measured in bytes. Offset from - /// the start of the Part, exclusive, starting at zero. + /// Length = total number of decoding steps. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int EndIndex { - get { return endIndex_; } - set { - endIndex_ = value; - } + public pbc::RepeatedField TopCandidates { + get { return topCandidates_; } } - /// Field number for the "text" field. - public const int TextFieldNumber = 4; - private string text_ = ""; + /// Field number for the "chosen_candidates" field. + public const int ChosenCandidatesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_chosenCandidates_codec + = pb::FieldCodec.ForMessage(18, global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.Candidate.Parser); + private readonly pbc::RepeatedField chosenCandidates_ = new pbc::RepeatedField(); /// - /// Output only. The text corresponding to the segment from the response. + /// Length = total number of decoding steps. + /// The chosen candidates may or may not be in top_candidates. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField ChosenCandidates { + get { return chosenCandidates_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Segment); + return Equals(other as LogprobsResult); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Segment other) { + public bool Equals(LogprobsResult other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PartIndex != other.PartIndex) return false; - if (StartIndex != other.StartIndex) return false; - if (EndIndex != other.EndIndex) return false; - if (Text != other.Text) return false; + if(!topCandidates_.Equals(other.topCandidates_)) return false; + if(!chosenCandidates_.Equals(other.chosenCandidates_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5369,10 +5506,8 @@ public bool Equals(Segment other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PartIndex != 0) hash ^= PartIndex.GetHashCode(); - if (StartIndex != 0) hash ^= StartIndex.GetHashCode(); - if (EndIndex != 0) hash ^= EndIndex.GetHashCode(); - if (Text.Length != 0) hash ^= Text.GetHashCode(); + hash ^= topCandidates_.GetHashCode(); + hash ^= chosenCandidates_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5391,22 +5526,8 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PartIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(PartIndex); - } - if (StartIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartIndex); - } - if (EndIndex != 0) { - output.WriteRawTag(24); - output.WriteInt32(EndIndex); - } - if (Text.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Text); - } + topCandidates_.WriteTo(output, _repeated_topCandidates_codec); + chosenCandidates_.WriteTo(output, _repeated_chosenCandidates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5417,22 +5538,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PartIndex != 0) { - output.WriteRawTag(8); - output.WriteInt32(PartIndex); - } - if (StartIndex != 0) { - output.WriteRawTag(16); - output.WriteInt32(StartIndex); - } - if (EndIndex != 0) { - output.WriteRawTag(24); - output.WriteInt32(EndIndex); - } - if (Text.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Text); - } + topCandidates_.WriteTo(ref output, _repeated_topCandidates_codec); + chosenCandidates_.WriteTo(ref output, _repeated_chosenCandidates_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5443,18 +5550,8 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PartIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartIndex); - } - if (StartIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartIndex); - } - if (EndIndex != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndIndex); - } - if (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } + size += topCandidates_.CalculateSize(_repeated_topCandidates_codec); + size += chosenCandidates_.CalculateSize(_repeated_chosenCandidates_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5463,22 +5560,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Segment other) { + public void MergeFrom(LogprobsResult other) { if (other == null) { return; } - if (other.PartIndex != 0) { - PartIndex = other.PartIndex; - } - if (other.StartIndex != 0) { - StartIndex = other.StartIndex; - } - if (other.EndIndex != 0) { - EndIndex = other.EndIndex; - } - if (other.Text.Length != 0) { - Text = other.Text; - } + topCandidates_.Add(other.topCandidates_); + chosenCandidates_.Add(other.chosenCandidates_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5494,20 +5581,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - PartIndex = input.ReadInt32(); - break; - } - case 16: { - StartIndex = input.ReadInt32(); - break; - } - case 24: { - EndIndex = input.ReadInt32(); + case 10: { + topCandidates_.AddEntriesFrom(input, _repeated_topCandidates_codec); break; } - case 34: { - Text = input.ReadString(); + case 18: { + chosenCandidates_.AddEntriesFrom(input, _repeated_chosenCandidates_codec); break; } } @@ -5525,20 +5604,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - PartIndex = input.ReadInt32(); - break; - } - case 16: { - StartIndex = input.ReadInt32(); - break; - } - case 24: { - EndIndex = input.ReadInt32(); + case 10: { + topCandidates_.AddEntriesFrom(ref input, _repeated_topCandidates_codec); break; } - case 34: { - Text = input.ReadString(); + case 18: { + chosenCandidates_.AddEntriesFrom(ref input, _repeated_chosenCandidates_codec); break; } } @@ -5546,27 +5617,860 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - } - - /// - /// Grounding chunk. - /// - [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] - public sealed partial class GroundingChunk : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroundingChunk()); - private pb::UnknownFieldSet _unknownFields; + #region Nested types + /// Container for nested types declared in the LogprobsResult message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - + public static partial class Types { + /// + /// Candidate for the logprobs token and score. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Candidate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Candidate()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Candidate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Candidate(Candidate other) : this() { + _hasBits0 = other._hasBits0; + token_ = other.token_; + tokenId_ = other.tokenId_; + logProbability_ = other.logProbability_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Candidate Clone() { + return new Candidate(this); + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 1; + private readonly static string TokenDefaultValue = ""; + + private string token_; + /// + /// The candidate’s token string value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_ ?? TokenDefaultValue; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "token" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasToken { + get { return token_ != null; } + } + /// Clears the value of the "token" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearToken() { + token_ = null; + } + + /// Field number for the "token_id" field. + public const int TokenIdFieldNumber = 3; + private readonly static int TokenIdDefaultValue = 0; + + private int tokenId_; + /// + /// The candidate’s token id value. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int TokenId { + get { if ((_hasBits0 & 2) != 0) { return tokenId_; } else { return TokenIdDefaultValue; } } + set { + _hasBits0 |= 2; + tokenId_ = value; + } + } + /// Gets whether the "token_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTokenId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "token_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTokenId() { + _hasBits0 &= ~2; + } + + /// Field number for the "log_probability" field. + public const int LogProbabilityFieldNumber = 2; + private readonly static float LogProbabilityDefaultValue = 0F; + + private float logProbability_; + /// + /// The candidate's log probability. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public float LogProbability { + get { if ((_hasBits0 & 1) != 0) { return logProbability_; } else { return LogProbabilityDefaultValue; } } + set { + _hasBits0 |= 1; + logProbability_ = value; + } + } + /// Gets whether the "log_probability" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasLogProbability { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "log_probability" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearLogProbability() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Candidate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Candidate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Token != other.Token) return false; + if (TokenId != other.TokenId) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(LogProbability, other.LogProbability)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasToken) hash ^= Token.GetHashCode(); + if (HasTokenId) hash ^= TokenId.GetHashCode(); + if (HasLogProbability) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LogProbability); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasToken) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (HasLogProbability) { + output.WriteRawTag(21); + output.WriteFloat(LogProbability); + } + if (HasTokenId) { + output.WriteRawTag(24); + output.WriteInt32(TokenId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasToken) { + output.WriteRawTag(10); + output.WriteString(Token); + } + if (HasLogProbability) { + output.WriteRawTag(21); + output.WriteFloat(LogProbability); + } + if (HasTokenId) { + output.WriteRawTag(24); + output.WriteInt32(TokenId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasToken) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (HasTokenId) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(TokenId); + } + if (HasLogProbability) { + size += 1 + 4; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Candidate other) { + if (other == null) { + return; + } + if (other.HasToken) { + Token = other.Token; + } + if (other.HasTokenId) { + TokenId = other.TokenId; + } + if (other.HasLogProbability) { + LogProbability = other.LogProbability; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Token = input.ReadString(); + break; + } + case 21: { + LogProbability = input.ReadFloat(); + break; + } + case 24: { + TokenId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Token = input.ReadString(); + break; + } + case 21: { + LogProbability = input.ReadFloat(); + break; + } + case 24: { + TokenId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// Candidates with top log probabilities at each decoding step. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TopCandidates : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopCandidates()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopCandidates() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopCandidates(TopCandidates other) : this() { + candidates_ = other.candidates_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopCandidates Clone() { + return new TopCandidates(this); + } + + /// Field number for the "candidates" field. + public const int CandidatesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_candidates_codec + = pb::FieldCodec.ForMessage(10, global::Google.Cloud.AIPlatform.V1Beta1.LogprobsResult.Types.Candidate.Parser); + private readonly pbc::RepeatedField candidates_ = new pbc::RepeatedField(); + /// + /// Sorted by log probability in descending order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Candidates { + get { return candidates_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TopCandidates); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TopCandidates other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!candidates_.Equals(other.candidates_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= candidates_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + candidates_.WriteTo(output, _repeated_candidates_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + candidates_.WriteTo(ref output, _repeated_candidates_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += candidates_.CalculateSize(_repeated_candidates_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TopCandidates other) { + if (other == null) { + return; + } + candidates_.Add(other.candidates_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + candidates_.AddEntriesFrom(input, _repeated_candidates_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + candidates_.AddEntriesFrom(ref input, _repeated_candidates_codec); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// Segment of the content. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class Segment : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Segment()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Segment() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Segment(Segment other) : this() { + partIndex_ = other.partIndex_; + startIndex_ = other.startIndex_; + endIndex_ = other.endIndex_; + text_ = other.text_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Segment Clone() { + return new Segment(this); + } + + /// Field number for the "part_index" field. + public const int PartIndexFieldNumber = 1; + private int partIndex_; + /// + /// Output only. The index of a Part object within its parent Content object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PartIndex { + get { return partIndex_; } + set { + partIndex_ = value; + } + } + + /// Field number for the "start_index" field. + public const int StartIndexFieldNumber = 2; + private int startIndex_; + /// + /// Output only. Start index in the given Part, measured in bytes. Offset from + /// the start of the Part, inclusive, starting at zero. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int StartIndex { + get { return startIndex_; } + set { + startIndex_ = value; + } + } + + /// Field number for the "end_index" field. + public const int EndIndexFieldNumber = 3; + private int endIndex_; + /// + /// Output only. End index in the given Part, measured in bytes. Offset from + /// the start of the Part, exclusive, starting at zero. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int EndIndex { + get { return endIndex_; } + set { + endIndex_ = value; + } + } + + /// Field number for the "text" field. + public const int TextFieldNumber = 4; + private string text_ = ""; + /// + /// Output only. The text corresponding to the segment from the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Segment); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Segment other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PartIndex != other.PartIndex) return false; + if (StartIndex != other.StartIndex) return false; + if (EndIndex != other.EndIndex) return false; + if (Text != other.Text) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (PartIndex != 0) hash ^= PartIndex.GetHashCode(); + if (StartIndex != 0) hash ^= StartIndex.GetHashCode(); + if (EndIndex != 0) hash ^= EndIndex.GetHashCode(); + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (PartIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(PartIndex); + } + if (StartIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(StartIndex); + } + if (EndIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(EndIndex); + } + if (Text.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (PartIndex != 0) { + output.WriteRawTag(8); + output.WriteInt32(PartIndex); + } + if (StartIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(StartIndex); + } + if (EndIndex != 0) { + output.WriteRawTag(24); + output.WriteInt32(EndIndex); + } + if (Text.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Text); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (PartIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartIndex); + } + if (StartIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartIndex); + } + if (EndIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndIndex); + } + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Segment other) { + if (other == null) { + return; + } + if (other.PartIndex != 0) { + PartIndex = other.PartIndex; + } + if (other.StartIndex != 0) { + StartIndex = other.StartIndex; + } + if (other.EndIndex != 0) { + EndIndex = other.EndIndex; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + PartIndex = input.ReadInt32(); + break; + } + case 16: { + StartIndex = input.ReadInt32(); + break; + } + case 24: { + EndIndex = input.ReadInt32(); + break; + } + case 34: { + Text = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PartIndex = input.ReadInt32(); + break; + } + case 16: { + StartIndex = input.ReadInt32(); + break; + } + case 24: { + EndIndex = input.ReadInt32(); + break; + } + case 34: { + Text = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// Grounding chunk. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class GroundingChunk : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroundingChunk()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[12]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6397,7 +7301,7 @@ public sealed partial class GroundingSupport : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[13]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6669,7 +7573,7 @@ public sealed partial class GroundingMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[14]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6990,7 +7894,7 @@ public sealed partial class SearchEntryPoint : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[15]; } + get { return global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenAiTuningServiceClient.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenAiTuningServiceClient.g.cs index e3dff0752de7..566d9152b919 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenAiTuningServiceClient.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenAiTuningServiceClient.g.cs @@ -22,6 +22,7 @@ using gcl = Google.Cloud.Location; using grpccore = Grpc.Core; using grpcinter = Grpc.Core.Interceptors; +using lro = Google.LongRunning; using mel = Microsoft.Extensions.Logging; using proto = Google.Protobuf; using sc = System.Collections; @@ -53,6 +54,8 @@ private GenAiTuningServiceSettings(GenAiTuningServiceSettings existing) : base(e GetTuningJobSettings = existing.GetTuningJobSettings; ListTuningJobsSettings = existing.ListTuningJobsSettings; CancelTuningJobSettings = existing.CancelTuningJobSettings; + RebaseTunedModelSettings = existing.RebaseTunedModelSettings; + RebaseTunedModelOperationsSettings = existing.RebaseTunedModelOperationsSettings.Clone(); LocationsSettings = existing.LocationsSettings; IAMPolicySettings = existing.IAMPolicySettings; OnCopy(existing); @@ -108,6 +111,36 @@ private GenAiTuningServiceSettings(GenAiTuningServiceSettings existing) : base(e /// public gaxgrpc::CallSettings CancelTuningJobSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + /// + /// for synchronous and asynchronous calls to + /// GenAiTuningServiceClient.RebaseTunedModel and GenAiTuningServiceClient.RebaseTunedModelAsync. + /// + /// + /// + /// This call will not be retried. + /// No timeout is applied. + /// + /// + public gaxgrpc::CallSettings RebaseTunedModelSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.None); + + /// + /// Long Running Operation settings for calls to GenAiTuningServiceClient.RebaseTunedModel and + /// GenAiTuningServiceClient.RebaseTunedModelAsync. + /// + /// + /// Uses default of: + /// + /// Initial delay: 20 seconds. + /// Delay multiplier: 1.5 + /// Maximum delay: 45 seconds. + /// Total timeout: 24 hours. + /// + /// + public lro::OperationsSettings RebaseTunedModelOperationsSettings { get; set; } = new lro::OperationsSettings + { + DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), + }; + /// /// The settings to use for the associated with the client. /// @@ -884,6 +917,183 @@ public virtual void CancelTuningJob(TuningJobName name, gaxgrpc::CallSettings ca /// A Task containing the RPC response. public virtual stt::Task CancelTuningJobAsync(TuningJobName name, st::CancellationToken cancellationToken) => CancelTuningJobAsync(name, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation RebaseTunedModel(RebaseTunedModelRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(RebaseTunedModelRequest request, gaxgrpc::CallSettings callSettings = null) => + throw new sys::NotImplementedException(); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request object containing all of the parameters for the API call. + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(RebaseTunedModelRequest request, st::CancellationToken cancellationToken) => + RebaseTunedModelAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// The long-running operations client for RebaseTunedModel. + public virtual lro::OperationsClient RebaseTunedModelOperationsClient => throw new sys::NotImplementedException(); + + /// + /// Poll an operation once, using an operationName from a previous invocation of RebaseTunedModel. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// The result of polling the operation. + public virtual lro::Operation PollOnceRebaseTunedModel(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RebaseTunedModelOperationsClient, callSettings); + + /// + /// Asynchronously poll an operation once, using an operationName from a previous invocation of + /// RebaseTunedModel. + /// + /// + /// The name of a previously invoked operation. Must not be null or empty. + /// + /// If not null, applies overrides to this RPC call. + /// A task representing the result of polling the operation. + public virtual stt::Task> PollOnceRebaseTunedModelAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => + lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RebaseTunedModelOperationsClient, callSettings); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation RebaseTunedModel(string parent, TunedModelRef tunedModelRef, gaxgrpc::CallSettings callSettings = null) => + RebaseTunedModel(new RebaseTunedModelRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TunedModelRef = gax::GaxPreconditions.CheckNotNull(tunedModelRef, nameof(tunedModelRef)), + }, callSettings); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(string parent, TunedModelRef tunedModelRef, gaxgrpc::CallSettings callSettings = null) => + RebaseTunedModelAsync(new RebaseTunedModelRequest + { + Parent = gax::GaxPreconditions.CheckNotNullOrEmpty(parent, nameof(parent)), + TunedModelRef = gax::GaxPreconditions.CheckNotNull(tunedModelRef, nameof(tunedModelRef)), + }, callSettings); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(string parent, TunedModelRef tunedModelRef, st::CancellationToken cancellationToken) => + RebaseTunedModelAsync(parent, tunedModelRef, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public virtual lro::Operation RebaseTunedModel(gagr::LocationName parent, TunedModelRef tunedModelRef, gaxgrpc::CallSettings callSettings = null) => + RebaseTunedModel(new RebaseTunedModelRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TunedModelRef = gax::GaxPreconditions.CheckNotNull(tunedModelRef, nameof(tunedModelRef)), + }, callSettings); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(gagr::LocationName parent, TunedModelRef tunedModelRef, gaxgrpc::CallSettings callSettings = null) => + RebaseTunedModelAsync(new RebaseTunedModelRequest + { + ParentAsLocationName = gax::GaxPreconditions.CheckNotNull(parent, nameof(parent)), + TunedModelRef = gax::GaxPreconditions.CheckNotNull(tunedModelRef, nameof(tunedModelRef)), + }, callSettings); + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + /// A to use for this RPC. + /// A Task containing the RPC response. + public virtual stt::Task> RebaseTunedModelAsync(gagr::LocationName parent, TunedModelRef tunedModelRef, st::CancellationToken cancellationToken) => + RebaseTunedModelAsync(parent, tunedModelRef, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); } /// GenAiTuningService client wrapper implementation, for convenient use. @@ -900,6 +1110,8 @@ public sealed partial class GenAiTuningServiceClientImpl : GenAiTuningServiceCli private readonly gaxgrpc::ApiCall _callCancelTuningJob; + private readonly gaxgrpc::ApiCall _callRebaseTunedModel; + /// /// Constructs a client wrapper for the GenAiTuningService service, with the specified gRPC client and settings. /// @@ -915,6 +1127,7 @@ public GenAiTuningServiceClientImpl(GenAiTuningService.GenAiTuningServiceClient Settings = effectiveSettings, Logger = logger, }); + RebaseTunedModelOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RebaseTunedModelOperationsSettings, logger); LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger); IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger); _callCreateTuningJob = clientHelper.BuildApiCall("CreateTuningJob", grpcClient.CreateTuningJobAsync, grpcClient.CreateTuningJob, effectiveSettings.CreateTuningJobSettings).WithGoogleRequestParam("parent", request => request.Parent); @@ -929,6 +1142,9 @@ public GenAiTuningServiceClientImpl(GenAiTuningService.GenAiTuningServiceClient _callCancelTuningJob = clientHelper.BuildApiCall("CancelTuningJob", grpcClient.CancelTuningJobAsync, grpcClient.CancelTuningJob, effectiveSettings.CancelTuningJobSettings).WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callCancelTuningJob); Modify_CancelTuningJobApiCall(ref _callCancelTuningJob); + _callRebaseTunedModel = clientHelper.BuildApiCall("RebaseTunedModel", grpcClient.RebaseTunedModelAsync, grpcClient.RebaseTunedModel, effectiveSettings.RebaseTunedModelSettings).WithGoogleRequestParam("parent", request => request.Parent); + Modify_ApiCall(ref _callRebaseTunedModel); + Modify_RebaseTunedModelApiCall(ref _callRebaseTunedModel); OnConstruction(grpcClient, effectiveSettings, clientHelper); } @@ -942,6 +1158,8 @@ public GenAiTuningServiceClientImpl(GenAiTuningService.GenAiTuningServiceClient partial void Modify_CancelTuningJobApiCall(ref gaxgrpc::ApiCall call); + partial void Modify_RebaseTunedModelApiCall(ref gaxgrpc::ApiCall call); + partial void OnConstruction(GenAiTuningService.GenAiTuningServiceClient grpcClient, GenAiTuningServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); /// The underlying gRPC GenAiTuningService client @@ -961,6 +1179,8 @@ public GenAiTuningServiceClientImpl(GenAiTuningService.GenAiTuningServiceClient partial void Modify_CancelTuningJobRequest(ref CancelTuningJobRequest request, ref gaxgrpc::CallSettings settings); + partial void Modify_RebaseTunedModelRequest(ref RebaseTunedModelRequest request, ref gaxgrpc::CallSettings settings); + /// /// Creates a TuningJob. A created TuningJob right away will be attempted to /// be run. @@ -1080,6 +1300,37 @@ public override void CancelTuningJob(CancelTuningJobRequest request, gaxgrpc::Ca Modify_CancelTuningJobRequest(ref request, ref callSettings); return _callCancelTuningJob.Async(request, callSettings); } + + /// The long-running operations client for RebaseTunedModel. + public override lro::OperationsClient RebaseTunedModelOperationsClient { get; } + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// The RPC response. + public override lro::Operation RebaseTunedModel(RebaseTunedModelRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RebaseTunedModelRequest(ref request, ref callSettings); + return new lro::Operation(_callRebaseTunedModel.Sync(request, callSettings), RebaseTunedModelOperationsClient); + } + + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request object containing all of the parameters for the API call. + /// If not null, applies overrides to this RPC call. + /// A Task containing the RPC response. + public override async stt::Task> RebaseTunedModelAsync(RebaseTunedModelRequest request, gaxgrpc::CallSettings callSettings = null) + { + Modify_RebaseTunedModelRequest(ref request, ref callSettings); + return new lro::Operation(await _callRebaseTunedModel.Async(request, callSettings).ConfigureAwait(false), RebaseTunedModelOperationsClient); + } } public partial class ListTuningJobsRequest : gaxgrpc::IPageRequest @@ -1094,6 +1345,20 @@ public partial class ListTuningJobsResponse : gaxgrpc::IPageResponse sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); } + public static partial class GenAiTuningService + { + public partial class GenAiTuningServiceClient + { + /// + /// Creates a new instance of using the same call invoker as + /// this client. + /// + /// A new Operations client for the same target as this client. + public virtual lro::Operations.OperationsClient CreateOperationsClient() => + new lro::Operations.OperationsClient(CallInvoker); + } + } + public static partial class GenAiTuningService { public partial class GenAiTuningServiceClient diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningService.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningService.g.cs index 6aacf711833a..975ba8da40a7 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningService.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningService.g.cs @@ -28,55 +28,77 @@ static GenaiTuningServiceReflection() { "Z19zZXJ2aWNlLnByb3RvEh9nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJl", "dGExGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBp", "L2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90", - "bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxowZ29vZ2xlL2Nsb3VkL2Fp", - "cGxhdGZvcm0vdjFiZXRhMS90dW5pbmdfam9iLnByb3RvGhtnb29nbGUvcHJv", - "dG9idWYvZW1wdHkucHJvdG8imAEKFkNyZWF0ZVR1bmluZ0pvYlJlcXVlc3QS", - "OQoGcGFyZW50GAEgASgJQingQQL6QSMKIWxvY2F0aW9ucy5nb29nbGVhcGlz", - "LmNvbS9Mb2NhdGlvbhJDCgp0dW5pbmdfam9iGAIgASgLMiouZ29vZ2xlLmNs", - "b3VkLmFpcGxhdGZvcm0udjFiZXRhMS5UdW5pbmdKb2JCA+BBAiJQChNHZXRU", - "dW5pbmdKb2JSZXF1ZXN0EjkKBG5hbWUYASABKAlCK+BBAvpBJQojYWlwbGF0", - "Zm9ybS5nb29nbGVhcGlzLmNvbS9UdW5pbmdKb2IimAEKFUxpc3RUdW5pbmdK", - "b2JzUmVxdWVzdBI5CgZwYXJlbnQYASABKAlCKeBBAvpBIwohbG9jYXRpb25z", - "Lmdvb2dsZWFwaXMuY29tL0xvY2F0aW9uEhMKBmZpbHRlchgCIAEoCUID4EEB", - "EhYKCXBhZ2Vfc2l6ZRgDIAEoBUID4E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t0kEuaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", + "b20vYXV0aC9jbG91ZC1wbGF0Zm9ybULuAQojY29tLmdvb2dsZS5jbG91ZC5h", + "aXBsYXRmb3JtLnYxYmV0YTFCF0dlbkFpVHVuaW5nU2VydmljZVByb3RvUAFa", + "Q2Nsb3VkLmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9ybS9hcGl2MWJldGExL2Fp", + "cGxhdGZvcm1wYjthaXBsYXRmb3JtcGKqAh9Hb29nbGUuQ2xvdWQuQUlQbGF0", + "Zm9ybS5WMUJldGExygIfR29vZ2xlXENsb3VkXEFJUGxhdGZvcm1cVjFiZXRh", + "MeoCIkdvb2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYmV0YTFiBnByb3Rv", + "Mw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.IoReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.OperationReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CreateTuningJobRequest), global::Google.Cloud.AIPlatform.V1Beta1.CreateTuningJobRequest.Parser, new[]{ "Parent", "TuningJob" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GetTuningJobRequest), global::Google.Cloud.AIPlatform.V1Beta1.GetTuningJobRequest.Parser, new[]{ "Name" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.ListTuningJobsRequest), global::Google.Cloud.AIPlatform.V1Beta1.ListTuningJobsRequest.Parser, new[]{ "Parent", "Filter", "PageSize", "PageToken" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.ListTuningJobsResponse), global::Google.Cloud.AIPlatform.V1Beta1.ListTuningJobsResponse.Parser, new[]{ "TuningJobs", "NextPageToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CancelTuningJobRequest), global::Google.Cloud.AIPlatform.V1Beta1.CancelTuningJobRequest.Parser, new[]{ "Name" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CancelTuningJobRequest), global::Google.Cloud.AIPlatform.V1Beta1.CancelTuningJobRequest.Parser, new[]{ "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest), global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest.Parser, new[]{ "Parent", "TunedModelRef", "TuningJob", "ArtifactDestination", "DeployToSameEndpoint" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelOperationMetadata), global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelOperationMetadata.Parser, new[]{ "GenericMetadata" }, null, null, null, null) })); } #endregion @@ -1275,6 +1297,600 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Request message for + /// [GenAiTuningService.RebaseTunedModel][google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RebaseTunedModelRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RebaseTunedModelRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.GenaiTuningServiceReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelRequest(RebaseTunedModelRequest other) : this() { + parent_ = other.parent_; + tunedModelRef_ = other.tunedModelRef_ != null ? other.tunedModelRef_.Clone() : null; + tuningJob_ = other.tuningJob_ != null ? other.tuningJob_.Clone() : null; + artifactDestination_ = other.artifactDestination_ != null ? other.artifactDestination_.Clone() : null; + deployToSameEndpoint_ = other.deployToSameEndpoint_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelRequest Clone() { + return new RebaseTunedModelRequest(this); + } + + /// Field number for the "parent" field. + public const int ParentFieldNumber = 1; + private string parent_ = ""; + /// + /// Required. The resource name of the Location into which to rebase the Model. + /// Format: `projects/{project}/locations/{location}` + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Parent { + get { return parent_; } + set { + parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "tuned_model_ref" field. + public const int TunedModelRefFieldNumber = 2; + private global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef tunedModelRef_; + /// + /// Required. TunedModel reference to retrieve the legacy model information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef TunedModelRef { + get { return tunedModelRef_; } + set { + tunedModelRef_ = value; + } + } + + /// Field number for the "tuning_job" field. + public const int TuningJobFieldNumber = 3; + private global::Google.Cloud.AIPlatform.V1Beta1.TuningJob tuningJob_; + /// + /// Optional. The TuningJob to be updated. Users can use this TuningJob field + /// to overwrite tuning configs. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.TuningJob TuningJob { + get { return tuningJob_; } + set { + tuningJob_ = value; + } + } + + /// Field number for the "artifact_destination" field. + public const int ArtifactDestinationFieldNumber = 4; + private global::Google.Cloud.AIPlatform.V1Beta1.GcsDestination artifactDestination_; + /// + /// Optional. The Google Cloud Storage location to write the artifacts. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.GcsDestination ArtifactDestination { + get { return artifactDestination_; } + set { + artifactDestination_ = value; + } + } + + /// Field number for the "deploy_to_same_endpoint" field. + public const int DeployToSameEndpointFieldNumber = 5; + private bool deployToSameEndpoint_; + /// + /// Optional. By default, bison to gemini migration will always create new + /// model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default + /// deploy to the same endpoint. See details in this Section. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool DeployToSameEndpoint { + get { return deployToSameEndpoint_; } + set { + deployToSameEndpoint_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RebaseTunedModelRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RebaseTunedModelRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Parent != other.Parent) return false; + if (!object.Equals(TunedModelRef, other.TunedModelRef)) return false; + if (!object.Equals(TuningJob, other.TuningJob)) return false; + if (!object.Equals(ArtifactDestination, other.ArtifactDestination)) return false; + if (DeployToSameEndpoint != other.DeployToSameEndpoint) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Parent.Length != 0) hash ^= Parent.GetHashCode(); + if (tunedModelRef_ != null) hash ^= TunedModelRef.GetHashCode(); + if (tuningJob_ != null) hash ^= TuningJob.GetHashCode(); + if (artifactDestination_ != null) hash ^= ArtifactDestination.GetHashCode(); + if (DeployToSameEndpoint != false) hash ^= DeployToSameEndpoint.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (tunedModelRef_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TunedModelRef); + } + if (tuningJob_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TuningJob); + } + if (artifactDestination_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ArtifactDestination); + } + if (DeployToSameEndpoint != false) { + output.WriteRawTag(40); + output.WriteBool(DeployToSameEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Parent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Parent); + } + if (tunedModelRef_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TunedModelRef); + } + if (tuningJob_ != null) { + output.WriteRawTag(26); + output.WriteMessage(TuningJob); + } + if (artifactDestination_ != null) { + output.WriteRawTag(34); + output.WriteMessage(ArtifactDestination); + } + if (DeployToSameEndpoint != false) { + output.WriteRawTag(40); + output.WriteBool(DeployToSameEndpoint); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Parent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); + } + if (tunedModelRef_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TunedModelRef); + } + if (tuningJob_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TuningJob); + } + if (artifactDestination_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ArtifactDestination); + } + if (DeployToSameEndpoint != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RebaseTunedModelRequest other) { + if (other == null) { + return; + } + if (other.Parent.Length != 0) { + Parent = other.Parent; + } + if (other.tunedModelRef_ != null) { + if (tunedModelRef_ == null) { + TunedModelRef = new global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef(); + } + TunedModelRef.MergeFrom(other.TunedModelRef); + } + if (other.tuningJob_ != null) { + if (tuningJob_ == null) { + TuningJob = new global::Google.Cloud.AIPlatform.V1Beta1.TuningJob(); + } + TuningJob.MergeFrom(other.TuningJob); + } + if (other.artifactDestination_ != null) { + if (artifactDestination_ == null) { + ArtifactDestination = new global::Google.Cloud.AIPlatform.V1Beta1.GcsDestination(); + } + ArtifactDestination.MergeFrom(other.ArtifactDestination); + } + if (other.DeployToSameEndpoint != false) { + DeployToSameEndpoint = other.DeployToSameEndpoint; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (tunedModelRef_ == null) { + TunedModelRef = new global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef(); + } + input.ReadMessage(TunedModelRef); + break; + } + case 26: { + if (tuningJob_ == null) { + TuningJob = new global::Google.Cloud.AIPlatform.V1Beta1.TuningJob(); + } + input.ReadMessage(TuningJob); + break; + } + case 34: { + if (artifactDestination_ == null) { + ArtifactDestination = new global::Google.Cloud.AIPlatform.V1Beta1.GcsDestination(); + } + input.ReadMessage(ArtifactDestination); + break; + } + case 40: { + DeployToSameEndpoint = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Parent = input.ReadString(); + break; + } + case 18: { + if (tunedModelRef_ == null) { + TunedModelRef = new global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef(); + } + input.ReadMessage(TunedModelRef); + break; + } + case 26: { + if (tuningJob_ == null) { + TuningJob = new global::Google.Cloud.AIPlatform.V1Beta1.TuningJob(); + } + input.ReadMessage(TuningJob); + break; + } + case 34: { + if (artifactDestination_ == null) { + ArtifactDestination = new global::Google.Cloud.AIPlatform.V1Beta1.GcsDestination(); + } + input.ReadMessage(ArtifactDestination); + break; + } + case 40: { + DeployToSameEndpoint = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + /// + /// Runtime operation information for + /// [GenAiTuningService.RebaseTunedModel][google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel]. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class RebaseTunedModelOperationMetadata : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RebaseTunedModelOperationMetadata()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.GenaiTuningServiceReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelOperationMetadata() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelOperationMetadata(RebaseTunedModelOperationMetadata other) : this() { + genericMetadata_ = other.genericMetadata_ != null ? other.genericMetadata_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RebaseTunedModelOperationMetadata Clone() { + return new RebaseTunedModelOperationMetadata(this); + } + + /// Field number for the "generic_metadata" field. + public const int GenericMetadataFieldNumber = 1; + private global::Google.Cloud.AIPlatform.V1Beta1.GenericOperationMetadata genericMetadata_; + /// + /// The common part of the operation generic information. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Cloud.AIPlatform.V1Beta1.GenericOperationMetadata GenericMetadata { + get { return genericMetadata_; } + set { + genericMetadata_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RebaseTunedModelOperationMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RebaseTunedModelOperationMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(GenericMetadata, other.GenericMetadata)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (genericMetadata_ != null) hash ^= GenericMetadata.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (genericMetadata_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GenericMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (genericMetadata_ != null) { + output.WriteRawTag(10); + output.WriteMessage(GenericMetadata); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (genericMetadata_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(GenericMetadata); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RebaseTunedModelOperationMetadata other) { + if (other == null) { + return; + } + if (other.genericMetadata_ != null) { + if (genericMetadata_ == null) { + GenericMetadata = new global::Google.Cloud.AIPlatform.V1Beta1.GenericOperationMetadata(); + } + GenericMetadata.MergeFrom(other.GenericMetadata); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (genericMetadata_ == null) { + GenericMetadata = new global::Google.Cloud.AIPlatform.V1Beta1.GenericOperationMetadata(); + } + input.ReadMessage(GenericMetadata); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (genericMetadata_ == null) { + GenericMetadata = new global::Google.Cloud.AIPlatform.V1Beta1.GenericOperationMetadata(); + } + input.ReadMessage(GenericMetadata); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceGrpc.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceGrpc.g.cs index 6b30483e0d7a..cba09715590e 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceGrpc.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceGrpc.g.cs @@ -77,6 +77,10 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl static readonly grpc::Marshaller __Marshaller_google_cloud_aiplatform_v1beta1_CancelTuningJobRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.AIPlatform.V1Beta1.CancelTuningJobRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_cloud_aiplatform_v1beta1_RebaseTunedModelRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_CreateTuningJob = new grpc::Method( @@ -110,6 +114,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_google_cloud_aiplatform_v1beta1_CancelTuningJobRequest, __Marshaller_google_protobuf_Empty); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_RebaseTunedModel = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "RebaseTunedModel", + __Marshaller_google_cloud_aiplatform_v1beta1_RebaseTunedModelRequest, + __Marshaller_google_longrunning_Operation); + /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { @@ -180,6 +192,20 @@ public abstract partial class GenAiTuningServiceBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task RebaseTunedModel(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + } /// Client for GenAiTuningService @@ -449,6 +475,62 @@ protected GenAiTuningServiceClient(ClientBaseConfiguration configuration) : base { return CallInvoker.AsyncUnaryCall(__Method_CancelTuningJob, null, options, request); } + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation RebaseTunedModel(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RebaseTunedModel(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::Google.LongRunning.Operation RebaseTunedModel(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_RebaseTunedModel, null, options, request); + } + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RebaseTunedModelAsync(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return RebaseTunedModelAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// Rebase a TunedModel. + /// Creates a LongRunningOperation that takes a legacy Tuned GenAI model + /// Reference and creates a TuningJob based on newly available model. + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall RebaseTunedModelAsync(global::Google.Cloud.AIPlatform.V1Beta1.RebaseTunedModelRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_RebaseTunedModel, null, options, request); + } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override GenAiTuningServiceClient NewInstance(ClientBaseConfiguration configuration) @@ -466,7 +548,8 @@ protected override GenAiTuningServiceClient NewInstance(ClientBaseConfiguration .AddMethod(__Method_CreateTuningJob, serviceImpl.CreateTuningJob) .AddMethod(__Method_GetTuningJob, serviceImpl.GetTuningJob) .AddMethod(__Method_ListTuningJobs, serviceImpl.ListTuningJobs) - .AddMethod(__Method_CancelTuningJob, serviceImpl.CancelTuningJob).Build(); + .AddMethod(__Method_CancelTuningJob, serviceImpl.CancelTuningJob) + .AddMethod(__Method_RebaseTunedModel, serviceImpl.RebaseTunedModel).Build(); } /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. @@ -480,6 +563,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GenAiTunin serviceBinder.AddMethod(__Method_GetTuningJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTuningJob)); serviceBinder.AddMethod(__Method_ListTuningJobs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListTuningJobs)); serviceBinder.AddMethod(__Method_CancelTuningJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CancelTuningJob)); + serviceBinder.AddMethod(__Method_RebaseTunedModel, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RebaseTunedModel)); } } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceResourceNames.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceResourceNames.g.cs index 508aeb5cda36..3ec524fa52ba 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceResourceNames.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/GenaiTuningServiceResourceNames.g.cs @@ -67,4 +67,16 @@ public partial class CancelTuningJobRequest set => Name = value?.ToString() ?? ""; } } + + public partial class RebaseTunedModelRequest + { + /// + /// -typed view over the resource name property. + /// + public gagr::LocationName ParentAsLocationName + { + get => string.IsNullOrEmpty(Parent) ? null : gagr::LocationName.Parse(Parent, allowUnparsed: true); + set => Parent = value?.ToString() ?? ""; + } + } } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Openapi.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Openapi.g.cs index 67a0d7229551..ee416b13b6f0 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Openapi.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/Openapi.g.cs @@ -27,7 +27,7 @@ static OpenapiReflection() { "Ci1nb29nbGUvY2xvdWQvYWlwbGF0Zm9ybS92MWJldGExL29wZW5hcGkucHJv", "dG8SH2dvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEaH2dvb2dsZS9h", "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1", - "Y3QucHJvdG8ipwYKDU9wZW5BcGlTY2hlbWESOAoEdHlwZRgBIAEoDjIlLmdv", + "Y3QucHJvdG8i7AYKDU9wZW5BcGlTY2hlbWESOAoEdHlwZRgBIAEoDjIlLmdv", "b2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuVHlwZUID4EEBEhMKBmZv", "cm1hdBgHIAEoCUID4EEBEhIKBXRpdGxlGBggASgJQgPgQQESGAoLZGVzY3Jp", "cHRpb24YCCABKAlCA+BBARIVCghudWxsYWJsZRgGIAEoCEID4EEBEiwKB2Rl", @@ -42,21 +42,23 @@ static OpenapiReflection() { "ZXJ0aWVzGA8gASgDQgPgQQESFAoHbWluaW11bRgQIAEoAUID4EEBEhQKB21h", "eGltdW0YESABKAFCA+BBARIXCgptaW5fbGVuZ3RoGBIgASgDQgPgQQESFwoK", "bWF4X2xlbmd0aBgTIAEoA0ID4EEBEhQKB3BhdHRlcm4YFCABKAlCA+BBARIs", - "CgdleGFtcGxlGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlQgPgQQEa", - "YQoPUHJvcGVydGllc0VudHJ5EgsKA2tleRgBIAEoCRI9CgV2YWx1ZRgCIAEo", - "CzIuLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuT3BlbkFwaVNj", - "aGVtYToCOAEqZQoEVHlwZRIUChBUWVBFX1VOU1BFQ0lGSUVEEAASCgoGU1RS", - "SU5HEAESCgoGTlVNQkVSEAISCwoHSU5URUdFUhADEgsKB0JPT0xFQU4QBBIJ", - "CgVBUlJBWRAFEgoKBk9CSkVDVBAGQuMBCiNjb20uZ29vZ2xlLmNsb3VkLmFp", - "cGxhdGZvcm0udjFiZXRhMUIMT3BlbkFwaVByb3RvUAFaQ2Nsb3VkLmdvb2ds", - "ZS5jb20vZ28vYWlwbGF0Zm9ybS9hcGl2MWJldGExL2FpcGxhdGZvcm1wYjth", - "aXBsYXRmb3JtcGKqAh9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMUJldGEx", - "ygIfR29vZ2xlXENsb3VkXEFJUGxhdGZvcm1cVjFiZXRhMeoCIkdvb2dsZTo6", - "Q2xvdWQ6OkFJUGxhdGZvcm06OlYxYmV0YTFiBnByb3RvMw==")); + "CgdleGFtcGxlGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlQgPgQQES", + "QwoGYW55X29mGAsgAygLMi4uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFi", + "ZXRhMS5PcGVuQXBpU2NoZW1hQgPgQQEaYQoPUHJvcGVydGllc0VudHJ5EgsK", + "A2tleRgBIAEoCRI9CgV2YWx1ZRgCIAEoCzIuLmdvb2dsZS5jbG91ZC5haXBs", + "YXRmb3JtLnYxYmV0YTEuT3BlbkFwaVNjaGVtYToCOAEqZQoEVHlwZRIUChBU", + "WVBFX1VOU1BFQ0lGSUVEEAASCgoGU1RSSU5HEAESCgoGTlVNQkVSEAISCwoH", + "SU5URUdFUhADEgsKB0JPT0xFQU4QBBIJCgVBUlJBWRAFEgoKBk9CSkVDVBAG", + "QuMBCiNjb20uZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMUIMT3Bl", + "bkFwaVByb3RvUAFaQ2Nsb3VkLmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9ybS9h", + "cGl2MWJldGExL2FpcGxhdGZvcm1wYjthaXBsYXRmb3JtcGKqAh9Hb29nbGUu", + "Q2xvdWQuQUlQbGF0Zm9ybS5WMUJldGExygIfR29vZ2xlXENsb3VkXEFJUGxh", + "dGZvcm1cVjFiZXRhMeoCIkdvb2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06OlYx", + "YmV0YTFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.AIPlatform.V1Beta1.Type), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema), global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema.Parser, new[]{ "Type", "Format", "Title", "Description", "Nullable", "Default", "Items", "MinItems", "MaxItems", "Enum", "Properties", "PropertyOrdering", "Required", "MinProperties", "MaxProperties", "Minimum", "Maximum", "MinLength", "MaxLength", "Pattern", "Example" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema), global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema.Parser, new[]{ "Type", "Format", "Title", "Description", "Nullable", "Default", "Items", "MinItems", "MaxItems", "Enum", "Properties", "PropertyOrdering", "Required", "MinProperties", "MaxProperties", "Minimum", "Maximum", "MinLength", "MaxLength", "Pattern", "Example", "AnyOf" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }) })); } #endregion @@ -163,6 +165,7 @@ public OpenApiSchema(OpenApiSchema other) : this() { maxLength_ = other.maxLength_; pattern_ = other.pattern_; example_ = other.example_ != null ? other.example_.Clone() : null; + anyOf_ = other.anyOf_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -497,6 +500,21 @@ public string Pattern { } } + /// Field number for the "any_of" field. + public const int AnyOfFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_anyOf_codec + = pb::FieldCodec.ForMessage(90, global::Google.Cloud.AIPlatform.V1Beta1.OpenApiSchema.Parser); + private readonly pbc::RepeatedField anyOf_ = new pbc::RepeatedField(); + /// + /// Optional. The value should be validated against any (one or more) of the + /// subschemas in the list. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AnyOf { + get { return anyOf_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -533,6 +551,7 @@ public bool Equals(OpenApiSchema other) { if (MaxLength != other.MaxLength) return false; if (Pattern != other.Pattern) return false; if (!object.Equals(Example, other.Example)) return false; + if(!anyOf_.Equals(other.anyOf_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -561,6 +580,7 @@ public override int GetHashCode() { if (MaxLength != 0L) hash ^= MaxLength.GetHashCode(); if (Pattern.Length != 0) hash ^= Pattern.GetHashCode(); if (example_ != null) hash ^= Example.GetHashCode(); + hash ^= anyOf_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -606,6 +626,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(Description); } enum_.WriteTo(output, _repeated_enum_codec); + anyOf_.WriteTo(output, _repeated_anyOf_codec); if (MinProperties != 0L) { output.WriteRawTag(112); output.WriteInt64(MinProperties); @@ -688,6 +709,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(Description); } enum_.WriteTo(ref output, _repeated_enum_codec); + anyOf_.WriteTo(ref output, _repeated_anyOf_codec); if (MinProperties != 0L) { output.WriteRawTag(112); output.WriteInt64(MinProperties); @@ -798,6 +820,7 @@ public int CalculateSize() { if (example_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Example); } + size += anyOf_.CalculateSize(_repeated_anyOf_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -874,6 +897,7 @@ public void MergeFrom(OpenApiSchema other) { } Example.MergeFrom(other.Example); } + anyOf_.Add(other.anyOf_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -931,6 +955,10 @@ public void MergeFrom(pb::CodedInputStream input) { enum_.AddEntriesFrom(input, _repeated_enum_codec); break; } + case 90: { + anyOf_.AddEntriesFrom(input, _repeated_anyOf_codec); + break; + } case 112: { MinProperties = input.ReadInt64(); break; @@ -1039,6 +1067,10 @@ public void MergeFrom(pb::CodedInputStream input) { enum_.AddEntriesFrom(ref input, _repeated_enum_codec); break; } + case 90: { + anyOf_.AddEntriesFrom(ref input, _repeated_anyOf_codec); + break; + } case 112: { MinProperties = input.ReadInt64(); break; diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/PredictionService.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/PredictionService.g.cs index 6565a342589b..66454949911a 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/PredictionService.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/PredictionService.g.cs @@ -137,133 +137,133 @@ static PredictionServiceReflection() { "ElEKEWdlbmVyYXRpb25fY29uZmlnGAQgASgLMjEuZ29vZ2xlLmNsb3VkLmFp", "cGxhdGZvcm0udjFiZXRhMS5HZW5lcmF0aW9uQ29uZmlnQgPgQQEaLQoLTGFi", "ZWxzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIVChNf", - "c3lzdGVtX2luc3RydWN0aW9uIpoGChdHZW5lcmF0ZUNvbnRlbnRSZXNwb25z", + "c3lzdGVtX2luc3RydWN0aW9uIrYGChdHZW5lcmF0ZUNvbnRlbnRSZXNwb25z", "ZRJDCgpjYW5kaWRhdGVzGAIgAygLMiouZ29vZ2xlLmNsb3VkLmFpcGxhdGZv", - "cm0udjFiZXRhMS5DYW5kaWRhdGVCA+BBAxJlCg9wcm9tcHRfZmVlZGJhY2sY", - "AyABKAsyRy5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkdlbmVy", - "YXRlQ29udGVudFJlc3BvbnNlLlByb21wdEZlZWRiYWNrQgPgQQMSXgoOdXNh", - "Z2VfbWV0YWRhdGEYBCABKAsyRi5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52", - "MWJldGExLkdlbmVyYXRlQ29udGVudFJlc3BvbnNlLlVzYWdlTWV0YWRhdGEa", - "4AIKDlByb21wdEZlZWRiYWNrEnAKDGJsb2NrX3JlYXNvbhgBIAEoDjJVLmdv", - "b2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTEuR2VuZXJhdGVDb250ZW50", - "UmVzcG9uc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EssDChVTdHJlYW1HZW5lcmF0ZUNvbnRlbnQSNy5n", + "b29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkdlbmVyYXRlQ29udGVu", + "dFJlcXVlc3QaOC5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkdl", + "bmVyYXRlQ29udGVudFJlc3BvbnNlIrwC2kEObW9kZWwsY29udGVudHOC0+ST", + "AqQCIkkvdjFiZXRhMS97bW9kZWw9cHJvamVjdHMvKi9sb2NhdGlvbnMvKi9l", + "bmRwb2ludHMvKn06c3RyZWFtR2VuZXJhdGVDb250ZW50OgEqWlgiUy92MWJl", + "dGExL3ttb2RlbD1wcm9qZWN0cy8qL2xvY2F0aW9ucy8qL3B1Ymxpc2hlcnMv", + "Ki9tb2RlbHMvKn06c3RyZWFtR2VuZXJhdGVDb250ZW50OgEqWjciMi92MWJl", + "dGExL3ttb2RlbD1lbmRwb2ludHMvKn06c3RyZWFtR2VuZXJhdGVDb250ZW50", + "OgEqWkEiPC92MWJldGExL3ttb2RlbD1wdWJsaXNoZXJzLyovbW9kZWxzLyp9", + "OnN0cmVhbUdlbmVyYXRlQ29udGVudDoBKjABEtMBCg9DaGF0Q29tcGxldGlv", + "bnMSNy5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExLkNoYXRDb21w", + "bGV0aW9uc1JlcXVlc3QaFC5nb29nbGUuYXBpLkh0dHBCb2R5Im/aQRJlbmRw", + "b2ludCxodHRwX2JvZHmC0+STAlQiRy92MWJldGExL3tlbmRwb2ludD1wcm9q", + "ZWN0cy8qL2xvY2F0aW9ucy8qL2VuZHBvaW50cy8qfS9jaGF0L2NvbXBsZXRp", + "b25zOglodHRwX2JvZHkwARqGAcpBGWFpcGxhdGZvcm0uZ29vZ2xlYXBpcy5j", + "b23SQWdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Nsb3VkLXBs", + "YXRmb3JtLGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvY2xvdWQt", + "cGxhdGZvcm0ucmVhZC1vbmx5Qu0BCiNjb20uZ29vZ2xlLmNsb3VkLmFpcGxh", + "dGZvcm0udjFiZXRhMUIWUHJlZGljdGlvblNlcnZpY2VQcm90b1ABWkNjbG91", + "ZC5nb29nbGUuY29tL2dvL2FpcGxhdGZvcm0vYXBpdjFiZXRhMS9haXBsYXRm", + "b3JtcGI7YWlwbGF0Zm9ybXBiqgIfR29vZ2xlLkNsb3VkLkFJUGxhdGZvcm0u", + "VjFCZXRhMcoCH0dvb2dsZVxDbG91ZFxBSVBsYXRmb3JtXFYxYmV0YTHqAiJH", + "b29nbGU6OkNsb3VkOjpBSVBsYXRmb3JtOjpWMWJldGExYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.HttpbodyReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ExplanationReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ToolReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.TypesReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -289,7 +289,7 @@ static PredictionServiceReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CountTokensRequest), global::Google.Cloud.AIPlatform.V1Beta1.CountTokensRequest.Parser, new[]{ "Endpoint", "Model", "Instances", "Contents", "SystemInstruction", "Tools", "GenerationConfig" }, new[]{ "SystemInstruction", "GenerationConfig" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.CountTokensResponse), global::Google.Cloud.AIPlatform.V1Beta1.CountTokensResponse.Parser, new[]{ "TotalTokens", "TotalBillableCharacters" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentRequest), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentRequest.Parser, new[]{ "Model", "Contents", "SystemInstruction", "CachedContent", "Tools", "ToolConfig", "Labels", "SafetySettings", "GenerationConfig" }, new[]{ "SystemInstruction" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Parser, new[]{ "Candidates", "PromptFeedback", "UsageMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback.Parser, new[]{ "BlockReason", "SafetyRatings", "BlockReasonMessage" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback.Types.BlockedReason) }, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Parser, new[]{ "Candidates", "ModelVersion", "PromptFeedback", "UsageMetadata" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback.Parser, new[]{ "BlockReason", "SafetyRatings", "BlockReasonMessage" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback.Types.BlockedReason) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.UsageMetadata), global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.UsageMetadata.Parser, new[]{ "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", "CachedContentTokenCount" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.ChatCompletionsRequest), global::Google.Cloud.AIPlatform.V1Beta1.ChatCompletionsRequest.Parser, new[]{ "Endpoint", "HttpBody" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.PredictLongRunningResponse), global::Google.Cloud.AIPlatform.V1Beta1.PredictLongRunningResponse.Parser, new[]{ "GenerateVideoResponse" }, new[]{ "Response" }, null, null, null), @@ -6674,6 +6674,7 @@ public GenerateContentResponse() { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GenerateContentResponse(GenerateContentResponse other) : this() { candidates_ = other.candidates_.Clone(); + modelVersion_ = other.modelVersion_; promptFeedback_ = other.promptFeedback_ != null ? other.promptFeedback_.Clone() : null; usageMetadata_ = other.usageMetadata_ != null ? other.usageMetadata_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -6699,6 +6700,21 @@ public GenerateContentResponse Clone() { get { return candidates_; } } + /// Field number for the "model_version" field. + public const int ModelVersionFieldNumber = 11; + private string modelVersion_ = ""; + /// + /// Output only. The model version used to generate the response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ModelVersion { + get { return modelVersion_; } + set { + modelVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Field number for the "prompt_feedback" field. public const int PromptFeedbackFieldNumber = 3; private global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback promptFeedback_; @@ -6747,6 +6763,7 @@ public bool Equals(GenerateContentResponse other) { return true; } if(!candidates_.Equals(other.candidates_)) return false; + if (ModelVersion != other.ModelVersion) return false; if (!object.Equals(PromptFeedback, other.PromptFeedback)) return false; if (!object.Equals(UsageMetadata, other.UsageMetadata)) return false; return Equals(_unknownFields, other._unknownFields); @@ -6757,6 +6774,7 @@ public bool Equals(GenerateContentResponse other) { public override int GetHashCode() { int hash = 1; hash ^= candidates_.GetHashCode(); + if (ModelVersion.Length != 0) hash ^= ModelVersion.GetHashCode(); if (promptFeedback_ != null) hash ^= PromptFeedback.GetHashCode(); if (usageMetadata_ != null) hash ^= UsageMetadata.GetHashCode(); if (_unknownFields != null) { @@ -6786,6 +6804,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(UsageMetadata); } + if (ModelVersion.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ModelVersion); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6805,6 +6827,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteMessage(UsageMetadata); } + if (ModelVersion.Length != 0) { + output.WriteRawTag(90); + output.WriteString(ModelVersion); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6816,6 +6842,9 @@ public void WriteTo(pb::CodedOutputStream output) { public int CalculateSize() { int size = 0; size += candidates_.CalculateSize(_repeated_candidates_codec); + if (ModelVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ModelVersion); + } if (promptFeedback_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PromptFeedback); } @@ -6835,6 +6864,9 @@ public void MergeFrom(GenerateContentResponse other) { return; } candidates_.Add(other.candidates_); + if (other.ModelVersion.Length != 0) { + ModelVersion = other.ModelVersion; + } if (other.promptFeedback_ != null) { if (promptFeedback_ == null) { PromptFeedback = new global::Google.Cloud.AIPlatform.V1Beta1.GenerateContentResponse.Types.PromptFeedback(); @@ -6880,6 +6912,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(UsageMetadata); break; } + case 90: { + ModelVersion = input.ReadString(); + break; + } } } #endif @@ -6913,6 +6949,10 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(UsageMetadata); break; } + case 90: { + ModelVersion = input.ReadString(); + break; + } } } } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs index baddf53f5844..438b811c748a 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJob.g.cs @@ -141,13 +141,18 @@ static TuningJobReflection() { "X3JhdGVfbXVsdGlwbGllchgCIAEoAUID4EEBSAGIAQESYQoMYWRhcHRlcl9z", "aXplGAMgASgOMkYuZ29vZ2xlLmNsb3VkLmFpcGxhdGZvcm0udjFiZXRhMS5T", "dXBlcnZpc2VkSHlwZXJQYXJhbWV0ZXJzLkFkYXB0ZXJTaXplQgPgQQFCDgoM", - "X2Vwb2NoX2NvdW50QhsKGV9sZWFybmluZ19yYXRlX211bHRpcGxpZXJC5QEK", - "I2NvbS5nb29nbGUuY2xvdWQuYWlwbGF0Zm9ybS52MWJldGExQg5UdW5pbmdK", - "b2JQcm90b1ABWkNjbG91ZC5nb29nbGUuY29tL2dvL2FpcGxhdGZvcm0vYXBp", - "djFiZXRhMS9haXBsYXRmb3JtcGI7YWlwbGF0Zm9ybXBiqgIfR29vZ2xlLkNs", - "b3VkLkFJUGxhdGZvcm0uVjFCZXRhMcoCH0dvb2dsZVxDbG91ZFxBSVBsYXRm", - "b3JtXFYxYmV0YTHqAiJHb29nbGU6OkNsb3VkOjpBSVBsYXRmb3JtOjpWMWJl", - "dGExYgZwcm90bzM=")); + "X2Vwb2NoX2NvdW50QhsKGV9sZWFybmluZ19yYXRlX211bHRpcGxpZXIi4wEK", + "DVR1bmVkTW9kZWxSZWYSOwoLdHVuZWRfbW9kZWwYASABKAlCJPpBIQofYWlw", + "bGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9Nb2RlbEgAEj4KCnR1bmluZ19qb2IY", + "AiABKAlCKPpBJQojYWlwbGF0Zm9ybS5nb29nbGVhcGlzLmNvbS9UdW5pbmdK", + "b2JIABJCCgxwaXBlbGluZV9qb2IYAyABKAlCKvpBJwolYWlwbGF0Zm9ybS5n", + "b29nbGVhcGlzLmNvbS9QaXBlbGluZUpvYkgAQhEKD3R1bmVkX21vZGVsX3Jl", + "ZkLlAQojY29tLmdvb2dsZS5jbG91ZC5haXBsYXRmb3JtLnYxYmV0YTFCDlR1", + "bmluZ0pvYlByb3RvUAFaQ2Nsb3VkLmdvb2dsZS5jb20vZ28vYWlwbGF0Zm9y", + "bS9hcGl2MWJldGExL2FpcGxhdGZvcm1wYjthaXBsYXRmb3JtcGKqAh9Hb29n", + "bGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMUJldGExygIfR29vZ2xlXENsb3VkXEFJ", + "UGxhdGZvcm1cVjFiZXRhMeoCIkdvb2dsZTo6Q2xvdWQ6OkFJUGxhdGZvcm06", + "OlYxYmV0YTFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.ContentReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.EncryptionSpecReflection.Descriptor, global::Google.Cloud.AIPlatform.V1Beta1.JobStateReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -162,7 +167,8 @@ static TuningJobReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.SupervisedHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "AdapterSize" }, null, new[]{ typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedHyperParameters.Types.AdapterSize) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningSpec), global::Google.Cloud.AIPlatform.V1Beta1.SupervisedTuningSpec.Parser, new[]{ "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.DistillationSpec), global::Google.Cloud.AIPlatform.V1Beta1.DistillationSpec.Parser, new[]{ "BaseTeacherModel", "TunedTeacherModelSource", "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", "StudentModel", "PipelineRootDirectory" }, new[]{ "TeacherModel", "ValidationDatasetUri" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "AdapterSize" }, new[]{ "EpochCount", "LearningRateMultiplier" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters), global::Google.Cloud.AIPlatform.V1Beta1.DistillationHyperParameters.Parser, new[]{ "EpochCount", "LearningRateMultiplier", "AdapterSize" }, new[]{ "EpochCount", "LearningRateMultiplier" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef), global::Google.Cloud.AIPlatform.V1Beta1.TunedModelRef.Parser, new[]{ "TunedModel", "TuningJob", "PipelineJob" }, new[]{ "TunedModelRef" }, null, null, null) })); } #endregion @@ -4927,7 +4933,7 @@ public enum AdapterSize { } /// - /// Tuning Spec for Supervised Tuning. + /// Tuning Spec for Supervised Tuning for first party models. /// [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class SupervisedTuningSpec : pb::IMessage @@ -6048,6 +6054,362 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// TunedModel Reference for legacy model migration. + /// + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] + public sealed partial class TunedModelRef : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TunedModelRef()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Cloud.AIPlatform.V1Beta1.TuningJobReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TunedModelRef() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TunedModelRef(TunedModelRef other) : this() { + switch (other.TunedModelRefCase) { + case TunedModelRefOneofCase.TunedModel: + TunedModel = other.TunedModel; + break; + case TunedModelRefOneofCase.TuningJob: + TuningJob = other.TuningJob; + break; + case TunedModelRefOneofCase.PipelineJob: + PipelineJob = other.PipelineJob; + break; + } + + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TunedModelRef Clone() { + return new TunedModelRef(this); + } + + /// Field number for the "tuned_model" field. + public const int TunedModelFieldNumber = 1; + /// + /// Support migration from model registry. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TunedModel { + get { return HasTunedModel ? (string) tunedModelRef_ : ""; } + set { + tunedModelRef_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + tunedModelRefCase_ = TunedModelRefOneofCase.TunedModel; + } + } + /// Gets whether the "tuned_model" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTunedModel { + get { return tunedModelRefCase_ == TunedModelRefOneofCase.TunedModel; } + } + /// Clears the value of the oneof if it's currently set to "tuned_model" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTunedModel() { + if (HasTunedModel) { + ClearTunedModelRef(); + } + } + + /// Field number for the "tuning_job" field. + public const int TuningJobFieldNumber = 2; + /// + /// Support migration from tuning job list page, from gemini-1.0-pro-002 + /// to 1.5 and above. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TuningJob { + get { return HasTuningJob ? (string) tunedModelRef_ : ""; } + set { + tunedModelRef_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + tunedModelRefCase_ = TunedModelRefOneofCase.TuningJob; + } + } + /// Gets whether the "tuning_job" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasTuningJob { + get { return tunedModelRefCase_ == TunedModelRefOneofCase.TuningJob; } + } + /// Clears the value of the oneof if it's currently set to "tuning_job" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTuningJob() { + if (HasTuningJob) { + ClearTunedModelRef(); + } + } + + /// Field number for the "pipeline_job" field. + public const int PipelineJobFieldNumber = 3; + /// + /// Support migration from tuning job list page, from bison model to gemini + /// model. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PipelineJob { + get { return HasPipelineJob ? (string) tunedModelRef_ : ""; } + set { + tunedModelRef_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + tunedModelRefCase_ = TunedModelRefOneofCase.PipelineJob; + } + } + /// Gets whether the "pipeline_job" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasPipelineJob { + get { return tunedModelRefCase_ == TunedModelRefOneofCase.PipelineJob; } + } + /// Clears the value of the oneof if it's currently set to "pipeline_job" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearPipelineJob() { + if (HasPipelineJob) { + ClearTunedModelRef(); + } + } + + private object tunedModelRef_; + /// Enum of possible cases for the "tuned_model_ref" oneof. + public enum TunedModelRefOneofCase { + None = 0, + TunedModel = 1, + TuningJob = 2, + PipelineJob = 3, + } + private TunedModelRefOneofCase tunedModelRefCase_ = TunedModelRefOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TunedModelRefOneofCase TunedModelRefCase { + get { return tunedModelRefCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearTunedModelRef() { + tunedModelRefCase_ = TunedModelRefOneofCase.None; + tunedModelRef_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TunedModelRef); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TunedModelRef other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TunedModel != other.TunedModel) return false; + if (TuningJob != other.TuningJob) return false; + if (PipelineJob != other.PipelineJob) return false; + if (TunedModelRefCase != other.TunedModelRefCase) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasTunedModel) hash ^= TunedModel.GetHashCode(); + if (HasTuningJob) hash ^= TuningJob.GetHashCode(); + if (HasPipelineJob) hash ^= PipelineJob.GetHashCode(); + hash ^= (int) tunedModelRefCase_; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasTunedModel) { + output.WriteRawTag(10); + output.WriteString(TunedModel); + } + if (HasTuningJob) { + output.WriteRawTag(18); + output.WriteString(TuningJob); + } + if (HasPipelineJob) { + output.WriteRawTag(26); + output.WriteString(PipelineJob); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasTunedModel) { + output.WriteRawTag(10); + output.WriteString(TunedModel); + } + if (HasTuningJob) { + output.WriteRawTag(18); + output.WriteString(TuningJob); + } + if (HasPipelineJob) { + output.WriteRawTag(26); + output.WriteString(PipelineJob); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasTunedModel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TunedModel); + } + if (HasTuningJob) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TuningJob); + } + if (HasPipelineJob) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PipelineJob); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TunedModelRef other) { + if (other == null) { + return; + } + switch (other.TunedModelRefCase) { + case TunedModelRefOneofCase.TunedModel: + TunedModel = other.TunedModel; + break; + case TunedModelRefOneofCase.TuningJob: + TuningJob = other.TuningJob; + break; + case TunedModelRefOneofCase.PipelineJob: + PipelineJob = other.PipelineJob; + break; + } + + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TunedModel = input.ReadString(); + break; + } + case 18: { + TuningJob = input.ReadString(); + break; + } + case 26: { + PipelineJob = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TunedModel = input.ReadString(); + break; + } + case 18: { + TuningJob = input.ReadString(); + break; + } + case 26: { + PipelineJob = input.ReadString(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJobResourceNames.g.cs b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJobResourceNames.g.cs index 25e11774e401..a98c74e4f669 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJobResourceNames.g.cs +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/Google.Cloud.AIPlatform.V1Beta1/TuningJobResourceNames.g.cs @@ -331,4 +331,34 @@ public ModelName TunedTeacherModelSourceAsModelName set => TunedTeacherModelSource = value?.ToString() ?? ""; } } + + public partial class TunedModelRef + { + /// + /// -typed view over the resource name property. + /// + public ModelName TunedModelAsModelName + { + get => string.IsNullOrEmpty(TunedModel) ? null : ModelName.Parse(TunedModel, allowUnparsed: true); + set => TunedModel = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public TuningJobName TuningJobAsTuningJobName + { + get => string.IsNullOrEmpty(TuningJob) ? null : TuningJobName.Parse(TuningJob, allowUnparsed: true); + set => TuningJob = value?.ToString() ?? ""; + } + + /// + /// -typed view over the resource name property. + /// + public PipelineJobName PipelineJobAsPipelineJobName + { + get => string.IsNullOrEmpty(PipelineJob) ? null : PipelineJobName.Parse(PipelineJob, allowUnparsed: true); + set => PipelineJob = value?.ToString() ?? ""; + } + } } diff --git a/apis/Google.Cloud.AIPlatform.V1Beta1/gapic_metadata.json b/apis/Google.Cloud.AIPlatform.V1Beta1/gapic_metadata.json index fa9fda26f758..fa51874c0aa3 100644 --- a/apis/Google.Cloud.AIPlatform.V1Beta1/gapic_metadata.json +++ b/apis/Google.Cloud.AIPlatform.V1Beta1/gapic_metadata.json @@ -717,6 +717,12 @@ "ListTuningJobs", "ListTuningJobsAsync" ] + }, + "RebaseTunedModel": { + "methods": [ + "RebaseTunedModel", + "RebaseTunedModelAsync" + ] } } }