Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58f6b8f

Browse files
tseaveremar-kar
authored andcommitted
Add 'Model.encryption_config' (via synth). (googleapis#9214)
* Add 'Model.encryption_config' (via synth).
1 parent0641e03 commit58f6b8f

File tree

12 files changed

+450
-214
lines changed

12 files changed

+450
-214
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright 2019 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+
//
15+
16+
syntax="proto3";
17+
18+
packagegoogle.cloud.bigquery.v2;
19+
20+
import"google/api/field_behavior.proto";
21+
import"google/protobuf/wrappers.proto";
22+
import"google/api/annotations.proto";
23+
24+
optiongo_package="google.golang.org/genproto/googleapis/cloud/bigquery/v2;bigquery";
25+
optionjava_outer_classname="EncryptionConfigProto";
26+
optionjava_package="com.google.cloud.bigquery.v2";
27+
28+
messageEncryptionConfiguration {
29+
// Optional. Describes the Cloud KMS encryption key that will be used to
30+
// protect destination BigQuery table. The BigQuery Service Account associated
31+
// with your project requires access to this encryption key.
32+
google.protobuf.StringValuekms_key_name=1 [(google.api.field_behavior) =OPTIONAL];
33+
}

‎bigquery/google/cloud/bigquery_v2/proto/encryption_config_pb2.py‎

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
importgrpc

‎bigquery/google/cloud/bigquery_v2/proto/model.proto‎

Lines changed: 58 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ syntax = "proto3";
1717

1818
packagegoogle.cloud.bigquery.v2;
1919

20+
import"google/api/client.proto";
21+
import"google/api/field_behavior.proto";
22+
import"google/cloud/bigquery/v2/encryption_config.proto";
2023
import"google/cloud/bigquery/v2/model_reference.proto";
2124
import"google/cloud/bigquery/v2/standard_sql.proto";
2225
import"google/protobuf/empty.proto";
2326
import"google/protobuf/timestamp.proto";
2427
import"google/protobuf/wrappers.proto";
2528
import"google/api/annotations.proto";
26-
import"google/api/client.proto";
2729

2830
optiongo_package="google.golang.org/genproto/googleapis/cloud/bigquery/v2;bigquery";
2931
optionjava_outer_classname="ModelProto";
@@ -39,19 +41,23 @@ service ModelService {
3941

4042
// Gets the specified model resource by model ID.
4143
rpcGetModel(GetModelRequest)returns (Model) {
44+
option(google.api.method_signature)="project_id,dataset_id,model_id";
4245
}
4346

4447
// Lists all models in the specified dataset. Requires the READER dataset
4548
// role.
4649
rpcListModels(ListModelsRequest)returns (ListModelsResponse) {
50+
option(google.api.method_signature)="project_id,dataset_id,max_results";
4751
}
4852

4953
// Patch specific fields in the specified model.
5054
rpcPatchModel(PatchModelRequest)returns (Model) {
55+
option(google.api.method_signature)="project_id,dataset_id,model_id,model";
5156
}
5257

5358
// Deletes the model specified by modelId from the dataset.
5459
rpcDeleteModel(DeleteModelRequest)returns (google.protobuf.Empty) {
60+
option(google.api.method_signature)="project_id,dataset_id,model_id";
5561
}
5662
}
5763

@@ -236,7 +242,7 @@ message Model {
236242

237243
// Counts of all categories for the categorical feature. If there are
238244
// more than ten categories, we return top ten (by count) and return
239-
// one more CategoryCount with category_OTHER_ and count as
245+
// one more CategoryCount with category"_OTHER_" and count as
240246
// aggregate counts of remaining categories.
241247
repeatedCategoryCountcategory_counts=1;
242248
}
@@ -514,103 +520,105 @@ message Model {
514520
}
515521

516522
// Output only. A hash of this resource.
517-
stringetag=1;
523+
stringetag=1 [(google.api.field_behavior) =OUTPUT_ONLY];
518524

519525
// Required. Unique identifier for this model.
520-
ModelReferencemodel_reference=2;
526+
ModelReferencemodel_reference=2 [(google.api.field_behavior) =REQUIRED];
521527

522-
// Output only. The time when this model was created, in millisecs since the
523-
// epoch.
524-
int64creation_time=5;
528+
// Output only. The time when this model was created, in millisecs since the epoch.
529+
int64creation_time=5 [(google.api.field_behavior) =OUTPUT_ONLY];
525530

526-
// Output only. The time when this model was last modified, in millisecs
527-
// since the epoch.
528-
int64last_modified_time=6;
531+
// Output only. The time when this model was last modified, in millisecs since the epoch.
532+
int64last_modified_time=6 [(google.api.field_behavior) =OUTPUT_ONLY];
529533

530-
//[Optional] A user-friendly description of this model.
531-
stringdescription=12;
534+
// Optional. A user-friendly description of this model.
535+
stringdescription=12 [(google.api.field_behavior) =OPTIONAL];
532536

533-
//[Optional] A descriptive name for this model.
534-
stringfriendly_name=14;
537+
// Optional. A descriptive name for this model.
538+
stringfriendly_name=14 [(google.api.field_behavior) =OPTIONAL];
535539

536-
//[Optional]The labels associated with this model. You can use these to
537-
//organizeand group your models. Label keys and values can be no longer
540+
// The labels associated with this model. You can use these to organize
541+
// and group your models. Label keys and values can be no longer
538542
// than 63 characters, can only contain lowercase letters, numeric
539543
// characters, underscores and dashes. International characters are allowed.
540544
// Label values are optional. Label keys must start with a letter and each
541545
// label in the list must have a different key.
542546
map<string,string>labels=15;
543547

544-
//[Optional] The time when this model expires, in milliseconds since the
545-
//epoch.If not present, the model will persist indefinitely. Expired models
548+
// Optional. The time when this model expires, in milliseconds since the epoch.
549+
// If not present, the model will persist indefinitely. Expired models
546550
// will be deleted and their storage reclaimed. The defaultTableExpirationMs
547551
// property of the encapsulating dataset can be used to set a default
548552
// expirationTime on newly created models.
549-
int64expiration_time=16;
553+
int64expiration_time=16 [(google.api.field_behavior) =OPTIONAL];
550554

551555
// Output only. The geographic location where the model resides. This value
552556
// is inherited from the dataset.
553-
stringlocation=13;
557+
stringlocation=13 [(google.api.field_behavior) =OUTPUT_ONLY];
558+
559+
// Custom encryption configuration (e.g., Cloud KMS keys). This shows the
560+
// encryption configuration of the model data while stored in BigQuery
561+
// storage.
562+
google.cloud.bigquery.v2.EncryptionConfigurationencryption_configuration=17;
554563

555564
// Output only. Type of the model resource.
556-
ModelTypemodel_type=7;
565+
ModelTypemodel_type=7 [(google.api.field_behavior) =OUTPUT_ONLY];
557566

558-
// Output only. Information for all training runs in increasing order of
559-
// start_time.
560-
repeatedTrainingRuntraining_runs=9;
567+
// Output only. Information for all training runs in increasing order of start_time.
568+
repeatedTrainingRuntraining_runs=9 [(google.api.field_behavior) =OUTPUT_ONLY];
561569

562570
// Output only. Input feature columns that were used to train this model.
563-
repeatedStandardSqlFieldfeature_columns=10;
571+
repeatedStandardSqlFieldfeature_columns=10 [(google.api.field_behavior) =OUTPUT_ONLY];
564572

565573
// Output only. Label columns that were used to train this model.
566574
// The output of the model will have a "predicted_" prefix to these columns.
567-
repeatedStandardSqlFieldlabel_columns=11;
575+
repeatedStandardSqlFieldlabel_columns=11 [(google.api.field_behavior) =OUTPUT_ONLY];
568576
}
569577

570578
messageGetModelRequest {
571-
// Project ID of the requested model.
572-
stringproject_id=1;
579+
//Required.Project ID of the requested model.
580+
stringproject_id=1 [(google.api.field_behavior) =REQUIRED];
573581

574-
// Dataset ID of the requested model.
575-
stringdataset_id=2;
582+
//Required.Dataset ID of the requested model.
583+
stringdataset_id=2 [(google.api.field_behavior) =REQUIRED];
576584

577-
// Model ID of the requested model.
578-
stringmodel_id=3;
585+
//Required.Model ID of the requested model.
586+
stringmodel_id=3 [(google.api.field_behavior) =REQUIRED];
579587
}
580588

581589
messagePatchModelRequest {
582-
// Project ID of the model to patch.
583-
stringproject_id=1;
590+
//Required.Project ID of the model to patch.
591+
stringproject_id=1 [(google.api.field_behavior) =REQUIRED];
584592

585-
// Dataset ID of the model to patch.
586-
stringdataset_id=2;
593+
//Required.Dataset ID of the model to patch.
594+
stringdataset_id=2 [(google.api.field_behavior) =REQUIRED];
587595

588-
// Model ID of the model to patch.
589-
stringmodel_id=3;
596+
//Required.Model ID of the model to patch.
597+
stringmodel_id=3 [(google.api.field_behavior) =REQUIRED];
590598

591-
// Patched model.
599+
//Required.Patched model.
592600
// Follows RFC5789 patch semantics. Missing fields are not updated.
593601
// To clear a field, explicitly set to default value.
594-
Modelmodel=4;
602+
Modelmodel=4 [(google.api.field_behavior) =REQUIRED];
595603
}
596604

597605
messageDeleteModelRequest {
598-
// Project ID of the model to delete.
599-
stringproject_id=1;
606+
//Required.Project ID of the model to delete.
607+
stringproject_id=1 [(google.api.field_behavior) =REQUIRED];
600608

601-
// Dataset ID of the model to delete.
602-
stringdataset_id=2;
609+
//Required.Dataset ID of the model to delete.
610+
stringdataset_id=2 [(google.api.field_behavior) =REQUIRED];
603611

604-
// Model ID of the model to delete.
605-
stringmodel_id=3;
612+
//Required.Model ID of the model to delete.
613+
stringmodel_id=3 [(google.api.field_behavior) =REQUIRED];
606614
}
607615

608616
messageListModelsRequest {
609-
// Project ID of the models to list.
610-
stringproject_id=1;
617+
//Required.Project ID of the models to list.
618+
stringproject_id=1 [(google.api.field_behavior) =REQUIRED];
611619

612-
// Dataset ID of the models to list.
613-
stringdataset_id=2;
620+
//Required.Dataset ID of the models to list.
621+
stringdataset_id=2 [(google.api.field_behavior) =REQUIRED];
614622

615623
// The maximum number of results to return in a single response page.
616624
// Leverage the page tokens to iterate through the entire collection.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp