gogoproto

Table of Contents

gogoproto/gogo.proto

Top

File-level Extensions

ExtensionTypeBaseNumberDescription
enum_customname string .google.protobuf.EnumOptions 62023

enum_stringer bool .google.protobuf.EnumOptions 62022

enumdecl bool .google.protobuf.EnumOptions 62024

goproto_enum_prefix bool .google.protobuf.EnumOptions 62001

goproto_enum_stringer bool .google.protobuf.EnumOptions 62021

enumvalue_customname string .google.protobuf.EnumValueOptions 66001

castkey string .google.protobuf.FieldOptions 65008

castrepeated string .google.protobuf.FieldOptions 65013

casttype string .google.protobuf.FieldOptions 65007

castvalue string .google.protobuf.FieldOptions 65009

customname string .google.protobuf.FieldOptions 65004

customtype string .google.protobuf.FieldOptions 65003

embed bool .google.protobuf.FieldOptions 65002

jsontag string .google.protobuf.FieldOptions 65005

moretags string .google.protobuf.FieldOptions 65006

nullable bool .google.protobuf.FieldOptions 65001

stdduration bool .google.protobuf.FieldOptions 65011

stdtime bool .google.protobuf.FieldOptions 65010

wktpointer bool .google.protobuf.FieldOptions 65012

benchgen_all bool .google.protobuf.FileOptions 63016

compare_all bool .google.protobuf.FileOptions 63029

description_all bool .google.protobuf.FileOptions 63014

enum_stringer_all bool .google.protobuf.FileOptions 63022

enumdecl_all bool .google.protobuf.FileOptions 63031

equal_all bool .google.protobuf.FileOptions 63013

face_all bool .google.protobuf.FileOptions 63005

goproto_enum_prefix_all bool .google.protobuf.FileOptions 63002

goproto_enum_stringer_all bool .google.protobuf.FileOptions 63021

goproto_extensions_map_all bool .google.protobuf.FileOptions 63025

goproto_getters_all bool .google.protobuf.FileOptions 63001

goproto_registration bool .google.protobuf.FileOptions 63032

goproto_sizecache_all bool .google.protobuf.FileOptions 63034

goproto_stringer_all bool .google.protobuf.FileOptions 63003

goproto_unkeyed_all bool .google.protobuf.FileOptions 63035

goproto_unrecognized_all bool .google.protobuf.FileOptions 63026

gostring_all bool .google.protobuf.FileOptions 63006

marshaler_all bool .google.protobuf.FileOptions 63017

messagename_all bool .google.protobuf.FileOptions 63033

onlyone_all bool .google.protobuf.FileOptions 63009

populate_all bool .google.protobuf.FileOptions 63007

protosizer_all bool .google.protobuf.FileOptions 63028

sizer_all bool .google.protobuf.FileOptions 63020

stable_marshaler_all bool .google.protobuf.FileOptions 63019

stringer_all bool .google.protobuf.FileOptions 63008

testgen_all bool .google.protobuf.FileOptions 63015

typedecl_all bool .google.protobuf.FileOptions 63030

unmarshaler_all bool .google.protobuf.FileOptions 63018

unsafe_marshaler_all bool .google.protobuf.FileOptions 63023

unsafe_unmarshaler_all bool .google.protobuf.FileOptions 63024

verbose_equal_all bool .google.protobuf.FileOptions 63004

benchgen bool .google.protobuf.MessageOptions 64016

compare bool .google.protobuf.MessageOptions 64029

description bool .google.protobuf.MessageOptions 64014

equal bool .google.protobuf.MessageOptions 64013

face bool .google.protobuf.MessageOptions 64005

goproto_extensions_map bool .google.protobuf.MessageOptions 64025

goproto_getters bool .google.protobuf.MessageOptions 64001

goproto_sizecache bool .google.protobuf.MessageOptions 64034

goproto_stringer bool .google.protobuf.MessageOptions 64003

goproto_unkeyed bool .google.protobuf.MessageOptions 64035

goproto_unrecognized bool .google.protobuf.MessageOptions 64026

gostring bool .google.protobuf.MessageOptions 64006

marshaler bool .google.protobuf.MessageOptions 64017

messagename bool .google.protobuf.MessageOptions 64033

onlyone bool .google.protobuf.MessageOptions 64009

populate bool .google.protobuf.MessageOptions 64007

protosizer bool .google.protobuf.MessageOptions 64028

sizer bool .google.protobuf.MessageOptions 64020

stable_marshaler bool .google.protobuf.MessageOptions 64019

stringer bool .google.protobuf.MessageOptions 67008

testgen bool .google.protobuf.MessageOptions 64015

typedecl bool .google.protobuf.MessageOptions 64030

unmarshaler bool .google.protobuf.MessageOptions 64018

unsafe_marshaler bool .google.protobuf.MessageOptions 64023

unsafe_unmarshaler bool .google.protobuf.MessageOptions 64024

verbose_equal bool .google.protobuf.MessageOptions 64004

gogoproto_import bool .google.protobuf.FileOptions 63027

Scalar Value Types

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