1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package annotations
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41
42
43
44
45 type FieldBehavior int32
46
47 const (
48
49 FieldBehavior_FIELD_BEHAVIOR_UNSPECIFIED FieldBehavior = 0
50
51
52
53 FieldBehavior_OPTIONAL FieldBehavior = 1
54
55
56
57 FieldBehavior_REQUIRED FieldBehavior = 2
58
59
60
61
62 FieldBehavior_OUTPUT_ONLY FieldBehavior = 3
63
64
65
66 FieldBehavior_INPUT_ONLY FieldBehavior = 4
67
68
69
70 FieldBehavior_IMMUTABLE FieldBehavior = 5
71
72
73
74
75 FieldBehavior_UNORDERED_LIST FieldBehavior = 6
76
77
78
79
80 FieldBehavior_NON_EMPTY_DEFAULT FieldBehavior = 7
81
82
83
84
85
86
87
88
89
90
91
92
93 FieldBehavior_IDENTIFIER FieldBehavior = 8
94 )
95
96
97 var (
98 FieldBehavior_name = map[int32]string{
99 0: "FIELD_BEHAVIOR_UNSPECIFIED",
100 1: "OPTIONAL",
101 2: "REQUIRED",
102 3: "OUTPUT_ONLY",
103 4: "INPUT_ONLY",
104 5: "IMMUTABLE",
105 6: "UNORDERED_LIST",
106 7: "NON_EMPTY_DEFAULT",
107 8: "IDENTIFIER",
108 }
109 FieldBehavior_value = map[string]int32{
110 "FIELD_BEHAVIOR_UNSPECIFIED": 0,
111 "OPTIONAL": 1,
112 "REQUIRED": 2,
113 "OUTPUT_ONLY": 3,
114 "INPUT_ONLY": 4,
115 "IMMUTABLE": 5,
116 "UNORDERED_LIST": 6,
117 "NON_EMPTY_DEFAULT": 7,
118 "IDENTIFIER": 8,
119 }
120 )
121
122 func (x FieldBehavior) Enum() *FieldBehavior {
123 p := new(FieldBehavior)
124 *p = x
125 return p
126 }
127
128 func (x FieldBehavior) String() string {
129 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
130 }
131
132 func (FieldBehavior) Descriptor() protoreflect.EnumDescriptor {
133 return file_google_api_field_behavior_proto_enumTypes[0].Descriptor()
134 }
135
136 func (FieldBehavior) Type() protoreflect.EnumType {
137 return &file_google_api_field_behavior_proto_enumTypes[0]
138 }
139
140 func (x FieldBehavior) Number() protoreflect.EnumNumber {
141 return protoreflect.EnumNumber(x)
142 }
143
144
145 func (FieldBehavior) EnumDescriptor() ([]byte, []int) {
146 return file_google_api_field_behavior_proto_rawDescGZIP(), []int{0}
147 }
148
149 var file_google_api_field_behavior_proto_extTypes = []protoimpl.ExtensionInfo{
150 {
151 ExtendedType: (*descriptorpb.FieldOptions)(nil),
152 ExtensionType: ([]FieldBehavior)(nil),
153 Field: 1052,
154 Name: "google.api.field_behavior",
155 Tag: "varint,1052,rep,name=field_behavior,enum=google.api.FieldBehavior",
156 Filename: "google/api/field_behavior.proto",
157 },
158 }
159
160
161 var (
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176 E_FieldBehavior = &file_google_api_field_behavior_proto_extTypes[0]
177 )
178
179 var File_google_api_field_behavior_proto protoreflect.FileDescriptor
180
181 var file_google_api_field_behavior_proto_rawDesc = []byte{
182 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
183 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
184 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x20, 0x67,
185 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64,
186 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2a,
187 0xb6, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
188 0x72, 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x42, 0x45, 0x48, 0x41, 0x56,
189 0x49, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
190 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12,
191 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0f, 0x0a,
192 0x0b, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x12, 0x0e,
193 0x0a, 0x0a, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x04, 0x12, 0x0d,
194 0x0a, 0x09, 0x49, 0x4d, 0x4d, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x12, 0x0a,
195 0x0e, 0x55, 0x4e, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x45, 0x44, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x10,
196 0x06, 0x12, 0x15, 0x0a, 0x11, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x5f, 0x44,
197 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x45, 0x4e,
198 0x54, 0x49, 0x46, 0x49, 0x45, 0x52, 0x10, 0x08, 0x3a, 0x64, 0x0a, 0x0e, 0x66, 0x69, 0x65, 0x6c,
199 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f,
200 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
201 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x9c, 0x08, 0x20, 0x03, 0x28, 0x0e,
202 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x69,
203 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x02, 0x10, 0x00, 0x52,
204 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x42, 0x70,
205 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
206 0x42, 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x50,
207 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
208 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
209 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70,
210 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3b, 0x61, 0x6e,
211 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49,
212 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
213 }
214
215 var (
216 file_google_api_field_behavior_proto_rawDescOnce sync.Once
217 file_google_api_field_behavior_proto_rawDescData = file_google_api_field_behavior_proto_rawDesc
218 )
219
220 func file_google_api_field_behavior_proto_rawDescGZIP() []byte {
221 file_google_api_field_behavior_proto_rawDescOnce.Do(func() {
222 file_google_api_field_behavior_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_field_behavior_proto_rawDescData)
223 })
224 return file_google_api_field_behavior_proto_rawDescData
225 }
226
227 var file_google_api_field_behavior_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
228 var file_google_api_field_behavior_proto_goTypes = []interface{}{
229 (FieldBehavior)(0),
230 (*descriptorpb.FieldOptions)(nil),
231 }
232 var file_google_api_field_behavior_proto_depIdxs = []int32{
233 1,
234 0,
235 2,
236 2,
237 1,
238 0,
239 0,
240 }
241
242 func init() { file_google_api_field_behavior_proto_init() }
243 func file_google_api_field_behavior_proto_init() {
244 if File_google_api_field_behavior_proto != nil {
245 return
246 }
247 type x struct{}
248 out := protoimpl.TypeBuilder{
249 File: protoimpl.DescBuilder{
250 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
251 RawDescriptor: file_google_api_field_behavior_proto_rawDesc,
252 NumEnums: 1,
253 NumMessages: 0,
254 NumExtensions: 1,
255 NumServices: 0,
256 },
257 GoTypes: file_google_api_field_behavior_proto_goTypes,
258 DependencyIndexes: file_google_api_field_behavior_proto_depIdxs,
259 EnumInfos: file_google_api_field_behavior_proto_enumTypes,
260 ExtensionInfos: file_google_api_field_behavior_proto_extTypes,
261 }.Build()
262 File_google_api_field_behavior_proto = out.File
263 file_google_api_field_behavior_proto_rawDesc = nil
264 file_google_api_field_behavior_proto_goTypes = nil
265 file_google_api_field_behavior_proto_depIdxs = nil
266 }
267
View as plain text