Movatterモバイル変換


[0]ホーム

URL:


Warning Deprecated: Use the "google.golang.org/protobuf" module instead.

descriptor

package
v1.5.4Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License:BSD-3-ClauseImports:9Imported by:8,642

Details

Repository

github.com/golang/protobuf

Links

Documentation

Overview

Package descriptor provides functions for obtaining the protocol bufferdescriptors of generated Go types.

Deprecated: See the "google.golang.org/protobuf/reflect/protoreflect" packagefor how to obtain an EnumDescriptor or MessageDescriptor in order toprogramatically interact with the protobuf type system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcEnumDescriptorProtoadded inv1.4.0

EnumDescriptorProto returns the file descriptor proto representingthe enum and the enum descriptor proto for the enum itself.The returned proto messages must not be mutated.

funcEnumRawDescriptoradded inv1.4.0

func EnumRawDescriptor(eproto.GeneratedEnum) ([]byte, []int)

EnumRawDescriptor returns the GZIP'd raw file descriptor representingthe enum and the index path to reach the enum declaration.The returned slices must not be mutated.

funcForMessagedeprecated

ForMessage returns the file descriptor proto containingthe message and the message descriptor proto for the message itself.The returned proto messages must not be mutated.

Deprecated: Not all concrete message types satisfy the Message interface.Use MessageDescriptorProto instead. If possible, the calling code shouldbe rewritten to use protobuf reflection instead.See package "google.golang.org/protobuf/reflect/protoreflect" for details.

funcMessageDescriptorProtoadded inv1.4.0

MessageDescriptorProto returns the file descriptor proto representingthe message and the message descriptor proto for the message itself.The returned proto messages must not be mutated.

funcMessageRawDescriptoradded inv1.4.0

func MessageRawDescriptor(mproto.GeneratedMessage) ([]byte, []int)

MessageRawDescriptor returns the GZIP'd raw file descriptor representingthe message and the index path to reach the message declaration.The returned slices must not be mutated.

Types

typeMessagedeprecated

type Message interface {proto.MessageDescriptor() ([]byte, []int)}

Message is proto.Message with a method to return its descriptor.

Deprecated: The Descriptor method may not be generated by futureversions of protoc-gen-go, meaning that this interface may notbe implemented by many concrete message types.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp