testgen

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OuterEnumOUTER0 uint64 = 1 << 0
	OuterEnumOUTER1 uint64 = 1 << 1
	OuterEnumOUTER2 uint64 = 1 << 2
	OuterEnumOUTER3 uint64 = 1 << 3
)
View Source
const (
	InnerEnumINNER0 uint64 = 1 << 0
	InnerEnumINNER1 uint64 = 1 << 1
	InnerEnumINNER2 uint64 = 1 << 2
	InnerEnumINNER3 uint64 = 1 << 3
)
View Source
const TestGenFieldBb = "15"
View Source
const TestGenFieldDb = "3"
View Source
const TestGenFieldF32 = "11"
View Source
const TestGenFieldF64 = "12"
View Source
const TestGenFieldFl = "4"
View Source
const TestGenFieldI32 = "5"
View Source
const TestGenFieldI64 = "6"
View Source
const TestGenFieldIncludeFields = "22"
View Source
const TestGenFieldIncludeFieldsName = "22.2"
View Source
const TestGenFieldIncludeFieldsNonnull = "23"
View Source
const TestGenFieldIncludeFieldsNonnullName = "23.2"
View Source
const TestGenFieldIncludeMsg = "20"
View Source
const TestGenFieldIncludeMsgId = "20.2"
View Source
const TestGenFieldIncludeMsgName = "20.1"
View Source
const TestGenFieldIncludeMsgNestedMsg = "20.3"
View Source
const TestGenFieldIncludeMsgNestedMsgName = "20.3.1"
View Source
const TestGenFieldIncludeMsgNonnull = "21"
View Source
const TestGenFieldIncludeMsgNonnullId = "21.2"
View Source
const TestGenFieldIncludeMsgNonnullName = "21.1"
View Source
const TestGenFieldIncludeMsgNonnullNestedMsg = "21.3"
View Source
const TestGenFieldIncludeMsgNonnullNestedMsgName = "21.3.1"
View Source
const TestGenFieldInnerEn = "17"
View Source
const TestGenFieldInnerMsg = "18"
View Source
const TestGenFieldInnerMsgId = "18.2"
View Source
const TestGenFieldInnerMsgNonnull = "19"
View Source
const TestGenFieldInnerMsgNonnullId = "19.2"
View Source
const TestGenFieldInnerMsgNonnullUrl = "19.1"
View Source
const TestGenFieldInnerMsgUrl = "18.1"
View Source
const TestGenFieldIntMap = "37"
View Source
const TestGenFieldIntMapKey = "37.1"
View Source
const TestGenFieldIntMapValue = "37.2"
View Source
const TestGenFieldIp = "27"
View Source
const TestGenFieldLoc = "24"
View Source
const TestGenFieldLocAltitude = "24.5"
View Source
const TestGenFieldLocCourse = "24.6"
View Source
const TestGenFieldLocHorizontalAccuracy = "24.3"
View Source
const TestGenFieldLocLatitude = "24.1"
View Source
const TestGenFieldLocLongitude = "24.2"
View Source
const TestGenFieldLocNonnull = "25"
View Source
const TestGenFieldLocNonnullAltitude = "25.5"
View Source
const TestGenFieldLocNonnullCourse = "25.6"
View Source
const TestGenFieldLocNonnullHorizontalAccuracy = "25.3"
View Source
const TestGenFieldLocNonnullLatitude = "25.1"
View Source
const TestGenFieldLocNonnullLongitude = "25.2"
View Source
const TestGenFieldLocNonnullSpeed = "25.7"
View Source
const TestGenFieldLocNonnullTimestamp = "25.8"
View Source
const TestGenFieldLocNonnullTimestampNanos = "25.8.2"
View Source
const TestGenFieldLocNonnullTimestampSeconds = "25.8.1"
View Source
const TestGenFieldLocNonnullVerticalAccuracy = "25.4"
View Source
const TestGenFieldLocSpeed = "24.7"
View Source
const TestGenFieldLocTimestamp = "24.8"
View Source
const TestGenFieldLocTimestampNanos = "24.8.2"
View Source
const TestGenFieldLocTimestampSeconds = "24.8.1"
View Source
const TestGenFieldLocVerticalAccuracy = "24.4"
View Source
const TestGenFieldMsgMap = "38"
View Source
const TestGenFieldMsgMapKey = "38.1"
View Source
const TestGenFieldMsgMapValue = "38.2"
View Source
const TestGenFieldMsgMapValueName = "38.2.1"
View Source
const TestGenFieldName = "2"
View Source
const TestGenFieldNames = "28"
View Source
const TestGenFieldOuterEn = "16"
View Source
const TestGenFieldRepeatedFields = "31"
View Source
const TestGenFieldRepeatedFieldsName = "31.2"
View Source
const TestGenFieldRepeatedFieldsNonnull = "32"
View Source
const TestGenFieldRepeatedFieldsNonnullName = "32.2"
View Source
const TestGenFieldRepeatedInnerMsg = "33"
View Source
const TestGenFieldRepeatedInnerMsgId = "33.2"
View Source
const TestGenFieldRepeatedInnerMsgNonnull = "34"
View Source
const TestGenFieldRepeatedInnerMsgNonnullId = "34.2"
View Source
const TestGenFieldRepeatedInnerMsgNonnullUrl = "34.1"
View Source
const TestGenFieldRepeatedInnerMsgUrl = "33.1"
View Source
const TestGenFieldRepeatedInt = "26"
View Source
const TestGenFieldRepeatedLoc = "35"
View Source
const TestGenFieldRepeatedLocAltitude = "35.5"
View Source
const TestGenFieldRepeatedLocCourse = "35.6"
View Source
const TestGenFieldRepeatedLocHorizontalAccuracy = "35.3"
View Source
const TestGenFieldRepeatedLocLatitude = "35.1"
View Source
const TestGenFieldRepeatedLocLongitude = "35.2"
View Source
const TestGenFieldRepeatedLocNonnull = "36"
View Source
const TestGenFieldRepeatedLocNonnullAltitude = "36.5"
View Source
const TestGenFieldRepeatedLocNonnullCourse = "36.6"
View Source
const TestGenFieldRepeatedLocNonnullHorizontalAccuracy = "36.3"
View Source
const TestGenFieldRepeatedLocNonnullLatitude = "36.1"
View Source
const TestGenFieldRepeatedLocNonnullLongitude = "36.2"
View Source
const TestGenFieldRepeatedLocNonnullSpeed = "36.7"
View Source
const TestGenFieldRepeatedLocNonnullTimestamp = "36.8"
View Source
const TestGenFieldRepeatedLocNonnullTimestampNanos = "36.8.2"
View Source
const TestGenFieldRepeatedLocNonnullTimestampSeconds = "36.8.1"
View Source
const TestGenFieldRepeatedLocNonnullVerticalAccuracy = "36.4"
View Source
const TestGenFieldRepeatedLocSpeed = "35.7"
View Source
const TestGenFieldRepeatedLocTimestamp = "35.8"
View Source
const TestGenFieldRepeatedLocTimestampNanos = "35.8.2"
View Source
const TestGenFieldRepeatedLocTimestampSeconds = "35.8.1"
View Source
const TestGenFieldRepeatedLocVerticalAccuracy = "35.4"
View Source
const TestGenFieldRepeatedMsg = "29"
View Source
const TestGenFieldRepeatedMsgId = "29.2"
View Source
const TestGenFieldRepeatedMsgName = "29.1"
View Source
const TestGenFieldRepeatedMsgNestedMsg = "29.3"
View Source
const TestGenFieldRepeatedMsgNestedMsgName = "29.3.1"
View Source
const TestGenFieldRepeatedMsgNonnull = "30"
View Source
const TestGenFieldRepeatedMsgNonnullId = "30.2"
View Source
const TestGenFieldRepeatedMsgNonnullName = "30.1"
View Source
const TestGenFieldRepeatedMsgNonnullNestedMsg = "30.3"
View Source
const TestGenFieldRepeatedMsgNonnullNestedMsgName = "30.3.1"
View Source
const TestGenFieldS32 = "9"
View Source
const TestGenFieldS64 = "10"
View Source
const TestGenFieldSf32 = "13"
View Source
const TestGenFieldSf64 = "14"
View Source
const TestGenFieldU32 = "7"
View Source
const TestGenFieldU64 = "8"
View Source
const TestGenFieldUnused = "39"

Variables

View Source
var (
	ErrInvalidLengthSample        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSample          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSample = fmt.Errorf("proto: unexpected end of group")
)
View Source
var InnerEnumCommonPrefix = "Inner"
View Source
var InnerEnumStrings = []string{
	"INNER0",
	"INNER1",
	"INNER2",
	"INNER3",
}
View Source
var OuterEnumCommonPrefix = "Outer"
View Source
var OuterEnumStrings = []string{
	"OUTER0",
	"OUTER1",
	"OUTER2",
	"OUTER3",
}
View Source
var OuterEnum_CamelName = map[int32]string{

	0: "Outer0",

	1: "Outer1",

	2: "Outer2",

	3: "Outer3",
}
View Source
var OuterEnum_CamelValue = map[string]int32{
	"Outer0": 0,
	"Outer1": 1,
	"Outer2": 2,
	"Outer3": 3,
}
View Source
var OuterEnum_name = map[int32]string{
	0: "OUTER0",
	1: "OUTER1",
	2: "OUTER2",
	3: "OUTER3",
}
View Source
var OuterEnum_value = map[string]int32{
	"OUTER0": 0,
	"OUTER1": 1,
	"OUTER2": 2,
	"OUTER3": 3,
}
View Source
var ShowMethodNames = map[string]struct{}{}
View Source
var TestGenAllFields = []string{
	TestGenFieldName,
	TestGenFieldDb,
	TestGenFieldFl,
	TestGenFieldI32,
	TestGenFieldI64,
	TestGenFieldU32,
	TestGenFieldU64,
	TestGenFieldS32,
	TestGenFieldS64,
	TestGenFieldF32,
	TestGenFieldF64,
	TestGenFieldSf32,
	TestGenFieldSf64,
	TestGenFieldBb,
	TestGenFieldOuterEn,
	TestGenFieldInnerEn,
	TestGenFieldInnerMsgUrl,
	TestGenFieldInnerMsgId,
	TestGenFieldInnerMsgNonnullUrl,
	TestGenFieldInnerMsgNonnullId,
	TestGenFieldIncludeMsgName,
	TestGenFieldIncludeMsgId,
	TestGenFieldIncludeMsgNestedMsgName,
	TestGenFieldIncludeMsgNonnullName,
	TestGenFieldIncludeMsgNonnullId,
	TestGenFieldIncludeMsgNonnullNestedMsgName,
	TestGenFieldIncludeFieldsName,
	TestGenFieldIncludeFieldsNonnullName,
	TestGenFieldLocLatitude,
	TestGenFieldLocLongitude,
	TestGenFieldLocHorizontalAccuracy,
	TestGenFieldLocVerticalAccuracy,
	TestGenFieldLocAltitude,
	TestGenFieldLocCourse,
	TestGenFieldLocSpeed,
	TestGenFieldLocTimestampSeconds,
	TestGenFieldLocTimestampNanos,
	TestGenFieldLocNonnullLatitude,
	TestGenFieldLocNonnullLongitude,
	TestGenFieldLocNonnullHorizontalAccuracy,
	TestGenFieldLocNonnullVerticalAccuracy,
	TestGenFieldLocNonnullAltitude,
	TestGenFieldLocNonnullCourse,
	TestGenFieldLocNonnullSpeed,
	TestGenFieldLocNonnullTimestampSeconds,
	TestGenFieldLocNonnullTimestampNanos,
	TestGenFieldRepeatedInt,
	TestGenFieldIp,
	TestGenFieldNames,
	TestGenFieldRepeatedMsgName,
	TestGenFieldRepeatedMsgId,
	TestGenFieldRepeatedMsgNestedMsgName,
	TestGenFieldRepeatedMsgNonnullName,
	TestGenFieldRepeatedMsgNonnullId,
	TestGenFieldRepeatedMsgNonnullNestedMsgName,
	TestGenFieldRepeatedFieldsName,
	TestGenFieldRepeatedFieldsNonnullName,
	TestGenFieldRepeatedInnerMsgUrl,
	TestGenFieldRepeatedInnerMsgId,
	TestGenFieldRepeatedInnerMsgNonnullUrl,
	TestGenFieldRepeatedInnerMsgNonnullId,
	TestGenFieldRepeatedLocLatitude,
	TestGenFieldRepeatedLocLongitude,
	TestGenFieldRepeatedLocHorizontalAccuracy,
	TestGenFieldRepeatedLocVerticalAccuracy,
	TestGenFieldRepeatedLocAltitude,
	TestGenFieldRepeatedLocCourse,
	TestGenFieldRepeatedLocSpeed,
	TestGenFieldRepeatedLocTimestampSeconds,
	TestGenFieldRepeatedLocTimestampNanos,
	TestGenFieldRepeatedLocNonnullLatitude,
	TestGenFieldRepeatedLocNonnullLongitude,
	TestGenFieldRepeatedLocNonnullHorizontalAccuracy,
	TestGenFieldRepeatedLocNonnullVerticalAccuracy,
	TestGenFieldRepeatedLocNonnullAltitude,
	TestGenFieldRepeatedLocNonnullCourse,
	TestGenFieldRepeatedLocNonnullSpeed,
	TestGenFieldRepeatedLocNonnullTimestampSeconds,
	TestGenFieldRepeatedLocNonnullTimestampNanos,
	TestGenFieldIntMapKey,
	TestGenFieldIntMapValue,
	TestGenFieldMsgMapKey,
	TestGenFieldMsgMapValueName,
	TestGenFieldUnused,
}
View Source
var TestGenAllFieldsMap = NewFieldMap(map[string]struct{}{
	TestGenFieldName:                                 struct{}{},
	TestGenFieldDb:                                   struct{}{},
	TestGenFieldFl:                                   struct{}{},
	TestGenFieldI32:                                  struct{}{},
	TestGenFieldI64:                                  struct{}{},
	TestGenFieldU32:                                  struct{}{},
	TestGenFieldU64:                                  struct{}{},
	TestGenFieldS32:                                  struct{}{},
	TestGenFieldS64:                                  struct{}{},
	TestGenFieldF32:                                  struct{}{},
	TestGenFieldF64:                                  struct{}{},
	TestGenFieldSf32:                                 struct{}{},
	TestGenFieldSf64:                                 struct{}{},
	TestGenFieldBb:                                   struct{}{},
	TestGenFieldOuterEn:                              struct{}{},
	TestGenFieldInnerEn:                              struct{}{},
	TestGenFieldInnerMsgUrl:                          struct{}{},
	TestGenFieldInnerMsgId:                           struct{}{},
	TestGenFieldInnerMsgNonnullUrl:                   struct{}{},
	TestGenFieldInnerMsgNonnullId:                    struct{}{},
	TestGenFieldIncludeMsgName:                       struct{}{},
	TestGenFieldIncludeMsgId:                         struct{}{},
	TestGenFieldIncludeMsgNestedMsgName:              struct{}{},
	TestGenFieldIncludeMsgNonnullName:                struct{}{},
	TestGenFieldIncludeMsgNonnullId:                  struct{}{},
	TestGenFieldIncludeMsgNonnullNestedMsgName:       struct{}{},
	TestGenFieldIncludeFieldsName:                    struct{}{},
	TestGenFieldIncludeFieldsNonnullName:             struct{}{},
	TestGenFieldLocLatitude:                          struct{}{},
	TestGenFieldLocLongitude:                         struct{}{},
	TestGenFieldLocHorizontalAccuracy:                struct{}{},
	TestGenFieldLocVerticalAccuracy:                  struct{}{},
	TestGenFieldLocAltitude:                          struct{}{},
	TestGenFieldLocCourse:                            struct{}{},
	TestGenFieldLocSpeed:                             struct{}{},
	TestGenFieldLocTimestampSeconds:                  struct{}{},
	TestGenFieldLocTimestampNanos:                    struct{}{},
	TestGenFieldLocNonnullLatitude:                   struct{}{},
	TestGenFieldLocNonnullLongitude:                  struct{}{},
	TestGenFieldLocNonnullHorizontalAccuracy:         struct{}{},
	TestGenFieldLocNonnullVerticalAccuracy:           struct{}{},
	TestGenFieldLocNonnullAltitude:                   struct{}{},
	TestGenFieldLocNonnullCourse:                     struct{}{},
	TestGenFieldLocNonnullSpeed:                      struct{}{},
	TestGenFieldLocNonnullTimestampSeconds:           struct{}{},
	TestGenFieldLocNonnullTimestampNanos:             struct{}{},
	TestGenFieldRepeatedInt:                          struct{}{},
	TestGenFieldIp:                                   struct{}{},
	TestGenFieldNames:                                struct{}{},
	TestGenFieldRepeatedMsgName:                      struct{}{},
	TestGenFieldRepeatedMsgId:                        struct{}{},
	TestGenFieldRepeatedMsgNestedMsgName:             struct{}{},
	TestGenFieldRepeatedMsgNonnullName:               struct{}{},
	TestGenFieldRepeatedMsgNonnullId:                 struct{}{},
	TestGenFieldRepeatedMsgNonnullNestedMsgName:      struct{}{},
	TestGenFieldRepeatedFieldsName:                   struct{}{},
	TestGenFieldRepeatedFieldsNonnullName:            struct{}{},
	TestGenFieldRepeatedInnerMsgUrl:                  struct{}{},
	TestGenFieldRepeatedInnerMsgId:                   struct{}{},
	TestGenFieldRepeatedInnerMsgNonnullUrl:           struct{}{},
	TestGenFieldRepeatedInnerMsgNonnullId:            struct{}{},
	TestGenFieldRepeatedLocLatitude:                  struct{}{},
	TestGenFieldRepeatedLocLongitude:                 struct{}{},
	TestGenFieldRepeatedLocHorizontalAccuracy:        struct{}{},
	TestGenFieldRepeatedLocVerticalAccuracy:          struct{}{},
	TestGenFieldRepeatedLocAltitude:                  struct{}{},
	TestGenFieldRepeatedLocCourse:                    struct{}{},
	TestGenFieldRepeatedLocSpeed:                     struct{}{},
	TestGenFieldRepeatedLocTimestampSeconds:          struct{}{},
	TestGenFieldRepeatedLocTimestampNanos:            struct{}{},
	TestGenFieldRepeatedLocNonnullLatitude:           struct{}{},
	TestGenFieldRepeatedLocNonnullLongitude:          struct{}{},
	TestGenFieldRepeatedLocNonnullHorizontalAccuracy: struct{}{},
	TestGenFieldRepeatedLocNonnullVerticalAccuracy:   struct{}{},
	TestGenFieldRepeatedLocNonnullAltitude:           struct{}{},
	TestGenFieldRepeatedLocNonnullCourse:             struct{}{},
	TestGenFieldRepeatedLocNonnullSpeed:              struct{}{},
	TestGenFieldRepeatedLocNonnullTimestampSeconds:   struct{}{},
	TestGenFieldRepeatedLocNonnullTimestampNanos:     struct{}{},
	TestGenFieldIntMapKey:                            struct{}{},
	TestGenFieldIntMapValue:                          struct{}{},
	TestGenFieldMsgMapKey:                            struct{}{},
	TestGenFieldMsgMapValueName:                      struct{}{},
	TestGenFieldUnused:                               struct{}{},
})
View Source
var TestGenAllFieldsStringMap = map[string]string{
	TestGenFieldName:                                 "Name",
	TestGenFieldDb:                                   "Db",
	TestGenFieldFl:                                   "Fl",
	TestGenFieldI32:                                  "I32",
	TestGenFieldI64:                                  "I64",
	TestGenFieldU32:                                  "U32",
	TestGenFieldU64:                                  "U64",
	TestGenFieldS32:                                  "S32",
	TestGenFieldS64:                                  "S64",
	TestGenFieldF32:                                  "F32",
	TestGenFieldF64:                                  "F64",
	TestGenFieldSf32:                                 "Sf32",
	TestGenFieldSf64:                                 "Sf64",
	TestGenFieldBb:                                   "Bb",
	TestGenFieldOuterEn:                              "Outer En",
	TestGenFieldInnerEn:                              "Inner En",
	TestGenFieldInnerMsgUrl:                          "Inner Msg Url",
	TestGenFieldInnerMsgId:                           "Inner Msg Id",
	TestGenFieldInnerMsgNonnullUrl:                   "Inner Msg Nonnull Url",
	TestGenFieldInnerMsgNonnullId:                    "Inner Msg Nonnull Id",
	TestGenFieldIncludeMsgName:                       "Include Msg Name",
	TestGenFieldIncludeMsgId:                         "Include Msg Id",
	TestGenFieldIncludeMsgNestedMsgName:              "Include Msg Nested Msg Name",
	TestGenFieldIncludeMsgNonnullName:                "Include Msg Nonnull Name",
	TestGenFieldIncludeMsgNonnullId:                  "Include Msg Nonnull Id",
	TestGenFieldIncludeMsgNonnullNestedMsgName:       "Include Msg Nonnull Nested Msg Name",
	TestGenFieldIncludeFieldsName:                    "Include Fields Name",
	TestGenFieldIncludeFieldsNonnullName:             "Include Fields Nonnull Name",
	TestGenFieldLocLatitude:                          "Loc Latitude",
	TestGenFieldLocLongitude:                         "Loc Longitude",
	TestGenFieldLocHorizontalAccuracy:                "Loc Horizontal Accuracy",
	TestGenFieldLocVerticalAccuracy:                  "Loc Vertical Accuracy",
	TestGenFieldLocAltitude:                          "Loc Altitude",
	TestGenFieldLocCourse:                            "Loc Course",
	TestGenFieldLocSpeed:                             "Loc Speed",
	TestGenFieldLocTimestampSeconds:                  "Loc Timestamp Seconds",
	TestGenFieldLocTimestampNanos:                    "Loc Timestamp Nanos",
	TestGenFieldLocNonnullLatitude:                   "Loc Nonnull Latitude",
	TestGenFieldLocNonnullLongitude:                  "Loc Nonnull Longitude",
	TestGenFieldLocNonnullHorizontalAccuracy:         "Loc Nonnull Horizontal Accuracy",
	TestGenFieldLocNonnullVerticalAccuracy:           "Loc Nonnull Vertical Accuracy",
	TestGenFieldLocNonnullAltitude:                   "Loc Nonnull Altitude",
	TestGenFieldLocNonnullCourse:                     "Loc Nonnull Course",
	TestGenFieldLocNonnullSpeed:                      "Loc Nonnull Speed",
	TestGenFieldLocNonnullTimestampSeconds:           "Loc Nonnull Timestamp Seconds",
	TestGenFieldLocNonnullTimestampNanos:             "Loc Nonnull Timestamp Nanos",
	TestGenFieldRepeatedInt:                          "Repeated Int",
	TestGenFieldIp:                                   "Ip",
	TestGenFieldNames:                                "Names",
	TestGenFieldRepeatedMsgName:                      "Repeated Msg Name",
	TestGenFieldRepeatedMsgId:                        "Repeated Msg Id",
	TestGenFieldRepeatedMsgNestedMsgName:             "Repeated Msg Nested Msg Name",
	TestGenFieldRepeatedMsgNonnullName:               "Repeated Msg Nonnull Name",
	TestGenFieldRepeatedMsgNonnullId:                 "Repeated Msg Nonnull Id",
	TestGenFieldRepeatedMsgNonnullNestedMsgName:      "Repeated Msg Nonnull Nested Msg Name",
	TestGenFieldRepeatedFieldsName:                   "Repeated Fields Name",
	TestGenFieldRepeatedFieldsNonnullName:            "Repeated Fields Nonnull Name",
	TestGenFieldRepeatedInnerMsgUrl:                  "Repeated Inner Msg Url",
	TestGenFieldRepeatedInnerMsgId:                   "Repeated Inner Msg Id",
	TestGenFieldRepeatedInnerMsgNonnullUrl:           "Repeated Inner Msg Nonnull Url",
	TestGenFieldRepeatedInnerMsgNonnullId:            "Repeated Inner Msg Nonnull Id",
	TestGenFieldRepeatedLocLatitude:                  "Repeated Loc Latitude",
	TestGenFieldRepeatedLocLongitude:                 "Repeated Loc Longitude",
	TestGenFieldRepeatedLocHorizontalAccuracy:        "Repeated Loc Horizontal Accuracy",
	TestGenFieldRepeatedLocVerticalAccuracy:          "Repeated Loc Vertical Accuracy",
	TestGenFieldRepeatedLocAltitude:                  "Repeated Loc Altitude",
	TestGenFieldRepeatedLocCourse:                    "Repeated Loc Course",
	TestGenFieldRepeatedLocSpeed:                     "Repeated Loc Speed",
	TestGenFieldRepeatedLocTimestampSeconds:          "Repeated Loc Timestamp Seconds",
	TestGenFieldRepeatedLocTimestampNanos:            "Repeated Loc Timestamp Nanos",
	TestGenFieldRepeatedLocNonnullLatitude:           "Repeated Loc Nonnull Latitude",
	TestGenFieldRepeatedLocNonnullLongitude:          "Repeated Loc Nonnull Longitude",
	TestGenFieldRepeatedLocNonnullHorizontalAccuracy: "Repeated Loc Nonnull Horizontal Accuracy",
	TestGenFieldRepeatedLocNonnullVerticalAccuracy:   "Repeated Loc Nonnull Vertical Accuracy",
	TestGenFieldRepeatedLocNonnullAltitude:           "Repeated Loc Nonnull Altitude",
	TestGenFieldRepeatedLocNonnullCourse:             "Repeated Loc Nonnull Course",
	TestGenFieldRepeatedLocNonnullSpeed:              "Repeated Loc Nonnull Speed",
	TestGenFieldRepeatedLocNonnullTimestampSeconds:   "Repeated Loc Nonnull Timestamp Seconds",
	TestGenFieldRepeatedLocNonnullTimestampNanos:     "Repeated Loc Nonnull Timestamp Nanos",
	TestGenFieldIntMapKey:                            "Int Map Key",
	TestGenFieldIntMapValue:                          "Int Map Value",
	TestGenFieldMsgMapKey:                            "Msg Map Key",
	TestGenFieldMsgMapValueName:                      "Msg Map Value Name",
	TestGenFieldUnused:                               "Unused",
}
View Source
var TestGen_InnerEnum_CamelName = map[int32]string{

	0: "Inner0",

	1: "Inner1",

	2: "Inner2",

	3: "Inner3",
}
View Source
var TestGen_InnerEnum_CamelValue = map[string]int32{
	"Inner0": 0,
	"Inner1": 1,
	"Inner2": 2,
	"Inner3": 3,
}
View Source
var TestGen_InnerEnum_name = map[int32]string{
	0: "INNER0",
	1: "INNER1",
	2: "INNER2",
	3: "INNER3",
}
View Source
var TestGen_InnerEnum_value = map[string]int32{
	"INNER0": 0,
	"INNER1": 1,
	"INNER2": 2,
	"INNER3": 3,
}

Functions

func EnumDecodeHook

func EnumDecodeHook(from, to reflect.Type, data interface{}) (interface{}, error)

DecodeHook for use with the mapstructure package. Allows decoding to handle protobuf enums that are represented as strings.

func GetEnumParseHelp

func GetEnumParseHelp(t reflect.Type) (string, string, bool)

GetEnumParseHelp gets end-user specific messages for enum parse errors. It returns the enum type name, a help message with valid values, and a bool that indicates if a type was matched.

func IgnoreTestGenFields

func IgnoreTestGenFields(taglist string) cmp.Option

func IsShow

func IsShow(cmd string) bool

func RegisterTestApiServer

func RegisterTestApiServer(s *grpc.Server, srv TestApiServer)

Types

type FieldMap

type FieldMap struct {
	// contains filtered or unexported fields
}

func MakeFieldMap

func MakeFieldMap(fields []string) *FieldMap

func NewFieldMap

func NewFieldMap(fields map[string]struct{}) *FieldMap

func (*FieldMap) Clear

func (s *FieldMap) Clear(key string)

func (*FieldMap) Count

func (s *FieldMap) Count() int

func (*FieldMap) Fields

func (s *FieldMap) Fields() []string

func (*FieldMap) Has

func (s *FieldMap) Has(key string) bool

Has checks if the key is set. Note that setting a parent key implies that all child keys are also set.

func (*FieldMap) HasOrHasChild

func (s *FieldMap) HasOrHasChild(key string) bool

HasOrHasChild checks if the key, or any child of the key is set. Note that as with Has(), if a parent of the key is set, this returns true.

func (*FieldMap) Set

func (s *FieldMap) Set(key string)

type IncludeFields

type IncludeFields struct {
	Fields               []byte   `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IncludeFields) ClearTagged

func (s *IncludeFields) ClearTagged(tags map[string]struct{})

func (*IncludeFields) Clone

func (m *IncludeFields) Clone() *IncludeFields

func (*IncludeFields) CopyInFields

func (m *IncludeFields) CopyInFields(src *IncludeFields) int

func (*IncludeFields) DeepCopyIn

func (m *IncludeFields) DeepCopyIn(src *IncludeFields)

func (*IncludeFields) Descriptor

func (*IncludeFields) Descriptor() ([]byte, []int)

func (*IncludeFields) Marshal

func (m *IncludeFields) Marshal() (dAtA []byte, err error)

func (*IncludeFields) MarshalTo

func (m *IncludeFields) MarshalTo(dAtA []byte) (int, error)

func (*IncludeFields) MarshalToSizedBuffer

func (m *IncludeFields) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IncludeFields) ProtoMessage

func (*IncludeFields) ProtoMessage()

func (*IncludeFields) Reset

func (m *IncludeFields) Reset()

func (*IncludeFields) Size

func (m *IncludeFields) Size() (n int)

func (*IncludeFields) String

func (m *IncludeFields) String() string

func (*IncludeFields) Unmarshal

func (m *IncludeFields) Unmarshal(dAtA []byte) error

func (*IncludeFields) ValidateEnums

func (m *IncludeFields) ValidateEnums() error

Helper method to check that enums have valid values

func (*IncludeFields) XXX_DiscardUnknown

func (m *IncludeFields) XXX_DiscardUnknown()

func (*IncludeFields) XXX_Marshal

func (m *IncludeFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IncludeFields) XXX_Merge

func (m *IncludeFields) XXX_Merge(src proto.Message)

func (*IncludeFields) XXX_Size

func (m *IncludeFields) XXX_Size() int

func (*IncludeFields) XXX_Unmarshal

func (m *IncludeFields) XXX_Unmarshal(b []byte) error

type IncludeMessage

type IncludeMessage struct {
	Name                 string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   uint64         `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	NestedMsg            *NestedMessage `protobuf:"bytes,3,opt,name=nested_msg,json=nestedMsg,proto3" json:"nested_msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*IncludeMessage) ClearTagged

func (s *IncludeMessage) ClearTagged(tags map[string]struct{})

func (*IncludeMessage) Clone

func (m *IncludeMessage) Clone() *IncludeMessage

func (*IncludeMessage) CopyInFields

func (m *IncludeMessage) CopyInFields(src *IncludeMessage) int

func (*IncludeMessage) DeepCopyIn

func (m *IncludeMessage) DeepCopyIn(src *IncludeMessage)

func (*IncludeMessage) Descriptor

func (*IncludeMessage) Descriptor() ([]byte, []int)

func (*IncludeMessage) Marshal

func (m *IncludeMessage) Marshal() (dAtA []byte, err error)

func (*IncludeMessage) MarshalTo

func (m *IncludeMessage) MarshalTo(dAtA []byte) (int, error)

func (*IncludeMessage) MarshalToSizedBuffer

func (m *IncludeMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IncludeMessage) ProtoMessage

func (*IncludeMessage) ProtoMessage()

func (*IncludeMessage) Reset

func (m *IncludeMessage) Reset()

func (*IncludeMessage) Size

func (m *IncludeMessage) Size() (n int)

func (*IncludeMessage) String

func (m *IncludeMessage) String() string

func (*IncludeMessage) Unmarshal

func (m *IncludeMessage) Unmarshal(dAtA []byte) error

func (*IncludeMessage) ValidateEnums

func (m *IncludeMessage) ValidateEnums() error

Helper method to check that enums have valid values

func (*IncludeMessage) XXX_DiscardUnknown

func (m *IncludeMessage) XXX_DiscardUnknown()

func (*IncludeMessage) XXX_Marshal

func (m *IncludeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IncludeMessage) XXX_Merge

func (m *IncludeMessage) XXX_Merge(src proto.Message)

func (*IncludeMessage) XXX_Size

func (m *IncludeMessage) XXX_Size() int

func (*IncludeMessage) XXX_Unmarshal

func (m *IncludeMessage) XXX_Unmarshal(b []byte) error

type MatchOpt

type MatchOpt func(*MatchOptions)

func MatchFilter

func MatchFilter() MatchOpt

func MatchIgnoreBackend

func MatchIgnoreBackend() MatchOpt

func MatchSortArrayedKeys

func MatchSortArrayedKeys() MatchOpt

type MatchOptions

type MatchOptions struct {
	// Filter will ignore 0 or nil fields on the passed in object
	Filter bool
	// IgnoreBackend will ignore fields that were marked backend in .proto
	IgnoreBackend bool
	// Sort repeated (arrays) of Key objects so matching does not
	// fail due to order.
	SortArrayedKeys bool
}

type NestedMessage

type NestedMessage struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NestedMessage) ClearTagged

func (s *NestedMessage) ClearTagged(tags map[string]struct{})

func (*NestedMessage) Clone

func (m *NestedMessage) Clone() *NestedMessage

func (*NestedMessage) CopyInFields

func (m *NestedMessage) CopyInFields(src *NestedMessage) int

func (*NestedMessage) DeepCopyIn

func (m *NestedMessage) DeepCopyIn(src *NestedMessage)

func (*NestedMessage) Descriptor

func (*NestedMessage) Descriptor() ([]byte, []int)

func (*NestedMessage) Marshal

func (m *NestedMessage) Marshal() (dAtA []byte, err error)

func (*NestedMessage) MarshalTo

func (m *NestedMessage) MarshalTo(dAtA []byte) (int, error)

func (*NestedMessage) MarshalToSizedBuffer

func (m *NestedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NestedMessage) ProtoMessage

func (*NestedMessage) ProtoMessage()

func (*NestedMessage) Reset

func (m *NestedMessage) Reset()

func (*NestedMessage) Size

func (m *NestedMessage) Size() (n int)

func (*NestedMessage) String

func (m *NestedMessage) String() string

func (*NestedMessage) Unmarshal

func (m *NestedMessage) Unmarshal(dAtA []byte) error

func (*NestedMessage) ValidateEnums

func (m *NestedMessage) ValidateEnums() error

Helper method to check that enums have valid values

func (*NestedMessage) XXX_DiscardUnknown

func (m *NestedMessage) XXX_DiscardUnknown()

func (*NestedMessage) XXX_Marshal

func (m *NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NestedMessage) XXX_Merge

func (m *NestedMessage) XXX_Merge(src proto.Message)

func (*NestedMessage) XXX_Size

func (m *NestedMessage) XXX_Size() int

func (*NestedMessage) XXX_Unmarshal

func (m *NestedMessage) XXX_Unmarshal(b []byte) error

type OuterEnum

type OuterEnum int32
const (
	OuterEnum_OUTER0 OuterEnum = 0
	OuterEnum_OUTER1 OuterEnum = 1
	OuterEnum_OUTER2 OuterEnum = 2
	OuterEnum_OUTER3 OuterEnum = 3
)

func ParseOuterEnum

func ParseOuterEnum(data interface{}) (OuterEnum, error)

func (OuterEnum) EnumDescriptor

func (OuterEnum) EnumDescriptor() ([]byte, []int)

func (OuterEnum) MarshalJSON

func (e OuterEnum) MarshalJSON() ([]byte, error)

func (OuterEnum) MarshalYAML

func (e OuterEnum) MarshalYAML() (interface{}, error)

func (OuterEnum) String

func (x OuterEnum) String() string

func (*OuterEnum) UnmarshalJSON

func (e *OuterEnum) UnmarshalJSON(b []byte) error

custom JSON encoding/decoding

func (*OuterEnum) UnmarshalYAML

func (e *OuterEnum) UnmarshalYAML(unmarshal func(interface{}) error) error

type TestApiClient

type TestApiClient interface {
	Request(ctx context.Context, in *TestGen, opts ...grpc.CallOption) (*TestGen, error)
}

TestApiClient is the client API for TestApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTestApiClient

func NewTestApiClient(cc *grpc.ClientConn) TestApiClient

type TestApiServer

type TestApiServer interface {
	Request(context.Context, *TestGen) (*TestGen, error)
}

TestApiServer is the server API for TestApi service.

type TestGen

type TestGen struct {
	Fields                  []string                        `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	Name                    string                          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Db                      float64                         `protobuf:"fixed64,3,opt,name=db,proto3" json:"db,omitempty"`
	Fl                      float32                         `protobuf:"fixed32,4,opt,name=fl,proto3" json:"fl,omitempty"`
	I32                     int32                           `protobuf:"varint,5,opt,name=i32,proto3" json:"i32,omitempty"`
	I64                     int64                           `protobuf:"varint,6,opt,name=i64,proto3" json:"i64,omitempty"`
	U32                     uint32                          `protobuf:"varint,7,opt,name=u32,proto3" json:"u32,omitempty"`
	U64                     uint64                          `protobuf:"varint,8,opt,name=u64,proto3" json:"u64,omitempty"`
	S32                     int32                           `protobuf:"zigzag32,9,opt,name=s32,proto3" json:"s32,omitempty"`
	S64                     int64                           `protobuf:"zigzag64,10,opt,name=s64,proto3" json:"s64,omitempty"`
	F32                     uint32                          `protobuf:"fixed32,11,opt,name=f32,proto3" json:"f32,omitempty"`
	F64                     uint64                          `protobuf:"fixed64,12,opt,name=f64,proto3" json:"f64,omitempty"`
	Sf32                    int32                           `protobuf:"fixed32,13,opt,name=sf32,proto3" json:"sf32,omitempty"`
	Sf64                    int64                           `protobuf:"fixed64,14,opt,name=sf64,proto3" json:"sf64,omitempty"`
	Bb                      bool                            `protobuf:"varint,15,opt,name=bb,proto3" json:"bb,omitempty"`
	OuterEn                 OuterEnum                       `protobuf:"varint,16,opt,name=outer_en,json=outerEn,proto3,enum=testgen.OuterEnum" json:"outer_en,omitempty"`
	InnerEn                 TestGen_InnerEnum               `protobuf:"varint,17,opt,name=inner_en,json=innerEn,proto3,enum=testgen.TestGen_InnerEnum" json:"inner_en,omitempty"`
	InnerMsg                *TestGen_InnerMessage           `protobuf:"bytes,18,opt,name=inner_msg,json=innerMsg,proto3" json:"inner_msg,omitempty"`
	InnerMsgNonnull         TestGen_InnerMessage            `protobuf:"bytes,19,opt,name=inner_msg_nonnull,json=innerMsgNonnull,proto3" json:"inner_msg_nonnull"`
	IncludeMsg              *IncludeMessage                 `protobuf:"bytes,20,opt,name=include_msg,json=includeMsg,proto3" json:"include_msg,omitempty"`
	IncludeMsgNonnull       IncludeMessage                  `protobuf:"bytes,21,opt,name=include_msg_nonnull,json=includeMsgNonnull,proto3" json:"include_msg_nonnull"`
	IncludeFields           *IncludeFields                  `protobuf:"bytes,22,opt,name=include_fields,json=includeFields,proto3" json:"include_fields,omitempty"`
	IncludeFieldsNonnull    IncludeFields                   `protobuf:"bytes,23,opt,name=include_fields_nonnull,json=includeFieldsNonnull,proto3" json:"include_fields_nonnull"`
	Loc                     *distributed_match_engine.Loc   `protobuf:"bytes,24,opt,name=loc,proto3" json:"loc,omitempty"`
	LocNonnull              distributed_match_engine.Loc    `protobuf:"bytes,25,opt,name=loc_nonnull,json=locNonnull,proto3" json:"loc_nonnull"`
	RepeatedInt             []int64                         `protobuf:"varint,26,rep,packed,name=repeated_int,json=repeatedInt,proto3" json:"repeated_int,omitempty"`
	Ip                      []byte                          `protobuf:"bytes,27,opt,name=ip,proto3" json:"ip,omitempty"`
	Names                   []string                        `protobuf:"bytes,28,rep,name=names,proto3" json:"names,omitempty"`
	RepeatedMsg             []*IncludeMessage               `protobuf:"bytes,29,rep,name=repeated_msg,json=repeatedMsg,proto3" json:"repeated_msg,omitempty"`
	RepeatedMsgNonnull      []IncludeMessage                `protobuf:"bytes,30,rep,name=repeated_msg_nonnull,json=repeatedMsgNonnull,proto3" json:"repeated_msg_nonnull"`
	RepeatedFields          []*IncludeFields                `protobuf:"bytes,31,rep,name=repeated_fields,json=repeatedFields,proto3" json:"repeated_fields,omitempty"`
	RepeatedFieldsNonnull   []IncludeFields                 `protobuf:"bytes,32,rep,name=repeated_fields_nonnull,json=repeatedFieldsNonnull,proto3" json:"repeated_fields_nonnull"`
	RepeatedInnerMsg        []*TestGen_InnerMessage         `protobuf:"bytes,33,rep,name=repeated_inner_msg,json=repeatedInnerMsg,proto3" json:"repeated_inner_msg,omitempty"`
	RepeatedInnerMsgNonnull []TestGen_InnerMessage          `protobuf:"bytes,34,rep,name=repeated_inner_msg_nonnull,json=repeatedInnerMsgNonnull,proto3" json:"repeated_inner_msg_nonnull"`
	RepeatedLoc             []*distributed_match_engine.Loc `protobuf:"bytes,35,rep,name=repeated_loc,json=repeatedLoc,proto3" json:"repeated_loc,omitempty"`
	RepeatedLocNonnull      []distributed_match_engine.Loc  `protobuf:"bytes,36,rep,name=repeated_loc_nonnull,json=repeatedLocNonnull,proto3" json:"repeated_loc_nonnull"`
	IntMap                  map[int32]int32                 `` /* 156-byte string literal not displayed */
	MsgMap                  map[int32]*NestedMessage        `` /* 155-byte string literal not displayed */
	// xxx win import of strings. xxx
	Unused               string   `protobuf:"bytes,39,opt,name=unused,proto3" json:"unused,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestGen) AddNames

func (m *TestGen) AddNames(vals ...string) int

func (*TestGen) AddRepeatedFields

func (m *TestGen) AddRepeatedFields(vals ...*IncludeFields) int

func (*TestGen) AddRepeatedFieldsNonnull

func (m *TestGen) AddRepeatedFieldsNonnull(vals ...IncludeFields) int

func (*TestGen) AddRepeatedInnerMsg

func (m *TestGen) AddRepeatedInnerMsg(vals ...*TestGen_InnerMessage) int

func (*TestGen) AddRepeatedInnerMsgNonnull

func (m *TestGen) AddRepeatedInnerMsgNonnull(vals ...TestGen_InnerMessage) int

func (*TestGen) AddRepeatedInt

func (m *TestGen) AddRepeatedInt(vals ...int64) int

func (*TestGen) AddRepeatedLoc

func (m *TestGen) AddRepeatedLoc(vals ...*distributed_match_engine.Loc) int

func (*TestGen) AddRepeatedLocNonnull

func (m *TestGen) AddRepeatedLocNonnull(vals ...distributed_match_engine.Loc) int

func (*TestGen) AddRepeatedMsg

func (m *TestGen) AddRepeatedMsg(vals ...*IncludeMessage) int

func (*TestGen) AddRepeatedMsgNonnull

func (m *TestGen) AddRepeatedMsgNonnull(vals ...IncludeMessage) int

func (*TestGen) ClearTagged

func (s *TestGen) ClearTagged(tags map[string]struct{})

func (*TestGen) Clone

func (m *TestGen) Clone() *TestGen

func (*TestGen) CopyInFields

func (m *TestGen) CopyInFields(src *TestGen) int

func (*TestGen) DeepCopyIn

func (m *TestGen) DeepCopyIn(src *TestGen)

func (*TestGen) Descriptor

func (*TestGen) Descriptor() ([]byte, []int)

func (*TestGen) DiffFields

func (m *TestGen) DiffFields(o *TestGen, fields *FieldMap)

func (*TestGen) GetDiffFields

func (m *TestGen) GetDiffFields(o *TestGen) *FieldMap

func (*TestGen) IsKeyField

func (m *TestGen) IsKeyField(s string) bool

func (*TestGen) IsValidArgsForRequest

func (m *TestGen) IsValidArgsForRequest() error

func (*TestGen) Marshal

func (m *TestGen) Marshal() (dAtA []byte, err error)

func (*TestGen) MarshalTo

func (m *TestGen) MarshalTo(dAtA []byte) (int, error)

func (*TestGen) MarshalToSizedBuffer

func (m *TestGen) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestGen) Matches

func (m *TestGen) Matches(o *TestGen, fopts ...MatchOpt) bool

func (*TestGen) ProtoMessage

func (*TestGen) ProtoMessage()

func (*TestGen) RemoveNames

func (m *TestGen) RemoveNames(vals ...string) int

func (*TestGen) RemoveRepeatedFields

func (m *TestGen) RemoveRepeatedFields(vals ...*IncludeFields) int

func (*TestGen) RemoveRepeatedFieldsNonnull

func (m *TestGen) RemoveRepeatedFieldsNonnull(vals ...IncludeFields) int

func (*TestGen) RemoveRepeatedInnerMsg

func (m *TestGen) RemoveRepeatedInnerMsg(vals ...*TestGen_InnerMessage) int

func (*TestGen) RemoveRepeatedInnerMsgNonnull

func (m *TestGen) RemoveRepeatedInnerMsgNonnull(vals ...TestGen_InnerMessage) int

func (*TestGen) RemoveRepeatedInt

func (m *TestGen) RemoveRepeatedInt(vals ...int64) int

func (*TestGen) RemoveRepeatedLoc

func (m *TestGen) RemoveRepeatedLoc(vals ...*distributed_match_engine.Loc) int

func (*TestGen) RemoveRepeatedLocNonnull

func (m *TestGen) RemoveRepeatedLocNonnull(vals ...distributed_match_engine.Loc) int

func (*TestGen) RemoveRepeatedMsg

func (m *TestGen) RemoveRepeatedMsg(vals ...*IncludeMessage) int

func (*TestGen) RemoveRepeatedMsgNonnull

func (m *TestGen) RemoveRepeatedMsgNonnull(vals ...IncludeMessage) int

func (*TestGen) Reset

func (m *TestGen) Reset()

func (*TestGen) Size

func (m *TestGen) Size() (n int)

func (*TestGen) String

func (m *TestGen) String() string

func (*TestGen) Unmarshal

func (m *TestGen) Unmarshal(dAtA []byte) error

func (*TestGen) ValidateEnums

func (m *TestGen) ValidateEnums() error

Helper method to check that enums have valid values NOTE: ValidateEnums checks all Fields even if some are not set

func (*TestGen) XXX_DiscardUnknown

func (m *TestGen) XXX_DiscardUnknown()

func (*TestGen) XXX_Marshal

func (m *TestGen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestGen) XXX_Merge

func (m *TestGen) XXX_Merge(src proto.Message)

func (*TestGen) XXX_Size

func (m *TestGen) XXX_Size() int

func (*TestGen) XXX_Unmarshal

func (m *TestGen) XXX_Unmarshal(b []byte) error

type TestGen_InnerEnum

type TestGen_InnerEnum int32
const (
	TestGen_INNER0 TestGen_InnerEnum = 0
	TestGen_INNER1 TestGen_InnerEnum = 1
	TestGen_INNER2 TestGen_InnerEnum = 2
	TestGen_INNER3 TestGen_InnerEnum = 3
)

func ParseTestGen_InnerEnum

func ParseTestGen_InnerEnum(data interface{}) (TestGen_InnerEnum, error)

func (TestGen_InnerEnum) EnumDescriptor

func (TestGen_InnerEnum) EnumDescriptor() ([]byte, []int)

func (TestGen_InnerEnum) MarshalJSON

func (e TestGen_InnerEnum) MarshalJSON() ([]byte, error)

func (TestGen_InnerEnum) MarshalYAML

func (e TestGen_InnerEnum) MarshalYAML() (interface{}, error)

func (TestGen_InnerEnum) String

func (x TestGen_InnerEnum) String() string

func (*TestGen_InnerEnum) UnmarshalJSON

func (e *TestGen_InnerEnum) UnmarshalJSON(b []byte) error

custom JSON encoding/decoding

func (*TestGen_InnerEnum) UnmarshalYAML

func (e *TestGen_InnerEnum) UnmarshalYAML(unmarshal func(interface{}) error) error

type TestGen_InnerMessage

type TestGen_InnerMessage struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Id                   int64    `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestGen_InnerMessage) ClearTagged

func (s *TestGen_InnerMessage) ClearTagged(tags map[string]struct{})

func (*TestGen_InnerMessage) Clone

func (*TestGen_InnerMessage) CopyInFields

func (m *TestGen_InnerMessage) CopyInFields(src *TestGen_InnerMessage) int

func (*TestGen_InnerMessage) DeepCopyIn

func (m *TestGen_InnerMessage) DeepCopyIn(src *TestGen_InnerMessage)

func (*TestGen_InnerMessage) Descriptor

func (*TestGen_InnerMessage) Descriptor() ([]byte, []int)

func (*TestGen_InnerMessage) Marshal

func (m *TestGen_InnerMessage) Marshal() (dAtA []byte, err error)

func (*TestGen_InnerMessage) MarshalTo

func (m *TestGen_InnerMessage) MarshalTo(dAtA []byte) (int, error)

func (*TestGen_InnerMessage) MarshalToSizedBuffer

func (m *TestGen_InnerMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestGen_InnerMessage) ProtoMessage

func (*TestGen_InnerMessage) ProtoMessage()

func (*TestGen_InnerMessage) Reset

func (m *TestGen_InnerMessage) Reset()

func (*TestGen_InnerMessage) Size

func (m *TestGen_InnerMessage) Size() (n int)

func (*TestGen_InnerMessage) String

func (m *TestGen_InnerMessage) String() string

func (*TestGen_InnerMessage) Unmarshal

func (m *TestGen_InnerMessage) Unmarshal(dAtA []byte) error

func (*TestGen_InnerMessage) ValidateEnums

func (m *TestGen_InnerMessage) ValidateEnums() error

Helper method to check that enums have valid values

func (*TestGen_InnerMessage) XXX_DiscardUnknown

func (m *TestGen_InnerMessage) XXX_DiscardUnknown()

func (*TestGen_InnerMessage) XXX_Marshal

func (m *TestGen_InnerMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestGen_InnerMessage) XXX_Merge

func (m *TestGen_InnerMessage) XXX_Merge(src proto.Message)

func (*TestGen_InnerMessage) XXX_Size

func (m *TestGen_InnerMessage) XXX_Size() int

func (*TestGen_InnerMessage) XXX_Unmarshal

func (m *TestGen_InnerMessage) XXX_Unmarshal(b []byte) error

type UnimplementedTestApiServer

type UnimplementedTestApiServer struct {
}

UnimplementedTestApiServer can be embedded to have forward compatible implementations.

func (*UnimplementedTestApiServer) Request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL