personpb

package
v0.0.0-...-f2b792b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PhoneNumber_PhoneType_name = map[int32]string{
		0: "MOBILE",
		1: "HOME",
		2: "WORK",
	}
	PhoneNumber_PhoneType_value = map[string]int32{
		"MOBILE": 0,
		"HOME":   1,
		"WORK":   2,
	}
)

Enum value maps for PhoneNumber_PhoneType.

View Source
var File_person_proto protoreflect.FileDescriptor

Functions

func RegisterPersonServiceServer

func RegisterPersonServiceServer(s *grpc.Server, srv PersonServiceServer)

Types

type ChatRequest

type ChatRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatRequest) Descriptor deprecated

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

Deprecated: Use ChatRequest.ProtoReflect.Descriptor instead.

func (*ChatRequest) GetMessage

func (x *ChatRequest) GetMessage() string

func (*ChatRequest) ProtoMessage

func (*ChatRequest) ProtoMessage()

func (*ChatRequest) ProtoReflect

func (x *ChatRequest) ProtoReflect() protoreflect.Message

func (*ChatRequest) Reset

func (x *ChatRequest) Reset()

func (*ChatRequest) String

func (x *ChatRequest) String() string

type ChatResponse

type ChatResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatResponse) Descriptor deprecated

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

Deprecated: Use ChatResponse.ProtoReflect.Descriptor instead.

func (*ChatResponse) GetMessage

func (x *ChatResponse) GetMessage() string

func (*ChatResponse) ProtoMessage

func (*ChatResponse) ProtoMessage()

func (*ChatResponse) ProtoReflect

func (x *ChatResponse) ProtoReflect() protoreflect.Message

func (*ChatResponse) Reset

func (x *ChatResponse) Reset()

func (*ChatResponse) String

func (x *ChatResponse) String() string

type Communication

type Communication struct {
	Line string `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*Communication) Descriptor deprecated

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

Deprecated: Use Communication.ProtoReflect.Descriptor instead.

func (*Communication) GetLine

func (x *Communication) GetLine() string

func (*Communication) ProtoMessage

func (*Communication) ProtoMessage()

func (*Communication) ProtoReflect

func (x *Communication) ProtoReflect() protoreflect.Message

func (*Communication) Reset

func (x *Communication) Reset()

func (*Communication) String

func (x *Communication) String() string

type GetPersonRequest

type GetPersonRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPersonRequest) Descriptor deprecated

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

Deprecated: Use GetPersonRequest.ProtoReflect.Descriptor instead.

func (*GetPersonRequest) GetId

func (x *GetPersonRequest) GetId() int64

func (*GetPersonRequest) ProtoMessage

func (*GetPersonRequest) ProtoMessage()

func (*GetPersonRequest) ProtoReflect

func (x *GetPersonRequest) ProtoReflect() protoreflect.Message

func (*GetPersonRequest) Reset

func (x *GetPersonRequest) Reset()

func (*GetPersonRequest) String

func (x *GetPersonRequest) String() string

type GetPersonResponse

type GetPersonResponse struct {
	Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPersonResponse) Descriptor deprecated

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

Deprecated: Use GetPersonResponse.ProtoReflect.Descriptor instead.

func (*GetPersonResponse) GetPerson

func (x *GetPersonResponse) GetPerson() *Person

func (*GetPersonResponse) ProtoMessage

func (*GetPersonResponse) ProtoMessage()

func (*GetPersonResponse) ProtoReflect

func (x *GetPersonResponse) ProtoReflect() protoreflect.Message

func (*GetPersonResponse) Reset

func (x *GetPersonResponse) Reset()

func (*GetPersonResponse) String

func (x *GetPersonResponse) String() string

type Permanent

type Permanent struct {
	Line string `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*Permanent) Descriptor deprecated

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

Deprecated: Use Permanent.ProtoReflect.Descriptor instead.

func (*Permanent) GetLine

func (x *Permanent) GetLine() string

func (*Permanent) ProtoMessage

func (*Permanent) ProtoMessage()

func (*Permanent) ProtoReflect

func (x *Permanent) ProtoReflect() protoreflect.Message

func (*Permanent) Reset

func (x *Permanent) Reset()

func (*Permanent) String

func (x *Permanent) String() string

type Person

type Person struct {
	Id          int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FirstName   string               `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName    string               `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Age         int32                `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"`
	Phones      []*PhoneNumber       `protobuf:"bytes,5,rep,name=phones,proto3" json:"phones,omitempty"`
	LastUpdated *timestamp.Timestamp `protobuf:"bytes,6,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	Extra       []*any.Any           `protobuf:"bytes,7,rep,name=extra,proto3" json:"extra,omitempty"`
	// Types that are assignable to AddressType:
	//	*Person_Permanent
	//	*Person_Communication
	AddressType isPerson_AddressType `protobuf_oneof:"address_type"`
	Family      map[string]*Person   `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Person) Descriptor deprecated

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

Deprecated: Use Person.ProtoReflect.Descriptor instead.

func (*Person) GetAddressType

func (m *Person) GetAddressType() isPerson_AddressType

func (*Person) GetAge

func (x *Person) GetAge() int32

func (*Person) GetCommunication

func (x *Person) GetCommunication() *Communication

func (*Person) GetExtra

func (x *Person) GetExtra() []*any.Any

func (*Person) GetFamily

func (x *Person) GetFamily() map[string]*Person

func (*Person) GetFirstName

func (x *Person) GetFirstName() string

func (*Person) GetId

func (x *Person) GetId() int64

func (*Person) GetLastName

func (x *Person) GetLastName() string

func (*Person) GetLastUpdated

func (x *Person) GetLastUpdated() *timestamp.Timestamp

func (*Person) GetPermanent

func (x *Person) GetPermanent() *Permanent

func (*Person) GetPhones

func (x *Person) GetPhones() []*PhoneNumber

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

func (x *Person) ProtoReflect() protoreflect.Message

func (*Person) Reset

func (x *Person) Reset()

func (*Person) String

func (x *Person) String() string

type PersonServiceClient

type PersonServiceClient interface {
	GetPerson(ctx context.Context, in *GetPersonRequest, opts ...grpc.CallOption) (*GetPersonResponse, error)
	PutPerson(ctx context.Context, in *PutPersonRequest, opts ...grpc.CallOption) (*PutPersonResponse, error)
	PutPeople(ctx context.Context, opts ...grpc.CallOption) (PersonService_PutPeopleClient, error)
	GetAllPeople(ctx context.Context, in *GetPersonRequest, opts ...grpc.CallOption) (PersonService_GetAllPeopleClient, error)
	Chat(ctx context.Context, opts ...grpc.CallOption) (PersonService_ChatClient, error)
}

PersonServiceClient is the client API for PersonService service.

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

type PersonServiceServer

PersonServiceServer is the server API for PersonService service.

type PersonService_ChatClient

type PersonService_ChatClient interface {
	Send(*ChatRequest) error
	Recv() (*ChatResponse, error)
	grpc.ClientStream
}

type PersonService_ChatServer

type PersonService_ChatServer interface {
	Send(*ChatResponse) error
	Recv() (*ChatRequest, error)
	grpc.ServerStream
}

type PersonService_GetAllPeopleClient

type PersonService_GetAllPeopleClient interface {
	Recv() (*GetPersonResponse, error)
	grpc.ClientStream
}

type PersonService_GetAllPeopleServer

type PersonService_GetAllPeopleServer interface {
	Send(*GetPersonResponse) error
	grpc.ServerStream
}

type PersonService_PutPeopleClient

type PersonService_PutPeopleClient interface {
	Send(*PutPersonRequest) error
	CloseAndRecv() (*PutPersonResponse, error)
	grpc.ClientStream
}

type PersonService_PutPeopleServer

type PersonService_PutPeopleServer interface {
	SendAndClose(*PutPersonResponse) error
	Recv() (*PutPersonRequest, error)
	grpc.ServerStream
}

type Person_Communication

type Person_Communication struct {
	Communication *Communication `protobuf:"bytes,9,opt,name=communication,proto3,oneof"`
}

type Person_Permanent

type Person_Permanent struct {
	Permanent *Permanent `protobuf:"bytes,8,opt,name=permanent,proto3,oneof"`
}

type PhoneNumber

type PhoneNumber struct {
	Number string                `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	PhType PhoneNumber_PhoneType `protobuf:"varint,2,opt,name=ph_type,json=phType,proto3,enum=human.PhoneNumber_PhoneType" json:"ph_type,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneNumber) Descriptor deprecated

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

Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead.

func (*PhoneNumber) GetNumber

func (x *PhoneNumber) GetNumber() string

func (*PhoneNumber) GetPhType

func (x *PhoneNumber) GetPhType() PhoneNumber_PhoneType

func (*PhoneNumber) ProtoMessage

func (*PhoneNumber) ProtoMessage()

func (*PhoneNumber) ProtoReflect

func (x *PhoneNumber) ProtoReflect() protoreflect.Message

func (*PhoneNumber) Reset

func (x *PhoneNumber) Reset()

func (*PhoneNumber) String

func (x *PhoneNumber) String() string

type PhoneNumber_PhoneType

type PhoneNumber_PhoneType int32
const (
	PhoneNumber_MOBILE PhoneNumber_PhoneType = 0
	PhoneNumber_HOME   PhoneNumber_PhoneType = 1
	PhoneNumber_WORK   PhoneNumber_PhoneType = 2
)

func (PhoneNumber_PhoneType) Descriptor

func (PhoneNumber_PhoneType) Enum

func (PhoneNumber_PhoneType) EnumDescriptor deprecated

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

Deprecated: Use PhoneNumber_PhoneType.Descriptor instead.

func (PhoneNumber_PhoneType) Number

func (PhoneNumber_PhoneType) String

func (x PhoneNumber_PhoneType) String() string

func (PhoneNumber_PhoneType) Type

type PutPersonRequest

type PutPersonRequest struct {
	Person []*Person `protobuf:"bytes,1,rep,name=person,proto3" json:"person,omitempty"`
	// contains filtered or unexported fields
}

func (*PutPersonRequest) Descriptor deprecated

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

Deprecated: Use PutPersonRequest.ProtoReflect.Descriptor instead.

func (*PutPersonRequest) GetPerson

func (x *PutPersonRequest) GetPerson() []*Person

func (*PutPersonRequest) ProtoMessage

func (*PutPersonRequest) ProtoMessage()

func (*PutPersonRequest) ProtoReflect

func (x *PutPersonRequest) ProtoReflect() protoreflect.Message

func (*PutPersonRequest) Reset

func (x *PutPersonRequest) Reset()

func (*PutPersonRequest) String

func (x *PutPersonRequest) String() string

type PutPersonResponse

type PutPersonResponse struct {
	Result bool    `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Id     []int64 `protobuf:"varint,2,rep,packed,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PutPersonResponse) Descriptor deprecated

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

Deprecated: Use PutPersonResponse.ProtoReflect.Descriptor instead.

func (*PutPersonResponse) GetId

func (x *PutPersonResponse) GetId() []int64

func (*PutPersonResponse) GetResult

func (x *PutPersonResponse) GetResult() bool

func (*PutPersonResponse) ProtoMessage

func (*PutPersonResponse) ProtoMessage()

func (*PutPersonResponse) ProtoReflect

func (x *PutPersonResponse) ProtoReflect() protoreflect.Message

func (*PutPersonResponse) Reset

func (x *PutPersonResponse) Reset()

func (*PutPersonResponse) String

func (x *PutPersonResponse) String() string

type UnimplementedPersonServiceServer

type UnimplementedPersonServiceServer struct {
}

UnimplementedPersonServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPersonServiceServer) Chat

func (*UnimplementedPersonServiceServer) GetAllPeople

func (*UnimplementedPersonServiceServer) GetPerson

func (*UnimplementedPersonServiceServer) PutPeople

func (*UnimplementedPersonServiceServer) PutPerson

Jump to

Keyboard shortcuts

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