Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/golang/protobuf
/ functions
Functions
1,635 in github.com/golang/protobuf
⨍
Functions
1,635
◇
Types & classes
204
↓ 1 callers
Method
getGoType
proto name of a field, e.g. "field_name" or "descriptor"
protoc-gen-go/generator/generator.go:1951
↓ 1 callers
Method
getProtoDef
()
protoc-gen-go/generator/generator.go:1949
↓ 1 callers
Method
getProtoName
default value explicitly stated in the proto file, e.g "yoshi" or "5"
protoc-gen-go/generator/generator.go:1950
↓ 1 callers
Method
getProtoType
protobuf type name for the field, e.g. ".google.protobuf.Duration"
protoc-gen-go/generator/generator.go:1953
↓ 1 callers
Method
getProtoTypeName
go type of the field as a string, e.g. "*int32"
protoc-gen-go/generator/generator.go:1952
↓ 1 callers
Method
getter
print declaration within the struct
protoc-gen-go/generator/generator.go:1943
↓ 1 callers
Method
getterDefault
getterDefault finds the default value for the field to return from a getter, regardless of if it's a built in default or explicit from the source. Ret
protoc-gen-go/generator/generator.go:1691
↓ 1 callers
Method
goFileName
goFileName returns the output name for the generated Go file.
protoc-gen-go/generator/generator.go:294
↓ 1 callers
Function
goTypeForField
(fd protoreflect.FieldDescriptor)
proto/registry.go:236
↓ 1 callers
Function
initGoTest_OptionalGroup
()
proto/proto_test.go:46
↓ 1 callers
Function
initGoTest_RequiredGroup
These are all structurally equivalent but the tag numbers differ. (It's remarkable that required, optional, and repeated all have 8 letters.)
proto/proto_test.go:40
↓ 1 callers
Method
integerValueAsString
The integer value of the named constant in this enumerated type.
protoc-gen-go/generator/generator.go:186
↓ 1 callers
Function
isASCIIDigit
Is c an ASCII digit?
protoc-gen-go/generator/generator.go:2636
↓ 1 callers
Function
isASCIILower
And now lots of helper functions. Is c an ASCII lower-case letter?
protoc-gen-go/generator/generator.go:2631
↓ 1 callers
Function
isIdentOrNumberChar
(c byte)
proto/text_decode.go:773
↓ 1 callers
Function
isOptional
Is this field optional?
protoc-gen-go/generator/generator.go:2695
↓ 1 callers
Function
isRequired
Is this field required?
protoc-gen-go/generator/generator.go:2700
↓ 1 callers
Function
isScalar
Is this field a scalar numeric type?
protoc-gen-go/generator/generator.go:2710
↓ 1 callers
Function
isSingularJSONPBUnmarshaler
(v protoreflect.Value, fd protoreflect.FieldDescriptor)
jsonpb/decode.go:401
↓ 1 callers
Function
isSingularWellKnownValue
(fd protoreflect.FieldDescriptor)
jsonpb/decode.go:388
↓ 1 callers
Function
isWhitespace
(c byte)
proto/text_decode.go:787
↓ 1 callers
Function
makeGolden
()
proto/text_test.go:50
↓ 1 callers
Function
mapFieldKeys
mapFieldKeys returns the keys of m in a consistent order.
protoc-gen-go/generator/generator.go:2435
↓ 1 callers
Method
marshalAny
(m protoreflect.Message, indent string)
jsonpb/encode.go:313
↓ 1 callers
Method
marshalField
marshalField writes field description and value to the Writer.
jsonpb/encode.go:389
↓ 1 callers
Method
marshalSingularValue
(fd protoreflect.FieldDescriptor, v protoreflect.Value, indent string)
jsonpb/encode.go:513
↓ 1 callers
Function
newDescriptor
Construct the Descriptor
protoc-gen-go/generator/generator.go:797
↓ 1 callers
Function
newEnumDescriptor
Construct the EnumDescriptor
protoc-gen-go/generator/generator.go:853
↓ 1 callers
Function
newProperties
(t reflect.Type)
proto/properties.go:227
↓ 1 callers
Function
newTextParser
(s string)
proto/text_decode.go:83
↓ 1 callers
Method
objectNamed
Given a type name defined in a .proto, return its object. Also record that we're using it, to guarantee the associated import.
protoc-gen-go/grpc/grpc.go:67
↓ 1 callers
Method
printAtom
printAtom prints the (atomic, non-annotation) argument to the generated output.
protoc-gen-go/generator/generator.go:975
↓ 1 callers
Function
requiresQuotes
(u string)
proto/text_encode.go:195
↓ 1 callers
Method
runPlugins
Run all the plugins associated with the file.
protoc-gen-go/generator/generator.go:1098
↓ 1 callers
Function
serverSignature
(g *protogen.GeneratedFile, method *protogen.Method)
internal/gengogrpc/grpc.go:299
↓ 1 callers
Function
setDefaults
(m protoreflect.Message)
proto/defaults.go:20
↓ 1 callers
Method
setter
print getter
protoc-gen-go/generator/generator.go:1944
↓ 1 callers
Function
sortExtDescs
(s []*proto.ExtensionDesc)
proto/extensions_test.go:179
↓ 1 callers
Function
tokenize
(src []byte)
protoc-gen-go/generator/internal/remap/remap.go:67
↓ 1 callers
Function
trimQuote
trimQuote is like unquoteString but simply strips surrounding quotes. This is incorrect, but is behavior done by the legacy implementation.
jsonpb/decode.go:525
↓ 1 callers
Method
typedNil
typedNil prints a nil casted to the pointer to this field. - for XXX_OneofWrappers
protoc-gen-go/generator/generator.go:1859
↓ 1 callers
Function
unescape
(s string)
proto/text_decode.go:707
↓ 1 callers
Function
unescape
unescape reverses the "C" escaping that protoc does for default values of bytes fields. It is best effort in that it effectively ignores malformed inp
protoc-gen-go/generator/generator.go:2451
↓ 1 callers
Method
unmarshalExtensionOrAny
(m protoreflect.Message, seen map[protoreflect.FieldNumber]bool)
proto/text_decode.go:171
↓ 1 callers
Method
unmarshalSingularValue
(v protoreflect.Value, fd protoreflect.FieldDescriptor)
proto/text_decode.go:368
↓ 1 callers
Method
unmarshalSingularValue
(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor)
jsonpb/decode.go:463
↓ 1 callers
Function
unmarshalValue
(in []byte, v interface{})
jsonpb/decode.go:506
↓ 1 callers
Method
unmarshalValue
(v protoreflect.Value, in []byte, fd protoreflect.FieldDescriptor)
jsonpb/decode.go:409
↓ 1 callers
Function
unquoteString
(in string)
jsonpb/decode.go:511
↓ 1 callers
Function
utcDate
(year, month, day int)
ptypes/timestamp_test.go:109
↓ 1 callers
Function
walkEnums
walkEnums recursively walks all enums declared in d.
proto/registry.go:156
↓ 1 callers
Method
weak
weak returns whether the ith import of the current file is a weak import.
protoc-gen-go/generator/generator.go:1258
↓ 1 callers
Function
wrapDescriptors
Return a slice of all the Descriptors defined within this file
protoc-gen-go/generator/generator.go:834
↓ 1 callers
Function
wrapEnumDescriptors
Return a slice of all the EnumDescriptors defined within this file
protoc-gen-go/generator/generator.go:869
↓ 1 callers
Function
wrapExtensions
Return a slice of all the top-level ExtensionDescriptors defined within this file.
protoc-gen-go/generator/generator.go:885
↓ 1 callers
Function
wrapImported
Return a slice of all the types that are publicly imported into this file.
protoc-gen-go/generator/generator.go:894
↓ 1 callers
Function
wrapThisDescriptor
Wrap this Descriptor, recursively
protoc-gen-go/generator/generator.go:843
↓ 1 callers
Method
writeExtensions
writeExtensions writes all the extensions in m.
proto/text_encode.go:496
↓ 1 callers
Method
writeName
(fd protoreflect.FieldDescriptor)
proto/text_encode.go:176
↓ 1 callers
Method
writeProto3Any
writeProto3Any writes an expanded google.protobuf.Any message. It returns (false, nil) if sv value can't be unmarshaled (e.g. because required messag
proto/text_encode.go:221
↓ 1 callers
Method
writeSingularExtension
(name string, v protoreflect.Value, fd protoreflect.FieldDescriptor)
proto/text_encode.go:540
↓ 1 callers
Method
writeUnknownFields
(b []byte)
proto/text_encode.go:432
Method
BuildTypeNameMap
BuildTypeNameMap builds the map from fully qualified type names to objects. The key names for the map come from the input data, which puts a period at
protoc-gen-go/generator/generator.go:930
Method
CommandLineParameters
CommandLineParameters breaks the comma-separated list of key=value pairs in the parameter (a member of the request protobuf) into a key/value map. It
protoc-gen-go/generator/generator.go:448
Function
CompactText
CompactText writes the compact proto text format of m to w.
proto/text_encode.go:103
Method
DebugPrint
DebugPrint dumps the encoded bytes of b with a header and footer including s to stdout. This is only intended for debugging.
proto/buffer.go:132
Method
DecodeGroup
DecodeGroup consumes a message group from the buffer. It assumes that the start group marker has already been consumed and consumes all bytes until (a
proto/buffer.go:276
Method
DecodeMessage
DecodeMessage consumes a length-prefixed message from the buffer. It does not reset m before unmarshaling.
proto/buffer.go:264
Function
DecodeVarint
DecodeVarint parses a varint encoded integer from b, returning the integer value and the length of the varint. It returns (0, 0) if there is a parse e
proto/buffer.go:39
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test3.pb.go:61
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test3.pb.go:100
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test3.pb.go:139
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test3.pb.go:178
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test3.pb.go:226
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:100
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:271
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:356
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:471
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:546
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:599
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:733
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:781
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:851
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:989
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:1030
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:1083
Method
Descriptor
()
internal/testprotos/jsonpb_proto/test2.pb.go:1122
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:84
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:250
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:296
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:335
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:374
Method
Descriptor
()
internal/testprotos/proto3_proto/test.pb.go:419
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:314
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:354
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:488
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:1113
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:1152
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:1191
Method
Descriptor
()
internal/testprotos/proto2_proto/test.pb.go:1231
← previous
next →
301–400 of 1,635, ranked by callers