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
Function
DurationProto
DurationProto converts a time.Duration to a durationpb.Duration. Deprecated: Call the durationpb.New function instead.
ptypes/duration.go:46
↓ 1 callers
Method
EncodeFixed32
EncodeFixed32 appends a 32-bit little-endian integer to the buffer.
proto/buffer.go:156
↓ 1 callers
Method
EncodeFixed64
EncodeFixed64 appends a 64-bit little-endian integer to the buffer.
proto/buffer.go:162
↓ 1 callers
Method
EncodeStringBytes
EncodeStringBytes appends a length-prefixed raw bytes to the buffer. It does not validate whether v contains valid UTF-8.
proto/buffer.go:175
↓ 1 callers
Method
EncodeZigzag32
EncodeZigzag32 appends a 32-bit zig-zag varint encoding to the buffer.
proto/buffer.go:146
↓ 1 callers
Method
EncodeZigzag64
EncodeZigzag64 appends a 64-bit zig-zag varint encoding to the buffer.
proto/buffer.go:151
↓ 1 callers
Method
EnumDescriptor
()
internal/testprotos/proto2_proto/test.pb.go:56
↓ 1 callers
Function
EnumDescriptorProto
EnumDescriptorProto returns the file descriptor proto representing the enum and the enum descriptor proto for the enum itself. The returned proto mess
descriptor/descriptor.go:149
↓ 1 callers
Function
EnumValueMap
EnumValueMap returns the mapping from enum value names to enum numbers for the enum of the given name. It returns nil if not found. Deprecated: Use p
proto/registry.go:110
↓ 1 callers
Function
FileDescriptor
FileDescriptor returns the compressed FileDescriptorProto given the file path for a proto source file. It returns nil if not found. Deprecated: Use p
proto/registry.go:58
↓ 1 callers
Method
Find
Find reports whether the specified span is recorded by m, and if so returns the new location it was mapped to. If the input span was not found, the re
protoc-gen-go/generator/internal/remap/remap.go:27
↓ 1 callers
Method
FindExtensionByName
(field protoreflect.FullName)
proto/extensions.go:185
↓ 1 callers
Method
FindExtensionByName
(field protoreflect.FullName)
jsonpb/json.go:43
↓ 1 callers
Method
Generate
Generate produces the code generated by the plugin for this file, except for the imports, by calling the generator's methods P, In, and Out.
protoc-gen-go/generator/generator.go:65
↓ 1 callers
Method
GenerateAlias
GenerateAlias should generate an appropriate alias for the symbol from the named package.
protoc-gen-go/generator/generator.go:325
↓ 1 callers
Method
GenerateImports
GenerateImports produces the import declarations for this file. It is called after Generate.
protoc-gen-go/generator/generator.go:68
↓ 1 callers
Method
GetBunny
()
internal/testprotos/proto3_proto/test.pb.go:272
↓ 1 callers
Method
GetCute
()
internal/testprotos/proto3_proto/test.pb.go:279
↓ 1 callers
Method
GetF_BoolRequired
()
internal/testprotos/proto2_proto/test.pb.go:570
↓ 1 callers
Method
GetF_Int32
()
internal/testprotos/proto2_proto/test.pb.go:2483
↓ 1 callers
Method
GetLastField
()
internal/testprotos/proto2_proto/test.pb.go:1533
↓ 1 callers
Method
GetName
()
internal/testprotos/proto2_proto/test.pb.go:3525
↓ 1 callers
Method
GetNested
()
internal/testprotos/proto3_proto/test.pb.go:169
↓ 1 callers
Method
GetOneof
()
internal/testprotos/proto3_proto/test.pb.go:465
↓ 1 callers
Method
GetOneof
()
internal/testprotos/proto2_proto/test.pb.go:3634
↓ 1 callers
Method
GetStringField
()
internal/testprotos/proto2_proto/test.pb.go:2386
↓ 1 callers
Method
GetTormato
()
internal/testprotos/proto2_proto/test.pb.go:3345
↓ 1 callers
Method
GetType
()
internal/testprotos/proto2_proto/test.pb.go:383
↓ 1 callers
Method
In
In Indents the output one tab stop.
protoc-gen-go/generator/generator.go:1051
↓ 1 callers
Function
MessageType
MessageType returns the message type for a named message. It returns nil if not found. Deprecated: Use protoregistry.GlobalTypes.FindMessageByName in
proto/registry.go:206
↓ 1 callers
Function
RegisterPlugin
RegisterPlugin installs a (second-order) plugin to be run when the Go output is generated. It is typically called during initialization.
protoc-gen-go/generator/generator.go:75
↓ 1 callers
Function
RegisteredExtensions
map[messageName]extensionsByNumber RegisteredExtensions returns a map of the registered extensions for the provided protobuf message, indexed by the e
proto/registry.go:292
↓ 1 callers
Method
RequiredNotSet
()
proto/proto.go:117
↓ 1 callers
Method
Reset
()
proto/text_test.go:299
↓ 1 callers
Method
Reset
()
internal/testprotos/proto2_proto/test.pb.go:3439
↓ 1 callers
Function
SizeVarint
SizeVarint returns the length of the varint encoded bytes of v. This is equal to len(EncodeVarint(v)).
proto/buffer.go:32
↓ 1 callers
Method
String
()
internal/testprotos/proto2_proto/test.pb.go:43
↓ 1 callers
Method
String
()
internal/testprotos/proto2_proto/test.pb.go:1912
↓ 1 callers
Method
String
()
internal/testprotos/proto2_proto/test.pb.go:2949
↓ 1 callers
Function
TimestampNow
TimestampNow returns a google.protobuf.Timestamp for the current time. Deprecated: Call the timestamppb.Now function instead.
ptypes/timestamp.go:53
↓ 1 callers
Function
TimestampString
TimestampString returns the RFC 3339 string for valid Timestamps. For invalid Timestamps, it returns an error message in parentheses. Deprecated: Cal
ptypes/timestamp.go:81
↓ 1 callers
Method
TypeName
TypeName returns the elements of the dotted type name. The package name is not part of this name.
protoc-gen-go/generator/generator.go:127
↓ 1 callers
Method
TypeName
TypeName returns the elements of the dotted type name. The package name is not part of this name.
protoc-gen-go/generator/generator.go:157
↓ 1 callers
Method
TypeName
TypeName returns the elements of the dotted type name. The package name is not part of this name.
protoc-gen-go/generator/generator.go:206
↓ 1 callers
Method
Unmarshal
Unmarshal unmarshals a JSON object from r into m.
jsonpb/decode.go:67
↓ 1 callers
Method
UnmarshalText
(bytes []byte)
proto/text_test.go:292
↓ 1 callers
Method
Unread
Unread returns the unread portion of the buffer.
proto/buffer.go:104
↓ 1 callers
Method
add
(opos, oend, npos, nend int)
protoc-gen-go/generator/internal/remap/remap.go:38
↓ 1 callers
Method
advance
()
proto/text_decode.go:565
↓ 1 callers
Function
anyEqual
anyEqual reports whether two messages which may be google.protobuf.Any or may contain google.protobuf.Any fields are equal. We can't use proto.Equal f
proto/text_test.go:33
↓ 1 callers
Function
buildExtDataTest
(text string)
proto/text_test.go:749
↓ 1 callers
Function
buildExtRepStringTest
(text string)
proto/text_test.go:758
↓ 1 callers
Function
buildExtStructTest
(text string)
proto/text_test.go:739
↓ 1 callers
Method
buildNestedDescriptors
Scan the descriptors in this file. For each one, build the slice of nested descriptors
protoc-gen-go/generator/generator.go:766
↓ 1 callers
Method
buildNestedEnums
(descs []*Descriptor, enums []*EnumDescriptor)
protoc-gen-go/generator/generator.go:781
↓ 1 callers
Function
checkInitialized
Check that all fields are nil. Clearly silly, and a residue from a more interesting test with an earlier, different initialization property, but it on
proto/proto_test.go:370
↓ 1 callers
Method
consumeExtensionOrAnyName
consumeExtensionOrAnyName consumes an extension name or an Any type URL and the following ']'. It returns the name or URL consumed.
proto/text_decode.go:491
↓ 1 callers
Function
consumeGroup
consumeGroup parses b until it finds an end group marker, returning the raw bytes of the message (excluding the end group marker) and the the total le
proto/buffer.go:288
↓ 1 callers
Method
decl
(g *Generator, mc *msgCtx)
protoc-gen-go/generator/generator.go:1942
↓ 1 callers
Method
defaultGoPackage
defaultGoPackage returns the package name to use, derived from the import path of the package we're building code for.
protoc-gen-go/generator/generator.go:637
↓ 1 callers
Function
discardUnknown
(m protoreflect.Message)
proto/discard.go:25
↓ 1 callers
Function
dottedSlice
dottedSlice turns a sliced name into a dotted name.
protoc-gen-go/generator/generator.go:2692
↓ 1 callers
Function
encodeDecode
(t *testing.T, in, out proto.Message, msg string)
proto/proto_test.go:1154
↓ 1 callers
Function
enumGoType
(et protoreflect.EnumType)
proto/registry.go:253
↓ 1 callers
Function
extractComments
(file *FileDescriptor)
protoc-gen-go/generator/generator.go:913
↓ 1 callers
Function
file_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init
()
protoc-gen-go/descriptor/descriptor.pb.go:179
↓ 1 callers
Function
file_github_com_golang_protobuf_protoc_gen_go_plugin_plugin_proto_init
()
protoc-gen-go/plugin/plugin.pb.go:54
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_any_any_proto_init
()
ptypes/any/any.pb.go:41
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_duration_duration_proto_init
()
ptypes/duration/duration.pb.go:42
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_empty_empty_proto_init
()
ptypes/empty/empty.pb.go:41
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_struct_struct_proto_init
()
ptypes/struct/struct.pb.go:57
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init
()
ptypes/timestamp/timestamp.pb.go:43
↓ 1 callers
Function
file_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init
()
ptypes/wrappers/wrappers.pb.go:50
↓ 1 callers
Function
fuzzUnmarshal
(t *testing.T, data []byte)
proto/proto_test.go:1795
↓ 1 callers
Function
genClientMethod
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method, index int)
internal/gengogrpc/grpc.go:220
↓ 1 callers
Function
genServerMethod
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method)
internal/gengogrpc/grpc.go:315
↓ 1 callers
Function
genService
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, service *protogen.Service)
internal/gengogrpc/grpc.go:61
↓ 1 callers
Method
generate
Fill the response protocol buffer with the generated output for all the files we're supposed to generate.
protoc-gen-go/generator/generator.go:1106
↓ 1 callers
Method
generateClientMethod
(servName, fullServName, serviceDescVar string, method *pb.MethodDescriptorProto, descExpr string)
protoc-gen-go/grpc/grpc.go:311
↓ 1 callers
Method
generateCommonMethods
generateCommonMethods adds methods to the message that are not on a per field basis.
protoc-gen-go/generator/generator.go:2110
↓ 1 callers
Method
generateDefaultConstants
generateDefaultConstants adds constants for default values if needed, which is only if the default value is. explicit in the proto.
protoc-gen-go/generator/generator.go:1958
↓ 1 callers
Method
generateEnum
Generate the enum definitions for this EnumDescriptor.
protoc-gen-go/generator/generator.go:1341
↓ 1 callers
Method
generateEnumRegistration
(enum *EnumDescriptor)
protoc-gen-go/generator/generator.go:2615
↓ 1 callers
Method
generateFileDescriptor
(file *FileDescriptor)
protoc-gen-go/generator/generator.go:2576
↓ 1 callers
Method
generateGetters
generateGetters adds getters for all fields, including oneofs and weak fields when applicable.
protoc-gen-go/generator/generator.go:2096
↓ 1 callers
Method
generateHeader
Generate the header, including package definition
protoc-gen-go/generator/generator.go:1205
↓ 1 callers
Method
generateImported
(id *ImportedDescriptor)
protoc-gen-go/generator/generator.go:1321
↓ 1 callers
Method
generateImports
Generate the imports
protoc-gen-go/generator/generator.go:1268
↓ 1 callers
Method
generateInitFunction
()
protoc-gen-go/generator/generator.go:2564
↓ 1 callers
Method
generateInternalStructFields
generateInternalStructFields just adds the XXX_<something> fields to the message struct.
protoc-gen-go/generator/generator.go:2033
↓ 1 callers
Method
generateMessage
Generate the type, methods and default constant definitions for this Descriptor.
protoc-gen-go/generator/generator.go:2177
↓ 1 callers
Method
generateMessageStruct
generateMessageStruct adds the actual struct with it's members (but not methods) to the output.
protoc-gen-go/generator/generator.go:2074
↓ 1 callers
Method
generateOneofFuncs
generateOneofFuncs adds all the utility functions for oneof, including marshalling, unmarshalling and sizer.
protoc-gen-go/generator/generator.go:2048
↓ 1 callers
Method
generateServerMethod
(servName, fullServName string, method *pb.MethodDescriptorProto)
protoc-gen-go/grpc/grpc.go:440
↓ 1 callers
Method
generateServerMethodConcrete
generateServerMethodConcrete returns unimplemented methods which ensure forward compatibility
protoc-gen-go/grpc/grpc.go:279
↓ 1 callers
Method
generateServerSignature
generateServerSignature returns the server-side signature for a method.
protoc-gen-go/grpc/grpc.go:417
↓ 1 callers
Method
generateServerSignatureWithParamNames
generateServerSignatureWithParamNames returns the server-side signature for a method with parameter names.
protoc-gen-go/grpc/grpc.go:393
↓ 1 callers
Method
generateService
generateService generates all the code for the named service.
protoc-gen-go/grpc/grpc.go:121
↓ 1 callers
Method
generateSetters
generateSetters add setters for all fields, including oneofs and weak fields when applicable.
protoc-gen-go/generator/generator.go:2103
↓ 1 callers
Method
generateUnimplementedServer
generateUnimplementedServer creates the unimplemented server struct
protoc-gen-go/grpc/grpc.go:265
← previous
next →
201–300 of 1,635, ranked by callers