MCPcopy Create free account

hub / github.com/golang/protobuf / functions

Functions1,635 in github.com/golang/protobuf

↓ 1 callersFunctionDurationProto
DurationProto converts a time.Duration to a durationpb.Duration. Deprecated: Call the durationpb.New function instead.
ptypes/duration.go:46
↓ 1 callersMethodEncodeFixed32
EncodeFixed32 appends a 32-bit little-endian integer to the buffer.
proto/buffer.go:156
↓ 1 callersMethodEncodeFixed64
EncodeFixed64 appends a 64-bit little-endian integer to the buffer.
proto/buffer.go:162
↓ 1 callersMethodEncodeStringBytes
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 callersMethodEncodeZigzag32
EncodeZigzag32 appends a 32-bit zig-zag varint encoding to the buffer.
proto/buffer.go:146
↓ 1 callersMethodEncodeZigzag64
EncodeZigzag64 appends a 64-bit zig-zag varint encoding to the buffer.
proto/buffer.go:151
↓ 1 callersMethodEnumDescriptor
()
internal/testprotos/proto2_proto/test.pb.go:56
↓ 1 callersFunctionEnumDescriptorProto
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 callersFunctionEnumValueMap
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 callersFunctionFileDescriptor
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 callersMethodFind
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 callersMethodFindExtensionByName
(field protoreflect.FullName)
proto/extensions.go:185
↓ 1 callersMethodFindExtensionByName
(field protoreflect.FullName)
jsonpb/json.go:43
↓ 1 callersMethodGenerate
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 callersMethodGenerateAlias
GenerateAlias should generate an appropriate alias for the symbol from the named package.
protoc-gen-go/generator/generator.go:325
↓ 1 callersMethodGenerateImports
GenerateImports produces the import declarations for this file. It is called after Generate.
protoc-gen-go/generator/generator.go:68
↓ 1 callersMethodGetBunny
()
internal/testprotos/proto3_proto/test.pb.go:272
↓ 1 callersMethodGetCute
()
internal/testprotos/proto3_proto/test.pb.go:279
↓ 1 callersMethodGetF_BoolRequired
()
internal/testprotos/proto2_proto/test.pb.go:570
↓ 1 callersMethodGetF_Int32
()
internal/testprotos/proto2_proto/test.pb.go:2483
↓ 1 callersMethodGetLastField
()
internal/testprotos/proto2_proto/test.pb.go:1533
↓ 1 callersMethodGetName
()
internal/testprotos/proto2_proto/test.pb.go:3525
↓ 1 callersMethodGetNested
()
internal/testprotos/proto3_proto/test.pb.go:169
↓ 1 callersMethodGetOneof
()
internal/testprotos/proto3_proto/test.pb.go:465
↓ 1 callersMethodGetOneof
()
internal/testprotos/proto2_proto/test.pb.go:3634
↓ 1 callersMethodGetStringField
()
internal/testprotos/proto2_proto/test.pb.go:2386
↓ 1 callersMethodGetTormato
()
internal/testprotos/proto2_proto/test.pb.go:3345
↓ 1 callersMethodGetType
()
internal/testprotos/proto2_proto/test.pb.go:383
↓ 1 callersMethodIn
In Indents the output one tab stop.
protoc-gen-go/generator/generator.go:1051
↓ 1 callersFunctionMessageType
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 callersFunctionRegisterPlugin
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 callersFunctionRegisteredExtensions
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 callersMethodRequiredNotSet
()
proto/proto.go:117
↓ 1 callersMethodReset
()
proto/text_test.go:299
↓ 1 callersMethodReset
()
internal/testprotos/proto2_proto/test.pb.go:3439
↓ 1 callersFunctionSizeVarint
SizeVarint returns the length of the varint encoded bytes of v. This is equal to len(EncodeVarint(v)).
proto/buffer.go:32
↓ 1 callersMethodString
()
internal/testprotos/proto2_proto/test.pb.go:43
↓ 1 callersMethodString
()
internal/testprotos/proto2_proto/test.pb.go:1912
↓ 1 callersMethodString
()
internal/testprotos/proto2_proto/test.pb.go:2949
↓ 1 callersFunctionTimestampNow
TimestampNow returns a google.protobuf.Timestamp for the current time. Deprecated: Call the timestamppb.Now function instead.
ptypes/timestamp.go:53
↓ 1 callersFunctionTimestampString
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 callersMethodTypeName
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 callersMethodTypeName
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 callersMethodTypeName
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 callersMethodUnmarshal
Unmarshal unmarshals a JSON object from r into m.
jsonpb/decode.go:67
↓ 1 callersMethodUnmarshalText
(bytes []byte)
proto/text_test.go:292
↓ 1 callersMethodUnread
Unread returns the unread portion of the buffer.
proto/buffer.go:104
↓ 1 callersMethodadd
(opos, oend, npos, nend int)
protoc-gen-go/generator/internal/remap/remap.go:38
↓ 1 callersMethodadvance
()
proto/text_decode.go:565
↓ 1 callersFunctionanyEqual
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 callersFunctionbuildExtDataTest
(text string)
proto/text_test.go:749
↓ 1 callersFunctionbuildExtRepStringTest
(text string)
proto/text_test.go:758
↓ 1 callersFunctionbuildExtStructTest
(text string)
proto/text_test.go:739
↓ 1 callersMethodbuildNestedDescriptors
Scan the descriptors in this file. For each one, build the slice of nested descriptors
protoc-gen-go/generator/generator.go:766
↓ 1 callersMethodbuildNestedEnums
(descs []*Descriptor, enums []*EnumDescriptor)
protoc-gen-go/generator/generator.go:781
↓ 1 callersFunctioncheckInitialized
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 callersMethodconsumeExtensionOrAnyName
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 callersFunctionconsumeGroup
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 callersMethoddecl
(g *Generator, mc *msgCtx)
protoc-gen-go/generator/generator.go:1942
↓ 1 callersMethoddefaultGoPackage
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 callersFunctiondiscardUnknown
(m protoreflect.Message)
proto/discard.go:25
↓ 1 callersFunctiondottedSlice
dottedSlice turns a sliced name into a dotted name.
protoc-gen-go/generator/generator.go:2692
↓ 1 callersFunctionencodeDecode
(t *testing.T, in, out proto.Message, msg string)
proto/proto_test.go:1154
↓ 1 callersFunctionenumGoType
(et protoreflect.EnumType)
proto/registry.go:253
↓ 1 callersFunctionextractComments
(file *FileDescriptor)
protoc-gen-go/generator/generator.go:913
↓ 1 callersFunctionfile_github_com_golang_protobuf_protoc_gen_go_descriptor_descriptor_proto_init
()
protoc-gen-go/descriptor/descriptor.pb.go:179
↓ 1 callersFunctionfile_github_com_golang_protobuf_protoc_gen_go_plugin_plugin_proto_init
()
protoc-gen-go/plugin/plugin.pb.go:54
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_any_any_proto_init
()
ptypes/any/any.pb.go:41
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_duration_duration_proto_init
()
ptypes/duration/duration.pb.go:42
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_empty_empty_proto_init
()
ptypes/empty/empty.pb.go:41
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_struct_struct_proto_init
()
ptypes/struct/struct.pb.go:57
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_timestamp_timestamp_proto_init
()
ptypes/timestamp/timestamp.pb.go:43
↓ 1 callersFunctionfile_github_com_golang_protobuf_ptypes_wrappers_wrappers_proto_init
()
ptypes/wrappers/wrappers.pb.go:50
↓ 1 callersFunctionfuzzUnmarshal
(t *testing.T, data []byte)
proto/proto_test.go:1795
↓ 1 callersFunctiongenClientMethod
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method, index int)
internal/gengogrpc/grpc.go:220
↓ 1 callersFunctiongenServerMethod
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, method *protogen.Method)
internal/gengogrpc/grpc.go:315
↓ 1 callersFunctiongenService
(gen *protogen.Plugin, file *protogen.File, g *protogen.GeneratedFile, service *protogen.Service)
internal/gengogrpc/grpc.go:61
↓ 1 callersMethodgenerate
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 callersMethodgenerateClientMethod
(servName, fullServName, serviceDescVar string, method *pb.MethodDescriptorProto, descExpr string)
protoc-gen-go/grpc/grpc.go:311
↓ 1 callersMethodgenerateCommonMethods
generateCommonMethods adds methods to the message that are not on a per field basis.
protoc-gen-go/generator/generator.go:2110
↓ 1 callersMethodgenerateDefaultConstants
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 callersMethodgenerateEnum
Generate the enum definitions for this EnumDescriptor.
protoc-gen-go/generator/generator.go:1341
↓ 1 callersMethodgenerateEnumRegistration
(enum *EnumDescriptor)
protoc-gen-go/generator/generator.go:2615
↓ 1 callersMethodgenerateFileDescriptor
(file *FileDescriptor)
protoc-gen-go/generator/generator.go:2576
↓ 1 callersMethodgenerateGetters
generateGetters adds getters for all fields, including oneofs and weak fields when applicable.
protoc-gen-go/generator/generator.go:2096
↓ 1 callersMethodgenerateHeader
Generate the header, including package definition
protoc-gen-go/generator/generator.go:1205
↓ 1 callersMethodgenerateImported
(id *ImportedDescriptor)
protoc-gen-go/generator/generator.go:1321
↓ 1 callersMethodgenerateImports
Generate the imports
protoc-gen-go/generator/generator.go:1268
↓ 1 callersMethodgenerateInitFunction
()
protoc-gen-go/generator/generator.go:2564
↓ 1 callersMethodgenerateInternalStructFields
generateInternalStructFields just adds the XXX_<something> fields to the message struct.
protoc-gen-go/generator/generator.go:2033
↓ 1 callersMethodgenerateMessage
Generate the type, methods and default constant definitions for this Descriptor.
protoc-gen-go/generator/generator.go:2177
↓ 1 callersMethodgenerateMessageStruct
generateMessageStruct adds the actual struct with it's members (but not methods) to the output.
protoc-gen-go/generator/generator.go:2074
↓ 1 callersMethodgenerateOneofFuncs
generateOneofFuncs adds all the utility functions for oneof, including marshalling, unmarshalling and sizer.
protoc-gen-go/generator/generator.go:2048
↓ 1 callersMethodgenerateServerMethod
(servName, fullServName string, method *pb.MethodDescriptorProto)
protoc-gen-go/grpc/grpc.go:440
↓ 1 callersMethodgenerateServerMethodConcrete
generateServerMethodConcrete returns unimplemented methods which ensure forward compatibility
protoc-gen-go/grpc/grpc.go:279
↓ 1 callersMethodgenerateServerSignature
generateServerSignature returns the server-side signature for a method.
protoc-gen-go/grpc/grpc.go:417
↓ 1 callersMethodgenerateServerSignatureWithParamNames
generateServerSignatureWithParamNames returns the server-side signature for a method with parameter names.
protoc-gen-go/grpc/grpc.go:393
↓ 1 callersMethodgenerateService
generateService generates all the code for the named service.
protoc-gen-go/grpc/grpc.go:121
↓ 1 callersMethodgenerateSetters
generateSetters add setters for all fields, including oneofs and weak fields when applicable.
protoc-gen-go/generator/generator.go:2103
↓ 1 callersMethodgenerateUnimplementedServer
generateUnimplementedServer creates the unimplemented server struct
protoc-gen-go/grpc/grpc.go:265
← previousnext →201–300 of 1,635, ranked by callers