kubernetes/vendor/github.com/golang/protobuf/ptypes/any.go

const urlPrefix

// AnyMessageName returns the message name contained in an anypb.Any message.
// Most type assertions should use the Is function instead.
//
// Deprecated: Call the any.MessageName method instead.
func AnyMessageName(any *anypb.Any) (string, error) {}

func anyMessageName(any *anypb.Any) (protoreflect.FullName, error) {}

// MarshalAny marshals the given message m into an anypb.Any message.
//
// Deprecated: Call the anypb.New function instead.
func MarshalAny(m proto.Message) (*anypb.Any, error) {}

// Empty returns a new message of the type specified in an anypb.Any message.
// It returns protoregistry.NotFound if the corresponding message type could not
// be resolved in the global registry.
//
// Deprecated: Use protoregistry.GlobalTypes.FindMessageByName instead
// to resolve the message name and create a new instance of it.
func Empty(any *anypb.Any) (proto.Message, error) {}

// UnmarshalAny unmarshals the encoded value contained in the anypb.Any message
// into the provided message m. It returns an error if the target message
// does not match the type in the Any message or if an unmarshal error occurs.
//
// The target message m may be a *DynamicAny message. If the underlying message
// type could not be resolved, then this returns protoregistry.NotFound.
//
// Deprecated: Call the any.UnmarshalTo method instead.
func UnmarshalAny(any *anypb.Any, m proto.Message) error {}

// Is reports whether the Any message contains a message of the specified type.
//
// Deprecated: Call the any.MessageIs method instead.
func Is(any *anypb.Any, m proto.Message) bool {}

type DynamicAny

func (m DynamicAny) String() string {}

func (m DynamicAny) Reset() {}

func (m DynamicAny) ProtoMessage() {}

func (m DynamicAny) ProtoReflect() protoreflect.Message {}

type dynamicAny

func (m dynamicAny) Type() protoreflect.MessageType {}

func (m dynamicAny) New() protoreflect.Message {}

func (m dynamicAny) Interface() protoreflect.ProtoMessage {}

type dynamicAnyType

func (t dynamicAnyType) New() protoreflect.Message {}

func (t dynamicAnyType) Zero() protoreflect.Message {}