github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/clients/abe/model_a_bit_of_everything_6.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  package abe
    11  import (
    12  	"time"
    13  )
    14  
    15  // Intentionally complicated message type to cover many features of Protobuf.
    16  type ABitOfEverything6 struct {
    17  	SingleNested *ABitOfEverythingNested `json:"singleNested,omitempty"`
    18  	Nested []ABitOfEverythingNested `json:"nested,omitempty"`
    19  	// Float value field
    20  	FloatValue float32 `json:"floatValue"`
    21  	DoubleValue float64 `json:"doubleValue"`
    22  	Int64Value string `json:"int64Value"`
    23  	Uint64Value string `json:"uint64Value,omitempty"`
    24  	Int32Value int32 `json:"int32Value,omitempty"`
    25  	Fixed64Value string `json:"fixed64Value,omitempty"`
    26  	Fixed32Value int64 `json:"fixed32Value,omitempty"`
    27  	BoolValue bool `json:"boolValue,omitempty"`
    28  	StringValue string `json:"stringValue,omitempty"`
    29  	BytesValue string `json:"bytesValue,omitempty"`
    30  	Uint32Value int64 `json:"uint32Value,omitempty"`
    31  	EnumValue *ExamplepbNumericEnum `json:"enumValue,omitempty"`
    32  	PathEnumValue *PathenumPathEnum `json:"pathEnumValue,omitempty"`
    33  	NestedPathEnumValue *MessagePathEnumNestedPathEnum `json:"nestedPathEnumValue,omitempty"`
    34  	Sfixed32Value int32 `json:"sfixed32Value,omitempty"`
    35  	Sfixed64Value string `json:"sfixed64Value,omitempty"`
    36  	Sint32Value int32 `json:"sint32Value,omitempty"`
    37  	Sint64Value string `json:"sint64Value,omitempty"`
    38  	RepeatedStringValue []string `json:"repeatedStringValue,omitempty"`
    39  	OneofEmpty *interface{} `json:"oneofEmpty,omitempty"`
    40  	OneofString string `json:"oneofString,omitempty"`
    41  	MapValue map[string]ExamplepbNumericEnum `json:"mapValue,omitempty"`
    42  	MappedStringValue map[string]string `json:"mappedStringValue,omitempty"`
    43  	MappedNestedValue map[string]ABitOfEverythingNested `json:"mappedNestedValue,omitempty"`
    44  	NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"`
    45  	TimestampValue time.Time `json:"timestampValue,omitempty"`
    46  	RepeatedEnumValue []ExamplepbNumericEnum `json:"repeatedEnumValue,omitempty"`
    47  	// Repeated numeric enum description.
    48  	RepeatedEnumAnnotation []ExamplepbNumericEnum `json:"repeatedEnumAnnotation,omitempty"`
    49  	EnumValueAnnotation *ExamplepbNumericEnum `json:"enumValueAnnotation,omitempty"`
    50  	// Repeated string description.
    51  	RepeatedStringAnnotation []string `json:"repeatedStringAnnotation,omitempty"`
    52  	// Repeated nested object description.
    53  	RepeatedNestedAnnotation []ABitOfEverythingNested `json:"repeatedNestedAnnotation,omitempty"`
    54  	NestedAnnotation *ABitOfEverythingNested `json:"nestedAnnotation,omitempty"`
    55  	Int64OverrideType int64 `json:"int64OverrideType,omitempty"`
    56  	RequiredStringViaFieldBehaviorAnnotation string `json:"requiredStringViaFieldBehaviorAnnotation"`
    57  	OutputOnlyStringViaFieldBehaviorAnnotation string `json:"outputOnlyStringViaFieldBehaviorAnnotation,omitempty"`
    58  	OptionalStringValue string `json:"optionalStringValue,omitempty"`
    59  }