Versions in this module Expand all Collapse all v1 v1.0.0 Dec 14, 2023 Changes in this version + const BoolType + const BytesType + const DoubleType + const Float32Type + const Float64Type + const FloatType + const Int32Type + const Int64Type + const StringType + const UInt32Type + const UInt64Type + type ConversionMode int32 + const ConversionMode_ModelToProto + const ConversionMode_ProtoToModel + type Enum struct + Entries []*EnumEntry + Name string + Prefix string + func LoadEnums(file *protogen.File) []Enum + type EnumEntry struct + Name string + ProtoName string + type Field struct + GoName string + GoType string + IsArray bool + JsonName string + Location FieldLocation + ProtoName string + Type descriptor.FieldDescriptorProto_Type + func NewField(packageName string, field *descriptor.FieldDescriptorProto, ...) *Field + func (f *Field) GetAppendFieldValue(loopName string) string + func (f *Field) GetEnumFromStringCall() string + func (f *Field) GetExpandConverter(receiver string) string + func (f *Field) GetFormFieldFileNames() string + func (f *Field) GetFormFieldValueNames() string + func (f *Field) GetMapEnumRealValueType() string + func (f *Field) GetMapFieldKeyType() string + func (f *Field) GetMapFieldKeyValueType() string + func (f *Field) GetMapValueType() string + func (f *Field) GetModelConverter(receiver string) string + func (f *Field) GetModelTag() string + func (f *Field) GetName() string + func (f *Field) GetProtoConverter(receiver string) string + func (f *Field) GetProtoType() string + func (f *Field) GetResponseConverter(receiver string) string + func (f *Field) GetResponseTag() string + func (f *Field) GetType() string + func (f *Field) GetValidationDefinition() *extension.Validation + func (f *Field) GetValidator() string + func (f *Field) GoEnumType() string + func (f *Field) GoMessageType() string + func (f *Field) HasMultipartFormFiles() bool + func (f *Field) HasMultipartFormValues() bool + func (f *Field) HasValidatorTag() bool + func (f *Field) IsEnum() bool + func (f *Field) IsInternalMessage() bool + func (f *Field) IsMap() bool + func (f *Field) IsMessage() bool + func (f *Field) IsMultipartForm() bool + func (f *Field) IsMultipartFormRequired() bool + func (f *Field) IsPointer() bool + func (f *Field) IsProtobufTimestamp() bool + func (f *Field) MapToEnum() bool + func (f *Field) MapToMessage() bool + func (f *Field) NeedsAddressNotation() bool + func (f *Field) NeedsOzzoIsPackage() bool + func (f *Field) Validate() error + type FieldLocation int32 + const FieldLocation_Body + const FieldLocation_Header + const FieldLocation_Path + const FieldLocation_Query + const FieldLocation_Unknown + func (l FieldLocation) String() string + type FieldMapEntry struct + Key string + func (e *FieldMapEntry) GetDefaultValue() string + type HttpRule struct + Endpoint string + Method string + type Message struct + DontExport bool + Fields []*Field + HasHttpResponseModel bool + Name string + func LoadEntities(file *protogen.File, packageName string) ([]*Message, error) + func LoadMessages(file *protogen.File) ([]*Message, error) + func NewMessage(options *NewMessageOptions) (*Message, error) + func (m *Message) ArrayFields() []*Field + func (m *Message) BodyArgumentsFields() []*Field + func (m *Message) BodyRequired() bool + func (m *Message) EntityValidate() error + func (m *Message) Export() bool + func (m *Message) FullParseFromBody() bool + func (m *Message) GetEntityName() string + func (m *Message) GetFormFieldFileNames() string + func (m *Message) GetFormFieldValueNames() string + func (m *Message) GetReceiverName() string + func (m *Message) HasArrayField() bool + func (m *Message) HasCommonSettings() bool + func (m *Message) HasEnumField() bool + func (m *Message) HasFieldWithValidation() bool + func (m *Message) HasHeaderArguments() bool + func (m *Message) HasIDField() bool + func (m *Message) HasInternalMessageFields() bool + func (m *Message) HasMapField() bool + func (m *Message) HasMessageField() bool + func (m *Message) HasMultipartField() bool + func (m *Message) HasQueryArguments() bool + func (m *Message) HeaderArgumentsFields() []*Field + func (m *Message) InternalMessageFields() []*Field + func (m *Message) IsCommonSettings() bool + func (m *Message) IsEntity() bool + func (m *Message) IsRpcRequestArgument() bool + func (m *Message) Kind() MessageKind + func (m *Message) MapFields() []*Field + func (m *Message) NonArrayFields() []*Field + func (m *Message) PathArgumentsFields() []*Field + func (m *Message) QueryArgumentsFields() []*Field + func (m *Message) SettingsValidate() error + func (m *Message) SimpleFields() []*Field + type MessageKind int32 + const MessageKind_Entity + const MessageKind_External + const MessageKind_Input + const MessageKind_Output + const MessageKind_Unknown + type Method struct + AdditionalHTTPMethods []HttpRule + ContentType string + Endpoint string + HTTPMethod string + Name string + Request Request + Returns Returns + Scopes []string + func LoadMethods(file *protogen.File, entitiesFile *protogen.File, packageName string) []*Method + func (m *Method) AuthVersion() int + func (m *Method) BodyField() string + func (m *Method) EchoEndpoint() string + func (m *Method) GetScopes() string + func (m *Method) IsHTTPEndpoint() bool + func (m *Method) IsMultipartFormData() bool + func (m *Method) IsTextPlain() bool + func (m *Method) Validate() error + type MsgFieldDefaultValue struct + FieldName string + func (m *MsgFieldDefaultValue) GetDefaultValue() string + type NewMessageOptions struct + Fields []*Field + Kind MessageKind + Message *descriptor.DescriptorProto + MessageSchema *protogen.Message + PackageName string + Responses *responseMessages + type Request struct + Messages []*Message + Name string + type Returns struct + Messages []*Message + Name string