MCPcopy Create free account

hub / github.com/golang/protobuf / functions

Functions1,635 in github.com/golang/protobuf

↓ 101 callersMethodMarshal
Marshal formats the encoded bytes of the message. It should be deterministic and emit valid protobuf wire data. The caller takes ownership of the retu
proto/proto.go:79
↓ 86 callersMethodUnmarshal
Unmarshal parses the encoded bytes of the protobuf wire input. The provided buffer is only valid for during method call. It should not reset the recei
proto/proto.go:91
↓ 71 callersFunctionCompactTextString
CompactTextString returns a compact proto text formatted string of m.
proto/text_encode.go:106
↓ 69 callersMethodMerge
Merge merges the contents of src into the receiver message. It clones all data structures in src such that it aliases no mutable memory referenced by
proto/proto.go:102
↓ 68 callersMethodSize
Deprecated: Do not use; this method existed for intenal-use only.
proto/deprecated.go:106
↓ 67 callersMethodDiscardUnknown
Deprecated: Do not use; this method existed for intenal-use only.
proto/deprecated.go:91
↓ 52 callersFunctionMarshal
Marshal returns the wire-format encoding of m.
proto/wire.go:22
↓ 47 callersFunctionString
String stores v in a new string value and returns a pointer to it.
proto/wrappers.go:34
↓ 44 callersFunctionUnmarshal
Unmarshal parses a wire-format message in b and places the decoded results in m. Unmarshal resets m before starting to unmarshal, so any existing dat
proto/wire.go:56
↓ 43 callersFunctionEqual
Equal reports whether two messages are equal. If two messages marshal to the same bytes under deterministic serialization, then Equal is guaranteed to
proto/proto.go:160
↓ 40 callersFunctionInt32
Int32 stores v in a new int32 value and returns a pointer to it.
proto/wrappers.go:16
↓ 30 callersMethodNew
()
ptypes/any.go:165
↓ 26 callersMethodError
()
proto/text_decode.go:32
↓ 26 callersMethodGetName
()
internal/testprotos/proto3_proto/test.pb.go:106
↓ 26 callersFunctionSetExtension
SetExtension sets an extension field in m to the provided value.
proto/extensions.go:223
↓ 25 callersMethodBytes
Bytes returns the internal buffer.
proto/buffer.go:99
↓ 25 callersMethodInterface
()
ptypes/any.go:168
↓ 23 callersMethodP
P prints the arguments to the generated output. It handles strings and int32s, plus handling indirections because they may be *string, etc. Any inpu
protoc-gen-go/generator/generator.go:1008
↓ 22 callersMethodDescriptor
()
descriptor/descriptor.go:34
↓ 17 callersFunctionBool
Bool stores v in a new bool value and returns a pointer to it.
proto/wrappers.go:8
↓ 17 callersMethodGetUnion
()
internal/testprotos/proto2_proto/test.pb.go:3209
↓ 16 callersMethodEnum
()
internal/testprotos/proto2_proto/test.pb.go:37
↓ 16 callersFunctionInt64
Int64 stores v in a new int64 value and returns a pointer to it.
proto/wrappers.go:19
↓ 15 callersMethodName
Name identifies the plugin.
protoc-gen-go/generator/generator.go:59
↓ 14 callersFunctioninitGoTest
(setdefaults bool)
proto/proto_test.go:58
↓ 13 callersMethodFail
Fail reports a problem and exits the program.
protoc-gen-go/generator/generator.go:439
↓ 13 callersMethodLen
()
proto/properties.go:304
↓ 13 callersFunctionMessageReflect
MessageReflect returns a reflective view for a message. It returns nil if m is nil.
proto/proto.go:66
↓ 12 callersFunctionCamelCase
CamelCase returns the CamelCased name. If there is an interior underscore followed by a lower case letter, drop the underscore and convert the letter
protoc-gen-go/generator/generator.go:2648
↓ 12 callersFunctionFloat64
Float64 stores v in a new float64 value and returns a pointer to it.
proto/wrappers.go:31
↓ 12 callersFunctionUnmarshalText
UnmarshalText parses a proto text formatted string into m.
proto/text_decode.go:43
↓ 11 callersFunctionMessageV2
MessageV2 converts either a v1 or v2 message to a v2 message. It returns nil if m is nil.
proto/proto.go:60
↓ 11 callersMethodP
P forwards to g.gen.P.
protoc-gen-go/grpc/grpc.go:78
↓ 11 callersMethodTypeName
()
protoc-gen-go/generator/generator.go:379
↓ 10 callersMethodHas
(n2 protoreflect.FieldNumber)
proto/extensions.go:354
↓ 10 callersMethodString
()
proto/proto_test.go:1304
↓ 10 callersMethodWrite
(p []byte)
proto/text_encode.go:125
↓ 9 callersFunctionClone
Clone returns a deep copy of src.
proto/proto.go:129
↓ 9 callersFunctionEnumName
Deprecated: Do not use.
proto/deprecated.go:57
↓ 9 callersFunctionFloat32
Float32 stores v in a new float32 value and returns a pointer to it.
proto/wrappers.go:28
↓ 9 callersFunctionGetExtension
GetExtension retrieves a proto2 extended field from m. If the descriptor is type complete (i.e., ExtensionDesc.ExtensionType is non-nil), then GetExt
proto/extensions.go:120
↓ 9 callersFunctionMessageName
MessageName returns the full protobuf name for the given message type. Deprecated: Use protoreflect.MessageDescriptor.FullName instead.
proto/registry.go:264
↓ 9 callersMethodProtoReflect
()
ptypes/any.go:153
↓ 9 callersFunctionUint32
Uint32 stores v in a new uint32 value and returns a pointer to it.
proto/wrappers.go:22
↓ 8 callersMethodMarshalToString
MarshalToString serializes a protobuf message as JSON in string form.
jsonpb/encode.go:77
↓ 8 callersMethodObjectNamed
ObjectNamed, given a fully-qualified input type name as it appears in the input data, returns the descriptor for the message or enum with that name.
protoc-gen-go/generator/generator.go:953
↓ 8 callersFunctionUint64
Uint64 stores v in a new uint64 value and returns a pointer to it.
proto/wrappers.go:25
↓ 8 callersMethoderrorf
(format string, a ...interface{})
proto/text_decode.go:534
↓ 8 callersMethodnext
Advances the parser and returns the new current token.
proto/text_decode.go:620
↓ 7 callersMethodString
()
proto/text_test.go:300
↓ 7 callersFunctionUnmarshalJSONEnum
Deprecated: Do not use.
proto/deprecated.go:66
↓ 7 callersMethodWriteByte
(c byte)
proto/text_encode.go:164
↓ 7 callersMethodwrite
(s string)
jsonpb/encode.go:126
↓ 6 callersFunctionAnnotate
Annotate records the file name and proto AST path of a list of atoms so that a later call to P can emit a link from each atom to its origin.
protoc-gen-go/generator/generator.go:970
↓ 6 callersFunctionCamelCaseSlice
CamelCaseSlice is like CamelCase, but the argument is a slice of strings to be joined with "_".
protoc-gen-go/generator/generator.go:2689
↓ 6 callersMethodGetUnion
()
internal/testprotos/jsonpb_proto/test2.pb.go:661
↓ 6 callersMethodGetUnion
()
internal/testprotos/proto2_proto/test.pb.go:3511
↓ 6 callersFunctionMarshalAny
MarshalAny marshals the given message m into an anypb.Any message. Deprecated: Call the anypb.New function instead.
ptypes/any.go:45
↓ 6 callersMethodReset
Reset clears the internal buffer of all written and unread data.
proto/buffer.go:93
↓ 6 callersMethodReset
()
proto/proto_test.go:1303
↓ 6 callersFunctionSetDefaults
SetDefaults sets unpopulated scalar fields to their default values. Fields within a oneof are not set even if they have a default value. SetDefaults i
proto/defaults.go:14
↓ 6 callersFunctionSize
Size returns the size in bytes of the wire-format encoding of m.
proto/wire.go:13
↓ 6 callersMethodType
()
ptypes/any.go:162
↓ 6 callersFunctionoverify
(t *testing.T, pb *pb2.GoTest, want []byte)
proto/proto_test.go:100
↓ 5 callersMethodFindMessageByURL
(url string)
jsonpb/json.go:35
↓ 5 callersMethodMarshal
Marshal appends the wire-format encoding of m to the buffer.
proto/buffer.go:109
↓ 5 callersFunctionMarshalText
MarshalText writes the proto text format of m to w.
proto/text_encode.go:97
↓ 5 callersFunctionMarshalTextString
MarshalTextString returns a proto text formatted string of m.
proto/text_encode.go:100
↓ 5 callersFunctionRegisterType
map[messageName]reflect.Type RegisterType is called from generated code to register the message Go type for a message of the given name. Deprecated:
proto/registry.go:179
↓ 5 callersMethodText
Text returns a proto text formatted string of m.
proto/text_encode.go:43
↓ 5 callersFunctionUnmarshalMerge
UnmarshalMerge parses a wire-format message in b and places the decoded results in m.
proto/wire.go:62
↓ 5 callersFunctioncleanPackageName
(name string)
protoc-gen-go/generator/generator.go:622
↓ 5 callersFunctioninitGoTestField
()
proto/proto_test.go:30
↓ 5 callersMethodtypeName
Given a type name defined in a .proto, return its name as we will print it.
protoc-gen-go/grpc/grpc.go:73
↓ 4 callersFunctionClearExtension
ClearExtension removes the extension field from m either as an explicitly populated field or as an unknown field.
proto/extensions.go:73
↓ 4 callersMethodEncodeVarint
EncodeVarint appends an unsigned varint encoding to the buffer.
proto/buffer.go:140
↓ 4 callersMethodGoImportPath
()
protoc-gen-go/generator/generator.go:378
↓ 4 callersMethodGoPackageName
GoPackageName returns the name used for a package.
protoc-gen-go/generator/generator.go:515
↓ 4 callersMethodInit
Init is called once after data structures are built but before code generation begins.
protoc-gen-go/generator/generator.go:62
↓ 4 callersFunctionMessageV1
MessageV1 converts either a v1 or v2 message to a v1 message. It returns nil if m is nil.
proto/proto.go:54
↓ 4 callersMethodParse
Parse populates p by parsing a string in the protobuf struct field tag style.
proto/properties.go:137
↓ 4 callersMethodPrintComments
PrintComments prints any comments from the source .proto file. The path is a comma-separated list of integers. It returns an indication of whether any
protoc-gen-go/generator/generator.go:1227
↓ 4 callersFunctionRegisterEnum
map[protoreflect.FullName]int RegisterEnum is called from the generated code to register the mapping of enum value names to enum numbers for the enum
proto/registry.go:96
↓ 4 callersFunctionRegisterFile
map[filePath]fileDescGZIP RegisterFile is called from generated code to register the compressed FileDescriptorProto with the file path for a proto sou
proto/registry.go:34
↓ 4 callersFunctionRegisterMapType
RegisterMapType is called from generated code to register the Go map type for a protobuf message representing a map entry. Deprecated: Do not use.
proto/registry.go:191
↓ 4 callersMethodString
()
proto/buffer.go:126
↓ 4 callersMethodString
()
protoc-gen-go/generator/generator.go:82
↓ 4 callersFunctionUnmarshal
Unmarshal unmarshals a JSON object from r into m.
jsonpb/decode.go:33
↓ 4 callersFunctionUnmarshalString
UnmarshalString unmarshals a JSON object from s into m.
jsonpb/decode.go:38
↓ 4 callersMethodaddExport
(obj Object, sym symbol)
protoc-gen-go/generator/generator.go:317
↓ 4 callersMethodback
Back off the parser by one token. Can only be done between calls to next(). It makes the next advance() a no-op.
proto/text_decode.go:617
↓ 4 callersFunctionclearUnknown
clearUnknown removes unknown fields from m where remover.Has reports true.
proto/extensions.go:336
↓ 4 callersFunctionisRequiredNotSetError
When hooks are enabled, RequiredNotSetError is typed alias to internal/proto package. Binary serialization has not been wrapped yet and hence produces
proto/proto_test.go:132
↓ 4 callersFunctionisValidExtension
isValidExtension reports whether xtd is a valid extension descriptor for md.
proto/extensions.go:319
↓ 4 callersMethodproto3
()
protoc-gen-go/generator/generator.go:109
↓ 3 callersMethodAddImport
AddImport adds a package to the generated file's import section. It returns the name used for the package.
protoc-gen-go/generator/generator.go:530
↓ 3 callersFunctionCompute
Compute constructs a location mapping from input to output. An error is reported if any of the tokens of output cannot be mapped.
protoc-gen-go/generator/internal/remap/remap.go:44
↓ 3 callersMethodDecodeVarint
DecodeVarint consumes an encoded unsigned varint from the buffer.
proto/buffer.go:189
↓ 3 callersMethodDefaultPackageName
DefaultPackageName returns the package name printed for the object. If its file is in a different package, it returns the package name we're using for
protoc-gen-go/generator/generator.go:506
↓ 3 callersFunctionDiscardUnknown
DiscardUnknown recursively discards all unknown fields from this message and all embedded messages. When unmarshaling a message with unrecognized fie
proto/discard.go:19
next →1–100 of 1,635, ranked by callers