| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package annotations |
| 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_udpa_annotations_status_proto_enumTypes[0].Descriptor() |
| 62 |
} |
| 63 |
|
| 64 |
func (PackageVersionStatus) Type() protoreflect.EnumType { |
| 65 |
return &file_udpa_annotations_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_udpa_annotations_status_proto_rawDescGZIP(), []int{0} |
| 75 |
} |
| 76 |
|
| 77 |
type StatusAnnotation 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 |
PackageVersionStatus PackageVersionStatus `protobuf:"varint,2,opt,name=package_version_status,json=packageVersionStatus,proto3,enum=udpa.annotations.PackageVersionStatus" json:"package_version_status,omitempty"` |
| 81 |
unknownFields protoimpl.UnknownFields |
| 82 |
sizeCache protoimpl.SizeCache |
| 83 |
} |
| 84 |
|
| 85 |
func (x *StatusAnnotation) Reset() { |
| 86 |
*x = StatusAnnotation{} |
| 87 |
mi := &file_udpa_annotations_status_proto_msgTypes[0] |
| 88 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 89 |
ms.StoreMessageInfo(mi) |
| 90 |
} |
| 91 |
|
| 92 |
func (x *StatusAnnotation) String() string { |
| 93 |
return protoimpl.X.MessageStringOf(x) |
| 94 |
} |
| 95 |
|
| 96 |
func (*StatusAnnotation) ProtoMessage() {} |
| 97 |
|
| 98 |
func (x *StatusAnnotation) ProtoReflect() protoreflect.Message { |
| 99 |
mi := &file_udpa_annotations_status_proto_msgTypes[0] |
| 100 |
if x != nil { |
| 101 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 102 |
if ms.LoadMessageInfo() == nil { |
| 103 |
ms.StoreMessageInfo(mi) |
| 104 |
} |
| 105 |
return ms |
| 106 |
} |
| 107 |
return mi.MessageOf(x) |
| 108 |
} |
| 109 |
|
| 110 |
|
| 111 |
func (*StatusAnnotation) Descriptor() ([]byte, []int) { |
| 112 |
return file_udpa_annotations_status_proto_rawDescGZIP(), []int{0} |
| 113 |
} |
| 114 |
|
| 115 |
func (x *StatusAnnotation) GetWorkInProgress() bool { |
| 116 |
if x != nil { |
| 117 |
return x.WorkInProgress |
| 118 |
} |
| 119 |
return false |
| 120 |
} |
| 121 |
|
| 122 |
func (x *StatusAnnotation) GetPackageVersionStatus() PackageVersionStatus { |
| 123 |
if x != nil { |
| 124 |
return x.PackageVersionStatus |
| 125 |
} |
| 126 |
return PackageVersionStatus_UNKNOWN |
| 127 |
} |
| 128 |
|
| 129 |
var file_udpa_annotations_status_proto_extTypes = []protoimpl.ExtensionInfo{ |
| 130 |
{ |
| 131 |
ExtendedType: (*descriptorpb.FileOptions)(nil), |
| 132 |
ExtensionType: (*StatusAnnotation)(nil), |
| 133 |
Field: 222707719, |
| 134 |
Name: "udpa.annotations.file_status", |
| 135 |
Tag: "bytes,222707719,opt,name=file_status", |
| 136 |
Filename: "udpa/annotations/status.proto", |
| 137 |
}, |
| 138 |
} |
| 139 |
|
| 140 |
|
| 141 |
var ( |
| 142 |
|
| 143 |
E_FileStatus = &file_udpa_annotations_status_proto_extTypes[0] |
| 144 |
) |
| 145 |
|
| 146 |
var File_udpa_annotations_status_proto protoreflect.FileDescriptor |
| 147 |
|
| 148 |
const file_udpa_annotations_status_proto_rawDesc = "" + |
| 149 |
"\n" + |
| 150 |
"\x1dudpa/annotations/status.proto\x12\x10udpa.annotations\x1a google/protobuf/descriptor.proto\"\x9a\x01\n" + |
| 151 |
"\x10StatusAnnotation\x12(\n" + |
| 152 |
"\x10work_in_progress\x18\x01 \x01(\bR\x0eworkInProgress\x12\\\n" + |
| 153 |
"\x16package_version_status\x18\x02 \x01(\x0e2&.udpa.annotations.PackageVersionStatusR\x14packageVersionStatus*]\n" + |
| 154 |
"\x14PackageVersionStatus\x12\v\n" + |
| 155 |
"\aUNKNOWN\x10\x00\x12\n" + |
| 156 |
"\n" + |
| 157 |
"\x06FROZEN\x10\x01\x12\n" + |
| 158 |
"\n" + |
| 159 |
"\x06ACTIVE\x10\x02\x12 \n" + |
| 160 |
"\x1cNEXT_MAJOR_VERSION_CANDIDATE\x10\x03:d\n" + |
| 161 |
"\vfile_status\x12\x1c.google.protobuf.FileOptions\x18\x87\x80\x99j \x01(\v2\".udpa.annotations.StatusAnnotationR\n" + |
| 162 |
"fileStatusB)Z'github.com/cncf/xds/go/udpa/annotationsb\x06proto3" |
| 163 |
|
| 164 |
var ( |
| 165 |
file_udpa_annotations_status_proto_rawDescOnce sync.Once |
| 166 |
file_udpa_annotations_status_proto_rawDescData []byte |
| 167 |
) |
| 168 |
|
| 169 |
func file_udpa_annotations_status_proto_rawDescGZIP() []byte { |
| 170 |
file_udpa_annotations_status_proto_rawDescOnce.Do(func() { |
| 171 |
file_udpa_annotations_status_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_udpa_annotations_status_proto_rawDesc), len(file_udpa_annotations_status_proto_rawDesc))) |
| 172 |
}) |
| 173 |
return file_udpa_annotations_status_proto_rawDescData |
| 174 |
} |
| 175 |
|
| 176 |
var file_udpa_annotations_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 177 |
var file_udpa_annotations_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 178 |
var file_udpa_annotations_status_proto_goTypes = []any{ |
| 179 |
(PackageVersionStatus)(0), |
| 180 |
(*StatusAnnotation)(nil), |
| 181 |
(*descriptorpb.FileOptions)(nil), |
| 182 |
} |
| 183 |
var file_udpa_annotations_status_proto_depIdxs = []int32{ |
| 184 |
0, |
| 185 |
2, |
| 186 |
1, |
| 187 |
3, |
| 188 |
3, |
| 189 |
2, |
| 190 |
1, |
| 191 |
0, |
| 192 |
} |
| 193 |
|
| 194 |
func init() { file_udpa_annotations_status_proto_init() } |
| 195 |
func file_udpa_annotations_status_proto_init() { |
| 196 |
if File_udpa_annotations_status_proto != nil { |
| 197 |
return |
| 198 |
} |
| 199 |
type x struct{} |
| 200 |
out := protoimpl.TypeBuilder{ |
| 201 |
File: protoimpl.DescBuilder{ |
| 202 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 203 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_udpa_annotations_status_proto_rawDesc), len(file_udpa_annotations_status_proto_rawDesc)), |
| 204 |
NumEnums: 1, |
| 205 |
NumMessages: 1, |
| 206 |
NumExtensions: 1, |
| 207 |
NumServices: 0, |
| 208 |
}, |
| 209 |
GoTypes: file_udpa_annotations_status_proto_goTypes, |
| 210 |
DependencyIndexes: file_udpa_annotations_status_proto_depIdxs, |
| 211 |
EnumInfos: file_udpa_annotations_status_proto_enumTypes, |
| 212 |
MessageInfos: file_udpa_annotations_status_proto_msgTypes, |
| 213 |
ExtensionInfos: file_udpa_annotations_status_proto_extTypes, |
| 214 |
}.Build() |
| 215 |
File_udpa_annotations_status_proto = out.File |
| 216 |
file_udpa_annotations_status_proto_goTypes = nil |
| 217 |
file_udpa_annotations_status_proto_depIdxs = nil |
| 218 |
} |