Skip to content

Commit

Permalink
feat: add timestamp_outside_retention_rows_count to ImportFeatureValu…
Browse files Browse the repository at this point in the history
…esResponse and ImportFeatureValuesOperationMetadata in aiplatform v1 featurestore_service.proto

feat: add RemoveContextChildren rpc to aiplatform v1 metadata_service.proto
feat: add order_by to ListArtifactsRequest, ListContextsRequest, and ListExecutionsRequest in aiplatform v1 metadata_service.proto

PiperOrigin-RevId: 475580702

Source-Link: googleapis/googleapis@af65a19

Source-Link: googleapis/googleapis-gen@023d431
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQUlQbGF0Zm9ybS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiMDIzZDQzMTU2OWE1M2Y5YjVjZDBkNDdjNmFmODViOGE0NmNlYTVlOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Sep 20, 2022
1 parent 15f4758 commit 093a3f1
Show file tree
Hide file tree
Showing 25 changed files with 2,202 additions and 525 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public async Task ListArtifactsRequestObjectAsync()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListArtifactsResponse, Artifact> response = metadataServiceClient.ListArtifactsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void ListArtifactsRequestObject()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListArtifactsResponse, Artifact> response = metadataServiceClient.ListArtifacts(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public async Task ListContextsRequestObjectAsync()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListContextsResponse, Context> response = metadataServiceClient.ListContextsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void ListContextsRequestObject()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListContextsResponse, Context> response = metadataServiceClient.ListContexts(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public async Task ListExecutionsRequestObjectAsync()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListExecutionsResponse, Execution> response = metadataServiceClient.ListExecutionsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void ListExecutionsRequestObject()
{
ParentAsMetadataStoreName = MetadataStoreName.FromProjectLocationMetadataStore("[PROJECT]", "[LOCATION]", "[METADATA_STORE]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListExecutionsResponse, Execution> response = metadataServiceClient.ListExecutions(request);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_async_flattened]
using Google.Cloud.AIPlatform.V1;
using System.Collections.Generic;
using System.Threading.Tasks;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildrenAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task RemoveContextChildrenAsync()
{
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> childContexts = new string[]
{
"projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]",
};
// Make the request
RemoveContextChildrenResponse response = await metadataServiceClient.RemoveContextChildrenAsync(context, childContexts);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_async]
using Google.Cloud.AIPlatform.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildrenAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task RemoveContextChildrenRequestObjectAsync()
{
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
RemoveContextChildrenRequest request = new RemoveContextChildrenRequest
{
ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
ChildContextsAsContextNames =
{
ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
},
};
// Make the request
RemoveContextChildrenResponse response = await metadataServiceClient.RemoveContextChildrenAsync(request);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_sync]
using Google.Cloud.AIPlatform.V1;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildren</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void RemoveContextChildrenRequestObject()
{
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
RemoveContextChildrenRequest request = new RemoveContextChildrenRequest
{
ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
ChildContextsAsContextNames =
{
ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
},
};
// Make the request
RemoveContextChildrenResponse response = metadataServiceClient.RemoveContextChildren(request);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_async_flattened_resourceNames]
using Google.Cloud.AIPlatform.V1;
using System.Collections.Generic;
using System.Threading.Tasks;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildrenAsync</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public async Task RemoveContextChildrenResourceNamesAsync()
{
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ContextName> childContexts = new ContextName[]
{
ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
};
// Make the request
RemoveContextChildrenResponse response = await metadataServiceClient.RemoveContextChildrenAsync(context, childContexts);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_sync_flattened_resourceNames]
using Google.Cloud.AIPlatform.V1;
using System.Collections.Generic;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildren</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void RemoveContextChildrenResourceNames()
{
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ContextName> childContexts = new ContextName[]
{
ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
};
// Make the request
RemoveContextChildrenResponse response = metadataServiceClient.RemoveContextChildren(context, childContexts);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// 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_MetadataService_RemoveContextChildren_sync_flattened]
using Google.Cloud.AIPlatform.V1;
using System.Collections.Generic;

public sealed partial class GeneratedMetadataServiceClientSnippets
{
/// <summary>Snippet for RemoveContextChildren</summary>
/// <remarks>
/// This snippet has been automatically generated for illustrative purposes only.
/// It may require modifications to work in your environment.
/// </remarks>
public void RemoveContextChildren()
{
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> childContexts = new string[]
{
"projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]",
};
// Make the request
RemoveContextChildrenResponse response = metadataServiceClient.RemoveContextChildren(context, childContexts);
}
}
// [END aiplatform_v1_generated_MetadataService_RemoveContextChildren_sync_flattened]
}
Loading

0 comments on commit 093a3f1

Please sign in to comment.