0.0.1 • Published 4 years ago

sgecommschema v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Protocol Documentation

Table of Contents

shared/v1/shared.proto

Error

All error messages will have a message and a field

FieldTypeLabelDescription
fieldstring
messagestring

users/v1/user.proto

TokenCreateRequest

FieldTypeLabelDescription
emailstring
passwordstring

TokenCreateSuccess

FieldTypeLabelDescription
tokenstring

User

FieldTypeLabelDescription
emailstring
roleUser.Role

UserCreateErrorResponse

FieldTypeLabelDescription
errorsshared.v1.Errorrepeated

UserCreateRequest

User Creation

FieldTypeLabelDescription
emailstring
passwordstring
passwordConfirmationstring

UserCreateSuccessResponse

FieldTypeLabelDescription
userUser

User.Role

NameNumberDescription
ROLE_UNSPECIFIED0
ROLE_USER1
ROLE_ADMIN2

Scalar Value Types

.proto TypeNotesC++ TypeJava TypePython Type
doubledoubledoublefloat
floatfloatfloatfloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intint
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/long
uint32Uses variable-length encoding.uint32intint/long
uint64Uses variable-length encoding.uint64longint/long
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intint
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/long
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intint
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/long
sfixed32Always four bytes.int32intint
sfixed64Always eight bytes.int64longint/long
boolboolbooleanboolean
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicode
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr