Debian Codegraph @

go/xds/core/v3/cidr.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.10
4 // protoc v5.29.3
5 // source: xds/core/v3/cidr.proto
6
7 package v3
8
9 import (
10 _ "github.com/cncf/xds/go/xds/annotations/v3"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
15 reflect "reflect"
16 sync "sync"
17 unsafe "unsafe"
18 )
19
20 const (
21 // Verify that this generated code is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
23 // Verify that runtime/protoimpl is sufficiently up-to-date.
24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
25 )
26
27 type CidrRange struct {
28 state protoimpl.MessageState `protogen:"open.v1"`
29 AddressPrefix string `protobuf:"bytes,1,opt,name=address_prefix,json=addressPrefix,proto3" json:"address_prefix,omitempty"`
30 PrefixLen *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"`
31 unknownFields protoimpl.UnknownFields
32 sizeCache protoimpl.SizeCache
33 }
34
35 func (x *CidrRange) Reset() {
36 *x = CidrRange{}
37 mi := &file_xds_core_v3_cidr_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41
42 func (x *CidrRange) String() string {
43 return protoimpl.X.MessageStringOf(x)
44 }
45
46 func (*CidrRange) ProtoMessage() {}
47
48 func (x *CidrRange) ProtoReflect() protoreflect.Message {
49 mi := &file_xds_core_v3_cidr_proto_msgTypes[0]
50 if x != nil {
51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52 if ms.LoadMessageInfo() == nil {
53 ms.StoreMessageInfo(mi)
54 }
55 return ms
56 }
57 return mi.MessageOf(x)
58 }
59
60 // Deprecated: Use CidrRange.ProtoReflect.Descriptor instead.
61 func (*CidrRange) Descriptor() ([]byte, []int) {
62 return file_xds_core_v3_cidr_proto_rawDescGZIP(), []int{0}
63 }
64
65 func (x *CidrRange) GetAddressPrefix() string {
66 if x != nil {
67 return x.AddressPrefix
68 }
69 return ""
70 }
71
72 func (x *CidrRange) GetPrefixLen() *wrapperspb.UInt32Value {
73 if x != nil {
74 return x.PrefixLen
75 }
76 return nil
77 }
78
79 var File_xds_core_v3_cidr_proto protoreflect.FileDescriptor
80
81 const file_xds_core_v3_cidr_proto_rawDesc = "" +
82 "\n" +
83 "\x16xds/core/v3/cidr.proto\x12\vxds.core.v3\x1a\x1fxds/annotations/v3/status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\"\x82\x01\n" +
84 "\tCidrRange\x12.\n" +
85 "\x0eaddress_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\raddressPrefix\x12E\n" +
86 "\n" +
87 "prefix_len\x18\x02 \x01(\v2\x1c.google.protobuf.UInt32ValueB\b\xfaB\x05*\x03\x18\x80\x01R\tprefixLenBN\n" +
88 "\x16com.github.xds.core.v3B\x0eCidrRangeProtoP\x01Z\"github.com/cncf/xds/go/xds/core/v3b\x06proto3"
89
90 var (
91 file_xds_core_v3_cidr_proto_rawDescOnce sync.Once
92 file_xds_core_v3_cidr_proto_rawDescData []byte
93 )
94
95 func file_xds_core_v3_cidr_proto_rawDescGZIP() []byte {
96 file_xds_core_v3_cidr_proto_rawDescOnce.Do(func() {
97 file_xds_core_v3_cidr_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_core_v3_cidr_proto_rawDesc), len(file_xds_core_v3_cidr_proto_rawDesc)))
98 })
99 return file_xds_core_v3_cidr_proto_rawDescData
100 }
101
102 var file_xds_core_v3_cidr_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
103 var file_xds_core_v3_cidr_proto_goTypes = []any{
104 (*CidrRange)(nil), // 0: xds.core.v3.CidrRange
105 (*wrapperspb.UInt32Value)(nil), // 1: google.protobuf.UInt32Value
106 }
107 var file_xds_core_v3_cidr_proto_depIdxs = []int32{
108 1, // 0: xds.core.v3.CidrRange.prefix_len:type_name -> google.protobuf.UInt32Value
109 1, // [1:1] is the sub-list for method output_type
110 1, // [1:1] is the sub-list for method input_type
111 1, // [1:1] is the sub-list for extension type_name
112 1, // [1:1] is the sub-list for extension extendee
113 0, // [0:1] is the sub-list for field type_name
114 }
115
116 func init() { file_xds_core_v3_cidr_proto_init() }
117 func file_xds_core_v3_cidr_proto_init() {
118 if File_xds_core_v3_cidr_proto != nil {
119 return
120 }
121 type x struct{}
122 out := protoimpl.TypeBuilder{
123 File: protoimpl.DescBuilder{
124 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
125 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_core_v3_cidr_proto_rawDesc), len(file_xds_core_v3_cidr_proto_rawDesc)),
126 NumEnums: 0,
127 NumMessages: 1,
128 NumExtensions: 0,
129 NumServices: 0,
130 },
131 GoTypes: file_xds_core_v3_cidr_proto_goTypes,
132 DependencyIndexes: file_xds_core_v3_cidr_proto_depIdxs,
133 MessageInfos: file_xds_core_v3_cidr_proto_msgTypes,
134 }.Build()
135 File_xds_core_v3_cidr_proto = out.File
136 file_xds_core_v3_cidr_proto_goTypes = nil
137 file_xds_core_v3_cidr_proto_depIdxs = nil
138 }