go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/annotations.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/annotations.proto 6 7 package ligato 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 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type LigatoOptions_Type int32 25 26 const ( 27 LigatoOptions_UNSPECIFIED LigatoOptions_Type = 0 28 LigatoOptions_IP LigatoOptions_Type = 1 29 LigatoOptions_IPV4 LigatoOptions_Type = 2 30 LigatoOptions_IPV6 LigatoOptions_Type = 3 31 LigatoOptions_IP_WITH_MASK LigatoOptions_Type = 4 32 LigatoOptions_IPV4_WITH_MASK LigatoOptions_Type = 5 33 LigatoOptions_IPV6_WITH_MASK LigatoOptions_Type = 6 34 LigatoOptions_IP_OPTIONAL_MASK LigatoOptions_Type = 7 35 LigatoOptions_IPV4_OPTIONAL_MASK LigatoOptions_Type = 8 36 LigatoOptions_IPV6_OPTIONAL_MASK LigatoOptions_Type = 9 37 ) 38 39 // Enum value maps for LigatoOptions_Type. 40 var ( 41 LigatoOptions_Type_name = map[int32]string{ 42 0: "UNSPECIFIED", 43 1: "IP", 44 2: "IPV4", 45 3: "IPV6", 46 4: "IP_WITH_MASK", 47 5: "IPV4_WITH_MASK", 48 6: "IPV6_WITH_MASK", 49 7: "IP_OPTIONAL_MASK", 50 8: "IPV4_OPTIONAL_MASK", 51 9: "IPV6_OPTIONAL_MASK", 52 } 53 LigatoOptions_Type_value = map[string]int32{ 54 "UNSPECIFIED": 0, 55 "IP": 1, 56 "IPV4": 2, 57 "IPV6": 3, 58 "IP_WITH_MASK": 4, 59 "IPV4_WITH_MASK": 5, 60 "IPV6_WITH_MASK": 6, 61 "IP_OPTIONAL_MASK": 7, 62 "IPV4_OPTIONAL_MASK": 8, 63 "IPV6_OPTIONAL_MASK": 9, 64 } 65 ) 66 67 func (x LigatoOptions_Type) Enum() *LigatoOptions_Type { 68 p := new(LigatoOptions_Type) 69 *p = x 70 return p 71 } 72 73 func (x LigatoOptions_Type) String() string { 74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 75 } 76 77 func (LigatoOptions_Type) Descriptor() protoreflect.EnumDescriptor { 78 return file_ligato_annotations_proto_enumTypes[0].Descriptor() 79 } 80 81 func (LigatoOptions_Type) Type() protoreflect.EnumType { 82 return &file_ligato_annotations_proto_enumTypes[0] 83 } 84 85 func (x LigatoOptions_Type) Number() protoreflect.EnumNumber { 86 return protoreflect.EnumNumber(x) 87 } 88 89 // Deprecated: Use LigatoOptions_Type.Descriptor instead. 90 func (LigatoOptions_Type) EnumDescriptor() ([]byte, []int) { 91 return file_ligato_annotations_proto_rawDescGZIP(), []int{0, 0} 92 } 93 94 type LigatoOptions struct { 95 state protoimpl.MessageState 96 sizeCache protoimpl.SizeCache 97 unknownFields protoimpl.UnknownFields 98 99 Type LigatoOptions_Type `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.LigatoOptions_Type" json:"type,omitempty"` 100 IntRange *LigatoOptions_IntRange `protobuf:"bytes,2,opt,name=int_range,json=intRange,proto3" json:"int_range,omitempty"` 101 } 102 103 func (x *LigatoOptions) Reset() { 104 *x = LigatoOptions{} 105 if protoimpl.UnsafeEnabled { 106 mi := &file_ligato_annotations_proto_msgTypes[0] 107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 108 ms.StoreMessageInfo(mi) 109 } 110 } 111 112 func (x *LigatoOptions) String() string { 113 return protoimpl.X.MessageStringOf(x) 114 } 115 116 func (*LigatoOptions) ProtoMessage() {} 117 118 func (x *LigatoOptions) ProtoReflect() protoreflect.Message { 119 mi := &file_ligato_annotations_proto_msgTypes[0] 120 if protoimpl.UnsafeEnabled && x != nil { 121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 122 if ms.LoadMessageInfo() == nil { 123 ms.StoreMessageInfo(mi) 124 } 125 return ms 126 } 127 return mi.MessageOf(x) 128 } 129 130 // Deprecated: Use LigatoOptions.ProtoReflect.Descriptor instead. 131 func (*LigatoOptions) Descriptor() ([]byte, []int) { 132 return file_ligato_annotations_proto_rawDescGZIP(), []int{0} 133 } 134 135 func (x *LigatoOptions) GetType() LigatoOptions_Type { 136 if x != nil { 137 return x.Type 138 } 139 return LigatoOptions_UNSPECIFIED 140 } 141 142 func (x *LigatoOptions) GetIntRange() *LigatoOptions_IntRange { 143 if x != nil { 144 return x.IntRange 145 } 146 return nil 147 } 148 149 type LigatoOptions_IntRange struct { 150 state protoimpl.MessageState 151 sizeCache protoimpl.SizeCache 152 unknownFields protoimpl.UnknownFields 153 154 Minimum int64 `protobuf:"varint,1,opt,name=minimum,proto3" json:"minimum,omitempty"` 155 Maximum uint64 `protobuf:"varint,2,opt,name=maximum,proto3" json:"maximum,omitempty"` 156 } 157 158 func (x *LigatoOptions_IntRange) Reset() { 159 *x = LigatoOptions_IntRange{} 160 if protoimpl.UnsafeEnabled { 161 mi := &file_ligato_annotations_proto_msgTypes[1] 162 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 163 ms.StoreMessageInfo(mi) 164 } 165 } 166 167 func (x *LigatoOptions_IntRange) String() string { 168 return protoimpl.X.MessageStringOf(x) 169 } 170 171 func (*LigatoOptions_IntRange) ProtoMessage() {} 172 173 func (x *LigatoOptions_IntRange) ProtoReflect() protoreflect.Message { 174 mi := &file_ligato_annotations_proto_msgTypes[1] 175 if protoimpl.UnsafeEnabled && x != nil { 176 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 177 if ms.LoadMessageInfo() == nil { 178 ms.StoreMessageInfo(mi) 179 } 180 return ms 181 } 182 return mi.MessageOf(x) 183 } 184 185 // Deprecated: Use LigatoOptions_IntRange.ProtoReflect.Descriptor instead. 186 func (*LigatoOptions_IntRange) Descriptor() ([]byte, []int) { 187 return file_ligato_annotations_proto_rawDescGZIP(), []int{0, 0} 188 } 189 190 func (x *LigatoOptions_IntRange) GetMinimum() int64 { 191 if x != nil { 192 return x.Minimum 193 } 194 return 0 195 } 196 197 func (x *LigatoOptions_IntRange) GetMaximum() uint64 { 198 if x != nil { 199 return x.Maximum 200 } 201 return 0 202 } 203 204 var file_ligato_annotations_proto_extTypes = []protoimpl.ExtensionInfo{ 205 { 206 ExtendedType: (*descriptorpb.FieldOptions)(nil), 207 ExtensionType: (*LigatoOptions)(nil), 208 Field: 2000, 209 Name: "ligato.ligato_options", 210 Tag: "bytes,2000,opt,name=ligato_options", 211 Filename: "ligato/annotations.proto", 212 }, 213 } 214 215 // Extension fields to descriptorpb.FieldOptions. 216 var ( 217 // NOTE: used option field index(2000) is in extension index range of descriptor.proto, but is not registered 218 // in protobuf global extension registry (https://github.com/protocolbuffers/protobuf/blob/master/docs/options.md) 219 // 220 // optional ligato.LigatoOptions ligato_options = 2000; 221 E_LigatoOptions = &file_ligato_annotations_proto_extTypes[0] 222 ) 223 224 var File_ligato_annotations_proto protoreflect.FileDescriptor 225 226 var file_ligato_annotations_proto_rawDesc = []byte{ 227 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 228 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6c, 0x69, 0x67, 0x61, 229 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 230 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 231 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x02, 0x0a, 0x0d, 0x4c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x4f, 232 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 233 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 234 0x67, 0x61, 0x74, 0x6f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x79, 0x70, 0x65, 235 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x61, 236 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 237 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 238 0x2e, 0x49, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x52, 0x61, 239 0x6e, 0x67, 0x65, 0x1a, 0x3e, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 240 0x18, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 241 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, 242 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x69, 243 0x6d, 0x75, 0x6d, 0x22, 0xb3, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 244 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 245 0x02, 0x49, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x02, 0x12, 246 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x50, 0x5f, 247 0x57, 0x49, 0x54, 0x48, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x49, 248 0x50, 0x56, 0x34, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x05, 0x12, 249 0x12, 0x0a, 0x0e, 0x49, 0x50, 0x56, 0x36, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x4d, 0x41, 0x53, 250 0x4b, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x50, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 251 0x41, 0x4c, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x07, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x50, 0x56, 252 0x34, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 253 0x08, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x50, 0x56, 0x36, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 254 0x41, 0x4c, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x10, 0x09, 0x3a, 0x5c, 0x0a, 0x0e, 0x6c, 0x69, 0x67, 255 0x61, 0x74, 0x6f, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 256 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 257 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xd0, 0x0f, 0x20, 0x01, 0x28, 258 0x0b, 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x4c, 0x69, 0x67, 0x61, 0x74, 259 0x6f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 260 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x28, 0x5a, 0x26, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 261 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 262 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 263 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 264 } 265 266 var ( 267 file_ligato_annotations_proto_rawDescOnce sync.Once 268 file_ligato_annotations_proto_rawDescData = file_ligato_annotations_proto_rawDesc 269 ) 270 271 func file_ligato_annotations_proto_rawDescGZIP() []byte { 272 file_ligato_annotations_proto_rawDescOnce.Do(func() { 273 file_ligato_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_annotations_proto_rawDescData) 274 }) 275 return file_ligato_annotations_proto_rawDescData 276 } 277 278 var file_ligato_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 279 var file_ligato_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 280 var file_ligato_annotations_proto_goTypes = []interface{}{ 281 (LigatoOptions_Type)(0), // 0: ligato.LigatoOptions.Type 282 (*LigatoOptions)(nil), // 1: ligato.LigatoOptions 283 (*LigatoOptions_IntRange)(nil), // 2: ligato.LigatoOptions.IntRange 284 (*descriptorpb.FieldOptions)(nil), // 3: google.protobuf.FieldOptions 285 } 286 var file_ligato_annotations_proto_depIdxs = []int32{ 287 0, // 0: ligato.LigatoOptions.type:type_name -> ligato.LigatoOptions.Type 288 2, // 1: ligato.LigatoOptions.int_range:type_name -> ligato.LigatoOptions.IntRange 289 3, // 2: ligato.ligato_options:extendee -> google.protobuf.FieldOptions 290 1, // 3: ligato.ligato_options:type_name -> ligato.LigatoOptions 291 4, // [4:4] is the sub-list for method output_type 292 4, // [4:4] is the sub-list for method input_type 293 3, // [3:4] is the sub-list for extension type_name 294 2, // [2:3] is the sub-list for extension extendee 295 0, // [0:2] is the sub-list for field type_name 296 } 297 298 func init() { file_ligato_annotations_proto_init() } 299 func file_ligato_annotations_proto_init() { 300 if File_ligato_annotations_proto != nil { 301 return 302 } 303 if !protoimpl.UnsafeEnabled { 304 file_ligato_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 305 switch v := v.(*LigatoOptions); i { 306 case 0: 307 return &v.state 308 case 1: 309 return &v.sizeCache 310 case 2: 311 return &v.unknownFields 312 default: 313 return nil 314 } 315 } 316 file_ligato_annotations_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 317 switch v := v.(*LigatoOptions_IntRange); i { 318 case 0: 319 return &v.state 320 case 1: 321 return &v.sizeCache 322 case 2: 323 return &v.unknownFields 324 default: 325 return nil 326 } 327 } 328 } 329 type x struct{} 330 out := protoimpl.TypeBuilder{ 331 File: protoimpl.DescBuilder{ 332 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 333 RawDescriptor: file_ligato_annotations_proto_rawDesc, 334 NumEnums: 1, 335 NumMessages: 2, 336 NumExtensions: 1, 337 NumServices: 0, 338 }, 339 GoTypes: file_ligato_annotations_proto_goTypes, 340 DependencyIndexes: file_ligato_annotations_proto_depIdxs, 341 EnumInfos: file_ligato_annotations_proto_enumTypes, 342 MessageInfos: file_ligato_annotations_proto_msgTypes, 343 ExtensionInfos: file_ligato_annotations_proto_extTypes, 344 }.Build() 345 File_ligato_annotations_proto = out.File 346 file_ligato_annotations_proto_rawDesc = nil 347 file_ligato_annotations_proto_goTypes = nil 348 file_ligato_annotations_proto_depIdxs = nil 349 }