go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/linux/namespace/namespace.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.17.3
     5  // source: ligato/linux/namespace/namespace.proto
     6  
     7  package linux_namespace
     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 NetNamespace_ReferenceType int32
    24  
    25  const (
    26  	NetNamespace_UNDEFINED    NetNamespace_ReferenceType = 0
    27  	NetNamespace_NSID         NetNamespace_ReferenceType = 1 // named namespace
    28  	NetNamespace_PID          NetNamespace_ReferenceType = 2 // namespace of a given process
    29  	NetNamespace_FD           NetNamespace_ReferenceType = 3 // namespace referenced by a file handle
    30  	NetNamespace_MICROSERVICE NetNamespace_ReferenceType = 4 // namespace of a docker container running given microservice
    31  )
    32  
    33  // Enum value maps for NetNamespace_ReferenceType.
    34  var (
    35  	NetNamespace_ReferenceType_name = map[int32]string{
    36  		0: "UNDEFINED",
    37  		1: "NSID",
    38  		2: "PID",
    39  		3: "FD",
    40  		4: "MICROSERVICE",
    41  	}
    42  	NetNamespace_ReferenceType_value = map[string]int32{
    43  		"UNDEFINED":    0,
    44  		"NSID":         1,
    45  		"PID":          2,
    46  		"FD":           3,
    47  		"MICROSERVICE": 4,
    48  	}
    49  )
    50  
    51  func (x NetNamespace_ReferenceType) Enum() *NetNamespace_ReferenceType {
    52  	p := new(NetNamespace_ReferenceType)
    53  	*p = x
    54  	return p
    55  }
    56  
    57  func (x NetNamespace_ReferenceType) String() string {
    58  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    59  }
    60  
    61  func (NetNamespace_ReferenceType) Descriptor() protoreflect.EnumDescriptor {
    62  	return file_ligato_linux_namespace_namespace_proto_enumTypes[0].Descriptor()
    63  }
    64  
    65  func (NetNamespace_ReferenceType) Type() protoreflect.EnumType {
    66  	return &file_ligato_linux_namespace_namespace_proto_enumTypes[0]
    67  }
    68  
    69  func (x NetNamespace_ReferenceType) Number() protoreflect.EnumNumber {
    70  	return protoreflect.EnumNumber(x)
    71  }
    72  
    73  // Deprecated: Use NetNamespace_ReferenceType.Descriptor instead.
    74  func (NetNamespace_ReferenceType) EnumDescriptor() ([]byte, []int) {
    75  	return file_ligato_linux_namespace_namespace_proto_rawDescGZIP(), []int{0, 0}
    76  }
    77  
    78  type NetNamespace struct {
    79  	state         protoimpl.MessageState
    80  	sizeCache     protoimpl.SizeCache
    81  	unknownFields protoimpl.UnknownFields
    82  
    83  	Type NetNamespace_ReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=ligato.linux.namespace.NetNamespace_ReferenceType" json:"type,omitempty"`
    84  	// Reference defines reference specific
    85  	// to the namespace type:
    86  	//  * namespace ID (NSID)
    87  	//  * PID number (PID)
    88  	//  * file path (FD)
    89  	//  * microservice label (MICROSERVICE)
    90  	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
    91  }
    92  
    93  func (x *NetNamespace) Reset() {
    94  	*x = NetNamespace{}
    95  	if protoimpl.UnsafeEnabled {
    96  		mi := &file_ligato_linux_namespace_namespace_proto_msgTypes[0]
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		ms.StoreMessageInfo(mi)
    99  	}
   100  }
   101  
   102  func (x *NetNamespace) String() string {
   103  	return protoimpl.X.MessageStringOf(x)
   104  }
   105  
   106  func (*NetNamespace) ProtoMessage() {}
   107  
   108  func (x *NetNamespace) ProtoReflect() protoreflect.Message {
   109  	mi := &file_ligato_linux_namespace_namespace_proto_msgTypes[0]
   110  	if protoimpl.UnsafeEnabled && x != nil {
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		if ms.LoadMessageInfo() == nil {
   113  			ms.StoreMessageInfo(mi)
   114  		}
   115  		return ms
   116  	}
   117  	return mi.MessageOf(x)
   118  }
   119  
   120  // Deprecated: Use NetNamespace.ProtoReflect.Descriptor instead.
   121  func (*NetNamespace) Descriptor() ([]byte, []int) {
   122  	return file_ligato_linux_namespace_namespace_proto_rawDescGZIP(), []int{0}
   123  }
   124  
   125  func (x *NetNamespace) GetType() NetNamespace_ReferenceType {
   126  	if x != nil {
   127  		return x.Type
   128  	}
   129  	return NetNamespace_UNDEFINED
   130  }
   131  
   132  func (x *NetNamespace) GetReference() string {
   133  	if x != nil {
   134  		return x.Reference
   135  	}
   136  	return ""
   137  }
   138  
   139  var File_ligato_linux_namespace_namespace_proto protoreflect.FileDescriptor
   140  
   141  var file_ligato_linux_namespace_namespace_proto_rawDesc = []byte{
   142  	0x0a, 0x26, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6e,
   143  	0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
   144  	0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f,
   145  	0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
   146  	0x22, 0xc1, 0x01, 0x0a, 0x0c, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
   147  	0x65, 0x12, 0x46, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
   148  	0x32, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6e,
   149  	0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x4e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65,
   150  	0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54,
   151  	0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x66,
   152  	0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65,
   153  	0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x4b, 0x0a, 0x0d, 0x52, 0x65, 0x66, 0x65, 0x72,
   154  	0x65, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45,
   155  	0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x53, 0x49, 0x44, 0x10,
   156  	0x01, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x49, 0x44, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x46, 0x44,
   157  	0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x52, 0x56, 0x49,
   158  	0x43, 0x45, 0x10, 0x04, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74,
   159  	0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76,
   160  	0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x6c,
   161  	0x69, 0x6e, 0x75, 0x78, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x3b, 0x6c,
   162  	0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x62, 0x06,
   163  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   164  }
   165  
   166  var (
   167  	file_ligato_linux_namespace_namespace_proto_rawDescOnce sync.Once
   168  	file_ligato_linux_namespace_namespace_proto_rawDescData = file_ligato_linux_namespace_namespace_proto_rawDesc
   169  )
   170  
   171  func file_ligato_linux_namespace_namespace_proto_rawDescGZIP() []byte {
   172  	file_ligato_linux_namespace_namespace_proto_rawDescOnce.Do(func() {
   173  		file_ligato_linux_namespace_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_linux_namespace_namespace_proto_rawDescData)
   174  	})
   175  	return file_ligato_linux_namespace_namespace_proto_rawDescData
   176  }
   177  
   178  var file_ligato_linux_namespace_namespace_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   179  var file_ligato_linux_namespace_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   180  var file_ligato_linux_namespace_namespace_proto_goTypes = []interface{}{
   181  	(NetNamespace_ReferenceType)(0), // 0: ligato.linux.namespace.NetNamespace.ReferenceType
   182  	(*NetNamespace)(nil),            // 1: ligato.linux.namespace.NetNamespace
   183  }
   184  var file_ligato_linux_namespace_namespace_proto_depIdxs = []int32{
   185  	0, // 0: ligato.linux.namespace.NetNamespace.type:type_name -> ligato.linux.namespace.NetNamespace.ReferenceType
   186  	1, // [1:1] is the sub-list for method output_type
   187  	1, // [1:1] is the sub-list for method input_type
   188  	1, // [1:1] is the sub-list for extension type_name
   189  	1, // [1:1] is the sub-list for extension extendee
   190  	0, // [0:1] is the sub-list for field type_name
   191  }
   192  
   193  func init() { file_ligato_linux_namespace_namespace_proto_init() }
   194  func file_ligato_linux_namespace_namespace_proto_init() {
   195  	if File_ligato_linux_namespace_namespace_proto != nil {
   196  		return
   197  	}
   198  	if !protoimpl.UnsafeEnabled {
   199  		file_ligato_linux_namespace_namespace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   200  			switch v := v.(*NetNamespace); i {
   201  			case 0:
   202  				return &v.state
   203  			case 1:
   204  				return &v.sizeCache
   205  			case 2:
   206  				return &v.unknownFields
   207  			default:
   208  				return nil
   209  			}
   210  		}
   211  	}
   212  	type x struct{}
   213  	out := protoimpl.TypeBuilder{
   214  		File: protoimpl.DescBuilder{
   215  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   216  			RawDescriptor: file_ligato_linux_namespace_namespace_proto_rawDesc,
   217  			NumEnums:      1,
   218  			NumMessages:   1,
   219  			NumExtensions: 0,
   220  			NumServices:   0,
   221  		},
   222  		GoTypes:           file_ligato_linux_namespace_namespace_proto_goTypes,
   223  		DependencyIndexes: file_ligato_linux_namespace_namespace_proto_depIdxs,
   224  		EnumInfos:         file_ligato_linux_namespace_namespace_proto_enumTypes,
   225  		MessageInfos:      file_ligato_linux_namespace_namespace_proto_msgTypes,
   226  	}.Build()
   227  	File_ligato_linux_namespace_namespace_proto = out.File
   228  	file_ligato_linux_namespace_namespace_proto_rawDesc = nil
   229  	file_ligato_linux_namespace_namespace_proto_goTypes = nil
   230  	file_ligato_linux_namespace_namespace_proto_depIdxs = nil
   231  }