tencent cloud

TencentDB for TcaplusDB

Release Notes
Product Introduction
Product Overview
Benefits
Use Cases
Architecture
Regions
Purchase Guide
Product Pricing
Payment Overdue
Getting Started
Basic Concepts
Creating Cluster
Creating Table Group
Creating Table
Get Connection Information
Accessing TcaplusDB
Operation Guide
Managing Cluster and Table Group
Managing Table
Monitoring and Alarming
Access Management
Tag
Task List
TcaplusDB Client
Accessing by Client Tool
Client Tool Commands
TcaplusDB SDK
Release History
SDK Download
C++ SDK API
TcaplusDB Error Codes
SDK Installation
Directions for Protobuf Table SDK for C++
Directions for TDR Table SDK for C++
TcaplusDB RESTful APIs
Description
Go
Java
PHP
Python
Downloading RESTful API Samples in Multiple Languages
Practical Tutorial
Best Practice for Table Structure Design
Best Practice for Database Interaction
FAQs
Database Features
Database Use
Database Principles
API Documentation
History
Introduction
API Category
Making API Requests
Table Group APIs
Other APIs
Table APIs
Cluster APIs
Data Types
Error Codes
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

Data Types

PDF
フォーカスモード
フォントサイズ
最終更新日: 2024-12-04 10:12:05
TencentDB for TcaplusDB supports Protocol Buffers data types.

Mapping between proto3 and Data Types in Programing Languages

.proto
C++
Java
Python
Go
Ruby
C#
PHP
Dart
Notes
double
double
double
float
float64
float
double
float
double
-
float
float
float
float
float32
float
float
float
double
-
int32
int32
int
int
int32
fixnum/
bignum
(as required)
int
integer
int
Uses variable-length encoding.
Inefficient for encoding negative numbers. If your field is likely to have negative values, use sint32 instead.
int64
int64
long
int/
long
int64
bignum
long
integer/string
Int64
Uses variable-length encoding.
Inefficient for encoding negative numbers. If your field is likely to have negative values, use sint64 instead.
uint32
uint32
int
int/
long
uint32
fixnum/
bignum
(as required)
uint
integer
int
Uses variable-length encoding.
uint64
uint64
long
int/
long
uint64
bignum
ulong
integer/string
Int64
Uses variable-length encoding.
sint32
int32
int
int
int32
fixnum/
bignum
(as required)
int
integer
int
Uses variable-length encoding.
sint64
int64
long
int/
long
int64
bignum
long
integer/string
Int64
Uses variable-length encoding.
Signed int value. These more efficiently encode negative numbers than regular int32s.
fixed32
uint32
int
int/
long
uint32
fixnum/
bignum
(as required)
uint
integer
int
Always four bytes.
More efficient than uint32 if values are generally greater than 2^28.
fixed64
uint64
long
int/
long
uint64
bignum
ulong
integer/string
Int64
Always eight bytes.
More efficient than uint64 if values are generally greater than 2^56.
sfixed32
int32
int
int
int32
fixnum/
bignum
(as required)
int
integer
int
Always four bytes.
sfixed64
int64
long
int/
long
int64
bignum
long
integer/string
Int64
Always eight bytes.
bool
bool
boolean
bool
bool
trueClass/
falseClass
bool
boolean
bool
-
string
string
String
str/
unicode
string
string
(UTF -8)
string
string
string
A string must always contain UTF-8 encoded or 7-bit ASCII text, and cannot be longer than 2^32.
bytes
string
ByteString
str
byte
string
(ASCII-8BIT)
bytestring
string
-
May contain any arbitrary sequence of bytes no longer than 2^32.

Mapping between proto2 and Data Types in Programing Languages

.proto
C++
Java
Python
Go
Notes
double
double
double
float
*float64
-
float
float
float
float
*float32
-
int32
int32
int
int
*int32
Uses variable-length encoding. Inefficient for encoding negative numbers. If your field is likely to have negative values, use sint32 instead.
int64
int64
long
int/long
*int64
Uses variable-length encoding. Inefficient for encoding negative numbers. If your field is likely to have negative values, use sint64 instead.
uint32
uint32
int
int/long
*uint32
Uses variable-length encoding.
uint64
uint64
long
int/long
*uint64
Uses variable-length encoding.
sint32
int32
int
int
*int32
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
sint64
int64
long
int/long
*int64
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.
fixed32
uint32
int
int/long
*uint32
Always four bytes. More efficient than uint32 if values are generally greater than 2^28.
fixed64
uint64
long
int/long
*uint64
Always eight bytes. More efficient than uint64 if values are generally greater than 2^56.
sfixed32
int32
int
int
*int32
Always four bytes.
sfixed64
int64
long
int/long
*int64
Always eight bytes.
bool
bool
boolean
bool
*bool
-
string
string
String
unicode(Python 2)
or
str(Python 3)
*string
A string must always contain UTF-8 encoded or 7-bit ASCII text.
bytes
string
ByteString
bytes
byte
May contain any arbitrary sequence of bytes.


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック