Skip to content

v0.1.10

proto-jpoint

jpoint/jpoint.proto

Account

FieldTypeLabelDescription
phone_idstring
object_idstring
uidint64
avatarstring
display_namestring
group_namestring

AccountListReq

FieldTypeLabelDescription
access_tokenstring

AccountListRes

FieldTypeLabelDescription
accountsAccountrepeated

BalanceLog

FieldTypeLabelDescription
platformstring
typeBalanceLogType
amountint64jpoint
from_object_idstring
from_displaynamestring
log_atgoogle.protobuf.Timestamp
to_object_idstringothers
to_displaynamestring
product_namestring
notestring
transfer_detailTransferDetailtransfer

type 不是 BLT_TRANSFER 時 為空 |

BalanceLogReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64
filterBalanceLogFilter

BalanceLogRes

FieldTypeLabelDescription
logsBalanceLogrepeated

FieldTypeLabelDescription
namestring
linkstring
banner_urlstring

BannerReq

FieldTypeLabelDescription
access_tokenstring

BannerRes

FieldTypeLabelDescription
bannersBannerrepeated

EnterRedeemCodeReq

FieldTypeLabelDescription
access_tokenstring
codestring
recaptchastring
recaptcha_typeRecaptchaType
secure_codestring

EnterRedeemCodeRes

FieldTypeLabelDescription
jpoint_amountint64
errEnterRedeemCodeError
wrong_redeem_countint64

ExchangeProductReq

FieldTypeLabelDescription
access_tokenstring
product_idint64
direct_usebool
to_object_idstring必填 當 direct_use True

ExchangeProductRes

GetBalanceReq

FieldTypeLabelDescription
access_tokenstring

GetBalanceRes

FieldTypeLabelDescription
balancedouble
last_tradecode_atgoogle.protobuf.Timestamp
bonus_expired_amountdouble
bonus_expired_atgoogle.protobuf.Timestamp

GetValidatedDonationTokenReq

FieldTypeLabelDescription
trade_codestring
donation_tokenstring

GetValidatedDonationTokenRes

FieldTypeLabelDescription
validated_donation_tokenstring

GetValidatedDonationTokenRes.Error

JpointPackage

FieldTypeLabelDescription
idint64
namestring
priceint64
jpoint_amountint64
icon_imgstring
descriptionstring
tagstring

Level

FieldTypeLabelDescription
level_namestring
level_iconstring
bonus_jpoint_per_twdint64
min_year_consumptionint64

LevelListReq

LevelListRes

FieldTypeLabelDescription
levelsLevelrepeated

MyLevelReq

FieldTypeLabelDescription
access_tokenstring
platformstringoptional, for platform_bonus_rate

MyLevelRes

FieldTypeLabelDescription
levelLevel
next_levelLevel
platform_bonus_ratedouble
year_consumptionint64

OrderLog

FieldTypeLabelDescription
order_idstring
user_displaynamestring
package_namestring
priceint64
jpoint_amountint64
statusOrderStatus
created_atgoogle.protobuf.Timestamp
typeBalanceLogType
from_displaynamestring
platformstring

OrderLogReq

FieldTypeLabelDescription
access_tokenstring
pageint64
limitint64

OrderLogRes

FieldTypeLabelDescription
logsOrderLogrepeated

Platform

FieldTypeLabelDescription
idint64
namestring
iconstring
linkstring

Product

FieldTypeLabelDescription
idint64
namestring
platformPlatform
priceint64
descriptionstring
img_urlstring

ProductListReq

FieldTypeLabelDescription
access_tokenstring

ProductListRes

FieldTypeLabelDescription
productsProductrepeated

ResetTradeCodeReq

FieldTypeLabelDescription
access_tokenstring
verify_codestring
new_trade_codestring
repeat_new_trade_codestring

ResetTradeCodeRes

SendVerifyCodeReq

FieldTypeLabelDescription
access_tokenstring

SendVerifyCodeRes

FieldTypeLabelDescription
is_send_smsbool

SetTradeCodeReq

FieldTypeLabelDescription
access_tokenstring
old_trade_codestring
new_trade_codestring
repeat_new_trade_codestring

SetTradeCodeRes

ShowSnReq

FieldTypeLabelDescription
access_tokenstring
sn_idint64

ShowSnRes

FieldTypeLabelDescription
sn_idint64
serial_numberstring
exchanged_atgoogle.protobuf.Timestamp

TopUpPackagesReq

FieldTypeLabelDescription
access_tokenstring

TopUpPackagesRes

FieldTypeLabelDescription
packagesJpointPackagerepeated

TopUpReq

FieldTypeLabelDescription
access_tokenstring
package_idint64
redirect_urlstring

TopUpRes

FieldTypeLabelDescription
transaction_tokenstring
transc_idstring

TradeImmediatelyReq

FieldTypeLabelDescription
access_tokenstring
trade_idint64

TradeImmediatelyRes

TradeReceiveReq

FieldTypeLabelDescription
access_tokenstring
trade_idint64

TradeReceiveRes

TradeReq

FieldTypeLabelDescription
access_tokenstring
to_object_idstring
transfer_amountint64
notestring
trade_codestring
platformstring
trade_atgoogle.protobuf.Timestamp

TradeRes

FieldTypeLabelDescription
trade_idint64

TransferDetail

FieldTypeLabelDescription
statusTransferStatus
trade_atgoogle.protobuf.Timestamp預約交易時間
completed_atgoogle.protobuf.Timestamp成功時間(接收)
canceled_atgoogle.protobuf.Timestamp取消時間(退還)

TransferReq

FieldTypeLabelDescription
access_tokenstring
to_object_idstring
transfer_amountint64
notestring
trade_codestring
platformstring

TransferRes

UseSnReq

FieldTypeLabelDescription
access_tokenstring
sn_idint64

UseSnRes

ValidPhoneReq

FieldTypeLabelDescription
access_tokenstring
phonestring

ValidPhoneRes

ValidTradeCodeReq

FieldTypeLabelDescription
access_tokenstring
trade_codestring

ValidTradeCodeRes

FieldTypeLabelDescription
validbool
is_lockbool

ValidVerifyCodeReq

FieldTypeLabelDescription
access_tokenstring
verify_codestring

ValidVerifyCodeRes

FieldTypeLabelDescription
successbool
failed_timesint64
can_resendbool

BalanceLogFilter

NameNumberDescription
BLRF_ALL0
BLRF_INCREASE1
BLRF_DECREASE2

BalanceLogType

NameNumberDescription
BLT_NONE0
BLT_EXCHANGE_PRODUCT1扣點: 兌換
BLT_TRANSFER2扣點: 轉帳
BLT_BONUS_CANCELED21扣點: 取消回饋
BLT_DEDUCT22扣點: 折抵
BLT_PLATFORM_ADD_CANCELED23扣點: 取消平台增加點數
BLT_ORDER_CANCELED24扣點: 訂單否認交易,收回 jpoint
BLT_ORDER3加點: 儲值成功
BLT_REDEEM_CODE4加點: 輸入序號
BLT_TRANSFER_RECEIVE5加點: 交易獲得
BLT_TRANSFER_CANCELED6加點: 交易取消
BLT_BONUS7加點: 回饋
BLT_DEDUCT_CANCELED8加點: 取消折抵
BLT_PLATFORM_ADD9加點: 平台增加點數

EnterRedeemCodeError

NameNumberDescription
ERC_SUCCESS0成功
ERC_INVALIDCODE1輸入失敗
ERC_TIMELIMITED2限制輸入
ERC_BLOCKED3錯誤次數太多被阻擋
ERC_TAKEN4序號已被兌換

GetValidatedDonationTokenRes.Error.Code

NameNumberDescription
None0
TradeCodeErr1001

OrderStatus

NameNumberDescription
OS_CREATED0訂單尚未付款
OS_DONE1訂單完成
OS_FAILED2訂單失敗
OS_REFUND3訂單退款

RecaptchaType

NameNumberDescription
RT_V20
RT_V2_INVISIBLE1
RT_V2_ANDROID2
RT_V2_IOS_ENTERPRISE3
RT_V2_ANDROID_ENTERPRISE4

TransferResultEvent

NameNumberDescription
TRE_Created0建立交易請求
TRE_Received1接受交易
TRE_Canceled2取消交易
TRE_Immediately3立即交易
TRE_Freeze4此交易被凍結
TRE_Unfreeze5此交易被解除凍結
TRE_AdminCanceled6管理者取消
TRE_AdminCanceledFrozen7管理者取消凍結
TRE_NearOverdue8交易已接近逾期時間
TRE_ReturnToReceivableStatus9從預約狀態後轉換為可立刻交易

TransferStatus

NameNumberDescription
TS_IMMEDIATELY0立即交易
TS_SCHEDULED1預約轉帳
TS_COMPLETED2訂單完成
TS_CANCELED3交易取消(退還)
TS_FREEZE4交易凍結

JPointService

jpoint & im 前端

Method NameRequest TypeResponse TypeDescription
GetBalanceGetBalanceReqGetBalanceResjpoint
BalanceLogBalanceLogReqBalanceLogRes點數紀錄
MyLevelMyLevelReqMyLevelResvip
LevelListLevelListReqLevelListRes
SendVerifyCodeSendVerifyCodeReqSendVerifyCodeRes寄送驗證碼
ValidVerifyCodeValidVerifyCodeReqValidVerifyCodeRes
SetTradeCodeSetTradeCodeReqSetTradeCodeRes用戶設定交易密碼
AccountListAccountListReqAccountListRes
ValidTradeCodeValidTradeCodeReqValidTradeCodeRes
ResetTradeCodeResetTradeCodeReqResetTradeCodeRes
ValidPhoneValidPhoneReqValidPhoneRes
ProductListProductListReqProductListRes可以兌換的列表
ExchangeProductExchangeProductReqExchangeProductRes兌換動作
TransferTransferReqTransferRes轉帳
TradeTradeReqTradeRes交易
TradeReceiveTradeReceiveReqTradeReceiveRes
TradeImmediatelyTradeImmediatelyReqTradeImmediatelyRes
BannerBannerReqBannerResrpc Reward (RewardReq) returns (RewardRes);
TopUpTopUpReqTopUpRes儲值 購買
TopUpPackagesTopUpPackagesReqTopUpPackagesRes取得可以購買的方案
OrderLogOrderLogReqOrderLogRes訂單記錄 已棄用
ShowSnShowSnReqShowSnRes序號 查看序號
UseSnUseSnReqUseSnRes立即兌換
EnterRedeemCodeEnterRedeemCodeReqEnterRedeemCodeRes輸入序號
GetValidatedDonationTokenGetValidatedDonationTokenReqGetValidatedDonationTokenRes

jpointadmin/jpointadmin.proto

FieldTypeLabelDescription
idint64
namestring
linkstring
banner_urlstring
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp

BannerAddReq

FieldTypeLabelDescription
admin_tokenstring
bannerBanner

BannerAddRes

BannerDeleteReq

FieldTypeLabelDescription
admin_tokenstring
idint64

BannerDeleteRes

BannerEditReq

FieldTypeLabelDescription
admin_tokenstring
bannerBanner

BannerEditRes

BannerListReq

FieldTypeLabelDescription
pageint64
limitint64
admin_tokenstring

BannerListRes

FieldTypeLabelDescription
bannersBannerrepeated
countint64

ImportProductSnReq

FieldTypeLabelDescription
filebytes
product_idint64
admin_tokenstring

ImportProductSnRes

Member

FieldTypeLabelDescription
phone_idstring
jpointint64
last_tradecode_atgoogle.protobuf.Timestamp
level_idint64
year_consumptionint64
total_consumptionint64
bonusint64
bonus_expired_atgoogle.protobuf.Timestamp
is_blockedbool

MemberBlockReq

FieldTypeLabelDescription
admin_tokenstring
phone_idstring
blockbool

MemberBlockRes

MemberListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
phone_idstringoptional

MemberListRes

FieldTypeLabelDescription
membersMemberrepeated
countint64

Order

FieldTypeLabelDescription
idint64
phone_idstring
object_displaynamestring
transc_idstring
package_namestring
priceint64
jpoint_amountint64
statusOrderStatus
created_atgoogle.protobuf.Timestamp

OrderListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
phone_idstringoptional
order_statusOrderStatus
transc_idstringoptional

OrderListRes

FieldTypeLabelDescription
ordersOrderrepeated
countint64
success_moneyint64成功訂單金額

OrderRefundReq

FieldTypeLabelDescription
admin_tokenstring
order_idint64

OrderRefundRes

Platform

FieldTypeLabelDescription
idint64
namestring
iconstring
linkstring
endpointstring
priorityint64
bonus_ratedouble
displaynamestring

PlatformEditReq

FieldTypeLabelDescription
admin_tokenstring
platform_idint64
bonus_ratedouble

PlatformEditRes

PlatformListReq

FieldTypeLabelDescription
admin_tokenstring

PlatformListRes

FieldTypeLabelDescription
platformsPlatformrepeated

PlatformOrder

FieldTypeLabelDescription
idint64
platform_idint64
phone_idstring
typePlatformOrderType
consumption_amountint64
jpoint_amountint64
statusPlatformOrderStatus
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp
notestring

PlatformOrderCancelReq

FieldTypeLabelDescription
admin_tokenstring
platform_order_idint64

PlatformOrderCancelRes

PlatformOrderListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
platform_idint64optional
phone_idstringoptional
typePlatformOrderTypeoptional
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp

PlatformOrderListRes

FieldTypeLabelDescription
platform_ordersPlatformOrderrepeated
countint64

PlatformOrderReport

FieldTypeLabelDescription
platform_idint64
datestring
typePlatformOrderType
total_increaseint64
total_decreaseint64

PlatformOrderReportReq

FieldTypeLabelDescription
admin_tokenstring
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
platform_idint64optional
typePlatformOrderTypeoptional

PlatformOrderReportRes

FieldTypeLabelDescription
platform_order_reportsPlatformOrderReportrepeated

Product

FieldTypeLabelDescription
idint64
platform_idint64
platform_namestring
namestring
descriptionstring
priceint64
start_atgoogle.protobuf.Timestamp
end_atgoogle.protobuf.Timestamp
show_serial_numberbool
img_urlstring
unused_countint64

ProductAddReq

FieldTypeLabelDescription
admin_tokenstring
productProduct

ProductAddRes

ProductDeleteReq

FieldTypeLabelDescription
admin_tokenstring
idint64

ProductDeleteRes

ProductEditReq

FieldTypeLabelDescription
admin_tokenstring
productProduct

ProductEditRes

ProductListReq

FieldTypeLabelDescription
pageint64
limitint64
platform_idint64
sale_atgoogle.protobuf.Timestamp
admin_tokenstring

ProductListRes

FieldTypeLabelDescription
productsProductrepeated
countint64

RedeemBatch

FieldTypeLabelDescription
idint64
amountint64
jpoint_amountint64
batch_numberstring
platform_idint64
is_bonusbool
created_atgoogle.protobuf.Timestamp
admin_accountstring
unused_countint64

RedeemBatchError

RedeemBatchListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
batch_numberstringoptional
platform_idint64optional

RedeemBatchListRes

FieldTypeLabelDescription
redeem_batchesRedeemBatchrepeated
countint64

RedeemCode

FieldTypeLabelDescription
idint64
phone_idstring
object_idstring
codestring
jpoint_amountint64
batch_idint64
statusint64
created_atgoogle.protobuf.Timestamp
redeem_atgoogle.protobuf.Timestamp
ipstring
platform_idint64
is_bonusbool

RedeemCodeGenReq

FieldTypeLabelDescription
admin_tokenstring
amountint64
jpoint_amountint64
batch_numberstring
platform_idint64
is_bonusbool

RedeemCodeGenRes

RedeemCodeListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
codestringoptional
batch_idint64optional
platform_idint64optional
phone_idstringoptional
redeem_code_statusRedeemCodeStatusoptional
sort_by_redeem_atSortByRedeemAtoptional

RedeemCodeListRes

FieldTypeLabelDescription
redeem_codesRedeemCoderepeated
countint64

SendRedeemBatchCodesByEmailReq

FieldTypeLabelDescription
admin_tokenstring
batch_numberstring
email_recipientstring

SendRedeemBatchCodesByEmailRes

SerialNumber

FieldTypeLabelDescription
idint64
product_idint64
codestring
phone_idstring
object_idstring
ipstring
created_atgoogle.protobuf.Timestamp
exchanged_atgoogle.protobuf.Timestamp
last_viewed_atgoogle.protobuf.Timestamp
product_namestring
is_product_deletedbool

SerialNumberListReq

FieldTypeLabelDescription
pageint64
limitint64
admin_tokenstring
product_idint64optional
exchange_userstringoptional
ipstringoptional
codestringoptional

SerialNumberListRes

FieldTypeLabelDescription
serialNumbersSerialNumberrepeated
countint64

ShowLogDetailReq

FieldTypeLabelDescription
admin_tokenstring
log_typestring
log_idint64

ShowLogDetailRes

FieldTypeLabelDescription
ipstring
notestring
to_uidstring
from_uidstring
product_namestring
to_object_idstring
from_object_idstring
to_displaynamestring
from_displaynamestring

Transfer

FieldTypeLabelDescription
idint64
from_phone_idstring
to_phone_idstring
amountint64
platformstring
ipstring
created_atgoogle.protobuf.Timestamp
statusTransferStatus
trade_atgoogle.protobuf.Timestamp
completed_atgoogle.protobuf.Timestamp
canceled_atgoogle.protobuf.Timestamp
feeint64

TransferCancelReq

FieldTypeLabelDescription
admin_tokenstring
transfer_idint64

TransferCancelRes

TransferFreezeReq

FieldTypeLabelDescription
admin_tokenstring
transfer_idint64
is_freezebool

TransferFreezeRes

TransferListReq

FieldTypeLabelDescription
admin_tokenstring
pageint64
limitint64
phone_idstringoptional
start_atgoogle.protobuf.Timestampoptional
end_atgoogle.protobuf.Timestampoptional

TransferListRes

FieldTypeLabelDescription
transfersTransferrepeated
countint64

OrderStatus

NameNumberDescription
OS_NOTSET0
OS_CREATED1訂單尚未付款
OS_DONE2訂單完成
OS_FAILED3訂單失敗
OS_REFUND4訂單退款

PlatformOrderStatus

NameNumberDescription
POS_NOTSET0
POS_SUCCESS1
POS_CANCELED2

PlatformOrderType

NameNumberDescription
POT_NOTSET0
POT_ACCUMULATE1
POT_DEDUCT2
POT_ADD3
POT_PURCHASE_REDEEM4
POT_JPOINT_DISCOUNT5

RedeemBatchError.Code

NameNumberDescription
None0
SendingBatchCodesByEmailFailed1001

RedeemCodeStatus

NameNumberDescription
RCS_NOTSET0
RCS_USED1
RCS_NOT_USED2

SortByRedeemAt

NameNumberDescription
SBRA_NOTSET0
SBRA_ASCENDING1
SBRA_DESCENDING2

TransferStatus

NameNumberDescription
TS_IMMEDIATELY0立即交易
TS_SCHEDULED1預約轉帳
TS_COMPLETED2訂單完成
TS_CANCELED3交易取消(退還)
TS_FREEZE4交易凍結

JPointAdminService

Method NameRequest TypeResponse TypeDescription
OrderListOrderListReqOrderListRes操作記錄 儲值列表
OrderRefundOrderRefundReqOrderRefundRes訂單退款
MemberListMemberListReqMemberListRes會員列表
MemberBlockMemberBlockReqMemberBlockRes會員黑名單
TransferListTransferListReqTransferListRes用戶轉帳列表
TransferCancelTransferCancelReqTransferCancelRes取消用戶轉帳
TransferFreezeTransferFreezeReqTransferFreezeRes凍結轉帳
ShowLogDetailShowLogDetailReqShowLogDetailRes
PlatformListPlatformListReqPlatformListRes平台列表
PlatformEditPlatformEditReqPlatformEditRes
PlatformOrderListPlatformOrderListReqPlatformOrderListRes
PlatformOrderCancelPlatformOrderCancelReqPlatformOrderCancelRes
PlatformOrderReportPlatformOrderReportReqPlatformOrderReportRes
ProductListProductListReqProductListRes產品列表 (產品起訖日)
ProductAddProductAddReqProductAddRes新增
ProductEditProductEditReqProductEditRes修改
ProductDeleteProductDeleteReqProductDeleteRes刪除
SerialNumberListSerialNumberListReqSerialNumberListRes產品的序號列表 (兌換人, ip, 兌換時間)
ImportProductSnImportProductSnReqImportProductSnRes匯入產品序號
RedeemBatchListRedeemBatchListReqRedeemBatchListRes查詢批號
SendRedeemBatchCodesByEmailSendRedeemBatchCodesByEmailReqSendRedeemBatchCodesByEmailRes寄送批號
RedeemCodeListRedeemCodeListReqRedeemCodeListRes查詢序號
RedeemCodeGenRedeemCodeGenReqRedeemCodeGenRes生成序號
BannerListBannerListReqBannerListResbanner 列表
BannerAddBannerAddReqBannerAddRes新增
BannerEditBannerEditReqBannerEditRes修改
BannerDeleteBannerDeleteReqBannerDeleteRes刪除

jpointapi/jpointapi.proto

AccumulatePointsParam

param info

FieldTypeLabelDescription
object_idstring
amount_of_consumptionint64消費額度
notestring

AccumulatePointsRes

FieldTypeLabelDescription
accumulate_idint64
bonus_amountint64

AddPointsParam

FieldTypeLabelDescription
object_idstring
amountint64
is_bonusbool
notestring

AddPointsRes

FieldTypeLabelDescription
add_idint64

CancelAccumulateParam

FieldTypeLabelDescription
accumulate_idint64

CancelAccumulateRes

CancelAddParam

FieldTypeLabelDescription
add_idint64

CancelAddRes

CancelDonationReq

FieldTypeLabelDescription
validated_donation_tokenstring

CancelDonationRes

CancelUseParam

FieldTypeLabelDescription
use_idint64

CancelUseRes

CreateDonationTokenReq

FieldTypeLabelDescription
product_log_idstring
product_tagstring
product_feeint64
donator_object_idstring
donatee_object_idstring
amountint64

CreateDonationTokenRes

FieldTypeLabelDescription
donation_tokenstring

EncryptedReq

FieldTypeLabelDescription
platformstring
encryption_paramstring

FinishDonationReq

FieldTypeLabelDescription
validated_donation_tokenstring

FinishDonationRes

UsePointsParam

FieldTypeLabelDescription
object_idstring
use_amountint64
notestring
use_permanentbool只能使用永久點數
platform_order_typejpointadmin.PlatformOrderType可選參數 紀錄log type類型 沒帶入預設deduct(向下兼容)

UsePointsRes

FieldTypeLabelDescription
use_idint64

JPointApiService

Method NameRequest TypeResponse TypeDescription
AccumulatePointsEncryptedReqAccumulatePointsRes累積用戶點數
CancelAccumulateEncryptedReqCancelAccumulateRes
UsePointsEncryptedReqUsePointsRes使用用戶點數
CancelUseEncryptedReqCancelUseRes
AddPointsEncryptedReqAddPointsRes增加點數
CancelAddEncryptedReqCancelAddRes
CreateDonationTokenCreateDonationTokenReqCreateDonationTokenRes打賞 get token
FinishDonationFinishDonationReqFinishDonationRestrade code with token to get validate token
CancelDonationCancelDonationReqCancelDonationRes

public/error/detail.proto

TradeCodeErrDetail

FieldTypeLabelDescription
is_lockbool
error_countint64

public/googlepb/pubsub.proto

DonaPubsub

FieldTypeLabelDescription
from_object_idstring
to_object_idstring
amountint64打賞金額(已扣除平台抽成)
pub_sub_typeDonaPubSubType

DonaPubSubType

NameNumberDescription
DonaFinish0打賞完成

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)