1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.aiplatform.v1beta1; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21import "google/protobuf/timestamp.proto"; 22import "google/rpc/status.proto"; 23import "google/type/interval.proto"; 24 25option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; 26option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; 27option java_multiple_files = true; 28option java_outer_classname = "FeatureViewSyncProto"; 29option java_package = "com.google.cloud.aiplatform.v1beta1"; 30option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; 31option ruby_package = "Google::Cloud::Aiplatform::V1beta1"; 32 33// FeatureViewSync is a representation of sync operation which copies data from 34// data source to Feature View in Online Store. 35message FeatureViewSync { 36 option (google.api.resource) = { 37 type: "aiplatform.googleapis.com/FeatureViewSync" 38 pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync" 39 }; 40 41 // Summary from the Sync job. For continuous syncs, the summary is updated 42 // periodically. For batch syncs, it gets updated on completion of the sync. 43 message SyncSummary { 44 // Output only. Total number of rows synced. 45 int64 row_synced = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 46 47 // Output only. BigQuery slot milliseconds consumed for the sync job. 48 int64 total_slot = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; 49 } 50 51 // Identifier. Name of the FeatureViewSync. Format: 52 // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` 53 string name = 1 [(google.api.field_behavior) = IDENTIFIER]; 54 55 // Output only. Time when this FeatureViewSync is created. Creation of a 56 // FeatureViewSync means that the job is pending / waiting for sufficient 57 // resources but may not have started the actual data transfer yet. 58 google.protobuf.Timestamp create_time = 2 59 [(google.api.field_behavior) = OUTPUT_ONLY]; 60 61 // Output only. Time when this FeatureViewSync is finished. 62 google.type.Interval run_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; 63 64 // Output only. Final status of the FeatureViewSync. 65 google.rpc.Status final_status = 4 66 [(google.api.field_behavior) = OUTPUT_ONLY]; 67 68 // Output only. Summary of the sync job. 69 SyncSummary sync_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; 70} 71