github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/clients/abe/model_examplepb_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 ExamplepbABitOfEverything struct { 19 SingleNested *ABitOfEverythingNested `json:"singleNested,omitempty"` 20 Uuid string `json:"uuid"` 21 Nested []ABitOfEverythingNested `json:"nested,omitempty"` 22 // Float value field 23 FloatValue float32 `json:"floatValue"` 24 DoubleValue float64 `json:"doubleValue"` 25 Int64Value string `json:"int64Value"` 26 Uint64Value string `json:"uint64Value,omitempty"` 27 Int32Value int32 `json:"int32Value,omitempty"` 28 Fixed64Value string `json:"fixed64Value,omitempty"` 29 Fixed32Value int64 `json:"fixed32Value,omitempty"` 30 BoolValue bool `json:"boolValue,omitempty"` 31 StringValue string `json:"stringValue,omitempty"` 32 BytesValue string `json:"bytesValue,omitempty"` 33 Uint32Value int64 `json:"uint32Value,omitempty"` 34 EnumValue *ExamplepbNumericEnum `json:"enumValue,omitempty"` 35 PathEnumValue *PathenumPathEnum `json:"pathEnumValue,omitempty"` 36 NestedPathEnumValue *MessagePathEnumNestedPathEnum `json:"nestedPathEnumValue,omitempty"` 37 Sfixed32Value int32 `json:"sfixed32Value,omitempty"` 38 Sfixed64Value string `json:"sfixed64Value,omitempty"` 39 Sint32Value int32 `json:"sint32Value,omitempty"` 40 Sint64Value string `json:"sint64Value,omitempty"` 41 RepeatedStringValue []string `json:"repeatedStringValue,omitempty"` 42 OneofEmpty *interface{} `json:"oneofEmpty,omitempty"` 43 OneofString string `json:"oneofString,omitempty"` 44 MapValue map[string]ExamplepbNumericEnum `json:"mapValue,omitempty"` 45 MappedStringValue map[string]string `json:"mappedStringValue,omitempty"` 46 MappedNestedValue map[string]ABitOfEverythingNested `json:"mappedNestedValue,omitempty"` 47 NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"` 48 TimestampValue time.Time `json:"timestampValue,omitempty"` 49 RepeatedEnumValue []ExamplepbNumericEnum `json:"repeatedEnumValue,omitempty"` 50 // Repeated numeric enum description. 51 RepeatedEnumAnnotation []ExamplepbNumericEnum `json:"repeatedEnumAnnotation,omitempty"` 52 // Numeric enum description. 53 EnumValueAnnotation *ExamplepbNumericEnum `json:"enumValueAnnotation,omitempty"` 54 // Repeated string description. 55 RepeatedStringAnnotation []string `json:"repeatedStringAnnotation,omitempty"` 56 // Repeated nested object description. 57 RepeatedNestedAnnotation []ABitOfEverythingNested `json:"repeatedNestedAnnotation,omitempty"` 58 // Nested object description. 59 NestedAnnotation *ABitOfEverythingNested `json:"nestedAnnotation,omitempty"` 60 Int64OverrideType int64 `json:"int64OverrideType,omitempty"` 61 RequiredStringViaFieldBehaviorAnnotation string `json:"requiredStringViaFieldBehaviorAnnotation"` 62 OutputOnlyStringViaFieldBehaviorAnnotation string `json:"outputOnlyStringViaFieldBehaviorAnnotation,omitempty"` 63 OptionalStringValue string `json:"optionalStringValue,omitempty"` 64 // Only digits are allowed. 65 ProductId []string `json:"productId,omitempty"` 66 OptionalStringField string `json:"optionalStringField,omitempty"` 67 RequiredStringField1 string `json:"requiredStringField1"` 68 RequiredStringField2 string `json:"requiredStringField2"` 69 RequiredFieldBehaviorJsonNameCustom string `json:"required_field_behavior_json_name_custom"` 70 RequiredFieldSchemaJsonNameCustom string `json:"required_field_schema_json_name_custom"` 71 TrailingOnly string `json:"trailingOnly,omitempty"` 72 // Trailing only dot. 73 TrailingOnlyDot string `json:"trailingOnlyDot,omitempty"` 74 // Trailing both. 75 TrailingBoth string `json:"trailingBoth,omitempty"` 76 // This is an example of a multi-line comment. Trailing multiline. 77 TrailingMultiline string `json:"trailingMultiline,omitempty"` 78 Uuids []string `json:"uuids,omitempty"` 79 }