go.ligato.io/vpp-agent/v3@v3.5.0/examples/customize/custom_api_model/proto/custom/model.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/custom/model.proto 6 7 package custom 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 MyModel 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 Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 30 } 31 32 func (x *MyModel) Reset() { 33 *x = MyModel{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_proto_custom_model_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *MyModel) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*MyModel) ProtoMessage() {} 46 47 func (x *MyModel) ProtoReflect() protoreflect.Message { 48 mi := &file_proto_custom_model_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use MyModel.ProtoReflect.Descriptor instead. 60 func (*MyModel) Descriptor() ([]byte, []int) { 61 return file_proto_custom_model_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *MyModel) GetName() string { 65 if x != nil { 66 return x.Name 67 } 68 return "" 69 } 70 71 func (x *MyModel) GetValue() int32 { 72 if x != nil { 73 return x.Value 74 } 75 return 0 76 } 77 78 var File_proto_custom_model_proto protoreflect.FileDescriptor 79 80 var file_proto_custom_model_proto_rawDesc = []byte{ 81 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2f, 0x6d, 82 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x75, 0x73, 0x74, 83 0x6f, 0x6d, 0x22, 0x33, 0x0a, 0x07, 0x4d, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x12, 0x0a, 84 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 85 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 86 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x53, 0x5a, 0x51, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 87 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 88 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x63, 0x75, 89 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x61, 90 0x70, 0x69, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 91 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x3b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72, 92 0x6f, 0x74, 0x6f, 0x33, 93 } 94 95 var ( 96 file_proto_custom_model_proto_rawDescOnce sync.Once 97 file_proto_custom_model_proto_rawDescData = file_proto_custom_model_proto_rawDesc 98 ) 99 100 func file_proto_custom_model_proto_rawDescGZIP() []byte { 101 file_proto_custom_model_proto_rawDescOnce.Do(func() { 102 file_proto_custom_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_custom_model_proto_rawDescData) 103 }) 104 return file_proto_custom_model_proto_rawDescData 105 } 106 107 var file_proto_custom_model_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 108 var file_proto_custom_model_proto_goTypes = []interface{}{ 109 (*MyModel)(nil), // 0: custom.MyModel 110 } 111 var file_proto_custom_model_proto_depIdxs = []int32{ 112 0, // [0:0] is the sub-list for method output_type 113 0, // [0:0] is the sub-list for method input_type 114 0, // [0:0] is the sub-list for extension type_name 115 0, // [0:0] is the sub-list for extension extendee 116 0, // [0:0] is the sub-list for field type_name 117 } 118 119 func init() { file_proto_custom_model_proto_init() } 120 func file_proto_custom_model_proto_init() { 121 if File_proto_custom_model_proto != nil { 122 return 123 } 124 if !protoimpl.UnsafeEnabled { 125 file_proto_custom_model_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 126 switch v := v.(*MyModel); i { 127 case 0: 128 return &v.state 129 case 1: 130 return &v.sizeCache 131 case 2: 132 return &v.unknownFields 133 default: 134 return nil 135 } 136 } 137 } 138 type x struct{} 139 out := protoimpl.TypeBuilder{ 140 File: protoimpl.DescBuilder{ 141 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 142 RawDescriptor: file_proto_custom_model_proto_rawDesc, 143 NumEnums: 0, 144 NumMessages: 1, 145 NumExtensions: 0, 146 NumServices: 0, 147 }, 148 GoTypes: file_proto_custom_model_proto_goTypes, 149 DependencyIndexes: file_proto_custom_model_proto_depIdxs, 150 MessageInfos: file_proto_custom_model_proto_msgTypes, 151 }.Build() 152 File_proto_custom_model_proto = out.File 153 file_proto_custom_model_proto_rawDesc = nil 154 file_proto_custom_model_proto_goTypes = nil 155 file_proto_custom_model_proto_depIdxs = nil 156 }