github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/admin/v2alpha/listeners.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/admin/v2alpha/listeners.proto 6 7 package envoy_admin_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 core "github.com/hxx258456/ccgo/go-control-plane/envoy/api/v2/core" 12 proto "github.com/golang/protobuf/proto" 13 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 14 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 15 reflect "reflect" 16 sync "sync" 17 ) 18 19 const ( 20 // Verify that this generated code is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 22 // Verify that runtime/protoimpl is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 24 ) 25 26 // This is a compile-time assertion that a sufficiently up-to-date version 27 // of the legacy proto package is being used. 28 const _ = proto.ProtoPackageIsVersion4 29 30 // Admin endpoint uses this wrapper for `/listeners` to display listener status information. 31 // See :ref:`/listeners <operations_admin_interface_listeners>` for more information. 32 type Listeners struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // List of listener statuses. 38 ListenerStatuses []*ListenerStatus `protobuf:"bytes,1,rep,name=listener_statuses,json=listenerStatuses,proto3" json:"listener_statuses,omitempty"` 39 } 40 41 func (x *Listeners) Reset() { 42 *x = Listeners{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_envoy_admin_v2alpha_listeners_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *Listeners) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*Listeners) ProtoMessage() {} 55 56 func (x *Listeners) ProtoReflect() protoreflect.Message { 57 mi := &file_envoy_admin_v2alpha_listeners_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use Listeners.ProtoReflect.Descriptor instead. 69 func (*Listeners) Descriptor() ([]byte, []int) { 70 return file_envoy_admin_v2alpha_listeners_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *Listeners) GetListenerStatuses() []*ListenerStatus { 74 if x != nil { 75 return x.ListenerStatuses 76 } 77 return nil 78 } 79 80 // Details an individual listener's current status. 81 type ListenerStatus struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 // Name of the listener 87 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 88 // The actual local address that the listener is listening on. If a listener was configured 89 // to listen on port 0, then this address has the port that was allocated by the OS. 90 LocalAddress *core.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"` 91 } 92 93 func (x *ListenerStatus) Reset() { 94 *x = ListenerStatus{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_envoy_admin_v2alpha_listeners_proto_msgTypes[1] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *ListenerStatus) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*ListenerStatus) ProtoMessage() {} 107 108 func (x *ListenerStatus) ProtoReflect() protoreflect.Message { 109 mi := &file_envoy_admin_v2alpha_listeners_proto_msgTypes[1] 110 if protoimpl.UnsafeEnabled && x != nil { 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 if ms.LoadMessageInfo() == nil { 113 ms.StoreMessageInfo(mi) 114 } 115 return ms 116 } 117 return mi.MessageOf(x) 118 } 119 120 // Deprecated: Use ListenerStatus.ProtoReflect.Descriptor instead. 121 func (*ListenerStatus) Descriptor() ([]byte, []int) { 122 return file_envoy_admin_v2alpha_listeners_proto_rawDescGZIP(), []int{1} 123 } 124 125 func (x *ListenerStatus) GetName() string { 126 if x != nil { 127 return x.Name 128 } 129 return "" 130 } 131 132 func (x *ListenerStatus) GetLocalAddress() *core.Address { 133 if x != nil { 134 return x.LocalAddress 135 } 136 return nil 137 } 138 139 var File_envoy_admin_v2alpha_listeners_proto protoreflect.FileDescriptor 140 141 var file_envoy_admin_v2alpha_listeners_proto_rawDesc = []byte{ 142 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x32, 143 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73, 0x2e, 144 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 145 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 146 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x64, 147 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 148 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 149 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x09, 0x4c, 0x69, 150 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x50, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x65, 151 0x6e, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 152 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 153 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 154 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 155 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x22, 0x65, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 156 0x74, 0x65, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 157 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 158 0x3f, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 159 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 160 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 161 0x73, 0x73, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 162 0x42, 0x3d, 0x0a, 0x21, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 163 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 164 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x73, 165 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 166 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 167 } 168 169 var ( 170 file_envoy_admin_v2alpha_listeners_proto_rawDescOnce sync.Once 171 file_envoy_admin_v2alpha_listeners_proto_rawDescData = file_envoy_admin_v2alpha_listeners_proto_rawDesc 172 ) 173 174 func file_envoy_admin_v2alpha_listeners_proto_rawDescGZIP() []byte { 175 file_envoy_admin_v2alpha_listeners_proto_rawDescOnce.Do(func() { 176 file_envoy_admin_v2alpha_listeners_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_admin_v2alpha_listeners_proto_rawDescData) 177 }) 178 return file_envoy_admin_v2alpha_listeners_proto_rawDescData 179 } 180 181 var file_envoy_admin_v2alpha_listeners_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 182 var file_envoy_admin_v2alpha_listeners_proto_goTypes = []interface{}{ 183 (*Listeners)(nil), // 0: envoy.admin.v2alpha.Listeners 184 (*ListenerStatus)(nil), // 1: envoy.admin.v2alpha.ListenerStatus 185 (*core.Address)(nil), // 2: envoy.api.v2.core.Address 186 } 187 var file_envoy_admin_v2alpha_listeners_proto_depIdxs = []int32{ 188 1, // 0: envoy.admin.v2alpha.Listeners.listener_statuses:type_name -> envoy.admin.v2alpha.ListenerStatus 189 2, // 1: envoy.admin.v2alpha.ListenerStatus.local_address:type_name -> envoy.api.v2.core.Address 190 2, // [2:2] is the sub-list for method output_type 191 2, // [2:2] is the sub-list for method input_type 192 2, // [2:2] is the sub-list for extension type_name 193 2, // [2:2] is the sub-list for extension extendee 194 0, // [0:2] is the sub-list for field type_name 195 } 196 197 func init() { file_envoy_admin_v2alpha_listeners_proto_init() } 198 func file_envoy_admin_v2alpha_listeners_proto_init() { 199 if File_envoy_admin_v2alpha_listeners_proto != nil { 200 return 201 } 202 if !protoimpl.UnsafeEnabled { 203 file_envoy_admin_v2alpha_listeners_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 204 switch v := v.(*Listeners); i { 205 case 0: 206 return &v.state 207 case 1: 208 return &v.sizeCache 209 case 2: 210 return &v.unknownFields 211 default: 212 return nil 213 } 214 } 215 file_envoy_admin_v2alpha_listeners_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 216 switch v := v.(*ListenerStatus); i { 217 case 0: 218 return &v.state 219 case 1: 220 return &v.sizeCache 221 case 2: 222 return &v.unknownFields 223 default: 224 return nil 225 } 226 } 227 } 228 type x struct{} 229 out := protoimpl.TypeBuilder{ 230 File: protoimpl.DescBuilder{ 231 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 232 RawDescriptor: file_envoy_admin_v2alpha_listeners_proto_rawDesc, 233 NumEnums: 0, 234 NumMessages: 2, 235 NumExtensions: 0, 236 NumServices: 0, 237 }, 238 GoTypes: file_envoy_admin_v2alpha_listeners_proto_goTypes, 239 DependencyIndexes: file_envoy_admin_v2alpha_listeners_proto_depIdxs, 240 MessageInfos: file_envoy_admin_v2alpha_listeners_proto_msgTypes, 241 }.Build() 242 File_envoy_admin_v2alpha_listeners_proto = out.File 243 file_envoy_admin_v2alpha_listeners_proto_rawDesc = nil 244 file_envoy_admin_v2alpha_listeners_proto_goTypes = nil 245 file_envoy_admin_v2alpha_listeners_proto_depIdxs = nil 246 }