Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [aiplatform] add protected_artifact_location_id to CustomJob #4809

Merged
merged 34 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2b895b6
feat: add protected_artifact_location_id to CustomJob
gcf-owl-bot[bot] Nov 10, 2023
db1e94c
feat: add protected_artifact_location_id to CustomJob
gcf-owl-bot[bot] Nov 10, 2023
5993964
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 10, 2023
7307556
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 10, 2023
ff379cc
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 10, 2023
f709a71
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 10, 2023
0bca7ce
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 10, 2023
9e68a2d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 10, 2023
677ea36
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 10, 2023
ce17a93
feat: add ComputeTokens and CountTokens API
gcf-owl-bot[bot] Nov 14, 2023
c4100a0
feat: add deployment_timeout to UploadModel ModelContainerSpec
gcf-owl-bot[bot] Nov 14, 2023
cea4e15
feat: add deployment_timeout to UploadModel ModelContainerSpec
gcf-owl-bot[bot] Nov 14, 2023
86e77b1
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 14, 2023
6f3d46b
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 14, 2023
09a6031
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 14, 2023
535533d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 14, 2023
49cb243
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 14, 2023
5f9cd07
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 14, 2023
8bdb42b
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 14, 2023
44a2a0e
Merge branch 'main' into owl-bot-copy-packages-google-cloud-aiplatform
sofisl Nov 14, 2023
eebeced
feat: add ComputeTokens API
gcf-owl-bot[bot] Nov 15, 2023
b280ed5
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 15, 2023
adb555b
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 15, 2023
15137ad
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 15, 2023
8242774
build: update Node.js generator to compile protos
gcf-owl-bot[bot] Nov 15, 2023
04760a0
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 15, 2023
5c5f4c3
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 15, 2023
95fea7e
Merge branch 'owl-bot-copy-packages-google-cloud-aiplatform' of https…
gcf-owl-bot[bot] Nov 15, 2023
b2c4862
Merge branch 'main' into owl-bot-copy-packages-google-cloud-aiplatform
sofisl Nov 15, 2023
dd2ede2
Update index.ts
sofisl Nov 15, 2023
80fe953
Update index.ts
sofisl Nov 15, 2023
b265261
Update index.ts
sofisl Nov 15, 2023
7a19541
Update index.ts
sofisl Nov 15, 2023
a877469
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Nov 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions packages/google-cloud-aiplatform/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ message CustomJobSpec {
// * AIP_TENSORBOARD_LOG_DIR = `<base_output_directory>/<trial_id>/logs/`
GcsDestination base_output_directory = 6;

// The ID of the location to store protected artifacts. e.g. us-central1.
// Populate only when the location is different than CustomJob location.
// List of supported locations:
// https://cloud.google.com/vertex-ai/docs/general/locations
string protected_artifact_location_id = 19;

// Optional. The name of a Vertex AI
// [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which
// this CustomJob will upload Tensorboard logs. Format:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";

// Feature Metadata information that describes an attribute of an entity type.
// For example, apple is an entity type, and color is a feature that describes
// apple.
// Feature Metadata information.
// For example, color is a feature that describes an apple.
message Feature {
option (google.api.resource) = {
type: "aiplatform.googleapis.com/Feature"
pattern: "projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}"
pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}"
plural: "features"
singular: "feature"
};

// A list of historical
Expand Down Expand Up @@ -69,6 +71,7 @@ message Feature {
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// Only applicable for Vertex AI Legacy Feature Store.
// An enum representing the value type of a feature.
enum ValueType {
// The value type is unspecified.
Expand Down Expand Up @@ -105,6 +108,7 @@ message Feature {
// Immutable. Name of the Feature.
// Format:
// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`
// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`
//
// The last part feature is assigned by the client. The feature can be up to
// 64 characters long and can consist only of ASCII Latin letters A-Z and a-z,
Expand All @@ -115,17 +119,17 @@ message Feature {
// Description of the Feature.
string description = 2;

// Required. Immutable. Type of Feature value.
ValueType value_type = 3 [
(google.api.field_behavior) = REQUIRED,
(google.api.field_behavior) = IMMUTABLE
];
// Immutable. Only applicable for Vertex AI Feature Store (Legacy).
// Type of Feature value.
ValueType value_type = 3 [(google.api.field_behavior) = IMMUTABLE];

// Output only. Timestamp when this EntityType was created.
// Output only. Only applicable for Vertex AI Feature Store (Legacy).
// Timestamp when this EntityType was created.
google.protobuf.Timestamp create_time = 4
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Timestamp when this EntityType was most recently updated.
// Output only. Only applicable for Vertex AI Feature Store (Legacy).
// Timestamp when this EntityType was most recently updated.
google.protobuf.Timestamp update_time = 5
[(google.api.field_behavior) = OUTPUT_ONLY];

Expand All @@ -146,17 +150,24 @@ message Feature {
// "overwrite" update happens.
string etag = 7;

// Optional. If not set, use the monitoring_config defined for the EntityType
// this Feature belongs to. Only Features with type
// Optional. Only applicable for Vertex AI Feature Store (Legacy).
// If not set, use the monitoring_config defined for the EntityType this
// Feature belongs to.
// Only Features with type
// ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL,
// STRING, DOUBLE or INT64 can enable monitoring.
//
// If set to true, all types of data monitoring are disabled despite the
// config on EntityType.
bool disable_monitoring = 12 [(google.api.field_behavior) = OPTIONAL];

// Output only. The list of historical stats and anomalies with specified
// objectives.
// Output only. Only applicable for Vertex AI Feature Store (Legacy).
// The list of historical stats and anomalies with specified objectives.
repeated MonitoringStatsAnomaly monitoring_stats_anomalies = 11
[(google.api.field_behavior) = OUTPUT_ONLY];

// Only applicable for Vertex AI Feature Store.
// The name of the BigQuery Table/View columnn hosting data for this version.
// If no value is provided, will use feature_id.
string version_column_name = 106;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
// 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
//
// http://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.

syntax = "proto3";

package google.cloud.aiplatform.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/aiplatform/v1/io.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.AIPlatform.V1";
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
option java_multiple_files = true;
option java_outer_classname = "FeatureGroupProto";
option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";

// Vertex AI Feature Group.
message FeatureGroup {
option (google.api.resource) = {
type: "aiplatform.googleapis.com/FeatureGroup"
pattern: "projects/{project}/locations/{location}/featureGroups/{feature_group}"
plural: "featureGroups"
singular: "featureGroup"
};

// Input source type for BigQuery Tables and Views.
message BigQuery {
// Required. Immutable. The BigQuery source URI that points to either a
// BigQuery Table or View.
BigQuerySource big_query_source = 1 [
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = REQUIRED
];

// Optional. Columns to construct entity_id / row keys. Currently only
// supports 1 entity_id_column. If not provided defaults to `entity_id`.
repeated string entity_id_columns = 2
[(google.api.field_behavior) = OPTIONAL];
}

oneof source {
// Indicates that features for this group come from BigQuery Table/View.
// By default treats the source as a sparse time series source, which is
// required to have an entity_id and a feature_timestamp column in the
// source.
BigQuery big_query = 7;
}

// Output only. Name of the FeatureGroup. Format:
// `projects/{project}/locations/{location}/featureGroups/{featureGroup}`
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Timestamp when this FeatureGroup was created.
google.protobuf.Timestamp create_time = 2
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Timestamp when this FeatureGroup was last updated.
google.protobuf.Timestamp update_time = 3
[(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. Used to perform consistent read-modify-write updates. If not set,
// a blind "overwrite" update happens.
string etag = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. The labels with user-defined metadata to organize your
// FeatureGroup.
//
// Label keys and values can be no longer than 64 characters
// (Unicode codepoints), can only contain lowercase letters, numeric
// characters, underscores and dashes. International characters are allowed.
//
// See https://goo.gl/xmQnxf for more information on and examples of labels.
// No more than 64 user labels can be associated with one
// FeatureGroup(System labels are excluded)." System reserved label keys
// are prefixed with "aiplatform.googleapis.com/" and are immutable.
map<string, string> labels = 5 [(google.api.field_behavior) = OPTIONAL];

// Optional. Description of the FeatureGroup.
string description = 6 [(google.api.field_behavior) = OPTIONAL];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
// 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
//
// http://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.

syntax = "proto3";

package google.cloud.aiplatform.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.AIPlatform.V1";
option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
option java_multiple_files = true;
option java_outer_classname = "FeatureOnlineStoreProto";
option java_package = "com.google.cloud.aiplatform.v1";
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
option ruby_package = "Google::Cloud::AIPlatform::V1";

// Vertex AI Feature Online Store provides a centralized repository for serving
// ML features and embedding indexes at low latency. The Feature Online Store is
// a top-level container.
message FeatureOnlineStore {
option (google.api.resource) = {
type: "aiplatform.googleapis.com/FeatureOnlineStore"
pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}"
};

message Bigtable {
message AutoScaling {
// Required. The minimum number of nodes to scale down to. Must be greater
// than or equal to 1.
int32 min_node_count = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The maximum number of nodes to scale up to. Must be greater
// than or equal to min_node_count, and less than or equal to 10 times of
// 'min_node_count'.
int32 max_node_count = 2 [(google.api.field_behavior) = REQUIRED];

// Optional. A percentage of the cluster's CPU capacity. Can be from 10%
// to 80%. When a cluster's CPU utilization exceeds the target that you
// have set, Bigtable immediately adds nodes to the cluster. When CPU
// utilization is substantially lower than the target, Bigtable removes
// nodes. If not set will default to 50%.
int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL];
}

// Required. Autoscaling config applied to Bigtable Instance.
AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED];
}

// Possible states a featureOnlineStore can have.
enum State {
// Default value. This value is unused.
STATE_UNSPECIFIED = 0;

// State when the featureOnlineStore configuration is not being updated and
// the fields reflect the current configuration of the featureOnlineStore.
// The featureOnlineStore is usable in this state.
STABLE = 1;

// The state of the featureOnlineStore configuration when it is being
// updated. During an update, the fields reflect either the original
// configuration or the updated configuration of the featureOnlineStore. The
// featureOnlineStore is still usable in this state.
UPDATING = 2;
}

oneof storage_type {
// Contains settings for the Cloud Bigtable instance that will be created
// to serve featureValues for all FeatureViews under this
// FeatureOnlineStore.
Bigtable bigtable = 8;
}

// Output only. Name of the FeatureOnlineStore. Format:
// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Timestamp when this FeatureOnlineStore was created.
google.protobuf.Timestamp create_time = 3
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Timestamp when this FeatureOnlineStore was last updated.
google.protobuf.Timestamp update_time = 4
[(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. Used to perform consistent read-modify-write updates. If not set,
// a blind "overwrite" update happens.
string etag = 5 [(google.api.field_behavior) = OPTIONAL];

// Optional. The labels with user-defined metadata to organize your
// FeatureOnlineStore.
//
// Label keys and values can be no longer than 64 characters
// (Unicode codepoints), can only contain lowercase letters, numeric
// characters, underscores and dashes. International characters are allowed.
//
// See https://goo.gl/xmQnxf for more information on and examples of labels.
// No more than 64 user labels can be associated with one
// FeatureOnlineStore(System labels are excluded)." System reserved label keys
// are prefixed with "aiplatform.googleapis.com/" and are immutable.
map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];

// Output only. State of the featureOnlineStore.
State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
}
Loading