<commit_before>syntax = "proto3";

package envoy.api.v2;

import "google/protobuf/wrappers.proto";

import "validate/validate.proto";

// [#protodoc-title: Network addresses]
// [#v2-api-diff: Addresses now have .proto structure.]

message Pipe {
  // Unix Domain Socket path.
  string path = 1 [(validate.rules).string.min_bytes = 1];
}

message SocketAddress {
  enum Protocol {
    TCP = 0;
    // [#not-implemented-hide:]
    UDP = 1;
  }
  Protocol protocol = 1 [(validate.rules).enum = {in: [0]}];
  // The address for this socket. :ref:`Listeners <config_listeners>` will bind
  // to the address or outbound connections will be made. An empty address
  // implies a bind to 0.0.0.0 or ::. It's still possible to distinguish on an
  // address via the prefix/suffix matching in FilterChainMatch after connection.
  // For :ref:`clusters <config_cluster_manager_cluster>`, an address may be
  // either an IP or hostname to be resolved via DNS. If it is a hostname,
  // :ref:`resolver_name <envoy_api_field_SocketAddress.resolver_name>` should
  // be set unless default (i.e. DNS) resolution is expected.
  string address = 2;
  oneof port_specifier {
    option (validate.required) = true;
    uint32 port_value = 3;
    // This is only valid if :ref:`resolver_name<commit_msg>address: relax UDP constraint on SocketAddress. (#323)<commit_after>syntax = "proto3";

package envoy.api.v2;

import "google/protobuf/wrappers.proto";

import "validate/validate.proto";

// [#protodoc-title: Network addresses]
// [#v2-api-diff: Addresses now have .proto structure.]

message Pipe {
  // Unix Domain Socket path.
  string path = 1 [(validate.rules).string.min_bytes = 1];
}

message SocketAddress {
  enum Protocol {
    TCP = 0;
    // [#not-implemented-hide:]
    UDP = 1;
  }
  Protocol protocol = 1;
  // The address for this socket. :ref:`Listeners <config_listeners>` will bind
  // to the address or outbound connections will be made. An empty address
  // implies a bind to 0.0.0.0 or ::. It's still possible to distinguish on an
  // address via the prefix/suffix matching in FilterChainMatch after connection.
  // For :ref:`clusters <config_cluster_manager_cluster>`, an address may be
  // either an IP or hostname to be resolved via DNS. If it is a hostname,
  // :ref:`resolver_name <envoy_api_field_SocketAddress.resolver_name>` should
  // be set unless default (i.e. DNS) resolution is expected.
  string address = 2;
  oneof port_specifier {
    option (validate.required) = true;
    uint32 port_value = 3;
    // This is only valid if :ref:`resolver_name
{'fraction_non_alphanumeric': 0.11447419480015522, 'fraction_numerical': 0.013969732246798603, 'mean_word_length': 3.491289198606272, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3576583', 'n_tokens_mistral': 843, 'n_tokens_neox': 794, 'n_words': 276}