| 1 |
// Copyright 2025 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 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v4.24.4 |
| 19 |
// source: google/apps/drive/labels/v2/error_details.proto |
| 20 |
|
| 21 |
package labels |
| 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 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// Possible reasons a field is invalid. |
| 39 |
type InvalidArgument_FieldViolation_Reason int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// Unknown reason. |
| 43 |
InvalidArgument_FieldViolation_REASON_UNSPECIFIED InvalidArgument_FieldViolation_Reason = 0 |
| 44 |
// The referenced field is required. |
| 45 |
InvalidArgument_FieldViolation_FIELD_REQUIRED InvalidArgument_FieldViolation_Reason = 1 |
| 46 |
// The referenced value was invalid. |
| 47 |
InvalidArgument_FieldViolation_INVALID_VALUE InvalidArgument_FieldViolation_Reason = 2 |
| 48 |
// The specified numeric value is out of the allowed range. |
| 49 |
InvalidArgument_FieldViolation_VALUE_OUT_OF_RANGE InvalidArgument_FieldViolation_Reason = 3 |
| 50 |
// The specified string value was too long. |
| 51 |
InvalidArgument_FieldViolation_STRING_VALUE_TOO_LONG InvalidArgument_FieldViolation_Reason = 4 |
| 52 |
// The number of entries exceeded the maximum. |
| 53 |
InvalidArgument_FieldViolation_MAX_ENTRIES_EXCEEDED InvalidArgument_FieldViolation_Reason = 5 |
| 54 |
// The specified field is not found in the Label. |
| 55 |
InvalidArgument_FieldViolation_FIELD_NOT_FOUND InvalidArgument_FieldViolation_Reason = 6 |
| 56 |
// The specified choice is not found in the Field. |
| 57 |
InvalidArgument_FieldViolation_CHOICE_NOT_FOUND InvalidArgument_FieldViolation_Reason = 7 |
| 58 |
) |
| 59 |
|
| 60 |
// Enum value maps for InvalidArgument_FieldViolation_Reason. |
| 61 |
var ( |
| 62 |
InvalidArgument_FieldViolation_Reason_name = map[int32]string{ |
| 63 |
0: "REASON_UNSPECIFIED", |
| 64 |
1: "FIELD_REQUIRED", |
| 65 |
2: "INVALID_VALUE", |
| 66 |
3: "VALUE_OUT_OF_RANGE", |
| 67 |
4: "STRING_VALUE_TOO_LONG", |
| 68 |
5: "MAX_ENTRIES_EXCEEDED", |
| 69 |
6: "FIELD_NOT_FOUND", |
| 70 |
7: "CHOICE_NOT_FOUND", |
| 71 |
} |
| 72 |
InvalidArgument_FieldViolation_Reason_value = map[string]int32{ |
| 73 |
"REASON_UNSPECIFIED": 0, |
| 74 |
"FIELD_REQUIRED": 1, |
| 75 |
"INVALID_VALUE": 2, |
| 76 |
"VALUE_OUT_OF_RANGE": 3, |
| 77 |
"STRING_VALUE_TOO_LONG": 4, |
| 78 |
"MAX_ENTRIES_EXCEEDED": 5, |
| 79 |
"FIELD_NOT_FOUND": 6, |
| 80 |
"CHOICE_NOT_FOUND": 7, |
| 81 |
} |
| 82 |
) |
| 83 |
|
| 84 |
func (x InvalidArgument_FieldViolation_Reason) Enum() *InvalidArgument_FieldViolation_Reason { |
| 85 |
p := new(InvalidArgument_FieldViolation_Reason) |
| 86 |
*p = x |
| 87 |
return p |
| 88 |
} |
| 89 |
|
| 90 |
func (x InvalidArgument_FieldViolation_Reason) String() string { |
| 91 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 92 |
} |
| 93 |
|
| 94 |
func (InvalidArgument_FieldViolation_Reason) Descriptor() protoreflect.EnumDescriptor { |
| 95 |
return file_google_apps_drive_labels_v2_error_details_proto_enumTypes[0].Descriptor() |
| 96 |
} |
| 97 |
|
| 98 |
func (InvalidArgument_FieldViolation_Reason) Type() protoreflect.EnumType { |
| 99 |
return &file_google_apps_drive_labels_v2_error_details_proto_enumTypes[0] |
| 100 |
} |
| 101 |
|
| 102 |
func (x InvalidArgument_FieldViolation_Reason) Number() protoreflect.EnumNumber { |
| 103 |
return protoreflect.EnumNumber(x) |
| 104 |
} |
| 105 |
|
| 106 |
// Deprecated: Use InvalidArgument_FieldViolation_Reason.Descriptor instead. |
| 107 |
func (InvalidArgument_FieldViolation_Reason) EnumDescriptor() ([]byte, []int) { |
| 108 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{0, 0, 0} |
| 109 |
} |
| 110 |
|
| 111 |
// The possible reasons a the violation occurred. |
| 112 |
type PreconditionFailure_Violation_Reason int32 |
| 113 |
|
| 114 |
const ( |
| 115 |
// Unknown violation type. |
| 116 |
PreconditionFailure_Violation_REASON_UNSPECIFIED PreconditionFailure_Violation_Reason = 0 |
| 117 |
// This Resource cannot be Disabled. Only Published resources can be |
| 118 |
// Disabled. |
| 119 |
PreconditionFailure_Violation_CANNOT_DISABLE PreconditionFailure_Violation_Reason = 1 |
| 120 |
// This Resource cannot be Enabled. Only Disabled resources can be |
| 121 |
// Enabled. |
| 122 |
PreconditionFailure_Violation_CANNOT_ENABLE PreconditionFailure_Violation_Reason = 2 |
| 123 |
// This Resource cannot be Published. Only Draft or Disabled resources |
| 124 |
// can be Published. |
| 125 |
PreconditionFailure_Violation_CANNOT_PUBLISH PreconditionFailure_Violation_Reason = 3 |
| 126 |
// This Resource cannot be Unpublished. Once published, resources may |
| 127 |
// not be set in "Draft" state. |
| 128 |
PreconditionFailure_Violation_CANNOT_UNPUBLISH PreconditionFailure_Violation_Reason = 4 |
| 129 |
// This Resource cannot be Deleted. Only Disabled resources |
| 130 |
// can be Deleted. |
| 131 |
PreconditionFailure_Violation_CANNOT_DELETE PreconditionFailure_Violation_Reason = 5 |
| 132 |
// The request modified a range in a Field, but the new range does |
| 133 |
// not include the previous range. When this error happens, `field` points |
| 134 |
// at the Field where the violation occurred. |
| 135 |
PreconditionFailure_Violation_CANNOT_RESTRICT_RANGE PreconditionFailure_Violation_Reason = 6 |
| 136 |
// The specified change cannot be made to published Resources. |
| 137 |
PreconditionFailure_Violation_CANNOT_CHANGE_PUBLISHED_FIELD PreconditionFailure_Violation_Reason = 7 |
| 138 |
// The customer cannot create new labels because the maximum number |
| 139 |
// of labels for the customer has been reached. |
| 140 |
PreconditionFailure_Violation_CANNOT_CREATE_MORE_LABELS PreconditionFailure_Violation_Reason = 8 |
| 141 |
// The Field type cannot be changed because the Field has been published. |
| 142 |
PreconditionFailure_Violation_CANNOT_CHANGE_PUBLISHED_FIELD_TYPE PreconditionFailure_Violation_Reason = 9 |
| 143 |
// The Label component is locked and cannot be deleted |
| 144 |
PreconditionFailure_Violation_CANNOT_MODIFY_LOCKED_COMPONENT PreconditionFailure_Violation_Reason = 10 |
| 145 |
// The Label cannot be enabled in the target application or applications. |
| 146 |
PreconditionFailure_Violation_UNSUPPORT_ENABLED_APP_SETTINGS PreconditionFailure_Violation_Reason = 11 |
| 147 |
) |
| 148 |
|
| 149 |
// Enum value maps for PreconditionFailure_Violation_Reason. |
| 150 |
var ( |
| 151 |
PreconditionFailure_Violation_Reason_name = map[int32]string{ |
| 152 |
0: "REASON_UNSPECIFIED", |
| 153 |
1: "CANNOT_DISABLE", |
| 154 |
2: "CANNOT_ENABLE", |
| 155 |
3: "CANNOT_PUBLISH", |
| 156 |
4: "CANNOT_UNPUBLISH", |
| 157 |
5: "CANNOT_DELETE", |
| 158 |
6: "CANNOT_RESTRICT_RANGE", |
| 159 |
7: "CANNOT_CHANGE_PUBLISHED_FIELD", |
| 160 |
8: "CANNOT_CREATE_MORE_LABELS", |
| 161 |
9: "CANNOT_CHANGE_PUBLISHED_FIELD_TYPE", |
| 162 |
10: "CANNOT_MODIFY_LOCKED_COMPONENT", |
| 163 |
11: "UNSUPPORT_ENABLED_APP_SETTINGS", |
| 164 |
} |
| 165 |
PreconditionFailure_Violation_Reason_value = map[string]int32{ |
| 166 |
"REASON_UNSPECIFIED": 0, |
| 167 |
"CANNOT_DISABLE": 1, |
| 168 |
"CANNOT_ENABLE": 2, |
| 169 |
"CANNOT_PUBLISH": 3, |
| 170 |
"CANNOT_UNPUBLISH": 4, |
| 171 |
"CANNOT_DELETE": 5, |
| 172 |
"CANNOT_RESTRICT_RANGE": 6, |
| 173 |
"CANNOT_CHANGE_PUBLISHED_FIELD": 7, |
| 174 |
"CANNOT_CREATE_MORE_LABELS": 8, |
| 175 |
"CANNOT_CHANGE_PUBLISHED_FIELD_TYPE": 9, |
| 176 |
"CANNOT_MODIFY_LOCKED_COMPONENT": 10, |
| 177 |
"UNSUPPORT_ENABLED_APP_SETTINGS": 11, |
| 178 |
} |
| 179 |
) |
| 180 |
|
| 181 |
func (x PreconditionFailure_Violation_Reason) Enum() *PreconditionFailure_Violation_Reason { |
| 182 |
p := new(PreconditionFailure_Violation_Reason) |
| 183 |
*p = x |
| 184 |
return p |
| 185 |
} |
| 186 |
|
| 187 |
func (x PreconditionFailure_Violation_Reason) String() string { |
| 188 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 189 |
} |
| 190 |
|
| 191 |
func (PreconditionFailure_Violation_Reason) Descriptor() protoreflect.EnumDescriptor { |
| 192 |
return file_google_apps_drive_labels_v2_error_details_proto_enumTypes[1].Descriptor() |
| 193 |
} |
| 194 |
|
| 195 |
func (PreconditionFailure_Violation_Reason) Type() protoreflect.EnumType { |
| 196 |
return &file_google_apps_drive_labels_v2_error_details_proto_enumTypes[1] |
| 197 |
} |
| 198 |
|
| 199 |
func (x PreconditionFailure_Violation_Reason) Number() protoreflect.EnumNumber { |
| 200 |
return protoreflect.EnumNumber(x) |
| 201 |
} |
| 202 |
|
| 203 |
// Deprecated: Use PreconditionFailure_Violation_Reason.Descriptor instead. |
| 204 |
func (PreconditionFailure_Violation_Reason) EnumDescriptor() ([]byte, []int) { |
| 205 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{1, 0, 0} |
| 206 |
} |
| 207 |
|
| 208 |
// Describes violations in a request to create or update a Label or its |
| 209 |
// Fields. |
| 210 |
type InvalidArgument struct { |
| 211 |
state protoimpl.MessageState |
| 212 |
sizeCache protoimpl.SizeCache |
| 213 |
unknownFields protoimpl.UnknownFields |
| 214 |
|
| 215 |
// Describes all violations in a client request. |
| 216 |
FieldViolations []*InvalidArgument_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` |
| 217 |
} |
| 218 |
|
| 219 |
func (x *InvalidArgument) Reset() { |
| 220 |
*x = InvalidArgument{} |
| 221 |
if protoimpl.UnsafeEnabled { |
| 222 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[0] |
| 223 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 224 |
ms.StoreMessageInfo(mi) |
| 225 |
} |
| 226 |
} |
| 227 |
|
| 228 |
func (x *InvalidArgument) String() string { |
| 229 |
return protoimpl.X.MessageStringOf(x) |
| 230 |
} |
| 231 |
|
| 232 |
func (*InvalidArgument) ProtoMessage() {} |
| 233 |
|
| 234 |
func (x *InvalidArgument) ProtoReflect() protoreflect.Message { |
| 235 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[0] |
| 236 |
if protoimpl.UnsafeEnabled && x != nil { |
| 237 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 238 |
if ms.LoadMessageInfo() == nil { |
| 239 |
ms.StoreMessageInfo(mi) |
| 240 |
} |
| 241 |
return ms |
| 242 |
} |
| 243 |
return mi.MessageOf(x) |
| 244 |
} |
| 245 |
|
| 246 |
// Deprecated: Use InvalidArgument.ProtoReflect.Descriptor instead. |
| 247 |
func (*InvalidArgument) Descriptor() ([]byte, []int) { |
| 248 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{0} |
| 249 |
} |
| 250 |
|
| 251 |
func (x *InvalidArgument) GetFieldViolations() []*InvalidArgument_FieldViolation { |
| 252 |
if x != nil { |
| 253 |
return x.FieldViolations |
| 254 |
} |
| 255 |
return nil |
| 256 |
} |
| 257 |
|
| 258 |
// Describes what preconditions have failed. |
| 259 |
type PreconditionFailure struct { |
| 260 |
state protoimpl.MessageState |
| 261 |
sizeCache protoimpl.SizeCache |
| 262 |
unknownFields protoimpl.UnknownFields |
| 263 |
|
| 264 |
// Describes all violations in a client request. |
| 265 |
Violation []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violation,proto3" json:"violation,omitempty"` |
| 266 |
} |
| 267 |
|
| 268 |
func (x *PreconditionFailure) Reset() { |
| 269 |
*x = PreconditionFailure{} |
| 270 |
if protoimpl.UnsafeEnabled { |
| 271 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[1] |
| 272 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 273 |
ms.StoreMessageInfo(mi) |
| 274 |
} |
| 275 |
} |
| 276 |
|
| 277 |
func (x *PreconditionFailure) String() string { |
| 278 |
return protoimpl.X.MessageStringOf(x) |
| 279 |
} |
| 280 |
|
| 281 |
func (*PreconditionFailure) ProtoMessage() {} |
| 282 |
|
| 283 |
func (x *PreconditionFailure) ProtoReflect() protoreflect.Message { |
| 284 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[1] |
| 285 |
if protoimpl.UnsafeEnabled && x != nil { |
| 286 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 287 |
if ms.LoadMessageInfo() == nil { |
| 288 |
ms.StoreMessageInfo(mi) |
| 289 |
} |
| 290 |
return ms |
| 291 |
} |
| 292 |
return mi.MessageOf(x) |
| 293 |
} |
| 294 |
|
| 295 |
// Deprecated: Use PreconditionFailure.ProtoReflect.Descriptor instead. |
| 296 |
func (*PreconditionFailure) Descriptor() ([]byte, []int) { |
| 297 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{1} |
| 298 |
} |
| 299 |
|
| 300 |
func (x *PreconditionFailure) GetViolation() []*PreconditionFailure_Violation { |
| 301 |
if x != nil { |
| 302 |
return x.Violation |
| 303 |
} |
| 304 |
return nil |
| 305 |
} |
| 306 |
|
| 307 |
// Describes the Field in which the violation occurred. |
| 308 |
type InvalidArgument_FieldViolation struct { |
| 309 |
state protoimpl.MessageState |
| 310 |
sizeCache protoimpl.SizeCache |
| 311 |
unknownFields protoimpl.UnknownFields |
| 312 |
|
| 313 |
// The path to the field where this violation occurred. This path is |
| 314 |
// specified using `FieldMask` format: |
| 315 |
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask |
| 316 |
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` |
| 317 |
// The detailed reason for this FieldViolation. |
| 318 |
Reason InvalidArgument_FieldViolation_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=google.apps.drive.labels.v2.InvalidArgument_FieldViolation_Reason" json:"reason,omitempty"` |
| 319 |
// A message that describes the violation. This message is intended to |
| 320 |
// be shown to end users, and is localized into the requesting user's |
| 321 |
// preferred language. |
| 322 |
DisplayMessage string `protobuf:"bytes,3,opt,name=display_message,json=displayMessage,proto3" json:"display_message,omitempty"` |
| 323 |
} |
| 324 |
|
| 325 |
func (x *InvalidArgument_FieldViolation) Reset() { |
| 326 |
*x = InvalidArgument_FieldViolation{} |
| 327 |
if protoimpl.UnsafeEnabled { |
| 328 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[2] |
| 329 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 330 |
ms.StoreMessageInfo(mi) |
| 331 |
} |
| 332 |
} |
| 333 |
|
| 334 |
func (x *InvalidArgument_FieldViolation) String() string { |
| 335 |
return protoimpl.X.MessageStringOf(x) |
| 336 |
} |
| 337 |
|
| 338 |
func (*InvalidArgument_FieldViolation) ProtoMessage() {} |
| 339 |
|
| 340 |
func (x *InvalidArgument_FieldViolation) ProtoReflect() protoreflect.Message { |
| 341 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[2] |
| 342 |
if protoimpl.UnsafeEnabled && x != nil { |
| 343 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 344 |
if ms.LoadMessageInfo() == nil { |
| 345 |
ms.StoreMessageInfo(mi) |
| 346 |
} |
| 347 |
return ms |
| 348 |
} |
| 349 |
return mi.MessageOf(x) |
| 350 |
} |
| 351 |
|
| 352 |
// Deprecated: Use InvalidArgument_FieldViolation.ProtoReflect.Descriptor instead. |
| 353 |
func (*InvalidArgument_FieldViolation) Descriptor() ([]byte, []int) { |
| 354 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{0, 0} |
| 355 |
} |
| 356 |
|
| 357 |
func (x *InvalidArgument_FieldViolation) GetField() string { |
| 358 |
if x != nil { |
| 359 |
return x.Field |
| 360 |
} |
| 361 |
return "" |
| 362 |
} |
| 363 |
|
| 364 |
func (x *InvalidArgument_FieldViolation) GetReason() InvalidArgument_FieldViolation_Reason { |
| 365 |
if x != nil { |
| 366 |
return x.Reason |
| 367 |
} |
| 368 |
return InvalidArgument_FieldViolation_REASON_UNSPECIFIED |
| 369 |
} |
| 370 |
|
| 371 |
func (x *InvalidArgument_FieldViolation) GetDisplayMessage() string { |
| 372 |
if x != nil { |
| 373 |
return x.DisplayMessage |
| 374 |
} |
| 375 |
return "" |
| 376 |
} |
| 377 |
|
| 378 |
// Specific failure reason. |
| 379 |
type PreconditionFailure_Violation struct { |
| 380 |
state protoimpl.MessageState |
| 381 |
sizeCache protoimpl.SizeCache |
| 382 |
unknownFields protoimpl.UnknownFields |
| 383 |
|
| 384 |
// The path to the field where this violation occurred. This path is |
| 385 |
// specified using `FieldMask` format: |
| 386 |
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask |
| 387 |
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` |
| 388 |
// The type of this violation. |
| 389 |
Reason PreconditionFailure_Violation_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=google.apps.drive.labels.v2.PreconditionFailure_Violation_Reason" json:"reason,omitempty"` |
| 390 |
// A message that describes the violation. This message is intended to |
| 391 |
// be shown to end users, and is localized into the requesting user's |
| 392 |
// preferred language. |
| 393 |
DisplayMessage string `protobuf:"bytes,3,opt,name=display_message,json=displayMessage,proto3" json:"display_message,omitempty"` |
| 394 |
} |
| 395 |
|
| 396 |
func (x *PreconditionFailure_Violation) Reset() { |
| 397 |
*x = PreconditionFailure_Violation{} |
| 398 |
if protoimpl.UnsafeEnabled { |
| 399 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[3] |
| 400 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 401 |
ms.StoreMessageInfo(mi) |
| 402 |
} |
| 403 |
} |
| 404 |
|
| 405 |
func (x *PreconditionFailure_Violation) String() string { |
| 406 |
return protoimpl.X.MessageStringOf(x) |
| 407 |
} |
| 408 |
|
| 409 |
func (*PreconditionFailure_Violation) ProtoMessage() {} |
| 410 |
|
| 411 |
func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message { |
| 412 |
mi := &file_google_apps_drive_labels_v2_error_details_proto_msgTypes[3] |
| 413 |
if protoimpl.UnsafeEnabled && x != nil { |
| 414 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 415 |
if ms.LoadMessageInfo() == nil { |
| 416 |
ms.StoreMessageInfo(mi) |
| 417 |
} |
| 418 |
return ms |
| 419 |
} |
| 420 |
return mi.MessageOf(x) |
| 421 |
} |
| 422 |
|
| 423 |
// Deprecated: Use PreconditionFailure_Violation.ProtoReflect.Descriptor instead. |
| 424 |
func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) { |
| 425 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP(), []int{1, 0} |
| 426 |
} |
| 427 |
|
| 428 |
func (x *PreconditionFailure_Violation) GetField() string { |
| 429 |
if x != nil { |
| 430 |
return x.Field |
| 431 |
} |
| 432 |
return "" |
| 433 |
} |
| 434 |
|
| 435 |
func (x *PreconditionFailure_Violation) GetReason() PreconditionFailure_Violation_Reason { |
| 436 |
if x != nil { |
| 437 |
return x.Reason |
| 438 |
} |
| 439 |
return PreconditionFailure_Violation_REASON_UNSPECIFIED |
| 440 |
} |
| 441 |
|
| 442 |
func (x *PreconditionFailure_Violation) GetDisplayMessage() string { |
| 443 |
if x != nil { |
| 444 |
return x.DisplayMessage |
| 445 |
} |
| 446 |
return "" |
| 447 |
} |
| 448 |
|
| 449 |
var File_google_apps_drive_labels_v2_error_details_proto protoreflect.FileDescriptor |
| 450 |
|
| 451 |
var file_google_apps_drive_labels_v2_error_details_proto_rawDesc = []byte{ |
| 452 |
0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72, |
| 453 |
0x69, 0x76, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x72, |
| 454 |
0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 455 |
0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, |
| 456 |
0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x22, 0xe9, |
| 457 |
0x03, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, |
| 458 |
0x6e, 0x74, 0x12, 0x66, 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x76, 0x69, 0x6f, 0x6c, |
| 459 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, |
| 460 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, |
| 461 |
0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, |
| 462 |
0x69, 0x64, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 463 |
0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 464 |
0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xed, 0x02, 0x0a, 0x0e, 0x46, |
| 465 |
0x69, 0x65, 0x6c, 0x64, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, |
| 466 |
0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, |
| 467 |
0x65, 0x6c, 0x64, 0x12, 0x5a, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, |
| 468 |
0x01, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, |
| 469 |
0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, |
| 470 |
0x32, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, |
| 471 |
0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 472 |
0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, |
| 473 |
0x27, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, |
| 474 |
0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, |
| 475 |
0x79, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xbf, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x61, |
| 476 |
0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, |
| 477 |
0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, |
| 478 |
0x49, 0x45, 0x4c, 0x44, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x01, 0x12, |
| 479 |
0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, |
| 480 |
0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x5f, |
| 481 |
0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x54, |
| 482 |
0x52, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, |
| 483 |
0x4f, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x4d, 0x41, 0x58, 0x5f, 0x45, 0x4e, 0x54, |
| 484 |
0x52, 0x49, 0x45, 0x53, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x05, 0x12, |
| 485 |
0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, |
| 486 |
0x4e, 0x44, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x48, 0x4f, 0x49, 0x43, 0x45, 0x5f, 0x4e, |
| 487 |
0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x07, 0x22, 0xeb, 0x04, 0x0a, 0x13, 0x50, |
| 488 |
0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, |
| 489 |
0x72, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, |
| 490 |
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 491 |
0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, |
| 492 |
0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 493 |
0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, |
| 494 |
0x6e, 0x52, 0x09, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf9, 0x03, 0x0a, |
| 495 |
0x09, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, |
| 496 |
0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 497 |
0x12, 0x59, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, |
| 498 |
0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, |
| 499 |
0x72, 0x69, 0x76, 0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, |
| 500 |
0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, |
| 501 |
0x72, 0x65, 0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x61, |
| 502 |
0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x64, |
| 503 |
0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, |
| 504 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4d, 0x65, 0x73, |
| 505 |
0x73, 0x61, 0x67, 0x65, 0x22, 0xd1, 0x02, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, |
| 506 |
0x16, 0x0a, 0x12, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, |
| 507 |
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x41, 0x4e, 0x4e, 0x4f, |
| 508 |
0x54, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x43, |
| 509 |
0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, |
| 510 |
0x0a, 0x0e, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, |
| 511 |
0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x4e, 0x50, |
| 512 |
0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x41, 0x4e, 0x4e, |
| 513 |
0x4f, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x43, |
| 514 |
0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x52, 0x49, 0x43, 0x54, 0x5f, 0x52, |
| 515 |
0x41, 0x4e, 0x47, 0x45, 0x10, 0x06, 0x12, 0x21, 0x0a, 0x1d, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, |
| 516 |
0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, |
| 517 |
0x44, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x07, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x41, 0x4e, |
| 518 |
0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x4d, 0x4f, 0x52, 0x45, 0x5f, |
| 519 |
0x4c, 0x41, 0x42, 0x45, 0x4c, 0x53, 0x10, 0x08, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x41, 0x4e, 0x4e, |
| 520 |
0x4f, 0x54, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, |
| 521 |
0x48, 0x45, 0x44, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x09, |
| 522 |
0x12, 0x22, 0x0a, 0x1e, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, |
| 523 |
0x59, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4f, 0x4e, 0x45, |
| 524 |
0x4e, 0x54, 0x10, 0x0a, 0x12, 0x22, 0x0a, 0x1e, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, |
| 525 |
0x54, 0x5f, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x5f, 0x41, 0x50, 0x50, 0x5f, 0x53, 0x45, |
| 526 |
0x54, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10, 0x0b, 0x42, 0x79, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, |
| 527 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, |
| 528 |
0x65, 0x2e, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x11, 0x45, 0x72, 0x72, |
| 529 |
0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 530 |
0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, |
| 531 |
0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, |
| 532 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72, 0x69, |
| 533 |
0x76, 0x65, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x6c, 0x61, 0x62, |
| 534 |
0x65, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 535 |
} |
| 536 |
|
| 537 |
var ( |
| 538 |
file_google_apps_drive_labels_v2_error_details_proto_rawDescOnce sync.Once |
| 539 |
file_google_apps_drive_labels_v2_error_details_proto_rawDescData = file_google_apps_drive_labels_v2_error_details_proto_rawDesc |
| 540 |
) |
| 541 |
|
| 542 |
func file_google_apps_drive_labels_v2_error_details_proto_rawDescGZIP() []byte { |
| 543 |
file_google_apps_drive_labels_v2_error_details_proto_rawDescOnce.Do(func() { |
| 544 |
file_google_apps_drive_labels_v2_error_details_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_apps_drive_labels_v2_error_details_proto_rawDescData) |
| 545 |
}) |
| 546 |
return file_google_apps_drive_labels_v2_error_details_proto_rawDescData |
| 547 |
} |
| 548 |
|
| 549 |
var file_google_apps_drive_labels_v2_error_details_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 550 |
var file_google_apps_drive_labels_v2_error_details_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 551 |
var file_google_apps_drive_labels_v2_error_details_proto_goTypes = []interface{}{ |
| 552 |
(InvalidArgument_FieldViolation_Reason)(0), // 0: google.apps.drive.labels.v2.InvalidArgument.FieldViolation.Reason |
| 553 |
(PreconditionFailure_Violation_Reason)(0), // 1: google.apps.drive.labels.v2.PreconditionFailure.Violation.Reason |
| 554 |
(*InvalidArgument)(nil), // 2: google.apps.drive.labels.v2.InvalidArgument |
| 555 |
(*PreconditionFailure)(nil), // 3: google.apps.drive.labels.v2.PreconditionFailure |
| 556 |
(*InvalidArgument_FieldViolation)(nil), // 4: google.apps.drive.labels.v2.InvalidArgument.FieldViolation |
| 557 |
(*PreconditionFailure_Violation)(nil), // 5: google.apps.drive.labels.v2.PreconditionFailure.Violation |
| 558 |
} |
| 559 |
var file_google_apps_drive_labels_v2_error_details_proto_depIdxs = []int32{ |
| 560 |
4, // 0: google.apps.drive.labels.v2.InvalidArgument.field_violations:type_name -> google.apps.drive.labels.v2.InvalidArgument.FieldViolation |
| 561 |
5, // 1: google.apps.drive.labels.v2.PreconditionFailure.violation:type_name -> google.apps.drive.labels.v2.PreconditionFailure.Violation |
| 562 |
0, // 2: google.apps.drive.labels.v2.InvalidArgument.FieldViolation.reason:type_name -> google.apps.drive.labels.v2.InvalidArgument.FieldViolation.Reason |
| 563 |
1, // 3: google.apps.drive.labels.v2.PreconditionFailure.Violation.reason:type_name -> google.apps.drive.labels.v2.PreconditionFailure.Violation.Reason |
| 564 |
4, // [4:4] is the sub-list for method output_type |
| 565 |
4, // [4:4] is the sub-list for method input_type |
| 566 |
4, // [4:4] is the sub-list for extension type_name |
| 567 |
4, // [4:4] is the sub-list for extension extendee |
| 568 |
0, // [0:4] is the sub-list for field type_name |
| 569 |
} |
| 570 |
|
| 571 |
func init() { file_google_apps_drive_labels_v2_error_details_proto_init() } |
| 572 |
func file_google_apps_drive_labels_v2_error_details_proto_init() { |
| 573 |
if File_google_apps_drive_labels_v2_error_details_proto != nil { |
| 574 |
return |
| 575 |
} |
| 576 |
if !protoimpl.UnsafeEnabled { |
| 577 |
file_google_apps_drive_labels_v2_error_details_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 578 |
switch v := v.(*InvalidArgument); i { |
| 579 |
case 0: |
| 580 |
return &v.state |
| 581 |
case 1: |
| 582 |
return &v.sizeCache |
| 583 |
case 2: |
| 584 |
return &v.unknownFields |
| 585 |
default: |
| 586 |
return nil |
| 587 |
} |
| 588 |
} |
| 589 |
file_google_apps_drive_labels_v2_error_details_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 590 |
switch v := v.(*PreconditionFailure); i { |
| 591 |
case 0: |
| 592 |
return &v.state |
| 593 |
case 1: |
| 594 |
return &v.sizeCache |
| 595 |
case 2: |
| 596 |
return &v.unknownFields |
| 597 |
default: |
| 598 |
return nil |
| 599 |
} |
| 600 |
} |
| 601 |
file_google_apps_drive_labels_v2_error_details_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 602 |
switch v := v.(*InvalidArgument_FieldViolation); i { |
| 603 |
case 0: |
| 604 |
return &v.state |
| 605 |
case 1: |
| 606 |
return &v.sizeCache |
| 607 |
case 2: |
| 608 |
return &v.unknownFields |
| 609 |
default: |
| 610 |
return nil |
| 611 |
} |
| 612 |
} |
| 613 |
file_google_apps_drive_labels_v2_error_details_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 614 |
switch v := v.(*PreconditionFailure_Violation); i { |
| 615 |
case 0: |
| 616 |
return &v.state |
| 617 |
case 1: |
| 618 |
return &v.sizeCache |
| 619 |
case 2: |
| 620 |
return &v.unknownFields |
| 621 |
default: |
| 622 |
return nil |
| 623 |
} |
| 624 |
} |
| 625 |
} |
| 626 |
type x struct{} |
| 627 |
out := protoimpl.TypeBuilder{ |
| 628 |
File: protoimpl.DescBuilder{ |
| 629 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 630 |
RawDescriptor: file_google_apps_drive_labels_v2_error_details_proto_rawDesc, |
| 631 |
NumEnums: 2, |
| 632 |
NumMessages: 4, |
| 633 |
NumExtensions: 0, |
| 634 |
NumServices: 0, |
| 635 |
}, |
| 636 |
GoTypes: file_google_apps_drive_labels_v2_error_details_proto_goTypes, |
| 637 |
DependencyIndexes: file_google_apps_drive_labels_v2_error_details_proto_depIdxs, |
| 638 |
EnumInfos: file_google_apps_drive_labels_v2_error_details_proto_enumTypes, |
| 639 |
MessageInfos: file_google_apps_drive_labels_v2_error_details_proto_msgTypes, |
| 640 |
}.Build() |
| 641 |
File_google_apps_drive_labels_v2_error_details_proto = out.File |
| 642 |
file_google_apps_drive_labels_v2_error_details_proto_rawDesc = nil |
| 643 |
file_google_apps_drive_labels_v2_error_details_proto_goTypes = nil |
| 644 |
file_google_apps_drive_labels_v2_error_details_proto_depIdxs = nil |
| 645 |
} |