| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8d338e2 commit eadc874
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,8 +58,29 @@ message FeatureOnlineStore { | |||
| 58 | 58 | int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL]; | |
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | + // Metadata of the Bigtable instance. This is used by direct read access to | ||
| 62 | + // the Bigtable in tenant project. | ||
| 63 | + message BigtableMetadata { | ||
| 64 | + // Tenant project ID. | ||
| 65 | + string tenant_project_id = 1; | ||
| 66 | + | ||
| 67 | + // The Cloud Bigtable instance id. | ||
| 68 | + string instance_id = 2; | ||
| 69 | + | ||
| 70 | + // The Cloud Bigtable table id. | ||
| 71 | + string table_id = 3; | ||
| 72 | + } | ||
| 73 | + | ||
| 61 | 74 | // Required. Autoscaling config applied to Bigtable Instance. | |
| 62 | 75 | AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; | |
| 76 | + | ||
| 77 | + // Optional. Whether direct access to the Bigtable instance is enabled or not. | ||
| 78 | + bool enable_direct_bigtable_access = 2 | ||
| 79 | + [(google.api.field_behavior) = OPTIONAL]; | ||
| 80 | + | ||
| 81 | + // Output only. Metadata of the Bigtable instance. Output only. | ||
| 82 | + BigtableMetadata bigtable_metadata = 3 | ||
| 83 | + [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 63 | 84 | } | |
| 64 | 85 | ||
| 65 | 86 | // Optimized storage type | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,6 +70,16 @@ service FeatureOnlineStoreService { | |||
| 70 | 70 | body: "*" | |
| 71 | 71 | }; | |
| 72 | 72 | } | |
| 73 | + | ||
| 74 | + // RPC to generate an access token for the given feature view. FeatureViews | ||
| 75 | + // under the same FeatureOnlineStore share the same access token. | ||
| 76 | + rpc GenerateFetchAccessToken(GenerateFetchAccessTokenRequest) | ||
| 77 | + returns (GenerateFetchAccessTokenResponse) { | ||
| 78 | + option (google.api.http) = { | ||
| 79 | + post: "/v1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:generateFetchAccessToken" | ||
| 80 | + body: "*" | ||
| 81 | + }; | ||
| 82 | + } | ||
| 73 | 83 | } | |
| 74 | 84 | ||
| 75 | 85 | // Format of the data in the Feature View. | |
@@ -414,3 +424,23 @@ message FeatureViewDirectWriteResponse { | |||
| 414 | 424 | // will not be present. | |
| 415 | 425 | repeated WriteResponse write_responses = 2; | |
| 416 | 426 | } | |
| 427 | + | ||
| 428 | + // Request message for | ||
| 429 | + // [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. | ||
| 430 | + message GenerateFetchAccessTokenRequest { | ||
| 431 | + // FeatureView resource format | ||
| 432 | + // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` | ||
| 433 | + string feature_view = 1 [(google.api.resource_reference) = { | ||
| 434 | + type: "aiplatform.googleapis.com/FeatureView" | ||
| 435 | + }]; | ||
| 436 | + } | ||
| 437 | + | ||
| 438 | + // Response message for | ||
| 439 | + // [FeatureOnlineStoreService.GenerateFetchAccessToken][google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken]. | ||
| 440 | + message GenerateFetchAccessTokenResponse { | ||
| 441 | + // The OAuth 2.0 access token. | ||
| 442 | + string access_token = 1; | ||
| 443 | + | ||
| 444 | + // Token expiration time. This is always set | ||
| 445 | + google.protobuf.Timestamp expire_time = 2; | ||
| 446 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -288,4 +288,15 @@ message FeatureView { | |||
| 288 | 288 | ||
| 289 | 289 | // Output only. Reserved for future use. | |
| 290 | 290 | bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; | |
| 291 | + | ||
| 292 | + // Metadata for the Cloud Bigtable that supports directly interacting Bigtable | ||
| 293 | + // instances. | ||
| 294 | + message BigtableMetadata { | ||
| 295 | + // The Bigtable App Profile to use for reading from Bigtable. | ||
| 296 | + string read_app_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 297 | + } | ||
| 298 | + | ||
| 299 | + // Metadata containing information about the Cloud Bigtable. | ||
| 300 | + BigtableMetadata bigtable_metadata = 21 | ||
| 301 | + [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 291 | 302 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,8 +58,29 @@ message FeatureOnlineStore { | |||
| 58 | 58 | int32 cpu_utilization_target = 3 [(google.api.field_behavior) = OPTIONAL]; | |
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | + // Metadata of the Bigtable instance. This is used by direct read access to | ||
| 62 | + // the Bigtable in tenant project. | ||
| 63 | + message BigtableMetadata { | ||
| 64 | + // Tenant project ID. | ||
| 65 | + string tenant_project_id = 1; | ||
| 66 | + | ||
| 67 | + // The Cloud Bigtable instance id. | ||
| 68 | + string instance_id = 2; | ||
| 69 | + | ||
| 70 | + // The Cloud Bigtable table id. | ||
| 71 | + string table_id = 3; | ||
| 72 | + } | ||
| 73 | + | ||
| 61 | 74 | // Required. Autoscaling config applied to Bigtable Instance. | |
| 62 | 75 | AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; | |
| 76 | + | ||
| 77 | + // If true, enable direct access to the Bigtable instance. | ||
| 78 | + bool enable_direct_bigtable_access = 2 | ||
| 79 | + [(google.api.field_behavior) = OPTIONAL]; | ||
| 80 | + | ||
| 81 | + // Metadata of the Bigtable instance. Output only. | ||
| 82 | + BigtableMetadata bigtable_metadata = 3 | ||
| 83 | + [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 63 | 84 | } | |
| 64 | 85 | ||
| 65 | 86 | // Optimized storage type | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,6 +82,16 @@ service FeatureOnlineStoreService { | |||
| 82 | 82 | body: "*" | |
| 83 | 83 | }; | |
| 84 | 84 | } | |
| 85 | + | ||
| 86 | + // RPC to generate an access token for the given feature view. FeatureViews | ||
| 87 | + // under the same FeatureOnlineStore share the same access token. | ||
| 88 | + rpc GenerateFetchAccessToken(GenerateFetchAccessTokenRequest) | ||
| 89 | + returns (GenerateFetchAccessTokenResponse) { | ||
| 90 | + option (google.api.http) = { | ||
| 91 | + post: "/v1beta1/{feature_view=projects/*/locations/*/featureOnlineStores/*/featureViews/*}:generateFetchAccessToken" | ||
| 92 | + body: "*" | ||
| 93 | + }; | ||
| 94 | + } | ||
| 85 | 95 | } | |
| 86 | 96 | ||
| 87 | 97 | // Format of the data in the Feature View. | |
@@ -507,3 +517,21 @@ message FeatureViewDirectWriteResponse { | |||
| 507 | 517 | // will not be present. | |
| 508 | 518 | repeated WriteResponse write_responses = 2; | |
| 509 | 519 | } | |
| 520 | + | ||
| 521 | + // Request message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. | ||
| 522 | + message GenerateFetchAccessTokenRequest { | ||
| 523 | + // FeatureView resource format | ||
| 524 | + // `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` | ||
| 525 | + string feature_view = 1 [(google.api.resource_reference) = { | ||
| 526 | + type: "aiplatform.googleapis.com/FeatureView" | ||
| 527 | + }]; | ||
| 528 | + } | ||
| 529 | + | ||
| 530 | + // Response message for [FeatureOnlineStoreService.GenerateFetchAccessToken][]. | ||
| 531 | + message GenerateFetchAccessTokenResponse { | ||
| 532 | + // The OAuth 2.0 access token. | ||
| 533 | + string access_token = 1; | ||
| 534 | + | ||
| 535 | + // Token expiration time. This is always set | ||
| 536 | + google.protobuf.Timestamp expire_time = 2; | ||
| 537 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -370,4 +370,15 @@ message FeatureView { | |||
| 370 | 370 | ||
| 371 | 371 | // Output only. Reserved for future use. | |
| 372 | 372 | bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; | |
| 373 | + | ||
| 374 | + // Metadata for the Cloud Bigtable that supports directly interacting Bigtable | ||
| 375 | + // instances. | ||
| 376 | + message BigtableMetadata { | ||
| 377 | + // The Bigtable App Profile to use for reading from Bigtable. | ||
| 378 | + string read_app_profile = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 379 | + } | ||
| 380 | + | ||
| 381 | + // Metadata containing information about the Cloud Bigtable. | ||
| 382 | + BigtableMetadata bigtable_metadata = 21 | ||
| 383 | + [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 373 | 384 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments