github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/accounting/grpc/types.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.21.9 5 // source: accounting/grpc/types.proto 6 7 package accounting 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 // Standard floating point data type can't be used in NeoFS due to inexactness 24 // of the result when doing lots of small number operations. To solve the lost 25 // precision issue, special `Decimal` format is used for monetary computations. 26 // 27 // Please see [The General Decimal Arithmetic 28 // Specification](http://speleotrove.com/decimal/) for detailed problem 29 // description. 30 type Decimal struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 35 // Number in the smallest Token fractions. 36 Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 37 // Precision value indicating how many smallest fractions can be in one 38 // integer. 39 Precision uint32 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"` 40 } 41 42 func (x *Decimal) Reset() { 43 *x = Decimal{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_accounting_grpc_types_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *Decimal) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*Decimal) ProtoMessage() {} 56 57 func (x *Decimal) ProtoReflect() protoreflect.Message { 58 mi := &file_accounting_grpc_types_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use Decimal.ProtoReflect.Descriptor instead. 70 func (*Decimal) Descriptor() ([]byte, []int) { 71 return file_accounting_grpc_types_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *Decimal) GetValue() int64 { 75 if x != nil { 76 return x.Value 77 } 78 return 0 79 } 80 81 func (x *Decimal) GetPrecision() uint32 { 82 if x != nil { 83 return x.Precision 84 } 85 return 0 86 } 87 88 var File_accounting_grpc_types_proto protoreflect.FileDescriptor 89 90 var file_accounting_grpc_types_proto_rawDesc = []byte{ 91 0x0a, 0x1b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x67, 0x72, 0x70, 92 0x63, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x6e, 93 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 94 0x69, 0x6e, 0x67, 0x22, 0x3d, 0x0a, 0x07, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x14, 95 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 96 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 97 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 98 0x6f, 0x6e, 0x42, 0x67, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 99 0x2f, 0x54, 0x72, 0x75, 0x65, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x4c, 0x61, 0x62, 0x2f, 0x66, 0x72, 100 0x6f, 0x73, 0x74, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 101 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 102 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x1e, 0x4e, 0x65, 0x6f, 103 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 104 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 105 0x74, 0x6f, 0x33, 106 } 107 108 var ( 109 file_accounting_grpc_types_proto_rawDescOnce sync.Once 110 file_accounting_grpc_types_proto_rawDescData = file_accounting_grpc_types_proto_rawDesc 111 ) 112 113 func file_accounting_grpc_types_proto_rawDescGZIP() []byte { 114 file_accounting_grpc_types_proto_rawDescOnce.Do(func() { 115 file_accounting_grpc_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_accounting_grpc_types_proto_rawDescData) 116 }) 117 return file_accounting_grpc_types_proto_rawDescData 118 } 119 120 var file_accounting_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 121 var file_accounting_grpc_types_proto_goTypes = []interface{}{ 122 (*Decimal)(nil), // 0: neo.fs.v2.accounting.Decimal 123 } 124 var file_accounting_grpc_types_proto_depIdxs = []int32{ 125 0, // [0:0] is the sub-list for method output_type 126 0, // [0:0] is the sub-list for method input_type 127 0, // [0:0] is the sub-list for extension type_name 128 0, // [0:0] is the sub-list for extension extendee 129 0, // [0:0] is the sub-list for field type_name 130 } 131 132 func init() { file_accounting_grpc_types_proto_init() } 133 func file_accounting_grpc_types_proto_init() { 134 if File_accounting_grpc_types_proto != nil { 135 return 136 } 137 if !protoimpl.UnsafeEnabled { 138 file_accounting_grpc_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 139 switch v := v.(*Decimal); i { 140 case 0: 141 return &v.state 142 case 1: 143 return &v.sizeCache 144 case 2: 145 return &v.unknownFields 146 default: 147 return nil 148 } 149 } 150 } 151 type x struct{} 152 out := protoimpl.TypeBuilder{ 153 File: protoimpl.DescBuilder{ 154 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 155 RawDescriptor: file_accounting_grpc_types_proto_rawDesc, 156 NumEnums: 0, 157 NumMessages: 1, 158 NumExtensions: 0, 159 NumServices: 0, 160 }, 161 GoTypes: file_accounting_grpc_types_proto_goTypes, 162 DependencyIndexes: file_accounting_grpc_types_proto_depIdxs, 163 MessageInfos: file_accounting_grpc_types_proto_msgTypes, 164 }.Build() 165 File_accounting_grpc_types_proto = out.File 166 file_accounting_grpc_types_proto_rawDesc = nil 167 file_accounting_grpc_types_proto_goTypes = nil 168 file_accounting_grpc_types_proto_depIdxs = nil 169 }