| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
descriptorpb "google.golang.org/protobuf/types/descriptorpb" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
unsafe "unsafe" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
|
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type PackageVersionStatus int32 |
| 26 |
|
| 27 |
const ( |
| 28 |
PackageVersionStatus_UNKNOWN PackageVersionStatus = 0 |
| 29 |
PackageVersionStatus_FROZEN PackageVersionStatus = 1 |
| 30 |
PackageVersionStatus_ACTIVE PackageVersionStatus = 2 |
| 31 |
PackageVersionStatus_NEXT_MAJOR_VERSION_CANDIDATE PackageVersionStatus = 3 |
| 32 |
) |
| 33 |
|
| 34 |
|
| 35 |
var ( |
| 36 |
PackageVersionStatus_name = map[int32]string{ |
| 37 |
0: "UNKNOWN", |
| 38 |
1: "FROZEN", |
| 39 |
2: "ACTIVE", |
| 40 |
3: "NEXT_MAJOR_VERSION_CANDIDATE", |
| 41 |
} |
| 42 |
PackageVersionStatus_value = map[string]int32{ |
| 43 |
"UNKNOWN": 0, |
| 44 |
"FROZEN": 1, |
| 45 |
"ACTIVE": 2, |
| 46 |
"NEXT_MAJOR_VERSION_CANDIDATE": 3, |
| 47 |
} |
| 48 |
) |
| 49 |
|
| 50 |
func (x PackageVersionStatus) Enum() *PackageVersionStatus { |
| 51 |
p := new(PackageVersionStatus) |
| 52 |
*p = x |
| 53 |
return p |
| 54 |
} |
| 55 |
|
| 56 |
func (x PackageVersionStatus) String() string { |
| 57 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 58 |
} |
| 59 |
|
| 60 |
func (PackageVersionStatus) Descriptor() protoreflect.EnumDescriptor { |
| 61 |
return file_xds_annotations_v3_status_proto_enumTypes[0].Descriptor() |
| 62 |
} |
| 63 |
|
| 64 |
func (PackageVersionStatus) Type() protoreflect.EnumType { |
| 65 |
return &file_xds_annotations_v3_status_proto_enumTypes[0] |
| 66 |
} |
| 67 |
|
| 68 |
func (x PackageVersionStatus) Number() protoreflect.EnumNumber { |
| 69 |
return protoreflect.EnumNumber(x) |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
func (PackageVersionStatus) EnumDescriptor() ([]byte, []int) { |
| 74 |
return file_xds_annotations_v3_status_proto_rawDescGZIP(), []int{0} |
| 75 |
} |
| 76 |
|
| 77 |
type FileStatusAnnotation struct { |
| 78 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 79 |
WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"` |
| 80 |
unknownFields protoimpl.UnknownFields |
| 81 |
sizeCache protoimpl.SizeCache |
| 82 |
} |
| 83 |
|
| 84 |
func (x *FileStatusAnnotation) Reset() { |
| 85 |
*x = FileStatusAnnotation{} |
| 86 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[0] |
| 87 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 88 |
ms.StoreMessageInfo(mi) |
| 89 |
} |
| 90 |
|
| 91 |
func (x *FileStatusAnnotation) String() string { |
| 92 |
return protoimpl.X.MessageStringOf(x) |
| 93 |
} |
| 94 |
|
| 95 |
func (*FileStatusAnnotation) ProtoMessage() {} |
| 96 |
|
| 97 |
func (x *FileStatusAnnotation) ProtoReflect() protoreflect.Message { |
| 98 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[0] |
| 99 |
if x != nil { |
| 100 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 101 |
if ms.LoadMessageInfo() == nil { |
| 102 |
ms.StoreMessageInfo(mi) |
| 103 |
} |
| 104 |
return ms |
| 105 |
} |
| 106 |
return mi.MessageOf(x) |
| 107 |
} |
| 108 |
|
| 109 |
|
| 110 |
func (*FileStatusAnnotation) Descriptor() ([]byte, []int) { |
| 111 |
return file_xds_annotations_v3_status_proto_rawDescGZIP(), []int{0} |
| 112 |
} |
| 113 |
|
| 114 |
func (x *FileStatusAnnotation) GetWorkInProgress() bool { |
| 115 |
if x != nil { |
| 116 |
return x.WorkInProgress |
| 117 |
} |
| 118 |
return false |
| 119 |
} |
| 120 |
|
| 121 |
type MessageStatusAnnotation struct { |
| 122 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 123 |
WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"` |
| 124 |
unknownFields protoimpl.UnknownFields |
| 125 |
sizeCache protoimpl.SizeCache |
| 126 |
} |
| 127 |
|
| 128 |
func (x *MessageStatusAnnotation) Reset() { |
| 129 |
*x = MessageStatusAnnotation{} |
| 130 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[1] |
| 131 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 132 |
ms.StoreMessageInfo(mi) |
| 133 |
} |
| 134 |
|
| 135 |
func (x *MessageStatusAnnotation) String() string { |
| 136 |
return protoimpl.X.MessageStringOf(x) |
| 137 |
} |
| 138 |
|
| 139 |
func (*MessageStatusAnnotation) ProtoMessage() {} |
| 140 |
|
| 141 |
func (x *MessageStatusAnnotation) ProtoReflect() protoreflect.Message { |
| 142 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[1] |
| 143 |
if x != nil { |
| 144 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 145 |
if ms.LoadMessageInfo() == nil { |
| 146 |
ms.StoreMessageInfo(mi) |
| 147 |
} |
| 148 |
return ms |
| 149 |
} |
| 150 |
return mi.MessageOf(x) |
| 151 |
} |
| 152 |
|
| 153 |
|
| 154 |
func (*MessageStatusAnnotation) Descriptor() ([]byte, []int) { |
| 155 |
return file_xds_annotations_v3_status_proto_rawDescGZIP(), []int{1} |
| 156 |
} |
| 157 |
|
| 158 |
func (x *MessageStatusAnnotation) GetWorkInProgress() bool { |
| 159 |
if x != nil { |
| 160 |
return x.WorkInProgress |
| 161 |
} |
| 162 |
return false |
| 163 |
} |
| 164 |
|
| 165 |
type FieldStatusAnnotation struct { |
| 166 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 167 |
WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"` |
| 168 |
unknownFields protoimpl.UnknownFields |
| 169 |
sizeCache protoimpl.SizeCache |
| 170 |
} |
| 171 |
|
| 172 |
func (x *FieldStatusAnnotation) Reset() { |
| 173 |
*x = FieldStatusAnnotation{} |
| 174 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[2] |
| 175 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 176 |
ms.StoreMessageInfo(mi) |
| 177 |
} |
| 178 |
|
| 179 |
func (x *FieldStatusAnnotation) String() string { |
| 180 |
return protoimpl.X.MessageStringOf(x) |
| 181 |
} |
| 182 |
|
| 183 |
func (*FieldStatusAnnotation) ProtoMessage() {} |
| 184 |
|
| 185 |
func (x *FieldStatusAnnotation) ProtoReflect() protoreflect.Message { |
| 186 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[2] |
| 187 |
if x != nil { |
| 188 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 189 |
if ms.LoadMessageInfo() == nil { |
| 190 |
ms.StoreMessageInfo(mi) |
| 191 |
} |
| 192 |
return ms |
| 193 |
} |
| 194 |
return mi.MessageOf(x) |
| 195 |
} |
| 196 |
|
| 197 |
|
| 198 |
func (*FieldStatusAnnotation) Descriptor() ([]byte, []int) { |
| 199 |
return file_xds_annotations_v3_status_proto_rawDescGZIP(), []int{2} |
| 200 |
} |
| 201 |
|
| 202 |
func (x *FieldStatusAnnotation) GetWorkInProgress() bool { |
| 203 |
if x != nil { |
| 204 |
return x.WorkInProgress |
| 205 |
} |
| 206 |
return false |
| 207 |
} |
| 208 |
|
| 209 |
type StatusAnnotation struct { |
| 210 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 211 |
WorkInProgress bool `protobuf:"varint,1,opt,name=work_in_progress,json=workInProgress,proto3" json:"work_in_progress,omitempty"` |
| 212 |
PackageVersionStatus PackageVersionStatus `protobuf:"varint,2,opt,name=package_version_status,json=packageVersionStatus,proto3,enum=xds.annotations.v3.PackageVersionStatus" json:"package_version_status,omitempty"` |
| 213 |
unknownFields protoimpl.UnknownFields |
| 214 |
sizeCache protoimpl.SizeCache |
| 215 |
} |
| 216 |
|
| 217 |
func (x *StatusAnnotation) Reset() { |
| 218 |
*x = StatusAnnotation{} |
| 219 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[3] |
| 220 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 221 |
ms.StoreMessageInfo(mi) |
| 222 |
} |
| 223 |
|
| 224 |
func (x *StatusAnnotation) String() string { |
| 225 |
return protoimpl.X.MessageStringOf(x) |
| 226 |
} |
| 227 |
|
| 228 |
func (*StatusAnnotation) ProtoMessage() {} |
| 229 |
|
| 230 |
func (x *StatusAnnotation) ProtoReflect() protoreflect.Message { |
| 231 |
mi := &file_xds_annotations_v3_status_proto_msgTypes[3] |
| 232 |
if x != nil { |
| 233 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 234 |
if ms.LoadMessageInfo() == nil { |
| 235 |
ms.StoreMessageInfo(mi) |
| 236 |
} |
| 237 |
return ms |
| 238 |
} |
| 239 |
return mi.MessageOf(x) |
| 240 |
} |
| 241 |
|
| 242 |
|
| 243 |
func (*StatusAnnotation) Descriptor() ([]byte, []int) { |
| 244 |
return file_xds_annotations_v3_status_proto_rawDescGZIP(), []int{3} |
| 245 |
} |
| 246 |
|
| 247 |
func (x *StatusAnnotation) GetWorkInProgress() bool { |
| 248 |
if x != nil { |
| 249 |
return x.WorkInProgress |
| 250 |
} |
| 251 |
return false |
| 252 |
} |
| 253 |
|
| 254 |
func (x *StatusAnnotation) GetPackageVersionStatus() PackageVersionStatus { |
| 255 |
if x != nil { |
| 256 |
return x.PackageVersionStatus |
| 257 |
} |
| 258 |
return PackageVersionStatus_UNKNOWN |
| 259 |
} |
| 260 |
|
| 261 |
var file_xds_annotations_v3_status_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 262 |
{ |
| 263 |
ExtendedType: (*descriptorpb.FileOptions)(nil), |
| 264 |
ExtensionType: (*FileStatusAnnotation)(nil), |
| 265 |
Field: 226829418, |
| 266 |
Name: "xds.annotations.v3.file_status", |
| 267 |
Tag: "bytes,226829418,opt,name=file_status", |
| 268 |
Filename: "xds/annotations/v3/status.proto", |
| 269 |
}, |
| 270 |
{ |
| 271 |
ExtendedType: (*descriptorpb.MessageOptions)(nil), |
| 272 |
ExtensionType: (*MessageStatusAnnotation)(nil), |
| 273 |
Field: 226829418, |
| 274 |
Name: "xds.annotations.v3.message_status", |
| 275 |
Tag: "bytes,226829418,opt,name=message_status", |
| 276 |
Filename: "xds/annotations/v3/status.proto", |
| 277 |
}, |
| 278 |
{ |
| 279 |
ExtendedType: (*descriptorpb.FieldOptions)(nil), |
| 280 |
ExtensionType: (*FieldStatusAnnotation)(nil), |
| 281 |
Field: 226829418, |
| 282 |
Name: "xds.annotations.v3.field_status", |
| 283 |
Tag: "bytes,226829418,opt,name=field_status", |
| 284 |
Filename: "xds/annotations/v3/status.proto", |
| 285 |
}, |
| 286 |
} |
| 287 |
|
| 288 |
|
| 289 |
var ( |
| 290 |
|
| 291 |
E_FileStatus = &file_xds_annotations_v3_status_proto_extTypes[0] |
| 292 |
) |
| 293 |
|
| 294 |
|
| 295 |
var ( |
| 296 |
|
| 297 |
E_MessageStatus = &file_xds_annotations_v3_status_proto_extTypes[1] |
| 298 |
) |
| 299 |
|
| 300 |
|
| 301 |
var ( |
| 302 |
|
| 303 |
E_FieldStatus = &file_xds_annotations_v3_status_proto_extTypes[2] |
| 304 |
) |
| 305 |
|
| 306 |
var File_xds_annotations_v3_status_proto protoreflect.FileDescriptor |
| 307 |
|
| 308 |
const file_xds_annotations_v3_status_proto_rawDesc = "" + |
| 309 |
"\n" + |
| 310 |
"\x1fxds/annotations/v3/status.proto\x12\x12xds.annotations.v3\x1a google/protobuf/descriptor.proto\"@\n" + |
| 311 |
"\x14FileStatusAnnotation\x12(\n" + |
| 312 |
"\x10work_in_progress\x18\x01 \x01(\bR\x0eworkInProgress\"C\n" + |
| 313 |
"\x17MessageStatusAnnotation\x12(\n" + |
| 314 |
"\x10work_in_progress\x18\x01 \x01(\bR\x0eworkInProgress\"A\n" + |
| 315 |
"\x15FieldStatusAnnotation\x12(\n" + |
| 316 |
"\x10work_in_progress\x18\x01 \x01(\bR\x0eworkInProgress\"\x9c\x01\n" + |
| 317 |
"\x10StatusAnnotation\x12(\n" + |
| 318 |
"\x10work_in_progress\x18\x01 \x01(\bR\x0eworkInProgress\x12^\n" + |
| 319 |
"\x16package_version_status\x18\x02 \x01(\x0e2(.xds.annotations.v3.PackageVersionStatusR\x14packageVersionStatus*]\n" + |
| 320 |
"\x14PackageVersionStatus\x12\v\n" + |
| 321 |
"\aUNKNOWN\x10\x00\x12\n" + |
| 322 |
"\n" + |
| 323 |
"\x06FROZEN\x10\x01\x12\n" + |
| 324 |
"\n" + |
| 325 |
"\x06ACTIVE\x10\x02\x12 \n" + |
| 326 |
"\x1cNEXT_MAJOR_VERSION_CANDIDATE\x10\x03:j\n" + |
| 327 |
"\vfile_status\x12\x1c.google.protobuf.FileOptions\x18\xeaȔl \x01(\v2(.xds.annotations.v3.FileStatusAnnotationR\n" + |
| 328 |
"fileStatus:v\n" + |
| 329 |
"\x0emessage_status\x12\x1f.google.protobuf.MessageOptions\x18\xeaȔl \x01(\v2+.xds.annotations.v3.MessageStatusAnnotationR\rmessageStatus:n\n" + |
| 330 |
"\ffield_status\x12\x1d.google.protobuf.FieldOptions\x18\xeaȔl \x01(\v2).xds.annotations.v3.FieldStatusAnnotationR\vfieldStatusB+Z)github.com/cncf/xds/go/xds/annotations/v3b\x06proto3" |
| 331 |
|
| 332 |
var ( |
| 333 |
file_xds_annotations_v3_status_proto_rawDescOnce sync.Once |
| 334 |
file_xds_annotations_v3_status_proto_rawDescData []byte |
| 335 |
) |
| 336 |
|
| 337 |
func file_xds_annotations_v3_status_proto_rawDescGZIP() []byte { |
| 338 |
file_xds_annotations_v3_status_proto_rawDescOnce.Do(func() { |
| 339 |
file_xds_annotations_v3_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_annotations_v3_status_proto_rawDesc), len(file_xds_annotations_v3_status_proto_rawDesc))) |
| 340 |
}) |
| 341 |
return file_xds_annotations_v3_status_proto_rawDescData |
| 342 |
} |
| 343 |
|
| 344 |
var file_xds_annotations_v3_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 345 |
var file_xds_annotations_v3_status_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 346 |
var file_xds_annotations_v3_status_proto_goTypes = []any{ |
| 347 |
(PackageVersionStatus)(0), |
| 348 |
(*FileStatusAnnotation)(nil), |
| 349 |
(*MessageStatusAnnotation)(nil), |
| 350 |
(*FieldStatusAnnotation)(nil), |
| 351 |
(*StatusAnnotation)(nil), |
| 352 |
(*descriptorpb.FileOptions)(nil), |
| 353 |
(*descriptorpb.MessageOptions)(nil), |
| 354 |
(*descriptorpb.FieldOptions)(nil), |
| 355 |
} |
| 356 |
var file_xds_annotations_v3_status_proto_depIdxs = []int32{ |
| 357 |
0, |
| 358 |
5, |
| 359 |
6, |
| 360 |
7, |
| 361 |
1, |
| 362 |
2, |
| 363 |
3, |
| 364 |
7, |
| 365 |
7, |
| 366 |
4, |
| 367 |
1, |
| 368 |
0, |
| 369 |
} |
| 370 |
|
| 371 |
func init() { file_xds_annotations_v3_status_proto_init() } |
| 372 |
func file_xds_annotations_v3_status_proto_init() { |
| 373 |
if File_xds_annotations_v3_status_proto != nil { |
| 374 |
return |
| 375 |
} |
| 376 |
type x struct{} |
| 377 |
out := protoimpl.TypeBuilder{ |
| 378 |
File: protoimpl.DescBuilder{ |
| 379 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 380 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_annotations_v3_status_proto_rawDesc), len(file_xds_annotations_v3_status_proto_rawDesc)), |
| 381 |
NumEnums: 1, |
| 382 |
NumMessages: 4, |
| 383 |
NumExtensions: 3, |
| 384 |
NumServices: 0, |
| 385 |
}, |
| 386 |
GoTypes: file_xds_annotations_v3_status_proto_goTypes, |
| 387 |
DependencyIndexes: file_xds_annotations_v3_status_proto_depIdxs, |
| 388 |
EnumInfos: file_xds_annotations_v3_status_proto_enumTypes, |
| 389 |
MessageInfos: file_xds_annotations_v3_status_proto_msgTypes, |
| 390 |
ExtensionInfos: file_xds_annotations_v3_status_proto_extTypes, |
| 391 |
}.Build() |
| 392 |
File_xds_annotations_v3_status_proto = out.File |
| 393 |
file_xds_annotations_v3_status_proto_goTypes = nil |
| 394 |
file_xds_annotations_v3_status_proto_depIdxs = nil |
| 395 |
} |