Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error)
func IsWellKnownType ¶
func IsWellKnownType(desc protoreflect.Descriptor) bool
Types ¶
type WellKnown ¶
type WellKnown string
const ( WellKnownAny WellKnown = "google.protobuf.Any" WellKnownDuration WellKnown = "google.protobuf.Duration" WellKnownEmpty WellKnown = "google.protobuf.Empty" WellKnownFieldMask WellKnown = "google.protobuf.FieldMask" WellKnownStruct WellKnown = "google.protobuf.Struct" WellKnownTimestamp WellKnown = "google.protobuf.Timestamp" // Wrapper types. WellKnownFloatValue WellKnown = "google.protobuf.FloatValue" WellKnownInt64Value WellKnown = "google.protobuf.Int64Value" WellKnownInt32Value WellKnown = "google.protobuf.Int32Value" WellKnownUInt64Value WellKnown = "google.protobuf.UInt64Value" WellKnownUInt32Value WellKnown = "google.protobuf.UInt32Value" WellKnownBytesValue WellKnown = "google.protobuf.BytesValue" WellKnownDoubleValue WellKnown = "google.protobuf.DoubleValue" WellKnownBoolValue WellKnown = "google.protobuf.BoolValue" WellKnownStringValue WellKnown = "google.protobuf.StringValue" // Descriptor types. WellKnownValue WellKnown = "google.protobuf.Value" WellKnownNullValue WellKnown = "google.protobuf.NullValue" WellKnownListValue WellKnown = "google.protobuf.ListValue" )
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf
func WellKnownType ¶
func WellKnownType(desc protoreflect.Descriptor) (WellKnown, bool)
func (WellKnown) TypeDeclaration ¶
Click to show internal directories.
Click to hide internal directories.