protobufx

package
v1.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	State_goname = "state"

	SizeCache_goname  = "sizeCache"
	SizeCacheA_goname = "XXX_sizecache"

	WeakFields_goname  = "weakFields"
	WeakFieldsA_goname = "XXX_weak"

	UnknownFields_goname  = "unknownFields"
	UnknownFieldsA_goname = "XXX_unrecognized"

	ExtensionFields_goname  = "extensionFields"
	ExtensionFieldsA_goname = "XXX_InternalExtensions"
	ExtensionFieldsB_goname = "XXX_extensions"

	WeakFieldPrefix_goname = "XXX_weak_"
)

Go names of implementation-specific struct fields in generated messages. https://github.com/protocolbuffers/protobuf-go/blob/ce4fa196c4e3b9a36d95cc39800915f71bf9a4f0/internal/genid/goname.go#L7-L25

View Source
const (
	GoogleProtobuf_package protoreflect.FullName = "google.protobuf"
	GoogleApi_package      protoreflect.FullName = "google.api"
)
View Source
const (
	Any_message_name         protoreflect.Name = "Any"
	Timestamp_message_name   protoreflect.Name = "Timestamp"
	Duration_message_name    protoreflect.Name = "Duration"
	BoolValue_message_name   protoreflect.Name = "BoolValue"
	Int32Value_message_name  protoreflect.Name = "Int32Value"
	Int64Value_message_name  protoreflect.Name = "Int64Value"
	UInt32Value_message_name protoreflect.Name = "UInt32Value"
	UInt64Value_message_name protoreflect.Name = "UInt64Value"
	FloatValue_message_name  protoreflect.Name = "FloatValue"
	DoubleValue_message_name protoreflect.Name = "DoubleValue"
	StringValue_message_name protoreflect.Name = "StringValue"
	BytesValue_message_name  protoreflect.Name = "BytesValue"
	Struct_message_name      protoreflect.Name = "Struct"
	ListValue_message_name   protoreflect.Name = "ListValue"
	Value_message_name       protoreflect.Name = "Value"
	FieldMask_message_name   protoreflect.Name = "FieldMask"
	Empty_message_name       protoreflect.Name = "Empty"
)
View Source
const (
	Any_message_fullname         protoreflect.FullName = "google.protobuf.Any"
	Timestamp_message_fullname   protoreflect.FullName = "google.protobuf.Timestamp"
	Duration_message_fullname    protoreflect.FullName = "google.protobuf.Duration"
	BoolValue_message_fullname   protoreflect.FullName = "google.protobuf.BoolValue"
	Int32Value_message_fullname  protoreflect.FullName = "google.protobuf.Int32Value"
	Int64Value_message_fullname  protoreflect.FullName = "google.protobuf.Int64Value"
	UInt32Value_message_fullname protoreflect.FullName = "google.protobuf.UInt32Value"
	UInt64Value_message_fullname protoreflect.FullName = "google.protobuf.UInt64Value"
	FloatValue_message_fullname  protoreflect.FullName = "google.protobuf.FloatValue"
	DoubleValue_message_fullname protoreflect.FullName = "google.protobuf.DoubleValue"
	StringValue_message_fullname protoreflect.FullName = "google.protobuf.StringValue"
	BytesValue_message_fullname  protoreflect.FullName = "google.protobuf.BytesValue"
	Struct_message_fullname      protoreflect.FullName = "google.protobuf.Struct"
	ListValue_message_fullname   protoreflect.FullName = "google.protobuf.ListValue"
	Value_message_fullname       protoreflect.FullName = "google.protobuf.Value"
	FieldMask_message_fullname   protoreflect.FullName = "google.protobuf.FieldMask"
	Empty_message_fullname       protoreflect.FullName = "google.protobuf.Empty"
)

Variables

This section is empty.

Functions

func FieldGoType added in v1.0.19

func FieldGoType(g *protogen.GeneratedFile, field *protogen.Field) (goType string, pointer bool)

FieldGoType returns the Go type used for a field.

If it returns pointer=true, the struct field is a pointer to the type. https://github.com/protocolbuffers/protobuf-go/blob/3b78ca86bdbb47b135364f251bde7db55fc7130d/cmd/protoc-gen-go/internal_gengo/main.go#L727-L768

func IsWellKnownType

func IsWellKnownType(f protoreflect.MessageDescriptor) bool

func OneOfInterfaceName added in v1.0.19

func OneOfInterfaceName(oneof *protogen.Oneof) string

oneofInterfaceName returns the name of the interface type implemented by the oneof field value types. https://github.com/protocolbuffers/protobuf-go/blob/3b78ca86bdbb47b135364f251bde7db55fc7130d/cmd/protoc-gen-go/internal_gengo/main.go#L920-L925

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL