github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/clients/abe/model_a_bit_of_everything.go (about) 1 /* 2 * A Bit of Everything 3 * 4 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 * 6 * API version: 1.0 7 * Contact: none@example.com 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 11 package abe 12 13 import ( 14 "time" 15 ) 16 17 // Intentionally complicated message type to cover many features of Protobuf. 18 type ABitOfEverything struct { 19 SingleNested *ABitOfEverythingNested `json:"singleNested,omitempty"` 20 Nested []ABitOfEverythingNested `json:"nested,omitempty"` 21 // Float value field 22 FloatValue float32 `json:"floatValue"` 23 DoubleValue float64 `json:"doubleValue"` 24 Int64Value string `json:"int64Value"` 25 Uint64Value string `json:"uint64Value,omitempty"` 26 Int32Value int32 `json:"int32Value,omitempty"` 27 Fixed64Value string `json:"fixed64Value,omitempty"` 28 Fixed32Value int64 `json:"fixed32Value,omitempty"` 29 BoolValue bool `json:"boolValue,omitempty"` 30 StringValue string `json:"stringValue,omitempty"` 31 BytesValue string `json:"bytesValue,omitempty"` 32 Uint32Value int64 `json:"uint32Value,omitempty"` 33 EnumValue *ExamplepbNumericEnum `json:"enumValue,omitempty"` 34 PathEnumValue *PathenumPathEnum `json:"pathEnumValue,omitempty"` 35 NestedPathEnumValue *MessagePathEnumNestedPathEnum `json:"nestedPathEnumValue,omitempty"` 36 Sfixed32Value int32 `json:"sfixed32Value,omitempty"` 37 Sfixed64Value string `json:"sfixed64Value,omitempty"` 38 Sint32Value int32 `json:"sint32Value,omitempty"` 39 Sint64Value string `json:"sint64Value,omitempty"` 40 RepeatedStringValue []string `json:"repeatedStringValue,omitempty"` 41 OneofEmpty *interface{} `json:"oneofEmpty,omitempty"` 42 OneofString string `json:"oneofString,omitempty"` 43 MapValue map[string]ExamplepbNumericEnum `json:"mapValue,omitempty"` 44 MappedStringValue map[string]string `json:"mappedStringValue,omitempty"` 45 MappedNestedValue map[string]ABitOfEverythingNested `json:"mappedNestedValue,omitempty"` 46 NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"` 47 TimestampValue time.Time `json:"timestampValue,omitempty"` 48 RepeatedEnumValue []ExamplepbNumericEnum `json:"repeatedEnumValue,omitempty"` 49 // Repeated numeric enum description. 50 RepeatedEnumAnnotation []ExamplepbNumericEnum `json:"repeatedEnumAnnotation,omitempty"` 51 // Numeric enum description. 52 EnumValueAnnotation *ExamplepbNumericEnum `json:"enumValueAnnotation,omitempty"` 53 // Repeated string description. 54 RepeatedStringAnnotation []string `json:"repeatedStringAnnotation,omitempty"` 55 // Repeated nested object description. 56 RepeatedNestedAnnotation []ABitOfEverythingNested `json:"repeatedNestedAnnotation,omitempty"` 57 // Nested object description. 58 NestedAnnotation *ABitOfEverythingNested `json:"nestedAnnotation,omitempty"` 59 Int64OverrideType int64 `json:"int64OverrideType,omitempty"` 60 RequiredStringViaFieldBehaviorAnnotation string `json:"requiredStringViaFieldBehaviorAnnotation"` 61 OutputOnlyStringViaFieldBehaviorAnnotation string `json:"outputOnlyStringViaFieldBehaviorAnnotation,omitempty"` 62 OptionalStringValue string `json:"optionalStringValue,omitempty"` 63 // Only digits are allowed. 64 ProductId []string `json:"productId,omitempty"` 65 OptionalStringField string `json:"optionalStringField,omitempty"` 66 RequiredStringField1 string `json:"requiredStringField1"` 67 RequiredStringField2 string `json:"requiredStringField2"` 68 RequiredFieldBehaviorJsonNameCustom string `json:"required_field_behavior_json_name_custom"` 69 RequiredFieldSchemaJsonNameCustom string `json:"required_field_schema_json_name_custom"` 70 TrailingOnly string `json:"trailingOnly,omitempty"` 71 // Trailing only dot. 72 TrailingOnlyDot string `json:"trailingOnlyDot,omitempty"` 73 // Trailing both. 74 TrailingBoth string `json:"trailingBoth,omitempty"` 75 // This is an example of a multi-line comment. Trailing multiline. 76 TrailingMultiline string `json:"trailingMultiline,omitempty"` 77 Uuids []string `json:"uuids,omitempty"` 78 }