| 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/socket_option.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 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
) |
| 17 |
|
| 18 |
const ( |
| 19 |
// Verify that this generated code is sufficiently up-to-date. |
| 20 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 21 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 23 |
) |
| 24 |
|
| 25 |
type SocketOption_SocketState int32 |
| 26 |
|
| 27 |
const ( |
| 28 |
// Socket options are applied after socket creation but before binding the socket to a port |
| 29 |
SocketOption_STATE_PREBIND SocketOption_SocketState = 0 |
| 30 |
// Socket options are applied after binding the socket to a port but before calling listen() |
| 31 |
SocketOption_STATE_BOUND SocketOption_SocketState = 1 |
| 32 |
// Socket options are applied after calling listen() |
| 33 |
SocketOption_STATE_LISTENING SocketOption_SocketState = 2 |
| 34 |
) |
| 35 |
|
| 36 |
// Enum value maps for SocketOption_SocketState. |
| 37 |
var ( |
| 38 |
SocketOption_SocketState_name = map[int32]string{ |
| 39 |
0: "STATE_PREBIND", |
| 40 |
1: "STATE_BOUND", |
| 41 |
2: "STATE_LISTENING", |
| 42 |
} |
| 43 |
SocketOption_SocketState_value = map[string]int32{ |
| 44 |
"STATE_PREBIND": 0, |
| 45 |
"STATE_BOUND": 1, |
| 46 |
"STATE_LISTENING": 2, |
| 47 |
} |
| 48 |
) |
| 49 |
|
| 50 |
func (x SocketOption_SocketState) Enum() *SocketOption_SocketState { |
| 51 |
p := new(SocketOption_SocketState) |
| 52 |
*p = x |
| 53 |
return p |
| 54 |
} |
| 55 |
|
| 56 |
func (x SocketOption_SocketState) String() string { |
| 57 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 58 |
} |
| 59 |
|
| 60 |
func (SocketOption_SocketState) Descriptor() protoreflect.EnumDescriptor { |
| 61 |
return file_envoy_config_core_v3_socket_option_proto_enumTypes[0].Descriptor() |
| 62 |
} |
| 63 |
|
| 64 |
func (SocketOption_SocketState) Type() protoreflect.EnumType { |
| 65 |
return &file_envoy_config_core_v3_socket_option_proto_enumTypes[0] |
| 66 |
} |
| 67 |
|
| 68 |
func (x SocketOption_SocketState) Number() protoreflect.EnumNumber { |
| 69 |
return protoreflect.EnumNumber(x) |
| 70 |
} |
| 71 |
|
| 72 |
// Deprecated: Use SocketOption_SocketState.Descriptor instead. |
| 73 |
func (SocketOption_SocketState) EnumDescriptor() ([]byte, []int) { |
| 74 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{0, 0} |
| 75 |
} |
| 76 |
|
| 77 |
// Generic socket option message. This would be used to set socket options that |
| 78 |
// might not exist in upstream kernels or precompiled Envoy binaries. |
| 79 |
// |
| 80 |
// For example: |
| 81 |
// |
| 82 |
// .. code-block:: json |
| 83 |
// |
| 84 |
// { |
| 85 |
// "description": "support tcp keep alive", |
| 86 |
// "state": 0, |
| 87 |
// "level": 1, |
| 88 |
// "name": 9, |
| 89 |
// "int_value": 1, |
| 90 |
// } |
| 91 |
// |
| 92 |
// 1 means SOL_SOCKET and 9 means SO_KEEPALIVE on Linux. |
| 93 |
// With the above configuration, `TCP Keep-Alives <https://www.freesoft.org/CIE/RFC/1122/114.htm>`_ |
| 94 |
// can be enabled in socket with Linux, which can be used in |
| 95 |
// :ref:`listener's<envoy_v3_api_field_config.listener.v3.Listener.socket_options>` or |
| 96 |
// :ref:`admin's <envoy_v3_api_field_config.bootstrap.v3.Admin.socket_options>` socket_options etc. |
| 97 |
// |
| 98 |
// It should be noted that the name or level may have different values on different platforms. |
| 99 |
// [#next-free-field: 8] |
| 100 |
type SocketOption struct { |
| 101 |
state protoimpl.MessageState |
| 102 |
sizeCache protoimpl.SizeCache |
| 103 |
unknownFields protoimpl.UnknownFields |
| 104 |
|
| 105 |
// An optional name to give this socket option for debugging, etc. |
| 106 |
// Uniqueness is not required and no special meaning is assumed. |
| 107 |
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` |
| 108 |
// Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP |
| 109 |
Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` |
| 110 |
// The numeric name as passed to setsockopt |
| 111 |
Name int64 `protobuf:"varint,3,opt,name=name,proto3" json:"name,omitempty"` |
| 112 |
// Types that are assignable to Value: |
| 113 |
// |
| 114 |
// *SocketOption_IntValue |
| 115 |
// *SocketOption_BufValue |
| 116 |
Value isSocketOption_Value `protobuf_oneof:"value"` |
| 117 |
// The state in which the option will be applied. When used in BindConfig |
| 118 |
// STATE_PREBIND is currently the only valid value. |
| 119 |
State SocketOption_SocketState `protobuf:"varint,6,opt,name=state,proto3,enum=envoy.config.core.v3.SocketOption_SocketState" json:"state,omitempty"` |
| 120 |
// Apply the socket option to the specified `socket type <https://linux.die.net/man/2/socket>`_. |
| 121 |
// If not specified, the socket option will be applied to all socket types. |
| 122 |
Type *SocketOption_SocketType `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` |
| 123 |
} |
| 124 |
|
| 125 |
func (x *SocketOption) Reset() { |
| 126 |
*x = SocketOption{} |
| 127 |
if protoimpl.UnsafeEnabled { |
| 128 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[0] |
| 129 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 130 |
ms.StoreMessageInfo(mi) |
| 131 |
} |
| 132 |
} |
| 133 |
|
| 134 |
func (x *SocketOption) String() string { |
| 135 |
return protoimpl.X.MessageStringOf(x) |
| 136 |
} |
| 137 |
|
| 138 |
func (*SocketOption) ProtoMessage() {} |
| 139 |
|
| 140 |
func (x *SocketOption) ProtoReflect() protoreflect.Message { |
| 141 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[0] |
| 142 |
if protoimpl.UnsafeEnabled && x != nil { |
| 143 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 144 |
if ms.LoadMessageInfo() == nil { |
| 145 |
ms.StoreMessageInfo(mi) |
| 146 |
} |
| 147 |
return ms |
| 148 |
} |
| 149 |
return mi.MessageOf(x) |
| 150 |
} |
| 151 |
|
| 152 |
// Deprecated: Use SocketOption.ProtoReflect.Descriptor instead. |
| 153 |
func (*SocketOption) Descriptor() ([]byte, []int) { |
| 154 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{0} |
| 155 |
} |
| 156 |
|
| 157 |
func (x *SocketOption) GetDescription() string { |
| 158 |
if x != nil { |
| 159 |
return x.Description |
| 160 |
} |
| 161 |
return "" |
| 162 |
} |
| 163 |
|
| 164 |
func (x *SocketOption) GetLevel() int64 { |
| 165 |
if x != nil { |
| 166 |
return x.Level |
| 167 |
} |
| 168 |
return 0 |
| 169 |
} |
| 170 |
|
| 171 |
func (x *SocketOption) GetName() int64 { |
| 172 |
if x != nil { |
| 173 |
return x.Name |
| 174 |
} |
| 175 |
return 0 |
| 176 |
} |
| 177 |
|
| 178 |
func (m *SocketOption) GetValue() isSocketOption_Value { |
| 179 |
if m != nil { |
| 180 |
return m.Value |
| 181 |
} |
| 182 |
return nil |
| 183 |
} |
| 184 |
|
| 185 |
func (x *SocketOption) GetIntValue() int64 { |
| 186 |
if x, ok := x.GetValue().(*SocketOption_IntValue); ok { |
| 187 |
return x.IntValue |
| 188 |
} |
| 189 |
return 0 |
| 190 |
} |
| 191 |
|
| 192 |
func (x *SocketOption) GetBufValue() []byte { |
| 193 |
if x, ok := x.GetValue().(*SocketOption_BufValue); ok { |
| 194 |
return x.BufValue |
| 195 |
} |
| 196 |
return nil |
| 197 |
} |
| 198 |
|
| 199 |
func (x *SocketOption) GetState() SocketOption_SocketState { |
| 200 |
if x != nil { |
| 201 |
return x.State |
| 202 |
} |
| 203 |
return SocketOption_STATE_PREBIND |
| 204 |
} |
| 205 |
|
| 206 |
func (x *SocketOption) GetType() *SocketOption_SocketType { |
| 207 |
if x != nil { |
| 208 |
return x.Type |
| 209 |
} |
| 210 |
return nil |
| 211 |
} |
| 212 |
|
| 213 |
type isSocketOption_Value interface { |
| 214 |
isSocketOption_Value() |
| 215 |
} |
| 216 |
|
| 217 |
type SocketOption_IntValue struct { |
| 218 |
// Because many sockopts take an int value. |
| 219 |
IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"` |
| 220 |
} |
| 221 |
|
| 222 |
type SocketOption_BufValue struct { |
| 223 |
// Otherwise it's a byte buffer. |
| 224 |
BufValue []byte `protobuf:"bytes,5,opt,name=buf_value,json=bufValue,proto3,oneof"` |
| 225 |
} |
| 226 |
|
| 227 |
func (*SocketOption_IntValue) isSocketOption_Value() {} |
| 228 |
|
| 229 |
func (*SocketOption_BufValue) isSocketOption_Value() {} |
| 230 |
|
| 231 |
type SocketOptionsOverride struct { |
| 232 |
state protoimpl.MessageState |
| 233 |
sizeCache protoimpl.SizeCache |
| 234 |
unknownFields protoimpl.UnknownFields |
| 235 |
|
| 236 |
SocketOptions []*SocketOption `protobuf:"bytes,1,rep,name=socket_options,json=socketOptions,proto3" json:"socket_options,omitempty"` |
| 237 |
} |
| 238 |
|
| 239 |
func (x *SocketOptionsOverride) Reset() { |
| 240 |
*x = SocketOptionsOverride{} |
| 241 |
if protoimpl.UnsafeEnabled { |
| 242 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[1] |
| 243 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 244 |
ms.StoreMessageInfo(mi) |
| 245 |
} |
| 246 |
} |
| 247 |
|
| 248 |
func (x *SocketOptionsOverride) String() string { |
| 249 |
return protoimpl.X.MessageStringOf(x) |
| 250 |
} |
| 251 |
|
| 252 |
func (*SocketOptionsOverride) ProtoMessage() {} |
| 253 |
|
| 254 |
func (x *SocketOptionsOverride) ProtoReflect() protoreflect.Message { |
| 255 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[1] |
| 256 |
if protoimpl.UnsafeEnabled && x != nil { |
| 257 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 258 |
if ms.LoadMessageInfo() == nil { |
| 259 |
ms.StoreMessageInfo(mi) |
| 260 |
} |
| 261 |
return ms |
| 262 |
} |
| 263 |
return mi.MessageOf(x) |
| 264 |
} |
| 265 |
|
| 266 |
// Deprecated: Use SocketOptionsOverride.ProtoReflect.Descriptor instead. |
| 267 |
func (*SocketOptionsOverride) Descriptor() ([]byte, []int) { |
| 268 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{1} |
| 269 |
} |
| 270 |
|
| 271 |
func (x *SocketOptionsOverride) GetSocketOptions() []*SocketOption { |
| 272 |
if x != nil { |
| 273 |
return x.SocketOptions |
| 274 |
} |
| 275 |
return nil |
| 276 |
} |
| 277 |
|
| 278 |
// The `socket type <https://linux.die.net/man/2/socket>`_ to apply the socket option to. |
| 279 |
// Only one field should be set. If multiple fields are set, the precedence order will determine |
| 280 |
// the selected one. If none of the fields is set, the socket option will be applied to all socket types. |
| 281 |
// |
| 282 |
// For example: |
| 283 |
// If :ref:`stream <envoy_v3_api_field_config.core.v3.SocketOption.SocketType.stream>` is set, |
| 284 |
// it takes precedence over :ref:`datagram <envoy_v3_api_field_config.core.v3.SocketOption.SocketType.datagram>`. |
| 285 |
type SocketOption_SocketType struct { |
| 286 |
state protoimpl.MessageState |
| 287 |
sizeCache protoimpl.SizeCache |
| 288 |
unknownFields protoimpl.UnknownFields |
| 289 |
|
| 290 |
// Apply the socket option to the stream socket type. |
| 291 |
Stream *SocketOption_SocketType_Stream `protobuf:"bytes,1,opt,name=stream,proto3" json:"stream,omitempty"` |
| 292 |
// Apply the socket option to the datagram socket type. |
| 293 |
Datagram *SocketOption_SocketType_Datagram `protobuf:"bytes,2,opt,name=datagram,proto3" json:"datagram,omitempty"` |
| 294 |
} |
| 295 |
|
| 296 |
func (x *SocketOption_SocketType) Reset() { |
| 297 |
*x = SocketOption_SocketType{} |
| 298 |
if protoimpl.UnsafeEnabled { |
| 299 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[2] |
| 300 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 301 |
ms.StoreMessageInfo(mi) |
| 302 |
} |
| 303 |
} |
| 304 |
|
| 305 |
func (x *SocketOption_SocketType) String() string { |
| 306 |
return protoimpl.X.MessageStringOf(x) |
| 307 |
} |
| 308 |
|
| 309 |
func (*SocketOption_SocketType) ProtoMessage() {} |
| 310 |
|
| 311 |
func (x *SocketOption_SocketType) ProtoReflect() protoreflect.Message { |
| 312 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[2] |
| 313 |
if protoimpl.UnsafeEnabled && x != nil { |
| 314 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 315 |
if ms.LoadMessageInfo() == nil { |
| 316 |
ms.StoreMessageInfo(mi) |
| 317 |
} |
| 318 |
return ms |
| 319 |
} |
| 320 |
return mi.MessageOf(x) |
| 321 |
} |
| 322 |
|
| 323 |
// Deprecated: Use SocketOption_SocketType.ProtoReflect.Descriptor instead. |
| 324 |
func (*SocketOption_SocketType) Descriptor() ([]byte, []int) { |
| 325 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{0, 0} |
| 326 |
} |
| 327 |
|
| 328 |
func (x *SocketOption_SocketType) GetStream() *SocketOption_SocketType_Stream { |
| 329 |
if x != nil { |
| 330 |
return x.Stream |
| 331 |
} |
| 332 |
return nil |
| 333 |
} |
| 334 |
|
| 335 |
func (x *SocketOption_SocketType) GetDatagram() *SocketOption_SocketType_Datagram { |
| 336 |
if x != nil { |
| 337 |
return x.Datagram |
| 338 |
} |
| 339 |
return nil |
| 340 |
} |
| 341 |
|
| 342 |
// The stream socket type. |
| 343 |
type SocketOption_SocketType_Stream struct { |
| 344 |
state protoimpl.MessageState |
| 345 |
sizeCache protoimpl.SizeCache |
| 346 |
unknownFields protoimpl.UnknownFields |
| 347 |
} |
| 348 |
|
| 349 |
func (x *SocketOption_SocketType_Stream) Reset() { |
| 350 |
*x = SocketOption_SocketType_Stream{} |
| 351 |
if protoimpl.UnsafeEnabled { |
| 352 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[3] |
| 353 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 354 |
ms.StoreMessageInfo(mi) |
| 355 |
} |
| 356 |
} |
| 357 |
|
| 358 |
func (x *SocketOption_SocketType_Stream) String() string { |
| 359 |
return protoimpl.X.MessageStringOf(x) |
| 360 |
} |
| 361 |
|
| 362 |
func (*SocketOption_SocketType_Stream) ProtoMessage() {} |
| 363 |
|
| 364 |
func (x *SocketOption_SocketType_Stream) ProtoReflect() protoreflect.Message { |
| 365 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[3] |
| 366 |
if protoimpl.UnsafeEnabled && x != nil { |
| 367 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 368 |
if ms.LoadMessageInfo() == nil { |
| 369 |
ms.StoreMessageInfo(mi) |
| 370 |
} |
| 371 |
return ms |
| 372 |
} |
| 373 |
return mi.MessageOf(x) |
| 374 |
} |
| 375 |
|
| 376 |
// Deprecated: Use SocketOption_SocketType_Stream.ProtoReflect.Descriptor instead. |
| 377 |
func (*SocketOption_SocketType_Stream) Descriptor() ([]byte, []int) { |
| 378 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{0, 0, 0} |
| 379 |
} |
| 380 |
|
| 381 |
// The datagram socket type. |
| 382 |
type SocketOption_SocketType_Datagram struct { |
| 383 |
state protoimpl.MessageState |
| 384 |
sizeCache protoimpl.SizeCache |
| 385 |
unknownFields protoimpl.UnknownFields |
| 386 |
} |
| 387 |
|
| 388 |
func (x *SocketOption_SocketType_Datagram) Reset() { |
| 389 |
*x = SocketOption_SocketType_Datagram{} |
| 390 |
if protoimpl.UnsafeEnabled { |
| 391 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[4] |
| 392 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 393 |
ms.StoreMessageInfo(mi) |
| 394 |
} |
| 395 |
} |
| 396 |
|
| 397 |
func (x *SocketOption_SocketType_Datagram) String() string { |
| 398 |
return protoimpl.X.MessageStringOf(x) |
| 399 |
} |
| 400 |
|
| 401 |
func (*SocketOption_SocketType_Datagram) ProtoMessage() {} |
| 402 |
|
| 403 |
func (x *SocketOption_SocketType_Datagram) ProtoReflect() protoreflect.Message { |
| 404 |
mi := &file_envoy_config_core_v3_socket_option_proto_msgTypes[4] |
| 405 |
if protoimpl.UnsafeEnabled && x != nil { |
| 406 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 407 |
if ms.LoadMessageInfo() == nil { |
| 408 |
ms.StoreMessageInfo(mi) |
| 409 |
} |
| 410 |
return ms |
| 411 |
} |
| 412 |
return mi.MessageOf(x) |
| 413 |
} |
| 414 |
|
| 415 |
// Deprecated: Use SocketOption_SocketType_Datagram.ProtoReflect.Descriptor instead. |
| 416 |
func (*SocketOption_SocketType_Datagram) Descriptor() ([]byte, []int) { |
| 417 |
return file_envoy_config_core_v3_socket_option_proto_rawDescGZIP(), []int{0, 0, 1} |
| 418 |
} |
| 419 |
|
| 420 |
var File_envoy_config_core_v3_socket_option_proto protoreflect.FileDescriptor |
| 421 |
|
| 422 |
var file_envoy_config_core_v3_socket_option_proto_rawDesc = []byte{ |
| 423 |
0x0a, 0x28, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, |
| 424 |
0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6f, 0x70, |
| 425 |
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, |
| 426 |
0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, |
| 427 |
0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, |
| 428 |
0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 429 |
0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 430 |
0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, |
| 431 |
0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, |
| 432 |
0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x04, 0x0a, 0x0c, |
| 433 |
0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, |
| 434 |
0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 435 |
0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, |
| 436 |
0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, |
| 437 |
0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, |
| 438 |
0x28, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, |
| 439 |
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, |
| 440 |
0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x62, 0x75, 0x66, 0x5f, 0x76, |
| 441 |
0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x62, 0x75, |
| 442 |
0x66, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, |
| 443 |
0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, |
| 444 |
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6f, 0x63, |
| 445 |
0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, |
| 446 |
0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, |
| 447 |
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x41, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, |
| 448 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, |
| 449 |
0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6f, 0x63, 0x6b, |
| 450 |
0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, |
| 451 |
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0xc4, 0x01, 0x0a, 0x0a, 0x53, 0x6f, |
| 452 |
0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x65, |
| 453 |
0x61, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 454 |
0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, |
| 455 |
0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x63, |
| 456 |
0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x06, |
| 457 |
0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x52, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x67, 0x72, |
| 458 |
0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 459 |
0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, |
| 460 |
0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6f, 0x63, |
| 461 |
0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, |
| 462 |
0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x1a, 0x08, 0x0a, 0x06, 0x53, 0x74, |
| 463 |
0x72, 0x65, 0x61, 0x6d, 0x1a, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, |
| 464 |
0x22, 0x46, 0x0a, 0x0b, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, |
| 465 |
0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x42, 0x49, 0x4e, 0x44, |
| 466 |
0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x42, 0x4f, 0x55, 0x4e, |
| 467 |
0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x53, |
| 468 |
0x54, 0x45, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x3a, 0x25, 0x9a, 0xc5, 0x88, 0x1e, 0x20, 0x0a, |
| 469 |
0x1e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, |
| 470 |
0x72, 0x65, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, |
| 471 |
0x0c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x62, 0x0a, |
| 472 |
0x15, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4f, 0x76, |
| 473 |
0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x49, 0x0a, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, |
| 474 |
0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, |
| 475 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, |
| 476 |
0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, |
| 477 |
0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, |
| 478 |
0x73, 0x42, 0x85, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x22, 0x69, 0x6f, |
| 479 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 480 |
0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, |
| 481 |
0x42, 0x11, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, |
| 482 |
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, |
| 483 |
0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, |
| 484 |
0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, |
| 485 |
0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, |
| 486 |
0x76, 0x33, 0x3b, 0x63, 0x6f, 0x72, 0x65, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 487 |
0x33, |
| 488 |
} |
| 489 |
|
| 490 |
var ( |
| 491 |
file_envoy_config_core_v3_socket_option_proto_rawDescOnce sync.Once |
| 492 |
file_envoy_config_core_v3_socket_option_proto_rawDescData = file_envoy_config_core_v3_socket_option_proto_rawDesc |
| 493 |
) |
| 494 |
|
| 495 |
func file_envoy_config_core_v3_socket_option_proto_rawDescGZIP() []byte { |
| 496 |
file_envoy_config_core_v3_socket_option_proto_rawDescOnce.Do(func() { |
| 497 |
file_envoy_config_core_v3_socket_option_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_socket_option_proto_rawDescData) |
| 498 |
}) |
| 499 |
return file_envoy_config_core_v3_socket_option_proto_rawDescData |
| 500 |
} |
| 501 |
|
| 502 |
var file_envoy_config_core_v3_socket_option_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 503 |
var file_envoy_config_core_v3_socket_option_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 504 |
var file_envoy_config_core_v3_socket_option_proto_goTypes = []interface{}{ |
| 505 |
(SocketOption_SocketState)(0), // 0: envoy.config.core.v3.SocketOption.SocketState |
| 506 |
(*SocketOption)(nil), // 1: envoy.config.core.v3.SocketOption |
| 507 |
(*SocketOptionsOverride)(nil), // 2: envoy.config.core.v3.SocketOptionsOverride |
| 508 |
(*SocketOption_SocketType)(nil), // 3: envoy.config.core.v3.SocketOption.SocketType |
| 509 |
(*SocketOption_SocketType_Stream)(nil), // 4: envoy.config.core.v3.SocketOption.SocketType.Stream |
| 510 |
(*SocketOption_SocketType_Datagram)(nil), // 5: envoy.config.core.v3.SocketOption.SocketType.Datagram |
| 511 |
} |
| 512 |
var file_envoy_config_core_v3_socket_option_proto_depIdxs = []int32{ |
| 513 |
0, // 0: envoy.config.core.v3.SocketOption.state:type_name -> envoy.config.core.v3.SocketOption.SocketState |
| 514 |
3, // 1: envoy.config.core.v3.SocketOption.type:type_name -> envoy.config.core.v3.SocketOption.SocketType |
| 515 |
1, // 2: envoy.config.core.v3.SocketOptionsOverride.socket_options:type_name -> envoy.config.core.v3.SocketOption |
| 516 |
4, // 3: envoy.config.core.v3.SocketOption.SocketType.stream:type_name -> envoy.config.core.v3.SocketOption.SocketType.Stream |
| 517 |
5, // 4: envoy.config.core.v3.SocketOption.SocketType.datagram:type_name -> envoy.config.core.v3.SocketOption.SocketType.Datagram |
| 518 |
5, // [5:5] is the sub-list for method output_type |
| 519 |
5, // [5:5] is the sub-list for method input_type |
| 520 |
5, // [5:5] is the sub-list for extension type_name |
| 521 |
5, // [5:5] is the sub-list for extension extendee |
| 522 |
0, // [0:5] is the sub-list for field type_name |
| 523 |
} |
| 524 |
|
| 525 |
func init() { file_envoy_config_core_v3_socket_option_proto_init() } |
| 526 |
func file_envoy_config_core_v3_socket_option_proto_init() { |
| 527 |
if File_envoy_config_core_v3_socket_option_proto != nil { |
| 528 |
return |
| 529 |
} |
| 530 |
if !protoimpl.UnsafeEnabled { |
| 531 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 532 |
switch v := v.(*SocketOption); i { |
| 533 |
case 0: |
| 534 |
return &v.state |
| 535 |
case 1: |
| 536 |
return &v.sizeCache |
| 537 |
case 2: |
| 538 |
return &v.unknownFields |
| 539 |
default: |
| 540 |
return nil |
| 541 |
} |
| 542 |
} |
| 543 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 544 |
switch v := v.(*SocketOptionsOverride); i { |
| 545 |
case 0: |
| 546 |
return &v.state |
| 547 |
case 1: |
| 548 |
return &v.sizeCache |
| 549 |
case 2: |
| 550 |
return &v.unknownFields |
| 551 |
default: |
| 552 |
return nil |
| 553 |
} |
| 554 |
} |
| 555 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 556 |
switch v := v.(*SocketOption_SocketType); i { |
| 557 |
case 0: |
| 558 |
return &v.state |
| 559 |
case 1: |
| 560 |
return &v.sizeCache |
| 561 |
case 2: |
| 562 |
return &v.unknownFields |
| 563 |
default: |
| 564 |
return nil |
| 565 |
} |
| 566 |
} |
| 567 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 568 |
switch v := v.(*SocketOption_SocketType_Stream); i { |
| 569 |
case 0: |
| 570 |
return &v.state |
| 571 |
case 1: |
| 572 |
return &v.sizeCache |
| 573 |
case 2: |
| 574 |
return &v.unknownFields |
| 575 |
default: |
| 576 |
return nil |
| 577 |
} |
| 578 |
} |
| 579 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 580 |
switch v := v.(*SocketOption_SocketType_Datagram); i { |
| 581 |
case 0: |
| 582 |
return &v.state |
| 583 |
case 1: |
| 584 |
return &v.sizeCache |
| 585 |
case 2: |
| 586 |
return &v.unknownFields |
| 587 |
default: |
| 588 |
return nil |
| 589 |
} |
| 590 |
} |
| 591 |
} |
| 592 |
file_envoy_config_core_v3_socket_option_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 593 |
(*SocketOption_IntValue)(nil), |
| 594 |
(*SocketOption_BufValue)(nil), |
| 595 |
} |
| 596 |
type x struct{} |
| 597 |
out := protoimpl.TypeBuilder{ |
| 598 |
File: protoimpl.DescBuilder{ |
| 599 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 600 |
RawDescriptor: file_envoy_config_core_v3_socket_option_proto_rawDesc, |
| 601 |
NumEnums: 1, |
| 602 |
NumMessages: 5, |
| 603 |
NumExtensions: 0, |
| 604 |
NumServices: 0, |
| 605 |
}, |
| 606 |
GoTypes: file_envoy_config_core_v3_socket_option_proto_goTypes, |
| 607 |
DependencyIndexes: file_envoy_config_core_v3_socket_option_proto_depIdxs, |
| 608 |
EnumInfos: file_envoy_config_core_v3_socket_option_proto_enumTypes, |
| 609 |
MessageInfos: file_envoy_config_core_v3_socket_option_proto_msgTypes, |
| 610 |
}.Build() |
| 611 |
File_envoy_config_core_v3_socket_option_proto = out.File |
| 612 |
file_envoy_config_core_v3_socket_option_proto_rawDesc = nil |
| 613 |
file_envoy_config_core_v3_socket_option_proto_goTypes = nil |
| 614 |
file_envoy_config_core_v3_socket_option_proto_depIdxs = nil |
| 615 |
} |