...

Source file src/github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/abe/model_examplepb_a_bit_of_everything.go

Documentation: github.com/grpc-ecosystem/grpc-gateway/examples/internal/clients/abe

     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  // Intentionaly complicated message type to cover many features of Protobuf.
    18  type ExamplepbABitOfEverything struct {
    19  	SingleNested *ABitOfEverythingNested `json:"single_nested,omitempty"`
    20  	Uuid string `json:"uuid"`
    21  	Nested []ABitOfEverythingNested `json:"nested,omitempty"`
    22  	// Float value field
    23  	FloatValue float32 `json:"float_value,omitempty"`
    24  	DoubleValue float64 `json:"double_value"`
    25  	Int64Value string `json:"int64_value"`
    26  	Uint64Value string `json:"uint64_value,omitempty"`
    27  	Int32Value int32 `json:"int32_value,omitempty"`
    28  	Fixed64Value string `json:"fixed64_value,omitempty"`
    29  	Fixed32Value int64 `json:"fixed32_value,omitempty"`
    30  	BoolValue bool `json:"bool_value,omitempty"`
    31  	StringValue string `json:"string_value,omitempty"`
    32  	BytesValue string `json:"bytes_value,omitempty"`
    33  	Uint32Value int64 `json:"uint32_value,omitempty"`
    34  	EnumValue *ExamplepbNumericEnum `json:"enum_value,omitempty"`
    35  	PathEnumValue *PathenumPathEnum `json:"path_enum_value,omitempty"`
    36  	NestedPathEnumValue *MessagePathEnumNestedPathEnum `json:"nested_path_enum_value,omitempty"`
    37  	Sfixed32Value int32 `json:"sfixed32_value,omitempty"`
    38  	Sfixed64Value string `json:"sfixed64_value,omitempty"`
    39  	Sint32Value int32 `json:"sint32_value,omitempty"`
    40  	Sint64Value string `json:"sint64_value,omitempty"`
    41  	RepeatedStringValue []string `json:"repeated_string_value,omitempty"`
    42  	OneofEmpty *interface{} `json:"oneof_empty,omitempty"`
    43  	OneofString string `json:"oneof_string,omitempty"`
    44  	MapValue map[string]ExamplepbNumericEnum `json:"map_value,omitempty"`
    45  	MappedStringValue map[string]string `json:"mapped_string_value,omitempty"`
    46  	MappedNestedValue map[string]ABitOfEverythingNested `json:"mapped_nested_value,omitempty"`
    47  	NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"`
    48  	TimestampValue time.Time `json:"timestamp_value,omitempty"`
    49  	RepeatedEnumValue []ExamplepbNumericEnum `json:"repeated_enum_value,omitempty"`
    50  	// Repeated numeric enum description.
    51  	RepeatedEnumAnnotation []ExamplepbNumericEnum `json:"repeated_enum_annotation,omitempty"`
    52  	// Numeric enum description.
    53  	EnumValueAnnotation *ExamplepbNumericEnum `json:"enum_value_annotation,omitempty"`
    54  	// Repeated string description.
    55  	RepeatedStringAnnotation []string `json:"repeated_string_annotation,omitempty"`
    56  	// Repeated nested object description.
    57  	RepeatedNestedAnnotation []ABitOfEverythingNested `json:"repeated_nested_annotation,omitempty"`
    58  	// Nested object description.
    59  	NestedAnnotation *ABitOfEverythingNested `json:"nested_annotation,omitempty"`
    60  	Int64OverrideType int64 `json:"int64_override_type,omitempty"`
    61  }
    62  

View as plain text