123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Copyright 2022 Google LLC
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- syntax = "proto3";
- package google.apps.drive.labels.v2;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/apps/drive/labels/v2/label.proto";
- import "google/apps/drive/labels/v2/requests.proto";
- option go_package = "google.golang.org/genproto/googleapis/apps/drive/labels/v2;labels";
- option java_multiple_files = true;
- option java_outer_classname = "LabelServiceProto";
- option java_package = "com.google.apps.drive.labels.v2";
- option objc_class_prefix = "DLBL";
- // Manage metadata taxonomies based on Labels and Fields that may be used within
- // Google Drive to organize and find files using custom metadata.
- service LabelService {
- option (google.api.default_host) = "drivelabels.googleapis.com";
- // List labels.
- rpc ListLabels(ListLabelsRequest) returns (ListLabelsResponse) {
- option (google.api.http) = {
- get: "/v2/labels"
- };
- }
- // Get a label by its resource name.
- // Resource name may be any of:
- //
- // * `labels/{id}` - See `labels/{id}@latest`
- // * `labels/{id}@latest` - Gets the latest revision of the label.
- // * `labels/{id}@published` - Gets the current published revision of the
- // label.
- // * `labels/{id}@{revision_id}` - Gets the label at the specified revision
- // ID.
- rpc GetLabel(GetLabelRequest) returns (Label) {
- option (google.api.http) = {
- get: "/v2/{name=labels/*}"
- };
- option (google.api.method_signature) = "name";
- }
- }
|