go.ligato.io/vpp-agent/v3@v3.5.0/pkg/models/testdata/proto/simple.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: proto/simple.proto
     6  
     7  package model
     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 Basic struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Name           string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    29  	ValueInt       int32    `protobuf:"varint,2,opt,name=value_int,json=valueInt,proto3" json:"value_int,omitempty"`
    30  	ValueUint      uint32   `protobuf:"varint,3,opt,name=value_uint,json=valueUint,proto3" json:"value_uint,omitempty"`
    31  	ValueInt64     int64    `protobuf:"varint,4,opt,name=value_int64,json=valueInt64,proto3" json:"value_int64,omitempty"`
    32  	RepeatedString []string `protobuf:"bytes,5,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
    33  }
    34  
    35  func (x *Basic) Reset() {
    36  	*x = Basic{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_proto_simple_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *Basic) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*Basic) ProtoMessage() {}
    49  
    50  func (x *Basic) ProtoReflect() protoreflect.Message {
    51  	mi := &file_proto_simple_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 Basic.ProtoReflect.Descriptor instead.
    63  func (*Basic) Descriptor() ([]byte, []int) {
    64  	return file_proto_simple_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *Basic) GetName() string {
    68  	if x != nil {
    69  		return x.Name
    70  	}
    71  	return ""
    72  }
    73  
    74  func (x *Basic) GetValueInt() int32 {
    75  	if x != nil {
    76  		return x.ValueInt
    77  	}
    78  	return 0
    79  }
    80  
    81  func (x *Basic) GetValueUint() uint32 {
    82  	if x != nil {
    83  		return x.ValueUint
    84  	}
    85  	return 0
    86  }
    87  
    88  func (x *Basic) GetValueInt64() int64 {
    89  	if x != nil {
    90  		return x.ValueInt64
    91  	}
    92  	return 0
    93  }
    94  
    95  func (x *Basic) GetRepeatedString() []string {
    96  	if x != nil {
    97  		return x.RepeatedString
    98  	}
    99  	return nil
   100  }
   101  
   102  type Nest struct {
   103  	state         protoimpl.MessageState
   104  	sizeCache     protoimpl.SizeCache
   105  	unknownFields protoimpl.UnknownFields
   106  
   107  	Name   string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   108  	Nested *Nest_Nested `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"`
   109  }
   110  
   111  func (x *Nest) Reset() {
   112  	*x = Nest{}
   113  	if protoimpl.UnsafeEnabled {
   114  		mi := &file_proto_simple_proto_msgTypes[1]
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		ms.StoreMessageInfo(mi)
   117  	}
   118  }
   119  
   120  func (x *Nest) String() string {
   121  	return protoimpl.X.MessageStringOf(x)
   122  }
   123  
   124  func (*Nest) ProtoMessage() {}
   125  
   126  func (x *Nest) ProtoReflect() protoreflect.Message {
   127  	mi := &file_proto_simple_proto_msgTypes[1]
   128  	if protoimpl.UnsafeEnabled && x != nil {
   129  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   130  		if ms.LoadMessageInfo() == nil {
   131  			ms.StoreMessageInfo(mi)
   132  		}
   133  		return ms
   134  	}
   135  	return mi.MessageOf(x)
   136  }
   137  
   138  // Deprecated: Use Nest.ProtoReflect.Descriptor instead.
   139  func (*Nest) Descriptor() ([]byte, []int) {
   140  	return file_proto_simple_proto_rawDescGZIP(), []int{1}
   141  }
   142  
   143  func (x *Nest) GetName() string {
   144  	if x != nil {
   145  		return x.Name
   146  	}
   147  	return ""
   148  }
   149  
   150  func (x *Nest) GetNested() *Nest_Nested {
   151  	if x != nil {
   152  		return x.Nested
   153  	}
   154  	return nil
   155  }
   156  
   157  type Nest_Nested struct {
   158  	state         protoimpl.MessageState
   159  	sizeCache     protoimpl.SizeCache
   160  	unknownFields protoimpl.UnknownFields
   161  
   162  	Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
   163  }
   164  
   165  func (x *Nest_Nested) Reset() {
   166  	*x = Nest_Nested{}
   167  	if protoimpl.UnsafeEnabled {
   168  		mi := &file_proto_simple_proto_msgTypes[2]
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		ms.StoreMessageInfo(mi)
   171  	}
   172  }
   173  
   174  func (x *Nest_Nested) String() string {
   175  	return protoimpl.X.MessageStringOf(x)
   176  }
   177  
   178  func (*Nest_Nested) ProtoMessage() {}
   179  
   180  func (x *Nest_Nested) ProtoReflect() protoreflect.Message {
   181  	mi := &file_proto_simple_proto_msgTypes[2]
   182  	if protoimpl.UnsafeEnabled && x != nil {
   183  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   184  		if ms.LoadMessageInfo() == nil {
   185  			ms.StoreMessageInfo(mi)
   186  		}
   187  		return ms
   188  	}
   189  	return mi.MessageOf(x)
   190  }
   191  
   192  // Deprecated: Use Nest_Nested.ProtoReflect.Descriptor instead.
   193  func (*Nest_Nested) Descriptor() ([]byte, []int) {
   194  	return file_proto_simple_proto_rawDescGZIP(), []int{1, 0}
   195  }
   196  
   197  func (x *Nest_Nested) GetLevel() string {
   198  	if x != nil {
   199  		return x.Level
   200  	}
   201  	return ""
   202  }
   203  
   204  var File_proto_simple_proto protoreflect.FileDescriptor
   205  
   206  var file_proto_simple_proto_rawDesc = []byte{
   207  	0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70,
   208  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xa1, 0x01, 0x0a, 0x05,
   209  	0x42, 0x61, 0x73, 0x69, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
   210  	0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x61, 0x6c,
   211  	0x75, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x76, 0x61,
   212  	0x6c, 0x75, 0x65, 0x49, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f,
   213  	0x75, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75,
   214  	0x65, 0x55, 0x69, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69,
   215  	0x6e, 0x74, 0x36, 0x34, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75,
   216  	0x65, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
   217  	0x65, 0x64, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
   218  	0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22,
   219  	0x66, 0x0a, 0x04, 0x4e, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
   220  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x6e,
   221  	0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x6f,
   222  	0x64, 0x65, 0x6c, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52,
   223  	0x06, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x1a, 0x1e, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65,
   224  	0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   225  	0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x6f, 0x2e, 0x6c, 0x69,
   226  	0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e,
   227  	0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f,
   228  	0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6d,
   229  	0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   230  }
   231  
   232  var (
   233  	file_proto_simple_proto_rawDescOnce sync.Once
   234  	file_proto_simple_proto_rawDescData = file_proto_simple_proto_rawDesc
   235  )
   236  
   237  func file_proto_simple_proto_rawDescGZIP() []byte {
   238  	file_proto_simple_proto_rawDescOnce.Do(func() {
   239  		file_proto_simple_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_simple_proto_rawDescData)
   240  	})
   241  	return file_proto_simple_proto_rawDescData
   242  }
   243  
   244  var file_proto_simple_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   245  var file_proto_simple_proto_goTypes = []interface{}{
   246  	(*Basic)(nil),       // 0: model.Basic
   247  	(*Nest)(nil),        // 1: model.Nest
   248  	(*Nest_Nested)(nil), // 2: model.Nest.Nested
   249  }
   250  var file_proto_simple_proto_depIdxs = []int32{
   251  	2, // 0: model.Nest.nested:type_name -> model.Nest.Nested
   252  	1, // [1:1] is the sub-list for method output_type
   253  	1, // [1:1] is the sub-list for method input_type
   254  	1, // [1:1] is the sub-list for extension type_name
   255  	1, // [1:1] is the sub-list for extension extendee
   256  	0, // [0:1] is the sub-list for field type_name
   257  }
   258  
   259  func init() { file_proto_simple_proto_init() }
   260  func file_proto_simple_proto_init() {
   261  	if File_proto_simple_proto != nil {
   262  		return
   263  	}
   264  	if !protoimpl.UnsafeEnabled {
   265  		file_proto_simple_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   266  			switch v := v.(*Basic); i {
   267  			case 0:
   268  				return &v.state
   269  			case 1:
   270  				return &v.sizeCache
   271  			case 2:
   272  				return &v.unknownFields
   273  			default:
   274  				return nil
   275  			}
   276  		}
   277  		file_proto_simple_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   278  			switch v := v.(*Nest); i {
   279  			case 0:
   280  				return &v.state
   281  			case 1:
   282  				return &v.sizeCache
   283  			case 2:
   284  				return &v.unknownFields
   285  			default:
   286  				return nil
   287  			}
   288  		}
   289  		file_proto_simple_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   290  			switch v := v.(*Nest_Nested); i {
   291  			case 0:
   292  				return &v.state
   293  			case 1:
   294  				return &v.sizeCache
   295  			case 2:
   296  				return &v.unknownFields
   297  			default:
   298  				return nil
   299  			}
   300  		}
   301  	}
   302  	type x struct{}
   303  	out := protoimpl.TypeBuilder{
   304  		File: protoimpl.DescBuilder{
   305  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   306  			RawDescriptor: file_proto_simple_proto_rawDesc,
   307  			NumEnums:      0,
   308  			NumMessages:   3,
   309  			NumExtensions: 0,
   310  			NumServices:   0,
   311  		},
   312  		GoTypes:           file_proto_simple_proto_goTypes,
   313  		DependencyIndexes: file_proto_simple_proto_depIdxs,
   314  		MessageInfos:      file_proto_simple_proto_msgTypes,
   315  	}.Build()
   316  	File_proto_simple_proto = out.File
   317  	file_proto_simple_proto_rawDesc = nil
   318  	file_proto_simple_proto_goTypes = nil
   319  	file_proto_simple_proto_depIdxs = nil
   320  }