xref: /aosp_15_r20/external/googleapis/google/cloud/discoveryengine/v1alpha/project.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2022 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.discoveryengine.v1alpha;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto";
21*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
22*d5c09012SAndroid Build Coastguard Worker
23*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha";
24*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb";
25*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
26*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "ProjectProto";
27*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.discoveryengine.v1alpha";
28*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "DISCOVERYENGINE";
29*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha";
30*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha";
31*d5c09012SAndroid Build Coastguard Worker
32*d5c09012SAndroid Build Coastguard Worker// Metadata and configurations for a Google Cloud project in the service.
33*d5c09012SAndroid Build Coastguard Workermessage Project {
34*d5c09012SAndroid Build Coastguard Worker  option (google.api.resource) = {
35*d5c09012SAndroid Build Coastguard Worker    type: "discoveryengine.googleapis.com/Project"
36*d5c09012SAndroid Build Coastguard Worker    pattern: "projects/{project}"
37*d5c09012SAndroid Build Coastguard Worker  };
38*d5c09012SAndroid Build Coastguard Worker
39*d5c09012SAndroid Build Coastguard Worker  // Metadata about the terms of service.
40*d5c09012SAndroid Build Coastguard Worker  message ServiceTerms {
41*d5c09012SAndroid Build Coastguard Worker    // The agreement states this terms of service.
42*d5c09012SAndroid Build Coastguard Worker    enum State {
43*d5c09012SAndroid Build Coastguard Worker      // The default value of the enum. This value is not actually used.
44*d5c09012SAndroid Build Coastguard Worker      STATE_UNSPECIFIED = 0;
45*d5c09012SAndroid Build Coastguard Worker
46*d5c09012SAndroid Build Coastguard Worker      // The project has given consent to the terms of service.
47*d5c09012SAndroid Build Coastguard Worker      TERMS_ACCEPTED = 1;
48*d5c09012SAndroid Build Coastguard Worker
49*d5c09012SAndroid Build Coastguard Worker      // The project is pending to review and accept the terms of service.
50*d5c09012SAndroid Build Coastguard Worker      TERMS_PENDING = 2;
51*d5c09012SAndroid Build Coastguard Worker
52*d5c09012SAndroid Build Coastguard Worker      // The project has declined or revoked the agreement to terms of service.
53*d5c09012SAndroid Build Coastguard Worker      TERMS_DECLINED = 3;
54*d5c09012SAndroid Build Coastguard Worker    }
55*d5c09012SAndroid Build Coastguard Worker
56*d5c09012SAndroid Build Coastguard Worker    // The unique identifier of this terms of service.
57*d5c09012SAndroid Build Coastguard Worker    // Available terms:
58*d5c09012SAndroid Build Coastguard Worker    // * `GA_DATA_USE_TERMS`: [Terms for data
59*d5c09012SAndroid Build Coastguard Worker    // use](https://cloud.google.com/retail/data-use-terms). When using this as
60*d5c09012SAndroid Build Coastguard Worker    // `id`, the acceptable
61*d5c09012SAndroid Build Coastguard Worker    // [version][google.cloud.discoveryengine.v1alpha.Project.ServiceTerms.version]
62*d5c09012SAndroid Build Coastguard Worker    // to provide is `2022-11-23`.
63*d5c09012SAndroid Build Coastguard Worker    string id = 1;
64*d5c09012SAndroid Build Coastguard Worker
65*d5c09012SAndroid Build Coastguard Worker    // The version string of the terms of service.
66*d5c09012SAndroid Build Coastguard Worker    // For acceptable values, see the comments for
67*d5c09012SAndroid Build Coastguard Worker    // [id][google.cloud.discoveryengine.v1alpha.Project.ServiceTerms.id] above.
68*d5c09012SAndroid Build Coastguard Worker    string version = 2;
69*d5c09012SAndroid Build Coastguard Worker
70*d5c09012SAndroid Build Coastguard Worker    // Whether the project has accepted/rejected the service terms or it is
71*d5c09012SAndroid Build Coastguard Worker    // still pending.
72*d5c09012SAndroid Build Coastguard Worker    State state = 4;
73*d5c09012SAndroid Build Coastguard Worker
74*d5c09012SAndroid Build Coastguard Worker    // The last time when the project agreed to the terms of service.
75*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp accept_time = 5;
76*d5c09012SAndroid Build Coastguard Worker
77*d5c09012SAndroid Build Coastguard Worker    // The last time when the project declined or revoked the agreement to terms
78*d5c09012SAndroid Build Coastguard Worker    // of service.
79*d5c09012SAndroid Build Coastguard Worker    google.protobuf.Timestamp decline_time = 6;
80*d5c09012SAndroid Build Coastguard Worker  }
81*d5c09012SAndroid Build Coastguard Worker
82*d5c09012SAndroid Build Coastguard Worker  // Output only. Full resource name of the project, for example
83*d5c09012SAndroid Build Coastguard Worker  // `projects/{project_number}`.
84*d5c09012SAndroid Build Coastguard Worker  // Note that when making requests, project number and project id are both
85*d5c09012SAndroid Build Coastguard Worker  // acceptable, but the server will always respond in project number.
86*d5c09012SAndroid Build Coastguard Worker  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
87*d5c09012SAndroid Build Coastguard Worker
88*d5c09012SAndroid Build Coastguard Worker  // Output only. The timestamp when this project is created.
89*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 2
90*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
91*d5c09012SAndroid Build Coastguard Worker
92*d5c09012SAndroid Build Coastguard Worker  // Output only. The timestamp when this project is successfully provisioned.
93*d5c09012SAndroid Build Coastguard Worker  // Empty value means this project is still provisioning and is not ready for
94*d5c09012SAndroid Build Coastguard Worker  // use.
95*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp provision_completion_time = 3
96*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
97*d5c09012SAndroid Build Coastguard Worker
98*d5c09012SAndroid Build Coastguard Worker  // Output only. A map of terms of services. The key is the `id` of
99*d5c09012SAndroid Build Coastguard Worker  // [ServiceTerms][google.cloud.discoveryengine.v1alpha.Project.ServiceTerms].
100*d5c09012SAndroid Build Coastguard Worker  map<string, ServiceTerms> service_terms_map = 4
101*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
102*d5c09012SAndroid Build Coastguard Worker}
103