...

Source file src/github.com/linkerd/linkerd2/controller/gen/common/net/net.pb.go

Documentation: github.com/linkerd/linkerd2/controller/gen/common/net

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.20.0
     5  // source: common/net.proto
     6  
     7  package net
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type IPAddress struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	// Types that are assignable to Ip:
    29  	//
    30  	//	*IPAddress_Ipv4
    31  	//	*IPAddress_Ipv6
    32  	Ip isIPAddress_Ip `protobuf_oneof:"ip"`
    33  }
    34  
    35  func (x *IPAddress) Reset() {
    36  	*x = IPAddress{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_common_net_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *IPAddress) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*IPAddress) ProtoMessage() {}
    49  
    50  func (x *IPAddress) ProtoReflect() protoreflect.Message {
    51  	mi := &file_common_net_proto_msgTypes[0]
    52  	if protoimpl.UnsafeEnabled && x != nil {
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		if ms.LoadMessageInfo() == nil {
    55  			ms.StoreMessageInfo(mi)
    56  		}
    57  		return ms
    58  	}
    59  	return mi.MessageOf(x)
    60  }
    61  
    62  // Deprecated: Use IPAddress.ProtoReflect.Descriptor instead.
    63  func (*IPAddress) Descriptor() ([]byte, []int) {
    64  	return file_common_net_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (m *IPAddress) GetIp() isIPAddress_Ip {
    68  	if m != nil {
    69  		return m.Ip
    70  	}
    71  	return nil
    72  }
    73  
    74  func (x *IPAddress) GetIpv4() uint32 {
    75  	if x, ok := x.GetIp().(*IPAddress_Ipv4); ok {
    76  		return x.Ipv4
    77  	}
    78  	return 0
    79  }
    80  
    81  func (x *IPAddress) GetIpv6() *IPv6 {
    82  	if x, ok := x.GetIp().(*IPAddress_Ipv6); ok {
    83  		return x.Ipv6
    84  	}
    85  	return nil
    86  }
    87  
    88  type isIPAddress_Ip interface {
    89  	isIPAddress_Ip()
    90  }
    91  
    92  type IPAddress_Ipv4 struct {
    93  	Ipv4 uint32 `protobuf:"fixed32,1,opt,name=ipv4,proto3,oneof"`
    94  }
    95  
    96  type IPAddress_Ipv6 struct {
    97  	Ipv6 *IPv6 `protobuf:"bytes,2,opt,name=ipv6,proto3,oneof"`
    98  }
    99  
   100  func (*IPAddress_Ipv4) isIPAddress_Ip() {}
   101  
   102  func (*IPAddress_Ipv6) isIPAddress_Ip() {}
   103  
   104  type IPv6 struct {
   105  	state         protoimpl.MessageState
   106  	sizeCache     protoimpl.SizeCache
   107  	unknownFields protoimpl.UnknownFields
   108  
   109  	First uint64 `protobuf:"fixed64,1,opt,name=first,proto3" json:"first,omitempty"` // hextets 1-4
   110  	Last  uint64 `protobuf:"fixed64,2,opt,name=last,proto3" json:"last,omitempty"`   // hextets 5-8
   111  }
   112  
   113  func (x *IPv6) Reset() {
   114  	*x = IPv6{}
   115  	if protoimpl.UnsafeEnabled {
   116  		mi := &file_common_net_proto_msgTypes[1]
   117  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   118  		ms.StoreMessageInfo(mi)
   119  	}
   120  }
   121  
   122  func (x *IPv6) String() string {
   123  	return protoimpl.X.MessageStringOf(x)
   124  }
   125  
   126  func (*IPv6) ProtoMessage() {}
   127  
   128  func (x *IPv6) ProtoReflect() protoreflect.Message {
   129  	mi := &file_common_net_proto_msgTypes[1]
   130  	if protoimpl.UnsafeEnabled && x != nil {
   131  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   132  		if ms.LoadMessageInfo() == nil {
   133  			ms.StoreMessageInfo(mi)
   134  		}
   135  		return ms
   136  	}
   137  	return mi.MessageOf(x)
   138  }
   139  
   140  // Deprecated: Use IPv6.ProtoReflect.Descriptor instead.
   141  func (*IPv6) Descriptor() ([]byte, []int) {
   142  	return file_common_net_proto_rawDescGZIP(), []int{1}
   143  }
   144  
   145  func (x *IPv6) GetFirst() uint64 {
   146  	if x != nil {
   147  		return x.First
   148  	}
   149  	return 0
   150  }
   151  
   152  func (x *IPv6) GetLast() uint64 {
   153  	if x != nil {
   154  		return x.Last
   155  	}
   156  	return 0
   157  }
   158  
   159  type TcpAddress struct {
   160  	state         protoimpl.MessageState
   161  	sizeCache     protoimpl.SizeCache
   162  	unknownFields protoimpl.UnknownFields
   163  
   164  	Ip   *IPAddress `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
   165  	Port uint32     `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
   166  }
   167  
   168  func (x *TcpAddress) Reset() {
   169  	*x = TcpAddress{}
   170  	if protoimpl.UnsafeEnabled {
   171  		mi := &file_common_net_proto_msgTypes[2]
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		ms.StoreMessageInfo(mi)
   174  	}
   175  }
   176  
   177  func (x *TcpAddress) String() string {
   178  	return protoimpl.X.MessageStringOf(x)
   179  }
   180  
   181  func (*TcpAddress) ProtoMessage() {}
   182  
   183  func (x *TcpAddress) ProtoReflect() protoreflect.Message {
   184  	mi := &file_common_net_proto_msgTypes[2]
   185  	if protoimpl.UnsafeEnabled && x != nil {
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		if ms.LoadMessageInfo() == nil {
   188  			ms.StoreMessageInfo(mi)
   189  		}
   190  		return ms
   191  	}
   192  	return mi.MessageOf(x)
   193  }
   194  
   195  // Deprecated: Use TcpAddress.ProtoReflect.Descriptor instead.
   196  func (*TcpAddress) Descriptor() ([]byte, []int) {
   197  	return file_common_net_proto_rawDescGZIP(), []int{2}
   198  }
   199  
   200  func (x *TcpAddress) GetIp() *IPAddress {
   201  	if x != nil {
   202  		return x.Ip
   203  	}
   204  	return nil
   205  }
   206  
   207  func (x *TcpAddress) GetPort() uint32 {
   208  	if x != nil {
   209  		return x.Port
   210  	}
   211  	return 0
   212  }
   213  
   214  var File_common_net_proto protoreflect.FileDescriptor
   215  
   216  var file_common_net_proto_rawDesc = []byte{
   217  	0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
   218  	0x74, 0x6f, 0x12, 0x13, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x32, 0x2e, 0x63, 0x6f, 0x6d,
   219  	0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x22, 0x58, 0x0a, 0x09, 0x49, 0x50, 0x41, 0x64, 0x64,
   220  	0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x69, 0x70, 0x76, 0x34, 0x18, 0x01, 0x20, 0x01,
   221  	0x28, 0x07, 0x48, 0x00, 0x52, 0x04, 0x69, 0x70, 0x76, 0x34, 0x12, 0x2f, 0x0a, 0x04, 0x69, 0x70,
   222  	0x76, 0x36, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65,
   223  	0x72, 0x64, 0x32, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49,
   224  	0x50, 0x76, 0x36, 0x48, 0x00, 0x52, 0x04, 0x69, 0x70, 0x76, 0x36, 0x42, 0x04, 0x0a, 0x02, 0x69,
   225  	0x70, 0x22, 0x30, 0x0a, 0x04, 0x49, 0x50, 0x76, 0x36, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x72,
   226  	0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12,
   227  	0x12, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x6c,
   228  	0x61, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x0a, 0x54, 0x63, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
   229  	0x73, 0x12, 0x2e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
   230  	0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x32, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
   231  	0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x02, 0x69,
   232  	0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
   233  	0x04, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   234  	0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x72, 0x64, 0x2f, 0x6c, 0x69, 0x6e, 0x6b,
   235  	0x65, 0x72, 0x64, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f,
   236  	0x67, 0x65, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x62, 0x06,
   237  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   238  }
   239  
   240  var (
   241  	file_common_net_proto_rawDescOnce sync.Once
   242  	file_common_net_proto_rawDescData = file_common_net_proto_rawDesc
   243  )
   244  
   245  func file_common_net_proto_rawDescGZIP() []byte {
   246  	file_common_net_proto_rawDescOnce.Do(func() {
   247  		file_common_net_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_proto_rawDescData)
   248  	})
   249  	return file_common_net_proto_rawDescData
   250  }
   251  
   252  var file_common_net_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   253  var file_common_net_proto_goTypes = []interface{}{
   254  	(*IPAddress)(nil),  // 0: linkerd2.common.net.IPAddress
   255  	(*IPv6)(nil),       // 1: linkerd2.common.net.IPv6
   256  	(*TcpAddress)(nil), // 2: linkerd2.common.net.TcpAddress
   257  }
   258  var file_common_net_proto_depIdxs = []int32{
   259  	1, // 0: linkerd2.common.net.IPAddress.ipv6:type_name -> linkerd2.common.net.IPv6
   260  	0, // 1: linkerd2.common.net.TcpAddress.ip:type_name -> linkerd2.common.net.IPAddress
   261  	2, // [2:2] is the sub-list for method output_type
   262  	2, // [2:2] is the sub-list for method input_type
   263  	2, // [2:2] is the sub-list for extension type_name
   264  	2, // [2:2] is the sub-list for extension extendee
   265  	0, // [0:2] is the sub-list for field type_name
   266  }
   267  
   268  func init() { file_common_net_proto_init() }
   269  func file_common_net_proto_init() {
   270  	if File_common_net_proto != nil {
   271  		return
   272  	}
   273  	if !protoimpl.UnsafeEnabled {
   274  		file_common_net_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   275  			switch v := v.(*IPAddress); i {
   276  			case 0:
   277  				return &v.state
   278  			case 1:
   279  				return &v.sizeCache
   280  			case 2:
   281  				return &v.unknownFields
   282  			default:
   283  				return nil
   284  			}
   285  		}
   286  		file_common_net_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   287  			switch v := v.(*IPv6); i {
   288  			case 0:
   289  				return &v.state
   290  			case 1:
   291  				return &v.sizeCache
   292  			case 2:
   293  				return &v.unknownFields
   294  			default:
   295  				return nil
   296  			}
   297  		}
   298  		file_common_net_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   299  			switch v := v.(*TcpAddress); i {
   300  			case 0:
   301  				return &v.state
   302  			case 1:
   303  				return &v.sizeCache
   304  			case 2:
   305  				return &v.unknownFields
   306  			default:
   307  				return nil
   308  			}
   309  		}
   310  	}
   311  	file_common_net_proto_msgTypes[0].OneofWrappers = []interface{}{
   312  		(*IPAddress_Ipv4)(nil),
   313  		(*IPAddress_Ipv6)(nil),
   314  	}
   315  	type x struct{}
   316  	out := protoimpl.TypeBuilder{
   317  		File: protoimpl.DescBuilder{
   318  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   319  			RawDescriptor: file_common_net_proto_rawDesc,
   320  			NumEnums:      0,
   321  			NumMessages:   3,
   322  			NumExtensions: 0,
   323  			NumServices:   0,
   324  		},
   325  		GoTypes:           file_common_net_proto_goTypes,
   326  		DependencyIndexes: file_common_net_proto_depIdxs,
   327  		MessageInfos:      file_common_net_proto_msgTypes,
   328  	}.Build()
   329  	File_common_net_proto = out.File
   330  	file_common_net_proto_rawDesc = nil
   331  	file_common_net_proto_goTypes = nil
   332  	file_common_net_proto_depIdxs = nil
   333  }
   334  

View as plain text