go.ligato.io/vpp-agent/v3@v3.5.0/examples/kvscheduler/mock_plugins/ifplugin/model/interface.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: model/interface.proto
     6  
     7  package mock_interfaces
     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 Interface_Type int32
    24  
    25  const (
    26  	Interface_UNDEFINED_TYPE Interface_Type = 0
    27  	Interface_LOOPBACK       Interface_Type = 1
    28  	Interface_TAP            Interface_Type = 2
    29  )
    30  
    31  // Enum value maps for Interface_Type.
    32  var (
    33  	Interface_Type_name = map[int32]string{
    34  		0: "UNDEFINED_TYPE",
    35  		1: "LOOPBACK",
    36  		2: "TAP",
    37  	}
    38  	Interface_Type_value = map[string]int32{
    39  		"UNDEFINED_TYPE": 0,
    40  		"LOOPBACK":       1,
    41  		"TAP":            2,
    42  	}
    43  )
    44  
    45  func (x Interface_Type) Enum() *Interface_Type {
    46  	p := new(Interface_Type)
    47  	*p = x
    48  	return p
    49  }
    50  
    51  func (x Interface_Type) String() string {
    52  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    53  }
    54  
    55  func (Interface_Type) Descriptor() protoreflect.EnumDescriptor {
    56  	return file_model_interface_proto_enumTypes[0].Descriptor()
    57  }
    58  
    59  func (Interface_Type) Type() protoreflect.EnumType {
    60  	return &file_model_interface_proto_enumTypes[0]
    61  }
    62  
    63  func (x Interface_Type) Number() protoreflect.EnumNumber {
    64  	return protoreflect.EnumNumber(x)
    65  }
    66  
    67  // Deprecated: Use Interface_Type.Descriptor instead.
    68  func (Interface_Type) EnumDescriptor() ([]byte, []int) {
    69  	return file_model_interface_proto_rawDescGZIP(), []int{0, 0}
    70  }
    71  
    72  type Interface struct {
    73  	state         protoimpl.MessageState
    74  	sizeCache     protoimpl.SizeCache
    75  	unknownFields protoimpl.UnknownFields
    76  
    77  	Name        string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                      // interface name (in our simplified example used as both logical and host name)
    78  	Type        Interface_Type `protobuf:"varint,2,opt,name=type,proto3,enum=mock.interfaces.Interface_Type" json:"type,omitempty"` // interface type
    79  	Enabled     bool           `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`                               // interface admin status (UP/DOWN)
    80  	PhysAddress string         `protobuf:"bytes,4,opt,name=phys_address,json=physAddress,proto3" json:"phys_address,omitempty"`     // interface MAC address
    81  }
    82  
    83  func (x *Interface) Reset() {
    84  	*x = Interface{}
    85  	if protoimpl.UnsafeEnabled {
    86  		mi := &file_model_interface_proto_msgTypes[0]
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		ms.StoreMessageInfo(mi)
    89  	}
    90  }
    91  
    92  func (x *Interface) String() string {
    93  	return protoimpl.X.MessageStringOf(x)
    94  }
    95  
    96  func (*Interface) ProtoMessage() {}
    97  
    98  func (x *Interface) ProtoReflect() protoreflect.Message {
    99  	mi := &file_model_interface_proto_msgTypes[0]
   100  	if protoimpl.UnsafeEnabled && x != nil {
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		if ms.LoadMessageInfo() == nil {
   103  			ms.StoreMessageInfo(mi)
   104  		}
   105  		return ms
   106  	}
   107  	return mi.MessageOf(x)
   108  }
   109  
   110  // Deprecated: Use Interface.ProtoReflect.Descriptor instead.
   111  func (*Interface) Descriptor() ([]byte, []int) {
   112  	return file_model_interface_proto_rawDescGZIP(), []int{0}
   113  }
   114  
   115  func (x *Interface) GetName() string {
   116  	if x != nil {
   117  		return x.Name
   118  	}
   119  	return ""
   120  }
   121  
   122  func (x *Interface) GetType() Interface_Type {
   123  	if x != nil {
   124  		return x.Type
   125  	}
   126  	return Interface_UNDEFINED_TYPE
   127  }
   128  
   129  func (x *Interface) GetEnabled() bool {
   130  	if x != nil {
   131  		return x.Enabled
   132  	}
   133  	return false
   134  }
   135  
   136  func (x *Interface) GetPhysAddress() string {
   137  	if x != nil {
   138  		return x.PhysAddress
   139  	}
   140  	return ""
   141  }
   142  
   143  var File_model_interface_proto protoreflect.FileDescriptor
   144  
   145  var file_model_interface_proto_rawDesc = []byte{
   146  	0x0a, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
   147  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6d, 0x6f, 0x63, 0x6b, 0x2e, 0x69, 0x6e,
   148  	0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0xc4, 0x01, 0x0a, 0x09, 0x49, 0x6e, 0x74,
   149  	0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
   150  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79,
   151  	0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6d, 0x6f, 0x63, 0x6b, 0x2e,
   152  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72,
   153  	0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
   154  	0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
   155  	0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x79,
   156  	0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
   157  	0x0b, 0x70, 0x68, 0x79, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x31, 0x0a, 0x04,
   158  	0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45,
   159  	0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x4f, 0x4f, 0x50,
   160  	0x42, 0x41, 0x43, 0x4b, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x50, 0x10, 0x02, 0x42,
   161  	0x5c, 0x5a, 0x5a, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f,
   162  	0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x61,
   163  	0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x6b, 0x76, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
   164  	0x72, 0x2f, 0x6d, 0x6f, 0x63, 0x6b, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x69,
   165  	0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3b, 0x6d, 0x6f,
   166  	0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70,
   167  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_model_interface_proto_rawDescOnce sync.Once
   172  	file_model_interface_proto_rawDescData = file_model_interface_proto_rawDesc
   173  )
   174  
   175  func file_model_interface_proto_rawDescGZIP() []byte {
   176  	file_model_interface_proto_rawDescOnce.Do(func() {
   177  		file_model_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_model_interface_proto_rawDescData)
   178  	})
   179  	return file_model_interface_proto_rawDescData
   180  }
   181  
   182  var file_model_interface_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   183  var file_model_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   184  var file_model_interface_proto_goTypes = []interface{}{
   185  	(Interface_Type)(0), // 0: mock.interfaces.Interface.Type
   186  	(*Interface)(nil),   // 1: mock.interfaces.Interface
   187  }
   188  var file_model_interface_proto_depIdxs = []int32{
   189  	0, // 0: mock.interfaces.Interface.type:type_name -> mock.interfaces.Interface.Type
   190  	1, // [1:1] is the sub-list for method output_type
   191  	1, // [1:1] is the sub-list for method input_type
   192  	1, // [1:1] is the sub-list for extension type_name
   193  	1, // [1:1] is the sub-list for extension extendee
   194  	0, // [0:1] is the sub-list for field type_name
   195  }
   196  
   197  func init() { file_model_interface_proto_init() }
   198  func file_model_interface_proto_init() {
   199  	if File_model_interface_proto != nil {
   200  		return
   201  	}
   202  	if !protoimpl.UnsafeEnabled {
   203  		file_model_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   204  			switch v := v.(*Interface); i {
   205  			case 0:
   206  				return &v.state
   207  			case 1:
   208  				return &v.sizeCache
   209  			case 2:
   210  				return &v.unknownFields
   211  			default:
   212  				return nil
   213  			}
   214  		}
   215  	}
   216  	type x struct{}
   217  	out := protoimpl.TypeBuilder{
   218  		File: protoimpl.DescBuilder{
   219  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   220  			RawDescriptor: file_model_interface_proto_rawDesc,
   221  			NumEnums:      1,
   222  			NumMessages:   1,
   223  			NumExtensions: 0,
   224  			NumServices:   0,
   225  		},
   226  		GoTypes:           file_model_interface_proto_goTypes,
   227  		DependencyIndexes: file_model_interface_proto_depIdxs,
   228  		EnumInfos:         file_model_interface_proto_enumTypes,
   229  		MessageInfos:      file_model_interface_proto_msgTypes,
   230  	}.Build()
   231  	File_model_interface_proto = out.File
   232  	file_model_interface_proto_rawDesc = nil
   233  	file_model_interface_proto_goTypes = nil
   234  	file_model_interface_proto_depIdxs = nil
   235  }