proto

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// id: ID!
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// name: String!
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// age: Int!
	Age int64 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"`
	// sex: Sex!
	Sex string `protobuf:"bytes,4,opt,name=sex,proto3" json:"sex,omitempty"`
	// weight: Float!
	Weight float64 `protobuf:"fixed64,5,opt,name=weight,proto3" json:"weight,omitempty"`
	// alive: Boolean!
	Alive bool `protobuf:"varint,6,opt,name=alive,proto3" json:"alive,omitempty"`
	// num64: Int64!
	Num64 int64 `protobuf:"varint,7,opt,name=num64,proto3" json:"num64,omitempty"`
	// optional_num: Int
	OptionalNum *wrappers.Int64Value `protobuf:"bytes,8,opt,name=optional_num,json=optionalNum,proto3" json:"optional_num,omitempty"`
	// optional_num64: Int64
	OptionalNum64 *wrappers.Int64Value `protobuf:"bytes,9,opt,name=optional_num64,json=optionalNum64,proto3" json:"optional_num64,omitempty"`
	// numbers: [Int64!]
	Numbers []int64 `protobuf:"varint,10,rep,packed,name=numbers,proto3" json:"numbers,omitempty"`
	// times: [Time!]
	Times []*timestamp.Timestamp `protobuf:"bytes,11,rep,name=times,proto3" json:"times,omitempty"`
	// birth_date: Date
	BirthDate string `protobuf:"bytes,12,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	// created_at: Time!
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// modified_at: Time!
	ModifiedAt           *timestamp.Timestamp `protobuf:"bytes,14,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetAge

func (m *User) GetAge() int64

func (*User) GetAlive

func (m *User) GetAlive() bool

func (*User) GetBirthDate

func (m *User) GetBirthDate() string

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetId

func (m *User) GetId() string

func (*User) GetModifiedAt

func (m *User) GetModifiedAt() *timestamp.Timestamp

func (*User) GetName

func (m *User) GetName() string

func (*User) GetNum64

func (m *User) GetNum64() int64

func (*User) GetNumbers

func (m *User) GetNumbers() []int64

func (*User) GetOptionalNum

func (m *User) GetOptionalNum() *wrappers.Int64Value

func (*User) GetOptionalNum64

func (m *User) GetOptionalNum64() *wrappers.Int64Value

func (*User) GetSex

func (m *User) GetSex() string

func (*User) GetTimes

func (m *User) GetTimes() []*timestamp.Timestamp

func (*User) GetWeight

func (m *User) GetWeight() float64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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