github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/confluent/types/decimal.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.19.1 5 // source: schemaregistry/confluent/type/decimal.proto 6 7 package types 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 Decimal struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // The two's-complement representation of the unscaled integer value in big-endian byte order 29 Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 30 // The precision 31 Precision uint32 `protobuf:"varint,2,opt,name=precision,proto3" json:"precision,omitempty"` 32 // The scale 33 Scale int32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"` 34 } 35 36 func (x *Decimal) Reset() { 37 *x = Decimal{} 38 if protoimpl.UnsafeEnabled { 39 mi := &file_schemaregistry_confluent_type_decimal_proto_msgTypes[0] 40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 ms.StoreMessageInfo(mi) 42 } 43 } 44 45 func (x *Decimal) String() string { 46 return protoimpl.X.MessageStringOf(x) 47 } 48 49 func (*Decimal) ProtoMessage() {} 50 51 func (x *Decimal) ProtoReflect() protoreflect.Message { 52 mi := &file_schemaregistry_confluent_type_decimal_proto_msgTypes[0] 53 if protoimpl.UnsafeEnabled && x != nil { 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 if ms.LoadMessageInfo() == nil { 56 ms.StoreMessageInfo(mi) 57 } 58 return ms 59 } 60 return mi.MessageOf(x) 61 } 62 63 // Deprecated: Use Decimal.ProtoReflect.Descriptor instead. 64 func (*Decimal) Descriptor() ([]byte, []int) { 65 return file_schemaregistry_confluent_type_decimal_proto_rawDescGZIP(), []int{0} 66 } 67 68 func (x *Decimal) GetValue() []byte { 69 if x != nil { 70 return x.Value 71 } 72 return nil 73 } 74 75 func (x *Decimal) GetPrecision() uint32 { 76 if x != nil { 77 return x.Precision 78 } 79 return 0 80 } 81 82 func (x *Decimal) GetScale() int32 { 83 if x != nil { 84 return x.Scale 85 } 86 return 0 87 } 88 89 var File_schemaregistry_confluent_type_decimal_proto protoreflect.FileDescriptor 90 91 var file_schemaregistry_confluent_type_decimal_proto_rawDesc = []byte{ 92 0x0a, 0x2b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 93 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x75, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 94 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 95 0x6f, 0x6e, 0x66, 0x6c, 0x75, 0x65, 0x6e, 0x74, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x53, 0x0a, 96 0x07, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 97 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 98 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 99 0x0d, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 100 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 101 0x6c, 0x65, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 102 0x72, 0x6f, 0x74, 0x6f, 0x33, 103 } 104 105 var ( 106 file_schemaregistry_confluent_type_decimal_proto_rawDescOnce sync.Once 107 file_schemaregistry_confluent_type_decimal_proto_rawDescData = file_schemaregistry_confluent_type_decimal_proto_rawDesc 108 ) 109 110 func file_schemaregistry_confluent_type_decimal_proto_rawDescGZIP() []byte { 111 file_schemaregistry_confluent_type_decimal_proto_rawDescOnce.Do(func() { 112 file_schemaregistry_confluent_type_decimal_proto_rawDescData = protoimpl.X.CompressGZIP(file_schemaregistry_confluent_type_decimal_proto_rawDescData) 113 }) 114 return file_schemaregistry_confluent_type_decimal_proto_rawDescData 115 } 116 117 var file_schemaregistry_confluent_type_decimal_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 118 var file_schemaregistry_confluent_type_decimal_proto_goTypes = []interface{}{ 119 (*Decimal)(nil), // 0: confluent.type.Decimal 120 } 121 var file_schemaregistry_confluent_type_decimal_proto_depIdxs = []int32{ 122 0, // [0:0] is the sub-list for method output_type 123 0, // [0:0] is the sub-list for method input_type 124 0, // [0:0] is the sub-list for extension type_name 125 0, // [0:0] is the sub-list for extension extendee 126 0, // [0:0] is the sub-list for field type_name 127 } 128 129 func init() { file_schemaregistry_confluent_type_decimal_proto_init() } 130 func file_schemaregistry_confluent_type_decimal_proto_init() { 131 if File_schemaregistry_confluent_type_decimal_proto != nil { 132 return 133 } 134 if !protoimpl.UnsafeEnabled { 135 file_schemaregistry_confluent_type_decimal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 136 switch v := v.(*Decimal); i { 137 case 0: 138 return &v.state 139 case 1: 140 return &v.sizeCache 141 case 2: 142 return &v.unknownFields 143 default: 144 return nil 145 } 146 } 147 } 148 type x struct{} 149 out := protoimpl.TypeBuilder{ 150 File: protoimpl.DescBuilder{ 151 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 152 RawDescriptor: file_schemaregistry_confluent_type_decimal_proto_rawDesc, 153 NumEnums: 0, 154 NumMessages: 1, 155 NumExtensions: 0, 156 NumServices: 0, 157 }, 158 GoTypes: file_schemaregistry_confluent_type_decimal_proto_goTypes, 159 DependencyIndexes: file_schemaregistry_confluent_type_decimal_proto_depIdxs, 160 MessageInfos: file_schemaregistry_confluent_type_decimal_proto_msgTypes, 161 }.Build() 162 File_schemaregistry_confluent_type_decimal_proto = out.File 163 file_schemaregistry_confluent_type_decimal_proto_rawDesc = nil 164 file_schemaregistry_confluent_type_decimal_proto_goTypes = nil 165 file_schemaregistry_confluent_type_decimal_proto_depIdxs = nil 166 }