1+ // Copyright (C) 2021 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+ syntax = "proto3" ;
16+
17+ package google.fragment ;
18+
19+ import "google/api/client.proto" ;
20+ import "google/protobuf/wrappers.proto" ;
21+
22+ service MyDatasetService {
23+ option (google.api.default_host ) = "my.example.com" ;
24+ rpc ListMyDataset (ListDatasetRequest ) returns (ListDatasetResponse ) {
25+ }
26+ }
27+
28+ message ListDatasetRequest {
29+ google.protobuf.UInt32Value max_results = 2 ;
30+ string page_token = 3 ;
31+ }
32+
33+ message ListDatasetResponse {
34+ string next_page_token = 3 ;
35+ repeated string datasets = 4 ;
36+ }
37+
38+
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+ // service MyDatasetService {
54+ // // option (google.api.default_host) = "my.example.com";
55+ // rpc MyListDatasets(MyListDatasetsRequest) returns (MyListDatasetsResponse) {}
56+ // }
57+
58+ // message MyListDatasetsRequest {
59+ // string project_id = 1;
60+ // google.protobuf.UInt32Value max_results = 2;
61+ // string page_token = 3;
62+ // bool all = 4;
63+ // string filter = 5;
64+ // bool show_deleted = 6;
65+ // repeated string debug = 200;
66+ // }
67+
68+ // // message ListFormatDataset {
69+ // // string kind = 1;
70+ // // string id = 2;
71+ // // // DatasetReference dataset_reference = 3;
72+ // // map<string, string> labels = 4;
73+ // // google.protobuf.StringValue friendly_name = 5;
74+ // // string location = 6;
75+ // // string type = 7;
76+ // // }
77+
78+ // message MyListDatasetsResponse {
79+ // string kind = 1;
80+ // string etag = 2;
81+ // string next_page_token = 3;
82+ // repeated string datasets = 4;
83+ // // repeated ListFormatDataset datasets = 4;
84+ // repeated string unreachable = 5;
85+
86+ // }
0 commit comments