extensions

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve[C proto.Message](
	options proto.Message,
	extensionType protoreflect.ExtensionType,
) (typedMessage C)

Resolve resolves extensions without using proto.GetExtension, in case the underlying type of the extension is not the concrete type expected by the library. In some cases, particularly when using a dynamic descriptor set, the underlying extension value's type will be a dynamicpb.Message. In some cases, the extension may not be resolved at all. This function handles reparsing the fields as needed to get it into the right concrete message. Resolve does not modify the input protobuf message, so it can be used concurrently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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