xref: /aosp_15_r20/external/googleapis/google/api/label.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.api;
18
19option cc_enable_arenas = true;
20option go_package = "google.golang.org/genproto/googleapis/api/label;label";
21option java_multiple_files = true;
22option java_outer_classname = "LabelProto";
23option java_package = "com.google.api";
24option objc_class_prefix = "GAPI";
25
26// A description of a label.
27message LabelDescriptor {
28  // Value types that can be used as label values.
29  enum ValueType {
30    // A variable-length string. This is the default.
31    STRING = 0;
32
33    // Boolean; true or false.
34    BOOL = 1;
35
36    // A 64-bit signed integer.
37    INT64 = 2;
38  }
39
40  // The label key.
41  string key = 1;
42
43  // The type of data that can be assigned to the label.
44  ValueType value_type = 2;
45
46  // A human-readable description for the label.
47  string description = 3;
48}
49