pluginpb package - google.golang.org/protobuf/types/pluginpb - Go Packages (original) (raw)
- Variables
- type CodeGeneratorRequest
- func (*CodeGeneratorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CodeGeneratorRequest) GetCompilerVersion() *Version
- func (x *CodeGeneratorRequest) GetFileToGenerate() []string
- func (x *CodeGeneratorRequest) GetParameter() string
- func (x *CodeGeneratorRequest) GetProtoFile() []*descriptorpb.FileDescriptorProto
- func (x *CodeGeneratorRequest) GetSourceFileDescriptors() []*descriptorpb.FileDescriptorProto
- func (*CodeGeneratorRequest) ProtoMessage()
- func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message
- func (x *CodeGeneratorRequest) Reset()
- func (x *CodeGeneratorRequest) String() string
- type CodeGeneratorResponse
- func (*CodeGeneratorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CodeGeneratorResponse) GetError() string
- func (x *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File
- func (x *CodeGeneratorResponse) GetMaximumEdition() int32
- func (x *CodeGeneratorResponse) GetMinimumEdition() int32
- func (x *CodeGeneratorResponse) GetSupportedFeatures() uint64
- func (*CodeGeneratorResponse) ProtoMessage()
- func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message
- func (x *CodeGeneratorResponse) Reset()
- func (x *CodeGeneratorResponse) String() string
- type CodeGeneratorResponse_Feature
- func (CodeGeneratorResponse_Feature) Descriptor() protoreflect.EnumDescriptor
- func (x CodeGeneratorResponse_Feature) Enum() *CodeGeneratorResponse_Feature
- func (CodeGeneratorResponse_Feature) EnumDescriptor() ([]byte, []int)deprecated
- func (x CodeGeneratorResponse_Feature) Number() protoreflect.EnumNumber
- func (x CodeGeneratorResponse_Feature) String() string
- func (CodeGeneratorResponse_Feature) Type() protoreflect.EnumType
- func (x *CodeGeneratorResponse_Feature) UnmarshalJSON(b []byte) errordeprecated
- type CodeGeneratorResponse_File
- func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int)deprecated
- func (x *CodeGeneratorResponse_File) GetContent() string
- func (x *CodeGeneratorResponse_File) GetGeneratedCodeInfo() *descriptorpb.GeneratedCodeInfo
- func (x *CodeGeneratorResponse_File) GetInsertionPoint() string
- func (x *CodeGeneratorResponse_File) GetName() string
- func (*CodeGeneratorResponse_File) ProtoMessage()
- func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message
- func (x *CodeGeneratorResponse_File) Reset()
- func (x *CodeGeneratorResponse_File) String() string
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetMajor() int32
- func (x *Version) GetMinor() int32
- func (x *Version) GetPatch() int32
- func (x *Version) GetSuffix() string
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
This section is empty.
var ( CodeGeneratorResponse_Feature_name = map[int32]string{ 0: "FEATURE_NONE", 1: "FEATURE_PROTO3_OPTIONAL", 2: "FEATURE_SUPPORTS_EDITIONS", } CodeGeneratorResponse_Feature_value = map[string]int32{ "FEATURE_NONE": 0, "FEATURE_PROTO3_OPTIONAL": 1, "FEATURE_SUPPORTS_EDITIONS": 2, } )
Enum value maps for CodeGeneratorResponse_Feature.
This section is empty.
type CodeGeneratorRequest struct {
FileToGenerate [][string](/builtin#string) `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
Parameter *[string](/builtin#string) `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
ProtoFile []*[descriptorpb](/google.golang.org/protobuf@v1.36.6/types/descriptorpb).[FileDescriptorProto](/google.golang.org/protobuf@v1.36.6/types/descriptorpb#FileDescriptorProto) `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
SourceFileDescriptors []*[descriptorpb](/google.golang.org/protobuf@v1.36.6/types/descriptorpb).[FileDescriptorProto](/google.golang.org/protobuf@v1.36.6/types/descriptorpb#FileDescriptorProto) `protobuf:"bytes,17,rep,name=source_file_descriptors,json=sourceFileDescriptors" json:"source_file_descriptors,omitempty"`
CompilerVersion *[Version](#Version) `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
}
An encoded CodeGeneratorRequest is written to the plugin's stdin.
Deprecated: Use CodeGeneratorRequest.ProtoReflect.Descriptor instead.
func (x *CodeGeneratorRequest) GetCompilerVersion() *Version
func (*CodeGeneratorRequest) ProtoMessage()
func (x *CodeGeneratorRequest) Reset()
type CodeGeneratorResponse struct {
Error *[string](/builtin#string) `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
SupportedFeatures *[uint64](/builtin#uint64) `protobuf:"varint,2,opt,name=supported_features,json=supportedFeatures" json:"supported_features,omitempty"`
MinimumEdition *[int32](/builtin#int32) `protobuf:"varint,3,opt,name=minimum_edition,json=minimumEdition" json:"minimum_edition,omitempty"`
MaximumEdition *[int32](/builtin#int32) `protobuf:"varint,4,opt,name=maximum_edition,json=maximumEdition" json:"maximum_edition,omitempty"`
File []*[CodeGeneratorResponse_File](#CodeGeneratorResponse%5FFile) `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
}
The plugin writes an encoded CodeGeneratorResponse to stdout.
Deprecated: Use CodeGeneratorResponse.ProtoReflect.Descriptor instead.
func (x CodeGeneratorResponse) GetFile() []CodeGeneratorResponse_File
func (x *CodeGeneratorResponse) GetMaximumEdition() int32
func (x *CodeGeneratorResponse) GetMinimumEdition() int32
func (*CodeGeneratorResponse) ProtoMessage()
func (x *CodeGeneratorResponse) Reset()
type CodeGeneratorResponse_Feature int32
Sync with code_generator.h.
const ( CodeGeneratorResponse_FEATURE_NONE CodeGeneratorResponse_Feature = 0 CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL CodeGeneratorResponse_Feature = 1 CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS CodeGeneratorResponse_Feature = 2 )
Deprecated: Use CodeGeneratorResponse_Feature.Descriptor instead.
type CodeGeneratorResponse_File struct {
Name *[string](/builtin#string) `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
InsertionPoint *[string](/builtin#string) `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
Content *[string](/builtin#string) `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
GeneratedCodeInfo *[descriptorpb](/google.golang.org/protobuf@v1.36.6/types/descriptorpb).[GeneratedCodeInfo](/google.golang.org/protobuf@v1.36.6/types/descriptorpb#GeneratedCodeInfo) `protobuf:"bytes,16,opt,name=generated_code_info,json=generatedCodeInfo" json:"generated_code_info,omitempty"`
}
Represents a single generated file.
Deprecated: Use CodeGeneratorResponse_File.ProtoReflect.Descriptor instead.
func (*CodeGeneratorResponse_File) ProtoMessage()
func (x *CodeGeneratorResponse_File) Reset()
type Version struct {
Major *int32 protobuf:"varint,1,opt,name=major" json:"major,omitempty"
Minor *int32 protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"
Patch *int32 protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"
Suffix *[string](/builtin#string) `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
}
The version number of protocol compiler.
Deprecated: Use Version.ProtoReflect.Descriptor instead.
func (*Version) ProtoMessage()
func (x *Version) Reset()