github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/config/core/v3/udp_socket_config.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/config/core/v3/udp_socket_config.proto 6 7 package envoy_config_core_v3 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 _ "github.com/envoyproxy/protoc-gen-validate/validate" 12 proto "github.com/golang/protobuf/proto" 13 wrappers "github.com/golang/protobuf/ptypes/wrappers" 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 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 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 // Generic UDP socket configuration. 32 type UdpSocketConfig struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 // The maximum size of received UDP datagrams. Using a larger size will cause Envoy to allocate 38 // more memory per socket. Received datagrams above this size will be dropped. If not set 39 // defaults to 1500 bytes. 40 MaxRxDatagramSize *wrappers.UInt64Value `protobuf:"bytes,1,opt,name=max_rx_datagram_size,json=maxRxDatagramSize,proto3" json:"max_rx_datagram_size,omitempty"` 41 // Configures whether Generic Receive Offload (GRO) 42 // <https://en.wikipedia.org/wiki/Large_receive_offload>_ is preferred when reading from the 43 // UDP socket. The default is context dependent and is documented where UdpSocketConfig is used. 44 // This option affects performance but not functionality. If GRO is not supported by the operating 45 // system, non-GRO receive will be used. 46 PreferGro *wrappers.BoolValue `protobuf:"bytes,2,opt,name=prefer_gro,json=preferGro,proto3" json:"prefer_gro,omitempty"` 47 } 48 49 func (x *UdpSocketConfig) Reset() { 50 *x = UdpSocketConfig{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_envoy_config_core_v3_udp_socket_config_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *UdpSocketConfig) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*UdpSocketConfig) ProtoMessage() {} 63 64 func (x *UdpSocketConfig) ProtoReflect() protoreflect.Message { 65 mi := &file_envoy_config_core_v3_udp_socket_config_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use UdpSocketConfig.ProtoReflect.Descriptor instead. 77 func (*UdpSocketConfig) Descriptor() ([]byte, []int) { 78 return file_envoy_config_core_v3_udp_socket_config_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *UdpSocketConfig) GetMaxRxDatagramSize() *wrappers.UInt64Value { 82 if x != nil { 83 return x.MaxRxDatagramSize 84 } 85 return nil 86 } 87 88 func (x *UdpSocketConfig) GetPreferGro() *wrappers.BoolValue { 89 if x != nil { 90 return x.PreferGro 91 } 92 return nil 93 } 94 95 var File_envoy_config_core_v3_udp_socket_config_proto protoreflect.FileDescriptor 96 97 var file_envoy_config_core_v3_udp_socket_config_proto_rawDesc = []byte{ 98 0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 99 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x75, 0x64, 0x70, 0x5f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 100 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 101 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 102 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 103 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 104 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 105 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 106 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 107 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 108 0x0f, 0x55, 0x64, 0x70, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 109 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x67, 110 0x72, 0x61, 0x6d, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 111 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 112 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0b, 0xfa, 0x42, 113 0x08, 0x32, 0x06, 0x10, 0x80, 0x80, 0x04, 0x20, 0x00, 0x52, 0x11, 0x6d, 0x61, 0x78, 0x52, 0x78, 114 0x44, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x39, 0x0a, 0x0a, 115 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 116 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 117 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x70, 0x72, 118 0x65, 0x66, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x42, 0x44, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 119 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 120 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x14, 0x55, 121 0x64, 0x70, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 122 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 123 0x72, 0x6f, 0x74, 0x6f, 0x33, 124 } 125 126 var ( 127 file_envoy_config_core_v3_udp_socket_config_proto_rawDescOnce sync.Once 128 file_envoy_config_core_v3_udp_socket_config_proto_rawDescData = file_envoy_config_core_v3_udp_socket_config_proto_rawDesc 129 ) 130 131 func file_envoy_config_core_v3_udp_socket_config_proto_rawDescGZIP() []byte { 132 file_envoy_config_core_v3_udp_socket_config_proto_rawDescOnce.Do(func() { 133 file_envoy_config_core_v3_udp_socket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_udp_socket_config_proto_rawDescData) 134 }) 135 return file_envoy_config_core_v3_udp_socket_config_proto_rawDescData 136 } 137 138 var file_envoy_config_core_v3_udp_socket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 139 var file_envoy_config_core_v3_udp_socket_config_proto_goTypes = []interface{}{ 140 (*UdpSocketConfig)(nil), // 0: envoy.config.core.v3.UdpSocketConfig 141 (*wrappers.UInt64Value)(nil), // 1: google.protobuf.UInt64Value 142 (*wrappers.BoolValue)(nil), // 2: google.protobuf.BoolValue 143 } 144 var file_envoy_config_core_v3_udp_socket_config_proto_depIdxs = []int32{ 145 1, // 0: envoy.config.core.v3.UdpSocketConfig.max_rx_datagram_size:type_name -> google.protobuf.UInt64Value 146 2, // 1: envoy.config.core.v3.UdpSocketConfig.prefer_gro:type_name -> google.protobuf.BoolValue 147 2, // [2:2] is the sub-list for method output_type 148 2, // [2:2] is the sub-list for method input_type 149 2, // [2:2] is the sub-list for extension type_name 150 2, // [2:2] is the sub-list for extension extendee 151 0, // [0:2] is the sub-list for field type_name 152 } 153 154 func init() { file_envoy_config_core_v3_udp_socket_config_proto_init() } 155 func file_envoy_config_core_v3_udp_socket_config_proto_init() { 156 if File_envoy_config_core_v3_udp_socket_config_proto != nil { 157 return 158 } 159 if !protoimpl.UnsafeEnabled { 160 file_envoy_config_core_v3_udp_socket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 161 switch v := v.(*UdpSocketConfig); i { 162 case 0: 163 return &v.state 164 case 1: 165 return &v.sizeCache 166 case 2: 167 return &v.unknownFields 168 default: 169 return nil 170 } 171 } 172 } 173 type x struct{} 174 out := protoimpl.TypeBuilder{ 175 File: protoimpl.DescBuilder{ 176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 177 RawDescriptor: file_envoy_config_core_v3_udp_socket_config_proto_rawDesc, 178 NumEnums: 0, 179 NumMessages: 1, 180 NumExtensions: 0, 181 NumServices: 0, 182 }, 183 GoTypes: file_envoy_config_core_v3_udp_socket_config_proto_goTypes, 184 DependencyIndexes: file_envoy_config_core_v3_udp_socket_config_proto_depIdxs, 185 MessageInfos: file_envoy_config_core_v3_udp_socket_config_proto_msgTypes, 186 }.Build() 187 File_envoy_config_core_v3_udp_socket_config_proto = out.File 188 file_envoy_config_core_v3_udp_socket_config_proto_rawDesc = nil 189 file_envoy_config_core_v3_udp_socket_config_proto_goTypes = nil 190 file_envoy_config_core_v3_udp_socket_config_proto_depIdxs = nil 191 }