go.ligato.io/vpp-agent/v3@v3.5.0/pkg/models/testdata/proto/withoption.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/withoption.proto
     6  
     7  package model
     8  
     9  import (
    10  	_ "go.ligato.io/vpp-agent/v3/proto/ligato/generic"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type WithOption struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Id      int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    30  	Caption string `protobuf:"bytes,2,opt,name=caption,proto3" json:"caption,omitempty"`
    31  }
    32  
    33  func (x *WithOption) Reset() {
    34  	*x = WithOption{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_proto_withoption_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *WithOption) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*WithOption) ProtoMessage() {}
    47  
    48  func (x *WithOption) ProtoReflect() protoreflect.Message {
    49  	mi := &file_proto_withoption_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use WithOption.ProtoReflect.Descriptor instead.
    61  func (*WithOption) Descriptor() ([]byte, []int) {
    62  	return file_proto_withoption_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *WithOption) GetId() int32 {
    66  	if x != nil {
    67  		return x.Id
    68  	}
    69  	return 0
    70  }
    71  
    72  func (x *WithOption) GetCaption() string {
    73  	if x != nil {
    74  		return x.Caption
    75  	}
    76  	return ""
    77  }
    78  
    79  var File_proto_withoption_proto protoreflect.FileDescriptor
    80  
    81  var file_proto_withoption_proto_rawDesc = []byte{
    82  	0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x77, 0x69, 0x74, 0x68, 0x6f, 0x70, 0x74, 0x69,
    83  	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a,
    84  	0x1c, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x2f,
    85  	0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a,
    86  	0x0a, 0x57, 0x69, 0x74, 0x68, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
    87  	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63,
    88  	0x61, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61,
    89  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x19, 0xf2, 0xc2, 0x18, 0x15, 0x0a, 0x0a, 0x6d, 0x6f, 0x64,
    90  	0x65, 0x6c, 0x74, 0x65, 0x73, 0x74, 0x73, 0x1a, 0x07, 0x77, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
    91  	0x42, 0x3b, 0x5a, 0x39, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f,
    92  	0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b,
    93  	0x67, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74,
    94  	0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70,
    95  	0x72, 0x6f, 0x74, 0x6f, 0x33,
    96  }
    97  
    98  var (
    99  	file_proto_withoption_proto_rawDescOnce sync.Once
   100  	file_proto_withoption_proto_rawDescData = file_proto_withoption_proto_rawDesc
   101  )
   102  
   103  func file_proto_withoption_proto_rawDescGZIP() []byte {
   104  	file_proto_withoption_proto_rawDescOnce.Do(func() {
   105  		file_proto_withoption_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_withoption_proto_rawDescData)
   106  	})
   107  	return file_proto_withoption_proto_rawDescData
   108  }
   109  
   110  var file_proto_withoption_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   111  var file_proto_withoption_proto_goTypes = []interface{}{
   112  	(*WithOption)(nil), // 0: model.WithOption
   113  }
   114  var file_proto_withoption_proto_depIdxs = []int32{
   115  	0, // [0:0] is the sub-list for method output_type
   116  	0, // [0:0] is the sub-list for method input_type
   117  	0, // [0:0] is the sub-list for extension type_name
   118  	0, // [0:0] is the sub-list for extension extendee
   119  	0, // [0:0] is the sub-list for field type_name
   120  }
   121  
   122  func init() { file_proto_withoption_proto_init() }
   123  func file_proto_withoption_proto_init() {
   124  	if File_proto_withoption_proto != nil {
   125  		return
   126  	}
   127  	if !protoimpl.UnsafeEnabled {
   128  		file_proto_withoption_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   129  			switch v := v.(*WithOption); i {
   130  			case 0:
   131  				return &v.state
   132  			case 1:
   133  				return &v.sizeCache
   134  			case 2:
   135  				return &v.unknownFields
   136  			default:
   137  				return nil
   138  			}
   139  		}
   140  	}
   141  	type x struct{}
   142  	out := protoimpl.TypeBuilder{
   143  		File: protoimpl.DescBuilder{
   144  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   145  			RawDescriptor: file_proto_withoption_proto_rawDesc,
   146  			NumEnums:      0,
   147  			NumMessages:   1,
   148  			NumExtensions: 0,
   149  			NumServices:   0,
   150  		},
   151  		GoTypes:           file_proto_withoption_proto_goTypes,
   152  		DependencyIndexes: file_proto_withoption_proto_depIdxs,
   153  		MessageInfos:      file_proto_withoption_proto_msgTypes,
   154  	}.Build()
   155  	File_proto_withoption_proto = out.File
   156  	file_proto_withoption_proto_rawDesc = nil
   157  	file_proto_withoption_proto_goTypes = nil
   158  	file_proto_withoption_proto_depIdxs = nil
   159  }