...

Source file src/github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/clients/unannotatedecho/model_examplepb_unannotated_simple_message.go

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

     1  /*
     2   * Unannotated Echo
     3   *
     4   * Unannotated Echo Service Similar to echo_service.proto but without annotations. See unannotated_echo_service.yaml for the equivalent of the annotations in gRPC API configuration format.  Echo Service API consists of a single service which returns a message.
     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 unannotatedecho
    12  
    13  // A simple message with many types
    14  type ExamplepbUnannotatedSimpleMessage struct {
    15  	// Id represents the message identifier.
    16  	Id string `json:"id"`
    17  	// Int value field
    18  	Num string `json:"num"`
    19  	Duration string `json:"duration,omitempty"`
    20  	LineNum string `json:"lineNum,omitempty"`
    21  	Lang string `json:"lang,omitempty"`
    22  	Status *ExamplepbUnannotatedEmbedded `json:"status,omitempty"`
    23  	En string `json:"en,omitempty"`
    24  	No *ExamplepbUnannotatedEmbedded `json:"no,omitempty"`
    25  	ResourceId string `json:"resourceId,omitempty"`
    26  	NId *ExamplepbUnannotatedNestedMessage `json:"nId,omitempty"`
    27  }
    28  

View as plain text