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