Documentation ¶
Index ¶
- Variables
- func RegisterPeopleServer(s grpc.ServiceRegistrar, srv PeopleServer)
- type BatchRequest
- type BatchResponse
- type Coding
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetAge() int64
- func (x *CreateRequest) GetEmployment() Person_Employment
- func (x *CreateRequest) GetFirstName() string
- func (x *CreateRequest) GetFullName() string
- func (x *CreateRequest) GetHobby() *Hobby
- func (x *CreateRequest) GetId() string
- func (x *CreateRequest) GetLastName() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type Cycling
- type DeleteRequest
- type DeleteResponse
- type FetchRequest
- type FetchResponse
- type Hobby
- func (*Hobby) Descriptor() ([]byte, []int)deprecated
- func (x *Hobby) GetCoding() *Coding
- func (x *Hobby) GetCycling() *Cycling
- func (x *Hobby) GetReading() *Reading
- func (m *Hobby) GetType() isHobby_Type
- func (*Hobby) ProtoMessage()
- func (x *Hobby) ProtoReflect() protoreflect.Message
- func (x *Hobby) Reset()
- func (x *Hobby) String() string
- type Hobby_Coding
- type Hobby_Cycling
- type Hobby_Reading
- type ListRequest
- type ListResponse
- type PeopleClient
- type PeopleServer
- type Person
- func (*Person) Descriptor() ([]byte, []int)deprecated
- func (x *Person) GetAge() int64
- func (x *Person) GetCreatedAt() *timestamppb.Timestamp
- func (x *Person) GetDeletedAt() *timestamppb.Timestamp
- func (x *Person) GetEmployment() Person_Employment
- func (x *Person) GetFirstName() string
- func (x *Person) GetFullName() string
- func (x *Person) GetHobby() *Hobby
- func (x *Person) GetId() string
- func (x *Person) GetLastName() string
- func (x *Person) GetUpdatedAt() *timestamppb.Timestamp
- func (*Person) ProtoMessage()
- func (x *Person) ProtoReflect() protoreflect.Message
- func (x *Person) Reset()
- func (x *Person) String() string
- type Person_Employment
- func (Person_Employment) Descriptor() protoreflect.EnumDescriptor
- func (x Person_Employment) Enum() *Person_Employment
- func (Person_Employment) EnumDescriptor() ([]byte, []int)deprecated
- func (x Person_Employment) Number() protoreflect.EnumNumber
- func (x Person_Employment) String() string
- func (Person_Employment) Type() protoreflect.EnumType
- type PingRequest
- type PingResponse
- type Reading
- type UnimplementedPeopleServer
- func (UnimplementedPeopleServer) Batch(context.Context, *BatchRequest) (*BatchResponse, error)
- func (UnimplementedPeopleServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedPeopleServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedPeopleServer) Fetch(context.Context, *FetchRequest) (*FetchResponse, error)
- func (UnimplementedPeopleServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedPeopleServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedPeopleServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafePeopleServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetPerson() *Person
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var ( Person_Employment_name = map[int32]string{ 0: "UNDEFINED", 1: "FULL_TIME", 2: "PART_TIME", 3: "UNEMPLOYED", } Person_Employment_value = map[string]int32{ "UNDEFINED": 0, "FULL_TIME": 1, "PART_TIME": 2, "UNEMPLOYED": 3, } )
Enum value maps for Person_Employment.
var File_private_service_proto protoreflect.FileDescriptor
var People_ServiceDesc = grpc.ServiceDesc{ ServiceName: "example.private.People", HandlerType: (*PeopleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _People_Create_Handler, }, { MethodName: "Fetch", Handler: _People_Fetch_Handler, }, { MethodName: "Delete", Handler: _People_Delete_Handler, }, { MethodName: "List", Handler: _People_List_Handler, }, { MethodName: "Update", Handler: _People_Update_Handler, }, { MethodName: "Batch", Handler: _People_Batch_Handler, }, { MethodName: "Ping", Handler: _People_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "private/service.proto", }
People_ServiceDesc is the grpc.ServiceDesc for People service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPeopleServer ¶
func RegisterPeopleServer(s grpc.ServiceRegistrar, srv PeopleServer)
Types ¶
type BatchRequest ¶
type BatchRequest struct { Creates []*CreateRequest `protobuf:"bytes,1,rep,name=creates,proto3" json:"creates,omitempty"` // contains filtered or unexported fields }
func (*BatchRequest) Descriptor
deprecated
func (*BatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchRequest.ProtoReflect.Descriptor instead.
func (*BatchRequest) GetCreates ¶
func (x *BatchRequest) GetCreates() []*CreateRequest
func (*BatchRequest) ProtoMessage ¶
func (*BatchRequest) ProtoMessage()
func (*BatchRequest) ProtoReflect ¶
func (x *BatchRequest) ProtoReflect() protoreflect.Message
func (*BatchRequest) Reset ¶
func (x *BatchRequest) Reset()
func (*BatchRequest) String ¶
func (x *BatchRequest) String() string
type BatchResponse ¶
type BatchResponse struct { People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"` // contains filtered or unexported fields }
func (*BatchResponse) Descriptor
deprecated
func (*BatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchResponse.ProtoReflect.Descriptor instead.
func (*BatchResponse) GetPeople ¶
func (x *BatchResponse) GetPeople() []*Person
func (*BatchResponse) ProtoMessage ¶
func (*BatchResponse) ProtoMessage()
func (*BatchResponse) ProtoReflect ¶
func (x *BatchResponse) ProtoReflect() protoreflect.Message
func (*BatchResponse) Reset ¶
func (x *BatchResponse) Reset()
func (*BatchResponse) String ¶
func (x *BatchResponse) String() string
type Coding ¶
type Coding struct { Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` // contains filtered or unexported fields }
func (*Coding) Descriptor
deprecated
func (*Coding) GetLanguage ¶
func (*Coding) ProtoMessage ¶
func (*Coding) ProtoMessage()
func (*Coding) ProtoReflect ¶
func (x *Coding) ProtoReflect() protoreflect.Message
type CreateRequest ¶
type CreateRequest struct { Id string `protobuf:"bytes,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"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Age int64 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` Employment Person_Employment `protobuf:"varint,6,opt,name=employment,proto3,enum=example.private.Person_Employment" json:"employment,omitempty"` Hobby *Hobby `protobuf:"bytes,7,opt,name=hobby,proto3" json:"hobby,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetAge ¶
func (x *CreateRequest) GetAge() int64
func (*CreateRequest) GetEmployment ¶
func (x *CreateRequest) GetEmployment() Person_Employment
func (*CreateRequest) GetFirstName ¶
func (x *CreateRequest) GetFirstName() string
func (*CreateRequest) GetFullName ¶
func (x *CreateRequest) GetFullName() string
func (*CreateRequest) GetHobby ¶
func (x *CreateRequest) GetHobby() *Hobby
func (*CreateRequest) GetId ¶
func (x *CreateRequest) GetId() string
func (*CreateRequest) GetLastName ¶
func (x *CreateRequest) GetLastName() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetPerson ¶
func (x *CreateResponse) GetPerson() *Person
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type Cycling ¶
type Cycling struct { Style string `protobuf:"bytes,1,opt,name=style,proto3" json:"style,omitempty"` // contains filtered or unexported fields }
func (*Cycling) Descriptor
deprecated
func (*Cycling) ProtoMessage ¶
func (*Cycling) ProtoMessage()
func (*Cycling) ProtoReflect ¶
func (x *Cycling) ProtoReflect() protoreflect.Message
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetPerson ¶
func (x *DeleteResponse) GetPerson() *Person
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type FetchRequest ¶
type FetchRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FetchRequest) Descriptor
deprecated
func (*FetchRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.
func (*FetchRequest) GetId ¶
func (x *FetchRequest) GetId() string
func (*FetchRequest) ProtoMessage ¶
func (*FetchRequest) ProtoMessage()
func (*FetchRequest) ProtoReflect ¶
func (x *FetchRequest) ProtoReflect() protoreflect.Message
func (*FetchRequest) Reset ¶
func (x *FetchRequest) Reset()
func (*FetchRequest) String ¶
func (x *FetchRequest) String() string
type FetchResponse ¶
type FetchResponse struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*FetchResponse) Descriptor
deprecated
func (*FetchResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchResponse.ProtoReflect.Descriptor instead.
func (*FetchResponse) GetPerson ¶
func (x *FetchResponse) GetPerson() *Person
func (*FetchResponse) ProtoMessage ¶
func (*FetchResponse) ProtoMessage()
func (*FetchResponse) ProtoReflect ¶
func (x *FetchResponse) ProtoReflect() protoreflect.Message
func (*FetchResponse) Reset ¶
func (x *FetchResponse) Reset()
func (*FetchResponse) String ¶
func (x *FetchResponse) String() string
type Hobby ¶
type Hobby struct { // Types that are assignable to Type: // *Hobby_Coding // *Hobby_Reading // *Hobby_Cycling Type isHobby_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Hobby) Descriptor
deprecated
func (*Hobby) GetCycling ¶
func (*Hobby) GetReading ¶
func (*Hobby) ProtoMessage ¶
func (*Hobby) ProtoMessage()
func (*Hobby) ProtoReflect ¶
func (x *Hobby) ProtoReflect() protoreflect.Message
type Hobby_Coding ¶
type Hobby_Coding struct {
Coding *Coding `protobuf:"bytes,1,opt,name=coding,proto3,oneof"`
}
type Hobby_Cycling ¶
type Hobby_Cycling struct {
Cycling *Cycling `protobuf:"bytes,3,opt,name=cycling,proto3,oneof"`
}
type Hobby_Reading ¶
type Hobby_Reading struct {
Reading *Reading `protobuf:"bytes,2,opt,name=reading,proto3,oneof"`
}
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { People []*Person `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetPeople ¶
func (x *ListResponse) GetPeople() []*Person
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type PeopleClient ¶
type PeopleClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Fetch(ctx context.Context, in *FetchRequest, opts ...grpc.CallOption) (*FetchResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Batch(ctx context.Context, in *BatchRequest, opts ...grpc.CallOption) (*BatchResponse, error) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) }
PeopleClient is the client API for People service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPeopleClient ¶
func NewPeopleClient(cc grpc.ClientConnInterface) PeopleClient
type PeopleServer ¶
type PeopleServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) Fetch(context.Context, *FetchRequest) (*FetchResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Batch(context.Context, *BatchRequest) (*BatchResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) // contains filtered or unexported methods }
PeopleServer is the server API for People service. All implementations must embed UnimplementedPeopleServer for forward compatibility
type Person ¶
type Person struct { Id string `protobuf:"bytes,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"` FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Age int64 `protobuf:"varint,5,opt,name=age,proto3" json:"age,omitempty"` Employment Person_Employment `protobuf:"varint,6,opt,name=employment,proto3,enum=example.private.Person_Employment" json:"employment,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` Hobby *Hobby `protobuf:"bytes,10,opt,name=hobby,proto3" json:"hobby,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) GetCreatedAt ¶
func (x *Person) GetCreatedAt() *timestamppb.Timestamp
func (*Person) GetDeletedAt ¶
func (x *Person) GetDeletedAt() *timestamppb.Timestamp
func (*Person) GetEmployment ¶
func (x *Person) GetEmployment() Person_Employment
func (*Person) GetFirstName ¶
func (*Person) GetFullName ¶
func (*Person) GetLastName ¶
func (*Person) GetUpdatedAt ¶
func (x *Person) GetUpdatedAt() *timestamppb.Timestamp
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type Person_Employment ¶
type Person_Employment int32
const ( Person_UNDEFINED Person_Employment = 0 Person_FULL_TIME Person_Employment = 1 Person_PART_TIME Person_Employment = 2 Person_UNEMPLOYED Person_Employment = 3 )
func (Person_Employment) Descriptor ¶
func (Person_Employment) Descriptor() protoreflect.EnumDescriptor
func (Person_Employment) Enum ¶
func (x Person_Employment) Enum() *Person_Employment
func (Person_Employment) EnumDescriptor
deprecated
func (Person_Employment) EnumDescriptor() ([]byte, []int)
Deprecated: Use Person_Employment.Descriptor instead.
func (Person_Employment) Number ¶
func (x Person_Employment) Number() protoreflect.EnumNumber
func (Person_Employment) String ¶
func (x Person_Employment) String() string
func (Person_Employment) Type ¶
func (Person_Employment) Type() protoreflect.EnumType
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type Reading ¶
type Reading struct { Genre string `protobuf:"bytes,1,opt,name=genre,proto3" json:"genre,omitempty"` // contains filtered or unexported fields }
func (*Reading) Descriptor
deprecated
func (*Reading) ProtoMessage ¶
func (*Reading) ProtoMessage()
func (*Reading) ProtoReflect ¶
func (x *Reading) ProtoReflect() protoreflect.Message
type UnimplementedPeopleServer ¶
type UnimplementedPeopleServer struct { }
UnimplementedPeopleServer must be embedded to have forward compatible implementations.
func (UnimplementedPeopleServer) Batch ¶
func (UnimplementedPeopleServer) Batch(context.Context, *BatchRequest) (*BatchResponse, error)
func (UnimplementedPeopleServer) Create ¶
func (UnimplementedPeopleServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedPeopleServer) Delete ¶
func (UnimplementedPeopleServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedPeopleServer) Fetch ¶
func (UnimplementedPeopleServer) Fetch(context.Context, *FetchRequest) (*FetchResponse, error)
func (UnimplementedPeopleServer) List ¶
func (UnimplementedPeopleServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedPeopleServer) Ping ¶
func (UnimplementedPeopleServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedPeopleServer) Update ¶
func (UnimplementedPeopleServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafePeopleServer ¶
type UnsafePeopleServer interface {
// contains filtered or unexported methods
}
UnsafePeopleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PeopleServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Person *Person `protobuf:"bytes,2,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetPerson ¶
func (x *UpdateRequest) GetPerson() *Person
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { Person *Person `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetPerson ¶
func (x *UpdateResponse) GetPerson() *Person
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string