File: model_a_bit_of_everything_3.go

package info (click to toggle)
golang-github-grpc-ecosystem-grpc-gateway 2.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,236 kB
  • sloc: javascript: 357; makefile: 147; sh: 26
file content (78 lines) | stat: -rw-r--r-- 3,911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * A Bit of Everything
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * API version: 1.0
 * Contact: none@example.com
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */

package abe

import (
	"time"
)

// Intentionally complicated message type to cover many features of Protobuf.
type ABitOfEverything3 struct {
	SingleNested *ABitOfEverythingNested `json:"singleNested,omitempty"`
	Nested []ABitOfEverythingNested `json:"nested,omitempty"`
	// Float value field
	FloatValue float32 `json:"floatValue"`
	DoubleValue float64 `json:"doubleValue"`
	Int64Value string `json:"int64Value"`
	Uint64Value string `json:"uint64Value,omitempty"`
	Int32Value int32 `json:"int32Value,omitempty"`
	Fixed64Value string `json:"fixed64Value,omitempty"`
	Fixed32Value int64 `json:"fixed32Value,omitempty"`
	BoolValue bool `json:"boolValue,omitempty"`
	StringValue string `json:"stringValue,omitempty"`
	BytesValue string `json:"bytesValue,omitempty"`
	Uint32Value int64 `json:"uint32Value,omitempty"`
	EnumValue *ExamplepbNumericEnum `json:"enumValue,omitempty"`
	PathEnumValue *PathenumPathEnum `json:"pathEnumValue,omitempty"`
	NestedPathEnumValue *MessagePathEnumNestedPathEnum `json:"nestedPathEnumValue,omitempty"`
	Sfixed32Value int32 `json:"sfixed32Value,omitempty"`
	Sfixed64Value string `json:"sfixed64Value,omitempty"`
	Sint32Value int32 `json:"sint32Value,omitempty"`
	Sint64Value string `json:"sint64Value,omitempty"`
	RepeatedStringValue []string `json:"repeatedStringValue,omitempty"`
	OneofEmpty *interface{} `json:"oneofEmpty,omitempty"`
	OneofString string `json:"oneofString,omitempty"`
	MapValue map[string]ExamplepbNumericEnum `json:"mapValue,omitempty"`
	MappedStringValue map[string]string `json:"mappedStringValue,omitempty"`
	MappedNestedValue map[string]ABitOfEverythingNested `json:"mappedNestedValue,omitempty"`
	NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"`
	TimestampValue time.Time `json:"timestampValue,omitempty"`
	RepeatedEnumValue []ExamplepbNumericEnum `json:"repeatedEnumValue,omitempty"`
	// Repeated numeric enum description.
	RepeatedEnumAnnotation []ExamplepbNumericEnum `json:"repeatedEnumAnnotation,omitempty"`
	// Numeric enum description.
	EnumValueAnnotation *ExamplepbNumericEnum `json:"enumValueAnnotation,omitempty"`
	// Repeated string description.
	RepeatedStringAnnotation []string `json:"repeatedStringAnnotation,omitempty"`
	// Repeated nested object description.
	RepeatedNestedAnnotation []ABitOfEverythingNested `json:"repeatedNestedAnnotation,omitempty"`
	// Nested object description.
	NestedAnnotation *ABitOfEverythingNested `json:"nestedAnnotation,omitempty"`
	Int64OverrideType int64 `json:"int64OverrideType,omitempty"`
	RequiredStringViaFieldBehaviorAnnotation string `json:"requiredStringViaFieldBehaviorAnnotation"`
	OutputOnlyStringViaFieldBehaviorAnnotation string `json:"outputOnlyStringViaFieldBehaviorAnnotation,omitempty"`
	OptionalStringValue string `json:"optionalStringValue,omitempty"`
	// Only digits are allowed.
	ProductId []string `json:"productId,omitempty"`
	OptionalStringField string `json:"optionalStringField,omitempty"`
	RequiredStringField1 string `json:"requiredStringField1"`
	RequiredStringField2 string `json:"requiredStringField2"`
	RequiredFieldBehaviorJsonNameCustom string `json:"required_field_behavior_json_name_custom"`
	RequiredFieldSchemaJsonNameCustom string `json:"required_field_schema_json_name_custom"`
	TrailingOnly string `json:"trailingOnly,omitempty"`
	// Trailing only dot.
	TrailingOnlyDot string `json:"trailingOnlyDot,omitempty"`
	// Trailing both.
	TrailingBoth string `json:"trailingBoth,omitempty"`
	// This is an example of a multi-line comment.  Trailing multiline.
	TrailingMultiline string `json:"trailingMultiline,omitempty"`
	Uuids []string `json:"uuids,omitempty"`
}