go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/interfaces/span.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/vpp/interfaces/span.proto
     6  
     7  package vpp_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 Span_Direction int32
    24  
    25  const (
    26  	Span_UNKNOWN Span_Direction = 0
    27  	Span_RX      Span_Direction = 1
    28  	Span_TX      Span_Direction = 2
    29  	Span_BOTH    Span_Direction = 3
    30  )
    31  
    32  // Enum value maps for Span_Direction.
    33  var (
    34  	Span_Direction_name = map[int32]string{
    35  		0: "UNKNOWN",
    36  		1: "RX",
    37  		2: "TX",
    38  		3: "BOTH",
    39  	}
    40  	Span_Direction_value = map[string]int32{
    41  		"UNKNOWN": 0,
    42  		"RX":      1,
    43  		"TX":      2,
    44  		"BOTH":    3,
    45  	}
    46  )
    47  
    48  func (x Span_Direction) Enum() *Span_Direction {
    49  	p := new(Span_Direction)
    50  	*p = x
    51  	return p
    52  }
    53  
    54  func (x Span_Direction) String() string {
    55  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    56  }
    57  
    58  func (Span_Direction) Descriptor() protoreflect.EnumDescriptor {
    59  	return file_ligato_vpp_interfaces_span_proto_enumTypes[0].Descriptor()
    60  }
    61  
    62  func (Span_Direction) Type() protoreflect.EnumType {
    63  	return &file_ligato_vpp_interfaces_span_proto_enumTypes[0]
    64  }
    65  
    66  func (x Span_Direction) Number() protoreflect.EnumNumber {
    67  	return protoreflect.EnumNumber(x)
    68  }
    69  
    70  // Deprecated: Use Span_Direction.Descriptor instead.
    71  func (Span_Direction) EnumDescriptor() ([]byte, []int) {
    72  	return file_ligato_vpp_interfaces_span_proto_rawDescGZIP(), []int{0, 0}
    73  }
    74  
    75  type Span struct {
    76  	state         protoimpl.MessageState
    77  	sizeCache     protoimpl.SizeCache
    78  	unknownFields protoimpl.UnknownFields
    79  
    80  	InterfaceFrom string         `protobuf:"bytes,1,opt,name=interface_from,json=interfaceFrom,proto3" json:"interface_from,omitempty"`
    81  	InterfaceTo   string         `protobuf:"bytes,2,opt,name=interface_to,json=interfaceTo,proto3" json:"interface_to,omitempty"`
    82  	Direction     Span_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=ligato.vpp.interfaces.Span_Direction" json:"direction,omitempty"`
    83  	IsL2          bool           `protobuf:"varint,4,opt,name=is_l2,json=isL2,proto3" json:"is_l2,omitempty"`
    84  }
    85  
    86  func (x *Span) Reset() {
    87  	*x = Span{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_ligato_vpp_interfaces_span_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *Span) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*Span) ProtoMessage() {}
   100  
   101  func (x *Span) ProtoReflect() protoreflect.Message {
   102  	mi := &file_ligato_vpp_interfaces_span_proto_msgTypes[0]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use Span.ProtoReflect.Descriptor instead.
   114  func (*Span) Descriptor() ([]byte, []int) {
   115  	return file_ligato_vpp_interfaces_span_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *Span) GetInterfaceFrom() string {
   119  	if x != nil {
   120  		return x.InterfaceFrom
   121  	}
   122  	return ""
   123  }
   124  
   125  func (x *Span) GetInterfaceTo() string {
   126  	if x != nil {
   127  		return x.InterfaceTo
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *Span) GetDirection() Span_Direction {
   133  	if x != nil {
   134  		return x.Direction
   135  	}
   136  	return Span_UNKNOWN
   137  }
   138  
   139  func (x *Span) GetIsL2() bool {
   140  	if x != nil {
   141  		return x.IsL2
   142  	}
   143  	return false
   144  }
   145  
   146  var File_ligato_vpp_interfaces_span_proto protoreflect.FileDescriptor
   147  
   148  var file_ligato_vpp_interfaces_span_proto_rawDesc = []byte{
   149  	0x0a, 0x20, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74,
   150  	0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
   151  	0x74, 0x6f, 0x12, 0x15, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69,
   152  	0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x22, 0xde, 0x01, 0x0a, 0x04, 0x53, 0x70,
   153  	0x61, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f,
   154  	0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65,
   155  	0x72, 0x66, 0x61, 0x63, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74,
   156  	0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   157  	0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x6f, 0x12, 0x43, 0x0a, 0x09,
   158  	0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
   159  	0x25, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x69, 0x6e, 0x74,
   160  	0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x44, 0x69, 0x72,
   161  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f,
   162  	0x6e, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x73, 0x5f, 0x6c, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
   163  	0x52, 0x04, 0x69, 0x73, 0x4c, 0x32, 0x22, 0x32, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74,
   164  	0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
   165  	0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x02,
   166  	0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x03, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x6f,
   167  	0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61,
   168  	0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69,
   169  	0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
   170  	0x63, 0x65, 0x73, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
   171  	0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   172  }
   173  
   174  var (
   175  	file_ligato_vpp_interfaces_span_proto_rawDescOnce sync.Once
   176  	file_ligato_vpp_interfaces_span_proto_rawDescData = file_ligato_vpp_interfaces_span_proto_rawDesc
   177  )
   178  
   179  func file_ligato_vpp_interfaces_span_proto_rawDescGZIP() []byte {
   180  	file_ligato_vpp_interfaces_span_proto_rawDescOnce.Do(func() {
   181  		file_ligato_vpp_interfaces_span_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_interfaces_span_proto_rawDescData)
   182  	})
   183  	return file_ligato_vpp_interfaces_span_proto_rawDescData
   184  }
   185  
   186  var file_ligato_vpp_interfaces_span_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   187  var file_ligato_vpp_interfaces_span_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   188  var file_ligato_vpp_interfaces_span_proto_goTypes = []interface{}{
   189  	(Span_Direction)(0), // 0: ligato.vpp.interfaces.Span.Direction
   190  	(*Span)(nil),        // 1: ligato.vpp.interfaces.Span
   191  }
   192  var file_ligato_vpp_interfaces_span_proto_depIdxs = []int32{
   193  	0, // 0: ligato.vpp.interfaces.Span.direction:type_name -> ligato.vpp.interfaces.Span.Direction
   194  	1, // [1:1] is the sub-list for method output_type
   195  	1, // [1:1] is the sub-list for method input_type
   196  	1, // [1:1] is the sub-list for extension type_name
   197  	1, // [1:1] is the sub-list for extension extendee
   198  	0, // [0:1] is the sub-list for field type_name
   199  }
   200  
   201  func init() { file_ligato_vpp_interfaces_span_proto_init() }
   202  func file_ligato_vpp_interfaces_span_proto_init() {
   203  	if File_ligato_vpp_interfaces_span_proto != nil {
   204  		return
   205  	}
   206  	if !protoimpl.UnsafeEnabled {
   207  		file_ligato_vpp_interfaces_span_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   208  			switch v := v.(*Span); i {
   209  			case 0:
   210  				return &v.state
   211  			case 1:
   212  				return &v.sizeCache
   213  			case 2:
   214  				return &v.unknownFields
   215  			default:
   216  				return nil
   217  			}
   218  		}
   219  	}
   220  	type x struct{}
   221  	out := protoimpl.TypeBuilder{
   222  		File: protoimpl.DescBuilder{
   223  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   224  			RawDescriptor: file_ligato_vpp_interfaces_span_proto_rawDesc,
   225  			NumEnums:      1,
   226  			NumMessages:   1,
   227  			NumExtensions: 0,
   228  			NumServices:   0,
   229  		},
   230  		GoTypes:           file_ligato_vpp_interfaces_span_proto_goTypes,
   231  		DependencyIndexes: file_ligato_vpp_interfaces_span_proto_depIdxs,
   232  		EnumInfos:         file_ligato_vpp_interfaces_span_proto_enumTypes,
   233  		MessageInfos:      file_ligato_vpp_interfaces_span_proto_msgTypes,
   234  	}.Build()
   235  	File_ligato_vpp_interfaces_span_proto = out.File
   236  	file_ligato_vpp_interfaces_span_proto_rawDesc = nil
   237  	file_ligato_vpp_interfaces_span_proto_goTypes = nil
   238  	file_ligato_vpp_interfaces_span_proto_depIdxs = nil
   239  }