Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, error)
func ConvertFrom ¶
func ConvertFrom(rd io.Reader) (*plugin.CodeGeneratorResponse, error)
ConvertFrom converts input from protoc to a CodeGeneratorRequest and starts conversion Returning a CodeGeneratorResponse containing either an error or the results of converting the given proto
Types ¶
type Comments ¶
Comments is a map between path in FileDescriptorProto and leading/trailing comments for each field.
func ParseComments ¶
func ParseComments(fd *descriptor.FileDescriptorProto) Comments
ParseComments reads FileDescriptorProto and parses comments into a map.
type Field ¶
type Field struct { Name string `json:"name"` Type string `json:"type"` Mode string `json:"mode"` Description string `json:"description,omitempty"` Fields []*Field `json:"fields,omitempty"` PolicyTags *PolicyTags `json:"policyTags,omitempty"` DefaultValueExpression string `json:"defaultValueExpression,omitempty"` }
Field describes the schema of a field in BigQuery.
type PolicyTags ¶
type PolicyTags struct {
Names []string `json:"names,omitempty"`
}
PolicyTags describes the structure of a Policy Tag
type ProtoPackage ¶
type ProtoPackage struct {
// contains filtered or unexported fields
}
ProtoPackage describes a package of Protobuf, which is an container of message types.
Click to show internal directories.
Click to hide internal directories.