Versions in this module Expand all Collapse all v2 v2.5.2 Jul 9, 2021 v2.5.1 Jul 9, 2021 Changes in this version + func IsWellKnownType(typeName string) bool + type Binding struct + Body *Body + HTTPMethod string + Index int + Method *Method + PathParams []Parameter + PathTmpl httprule.Template + ResponseBody *Body + func (b *Binding) ExplicitParams() []string + type Body struct + FieldPath FieldPath + func (b Body) AssignableExpr(msgExpr string) string + type Enum struct + File *File + ForcePrefixedName bool + Index int + Outers []string + func (e *Enum) FQEN() string + func (e *Enum) GoType(currentPackage string) string + type Field struct + FieldMessage *Message + ForcePrefixedName bool + Message *Message + func (f *Field) FQFN() string + type FieldPath []FieldPathComponent + func (p FieldPath) AssignableExpr(msgExpr string) string + func (p FieldPath) IsNestedProto3() bool + func (p FieldPath) IsOptionalProto3() bool + func (p FieldPath) String() string + type FieldPathComponent struct + Name string + Target *Field + func (c FieldPathComponent) AssignableExpr() string + func (c FieldPathComponent) ValueExpr() string + type File struct + Enums []*Enum + GeneratedFilenamePrefix string + GoPkg GoPackage + Messages []*Message + Services []*Service + func (f *File) Pkg() string + type GoPackage struct + Alias string + Name string + Path string + func (p GoPackage) Standard() bool + func (p GoPackage) String() string + type Message struct + Fields []*Field + File *File + ForcePrefixedName bool + Index int + Outers []string + func (m *Message) FQMN() string + func (m *Message) GoType(currentPackage string) string + type Method struct + Bindings []*Binding + RequestType *Message + ResponseType *Message + Service *Service + func (m *Method) FQMN() string + type Parameter struct + Method *Method + Target *Field + func (p Parameter) ConvertFuncExpr() (string, error) + func (p Parameter) IsEnum() bool + func (p Parameter) IsProto2() bool + func (p Parameter) IsRepeated() bool + type Registry struct + func NewRegistry() *Registry + func (r *Registry) AddExternalHTTPRule(qualifiedMethodName string, rule *annotations.HttpRule) + func (r *Registry) AddPkgMap(file, protoPkg string) + func (r *Registry) FieldName(f *Field) string + func (r *Registry) GetAllFQENs() []string + func (r *Registry) GetAllFQMNs() []string + func (r *Registry) GetDisableDefaultErrors() bool + func (r *Registry) GetEnumsAsInts() bool + func (r *Registry) GetMergeFileName() string + func (r *Registry) GetOmitPackageDoc() bool + func (r *Registry) GetOpenAPIFieldOption(qualifiedField string) (*options.JSONSchema, bool) + func (r *Registry) GetOpenAPIFileOption(file string) (*options.Swagger, bool) + func (r *Registry) GetOpenAPIMessageOption(qualifiedMessage string) (*options.Schema, bool) + func (r *Registry) GetOpenAPIMethodOption(qualifiedMethod string) (*options.Operation, bool) + func (r *Registry) GetOpenAPIServiceOption(qualifiedService string) (*options.Tag, bool) + func (r *Registry) GetProto3OptionalNullable() bool + func (r *Registry) GetRecursiveDepth() int + func (r *Registry) GetRepeatedPathParamSeparator() rune + func (r *Registry) GetRepeatedPathParamSeparatorName() string + func (r *Registry) GetSimpleOperationIDs() bool + func (r *Registry) GetUseFQNForOpenAPIName() bool + func (r *Registry) GetUseGoTemplate() bool + func (r *Registry) GetUseJSONNamesForFields() bool + func (r *Registry) IsAllowMerge() bool + func (r *Registry) IsAllowRepeatedFieldsInBody() bool + func (r *Registry) IsIncludePackageInTags() bool + func (r *Registry) Load(req *pluginpb.CodeGeneratorRequest) error + func (r *Registry) LoadFromPlugin(gen *protogen.Plugin) error + func (r *Registry) LoadGrpcAPIServiceFromYAML(yamlFile string) error + func (r *Registry) LoadOpenAPIConfigFromYAML(yamlFile string) error + func (r *Registry) LookupEnum(location, name string) (*Enum, error) + func (r *Registry) LookupExternalHTTPRules(qualifiedMethodName string) []*annotations.HttpRule + func (r *Registry) LookupFile(name string) (*File, error) + func (r *Registry) LookupMsg(location, name string) (*Message, error) + func (r *Registry) RegisterOpenAPIOptions(opts *openapiconfig.OpenAPIOptions) error + func (r *Registry) ReserveGoPackageAlias(alias, pkgpath string) error + func (r *Registry) SetAllowDeleteBody(allow bool) + func (r *Registry) SetAllowMerge(allow bool) + func (r *Registry) SetAllowRepeatedFieldsInBody(allow bool) + func (r *Registry) SetDisableDefaultErrors(use bool) + func (r *Registry) SetEnumsAsInts(enumsAsInts bool) + func (r *Registry) SetGenerateUnboundMethods(generate bool) + func (r *Registry) SetIncludePackageInTags(allow bool) + func (r *Registry) SetMergeFileName(mergeFileName string) + func (r *Registry) SetOmitPackageDoc(omit bool) + func (r *Registry) SetPrefix(prefix string) + func (r *Registry) SetProto3OptionalNullable(proto3OtionalNullable bool) + func (r *Registry) SetRecursiveDepth(count int) + func (r *Registry) SetRepeatedPathParamSeparator(name string) error + func (r *Registry) SetSimpleOperationIDs(use bool) + func (r *Registry) SetStandalone(standalone bool) + func (r *Registry) SetUseFQNForOpenAPIName(use bool) + func (r *Registry) SetUseGoTemplate(use bool) + func (r *Registry) SetUseJSONNamesForFields(use bool) + func (r *Registry) SetWarnOnUnboundMethods(warn bool) + func (r *Registry) UnboundExternalHTTPRules() []string + type ResponseFile struct + GoPkg GoPackage + type Service struct + File *File + ForcePrefixedName bool + Methods []*Method + func (s *Service) ClientConstructorName() string + func (s *Service) FQSN() string + func (s *Service) InstanceName() string