Skip to content

Commit

Permalink
feat: add saved_queries to Dataset in aiplatform v1 dataset.proto
Browse files Browse the repository at this point in the history
feat: add order_by to ListModelVersionRequest in aiplatform v1 model_service.proto
feat: add update_all_stopped_trials to ConvexAutomatedStoppingSpec in aiplatform v1 study.proto
feat: add ReadTensorboardUsage rpc in aiplatform v1 tensorboard_service.proto

PiperOrigin-RevId: 500741387

Source-Link: googleapis/googleapis@2293b99

Source-Link: googleapis/googleapis-gen@21abc86
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiMjFhYmM4NmEyZmE0ZmZiYzJkOTY5ZjQ4ZWE3ZmMwN2Y2ZDhkMDNkMCJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jan 9, 2023
1 parent 8c6bdf0 commit e7acad2
Show file tree
Hide file tree
Showing 88 changed files with 6,239 additions and 3,334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public async Task ListModelVersionsRequestObjectAsync()
ModelName = ModelName.FromProjectLocationModel("[PROJECT]", "[LOCATION]", "[MODEL]"),
Filter = "",
ReadMask = new FieldMask(),
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListModelVersionsResponse, Model> response = modelServiceClient.ListModelVersionsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void ListModelVersionsRequestObject()
ModelName = ModelName.FromProjectLocationModel("[PROJECT]", "[LOCATION]", "[MODEL]"),
Filter = "",
ReadMask = new FieldMask(),
OrderBy = "",
};
// Make the request
PagedEnumerable<ListModelVersionsResponse, Model> response = modelServiceClient.ListModelVersions(request);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async_flattened]
using Google.Cloud.AIPlatform.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsageAsync</summary>
/// <remarks>
/// 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.
/// </remarks>
public async Task ReadTensorboardUsageAsync()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = await TensorboardServiceClient.CreateAsync();
// Initialize request argument(s)
string tensorboard = "projects/[PROJECT]/locations/[LOCATION]/tensorboards/[TENSORBOARD]";
// Make the request
ReadTensorboardUsageResponse response = await tensorboardServiceClient.ReadTensorboardUsageAsync(tensorboard);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async]
using Google.Cloud.AIPlatform.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsageAsync</summary>
/// <remarks>
/// 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.
/// </remarks>
public async Task ReadTensorboardUsageRequestObjectAsync()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = await TensorboardServiceClient.CreateAsync();
// Initialize request argument(s)
ReadTensorboardUsageRequest request = new ReadTensorboardUsageRequest
{
TensorboardAsTensorboardName = TensorboardName.FromProjectLocationTensorboard("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"),
};
// Make the request
ReadTensorboardUsageResponse response = await tensorboardServiceClient.ReadTensorboardUsageAsync(request);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync]
using Google.Cloud.AIPlatform.V1;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsage</summary>
/// <remarks>
/// 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.
/// </remarks>
public void ReadTensorboardUsageRequestObject()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.Create();
// Initialize request argument(s)
ReadTensorboardUsageRequest request = new ReadTensorboardUsageRequest
{
TensorboardAsTensorboardName = TensorboardName.FromProjectLocationTensorboard("[PROJECT]", "[LOCATION]", "[TENSORBOARD]"),
};
// Make the request
ReadTensorboardUsageResponse response = tensorboardServiceClient.ReadTensorboardUsage(request);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async_flattened_resourceNames]
using Google.Cloud.AIPlatform.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsageAsync</summary>
/// <remarks>
/// 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.
/// </remarks>
public async Task ReadTensorboardUsageResourceNamesAsync()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = await TensorboardServiceClient.CreateAsync();
// Initialize request argument(s)
TensorboardName tensorboard = TensorboardName.FromProjectLocationTensorboard("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
// Make the request
ReadTensorboardUsageResponse response = await tensorboardServiceClient.ReadTensorboardUsageAsync(tensorboard);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync_flattened_resourceNames]
using Google.Cloud.AIPlatform.V1;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsage</summary>
/// <remarks>
/// 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.
/// </remarks>
public void ReadTensorboardUsageResourceNames()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.Create();
// Initialize request argument(s)
TensorboardName tensorboard = TensorboardName.FromProjectLocationTensorboard("[PROJECT]", "[LOCATION]", "[TENSORBOARD]");
// Make the request
ReadTensorboardUsageResponse response = tensorboardServiceClient.ReadTensorboardUsage(tensorboard);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2023 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 Google.Cloud.AIPlatform.V1.Snippets
{
// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync_flattened]
using Google.Cloud.AIPlatform.V1;

public sealed partial class GeneratedTensorboardServiceClientSnippets
{
/// <summary>Snippet for ReadTensorboardUsage</summary>
/// <remarks>
/// 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.
/// </remarks>
public void ReadTensorboardUsage()
{
// Create client
TensorboardServiceClient tensorboardServiceClient = TensorboardServiceClient.Create();
// Initialize request argument(s)
string tensorboard = "projects/[PROJECT]/locations/[LOCATION]/tensorboards/[TENSORBOARD]";
// Make the request
ReadTensorboardUsageResponse response = tensorboardServiceClient.ReadTensorboardUsage(tensorboard);
}
}
// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync_flattened]
}
Loading

0 comments on commit e7acad2

Please sign in to comment.