implement simple tui with humans data
This commit is contained in:
@@ -0,0 +1,955 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.1
|
||||
// protoc v5.28.3
|
||||
// source: helios/human/human.proto
|
||||
|
||||
package pbhuman
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Human struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// Public url for the profile picture/headshot
|
||||
ProfilePictureUrl string `protobuf:"bytes,2,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
||||
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
IsFlowyAdmin bool `protobuf:"varint,5,opt,name=is_flowy_admin,json=isFlowyAdmin,proto3" json:"is_flowy_admin,omitempty"`
|
||||
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Human) Reset() {
|
||||
*x = Human{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Human) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Human) ProtoMessage() {}
|
||||
|
||||
func (x *Human) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Human.ProtoReflect.Descriptor instead.
|
||||
func (*Human) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Human) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Human) GetProfilePictureUrl() string {
|
||||
if x != nil {
|
||||
return x.ProfilePictureUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Human) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Human) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Human) GetIsFlowyAdmin() bool {
|
||||
if x != nil {
|
||||
return x.IsFlowyAdmin
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *Human) GetJoinedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.JoinedAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AddHumanRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
ProfilePictureUrl string `protobuf:"bytes,3,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AddHumanRequest) Reset() {
|
||||
*x = AddHumanRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddHumanRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddHumanRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AddHumanRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AddHumanRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AddHumanRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *AddHumanRequest) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AddHumanRequest) GetDisplayName() string {
|
||||
if x != nil {
|
||||
return x.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AddHumanRequest) GetProfilePictureUrl() string {
|
||||
if x != nil {
|
||||
return x.ProfilePictureUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AddHumanResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AddHumanResponse) Reset() {
|
||||
*x = AddHumanResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddHumanResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddHumanResponse) ProtoMessage() {}
|
||||
|
||||
func (x *AddHumanResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AddHumanResponse.ProtoReflect.Descriptor instead.
|
||||
func (*AddHumanResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *AddHumanResponse) GetHuman() *Human {
|
||||
if x != nil {
|
||||
return x.Human
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetHumanByEmailRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailRequest) Reset() {
|
||||
*x = GetHumanByEmailRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetHumanByEmailRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetHumanByEmailRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetHumanByEmailRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetHumanByEmailRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailRequest) GetEmail() string {
|
||||
if x != nil {
|
||||
return x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetHumanByEmailResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailResponse) Reset() {
|
||||
*x = GetHumanByEmailResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetHumanByEmailResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetHumanByEmailResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetHumanByEmailResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetHumanByEmailResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *GetHumanByEmailResponse) GetHuman() *Human {
|
||||
if x != nil {
|
||||
return x.Human
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type GetHumanByIdRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdRequest) Reset() {
|
||||
*x = GetHumanByIdRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetHumanByIdRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetHumanByIdRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetHumanByIdRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetHumanByIdRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdRequest) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetHumanByIdResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdResponse) Reset() {
|
||||
*x = GetHumanByIdResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetHumanByIdResponse) ProtoMessage() {}
|
||||
|
||||
func (x *GetHumanByIdResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetHumanByIdResponse.ProtoReflect.Descriptor instead.
|
||||
func (*GetHumanByIdResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *GetHumanByIdResponse) GetHuman() *Human {
|
||||
if x != nil {
|
||||
return x.Human
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type UpdateHumanProfilePictureRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||
// Ensure that this profile picture is public
|
||||
NewProfilePictureUrl string `protobuf:"bytes,2,opt,name=new_profile_picture_url,json=newProfilePictureUrl,proto3" json:"new_profile_picture_url,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureRequest) Reset() {
|
||||
*x = UpdateHumanProfilePictureRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHumanProfilePictureRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHumanProfilePictureRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateHumanProfilePictureRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHumanProfilePictureRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureRequest) GetHumanId() string {
|
||||
if x != nil {
|
||||
return x.HumanId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureRequest) GetNewProfilePictureUrl() string {
|
||||
if x != nil {
|
||||
return x.NewProfilePictureUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UpdateHumanProfilePictureResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureResponse) Reset() {
|
||||
*x = UpdateHumanProfilePictureResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateHumanProfilePictureResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHumanProfilePictureResponse) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHumanProfilePictureResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateHumanProfilePictureResponse.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHumanProfilePictureResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
type UpdateHumanDisplayNameRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||
NewDisplayName string `protobuf:"bytes,2,opt,name=new_display_name,json=newDisplayName,proto3" json:"new_display_name,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameRequest) Reset() {
|
||||
*x = UpdateHumanDisplayNameRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHumanDisplayNameRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHumanDisplayNameRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateHumanDisplayNameRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHumanDisplayNameRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameRequest) GetHumanId() string {
|
||||
if x != nil {
|
||||
return x.HumanId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameRequest) GetNewDisplayName() string {
|
||||
if x != nil {
|
||||
return x.NewDisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UpdateHumanDisplayNameResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameResponse) Reset() {
|
||||
*x = UpdateHumanDisplayNameResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdateHumanDisplayNameResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateHumanDisplayNameResponse) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateHumanDisplayNameResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateHumanDisplayNameResponse.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateHumanDisplayNameResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
type ListHumansRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *ListHumansRequest) Reset() {
|
||||
*x = ListHumansRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListHumansRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListHumansRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListHumansRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListHumansRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListHumansRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
type ListHumansResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Humans []*Human `protobuf:"bytes,1,rep,name=humans,proto3" json:"humans,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ListHumansResponse) Reset() {
|
||||
*x = ListHumansResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListHumansResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListHumansResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListHumansResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ListHumansResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListHumansResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *ListHumansResponse) GetHumans() []*Human {
|
||||
if x != nil {
|
||||
return x.Humans
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SetFlowyAdminRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||
IsFlowyAdmin bool `protobuf:"varint,2,opt,name=is_flowy_admin,json=isFlowyAdmin,proto3" json:"is_flowy_admin,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminRequest) Reset() {
|
||||
*x = SetFlowyAdminRequest{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SetFlowyAdminRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetFlowyAdminRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SetFlowyAdminRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetFlowyAdminRequest) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminRequest) GetHumanId() string {
|
||||
if x != nil {
|
||||
return x.HumanId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminRequest) GetIsFlowyAdmin() bool {
|
||||
if x != nil {
|
||||
return x.IsFlowyAdmin
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type SetFlowyAdminResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminResponse) Reset() {
|
||||
*x = SetFlowyAdminResponse{}
|
||||
mi := &file_helios_human_human_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SetFlowyAdminResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SetFlowyAdminResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SetFlowyAdminResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_helios_human_human_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SetFlowyAdminResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SetFlowyAdminResponse) Descriptor() ([]byte, []int) {
|
||||
return file_helios_human_human_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
var File_helios_human_human_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_helios_human_human_proto_rawDesc = []byte{
|
||||
0x0a, 0x18, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2f, 0x68,
|
||||
0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x68, 0x65, 0x6c, 0x69,
|
||||
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x05, 0x48, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70,
|
||||
0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x11, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65,
|
||||
0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,
|
||||
0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e,
|
||||
0x69, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x05,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||
0x69, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||
0x70, 0x52, 0x08, 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x41, 0x74, 0x22, 0x7a, 0x0a, 0x0f, 0x41,
|
||||
0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
|
||||
0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f,
|
||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70,
|
||||
0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63,
|
||||
0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x3d, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x48, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x68,
|
||||
0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c,
|
||||
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52,
|
||||
0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x2e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x44, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x29, 0x0a, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e,
|
||||
0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x25, 0x0a, 0x13,
|
||||
0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42,
|
||||
0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x68,
|
||||
0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c,
|
||||
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52,
|
||||
0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x74, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74,
|
||||
0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x17, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x6f,
|
||||
0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x23, 0x0a, 0x21,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x22, 0x64, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a,
|
||||
0x10, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x44, 0x69, 0x73, 0x70,
|
||||
0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74,
|
||||
0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
|
||||
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73,
|
||||
0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x41,
|
||||
0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x06, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x73, 0x22, 0x57, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||
0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79,
|
||||
0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73,
|
||||
0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65,
|
||||
0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x32, 0xbc, 0x05, 0x0a, 0x0c, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x53, 0x65, 0x72,
|
||||
0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x12, 0x1d, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e,
|
||||
0x41, 0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x1e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x41,
|
||||
0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
||||
0x00, 0x12, 0x60, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x45,
|
||||
0x6d, 0x61, 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75,
|
||||
0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d,
|
||||
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x68, 0x65, 0x6c,
|
||||
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42,
|
||||
0x79, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||
0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79,
|
||||
0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x19,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75,
|
||||
0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75,
|
||||
0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x16,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c,
|
||||
0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||
0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61,
|
||||
0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69,
|
||||
0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x73, 0x12, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61,
|
||||
0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f,
|
||||
0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||
0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41,
|
||||
0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x68, 0x65,
|
||||
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x6c,
|
||||
0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||
0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69,
|
||||
0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69,
|
||||
0x6f, 0x73, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x3b, 0x70, 0x62, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_helios_human_human_proto_rawDescOnce sync.Once
|
||||
file_helios_human_human_proto_rawDescData = file_helios_human_human_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_helios_human_human_proto_rawDescGZIP() []byte {
|
||||
file_helios_human_human_proto_rawDescOnce.Do(func() {
|
||||
file_helios_human_human_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_human_human_proto_rawDescData)
|
||||
})
|
||||
return file_helios_human_human_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_helios_human_human_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_helios_human_human_proto_goTypes = []any{
|
||||
(*Human)(nil), // 0: helios.human.Human
|
||||
(*AddHumanRequest)(nil), // 1: helios.human.AddHumanRequest
|
||||
(*AddHumanResponse)(nil), // 2: helios.human.AddHumanResponse
|
||||
(*GetHumanByEmailRequest)(nil), // 3: helios.human.GetHumanByEmailRequest
|
||||
(*GetHumanByEmailResponse)(nil), // 4: helios.human.GetHumanByEmailResponse
|
||||
(*GetHumanByIdRequest)(nil), // 5: helios.human.GetHumanByIdRequest
|
||||
(*GetHumanByIdResponse)(nil), // 6: helios.human.GetHumanByIdResponse
|
||||
(*UpdateHumanProfilePictureRequest)(nil), // 7: helios.human.UpdateHumanProfilePictureRequest
|
||||
(*UpdateHumanProfilePictureResponse)(nil), // 8: helios.human.UpdateHumanProfilePictureResponse
|
||||
(*UpdateHumanDisplayNameRequest)(nil), // 9: helios.human.UpdateHumanDisplayNameRequest
|
||||
(*UpdateHumanDisplayNameResponse)(nil), // 10: helios.human.UpdateHumanDisplayNameResponse
|
||||
(*ListHumansRequest)(nil), // 11: helios.human.ListHumansRequest
|
||||
(*ListHumansResponse)(nil), // 12: helios.human.ListHumansResponse
|
||||
(*SetFlowyAdminRequest)(nil), // 13: helios.human.SetFlowyAdminRequest
|
||||
(*SetFlowyAdminResponse)(nil), // 14: helios.human.SetFlowyAdminResponse
|
||||
(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
|
||||
}
|
||||
var file_helios_human_human_proto_depIdxs = []int32{
|
||||
15, // 0: helios.human.Human.joined_at:type_name -> google.protobuf.Timestamp
|
||||
0, // 1: helios.human.AddHumanResponse.human:type_name -> helios.human.Human
|
||||
0, // 2: helios.human.GetHumanByEmailResponse.human:type_name -> helios.human.Human
|
||||
0, // 3: helios.human.GetHumanByIdResponse.human:type_name -> helios.human.Human
|
||||
0, // 4: helios.human.ListHumansResponse.humans:type_name -> helios.human.Human
|
||||
1, // 5: helios.human.HumanService.AddHuman:input_type -> helios.human.AddHumanRequest
|
||||
3, // 6: helios.human.HumanService.GetHumanByEmail:input_type -> helios.human.GetHumanByEmailRequest
|
||||
5, // 7: helios.human.HumanService.GetHumanById:input_type -> helios.human.GetHumanByIdRequest
|
||||
7, // 8: helios.human.HumanService.UpdateHumanProfilePicture:input_type -> helios.human.UpdateHumanProfilePictureRequest
|
||||
9, // 9: helios.human.HumanService.UpdateHumanDisplayName:input_type -> helios.human.UpdateHumanDisplayNameRequest
|
||||
11, // 10: helios.human.HumanService.ListHumans:input_type -> helios.human.ListHumansRequest
|
||||
13, // 11: helios.human.HumanService.SetFlowyAdmin:input_type -> helios.human.SetFlowyAdminRequest
|
||||
2, // 12: helios.human.HumanService.AddHuman:output_type -> helios.human.AddHumanResponse
|
||||
4, // 13: helios.human.HumanService.GetHumanByEmail:output_type -> helios.human.GetHumanByEmailResponse
|
||||
6, // 14: helios.human.HumanService.GetHumanById:output_type -> helios.human.GetHumanByIdResponse
|
||||
8, // 15: helios.human.HumanService.UpdateHumanProfilePicture:output_type -> helios.human.UpdateHumanProfilePictureResponse
|
||||
10, // 16: helios.human.HumanService.UpdateHumanDisplayName:output_type -> helios.human.UpdateHumanDisplayNameResponse
|
||||
12, // 17: helios.human.HumanService.ListHumans:output_type -> helios.human.ListHumansResponse
|
||||
14, // 18: helios.human.HumanService.SetFlowyAdmin:output_type -> helios.human.SetFlowyAdminResponse
|
||||
12, // [12:19] is the sub-list for method output_type
|
||||
5, // [5:12] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_helios_human_human_proto_init() }
|
||||
func file_helios_human_human_proto_init() {
|
||||
if File_helios_human_human_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_helios_human_human_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 15,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_helios_human_human_proto_goTypes,
|
||||
DependencyIndexes: file_helios_human_human_proto_depIdxs,
|
||||
MessageInfos: file_helios_human_human_proto_msgTypes,
|
||||
}.Build()
|
||||
File_helios_human_human_proto = out.File
|
||||
file_helios_human_human_proto_rawDesc = nil
|
||||
file_helios_human_human_proto_goTypes = nil
|
||||
file_helios_human_human_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,359 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v5.28.3
|
||||
// source: helios/human/human.proto
|
||||
|
||||
package pbhuman
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
HumanService_AddHuman_FullMethodName = "/helios.human.HumanService/AddHuman"
|
||||
HumanService_GetHumanByEmail_FullMethodName = "/helios.human.HumanService/GetHumanByEmail"
|
||||
HumanService_GetHumanById_FullMethodName = "/helios.human.HumanService/GetHumanById"
|
||||
HumanService_UpdateHumanProfilePicture_FullMethodName = "/helios.human.HumanService/UpdateHumanProfilePicture"
|
||||
HumanService_UpdateHumanDisplayName_FullMethodName = "/helios.human.HumanService/UpdateHumanDisplayName"
|
||||
HumanService_ListHumans_FullMethodName = "/helios.human.HumanService/ListHumans"
|
||||
HumanService_SetFlowyAdmin_FullMethodName = "/helios.human.HumanService/SetFlowyAdmin"
|
||||
)
|
||||
|
||||
// HumanServiceClient is the client API for HumanService 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.
|
||||
type HumanServiceClient interface {
|
||||
// Returns ALREADY_EXISTS if the human is already added.
|
||||
AddHuman(ctx context.Context, in *AddHumanRequest, opts ...grpc.CallOption) (*AddHumanResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
GetHumanByEmail(ctx context.Context, in *GetHumanByEmailRequest, opts ...grpc.CallOption) (*GetHumanByEmailResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
GetHumanById(ctx context.Context, in *GetHumanByIdRequest, opts ...grpc.CallOption) (*GetHumanByIdResponse, error)
|
||||
UpdateHumanProfilePicture(ctx context.Context, in *UpdateHumanProfilePictureRequest, opts ...grpc.CallOption) (*UpdateHumanProfilePictureResponse, error)
|
||||
UpdateHumanDisplayName(ctx context.Context, in *UpdateHumanDisplayNameRequest, opts ...grpc.CallOption) (*UpdateHumanDisplayNameResponse, error)
|
||||
// Lists all humans.
|
||||
ListHumans(ctx context.Context, in *ListHumansRequest, opts ...grpc.CallOption) (*ListHumansResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
SetFlowyAdmin(ctx context.Context, in *SetFlowyAdminRequest, opts ...grpc.CallOption) (*SetFlowyAdminResponse, error)
|
||||
}
|
||||
|
||||
type humanServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewHumanServiceClient(cc grpc.ClientConnInterface) HumanServiceClient {
|
||||
return &humanServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) AddHuman(ctx context.Context, in *AddHumanRequest, opts ...grpc.CallOption) (*AddHumanResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddHumanResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_AddHuman_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) GetHumanByEmail(ctx context.Context, in *GetHumanByEmailRequest, opts ...grpc.CallOption) (*GetHumanByEmailResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetHumanByEmailResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_GetHumanByEmail_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) GetHumanById(ctx context.Context, in *GetHumanByIdRequest, opts ...grpc.CallOption) (*GetHumanByIdResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetHumanByIdResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_GetHumanById_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) UpdateHumanProfilePicture(ctx context.Context, in *UpdateHumanProfilePictureRequest, opts ...grpc.CallOption) (*UpdateHumanProfilePictureResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateHumanProfilePictureResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_UpdateHumanProfilePicture_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) UpdateHumanDisplayName(ctx context.Context, in *UpdateHumanDisplayNameRequest, opts ...grpc.CallOption) (*UpdateHumanDisplayNameResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateHumanDisplayNameResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_UpdateHumanDisplayName_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) ListHumans(ctx context.Context, in *ListHumansRequest, opts ...grpc.CallOption) (*ListHumansResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListHumansResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_ListHumans_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *humanServiceClient) SetFlowyAdmin(ctx context.Context, in *SetFlowyAdminRequest, opts ...grpc.CallOption) (*SetFlowyAdminResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SetFlowyAdminResponse)
|
||||
err := c.cc.Invoke(ctx, HumanService_SetFlowyAdmin_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// HumanServiceServer is the server API for HumanService service.
|
||||
// All implementations must embed UnimplementedHumanServiceServer
|
||||
// for forward compatibility.
|
||||
type HumanServiceServer interface {
|
||||
// Returns ALREADY_EXISTS if the human is already added.
|
||||
AddHuman(context.Context, *AddHumanRequest) (*AddHumanResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
GetHumanByEmail(context.Context, *GetHumanByEmailRequest) (*GetHumanByEmailResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
GetHumanById(context.Context, *GetHumanByIdRequest) (*GetHumanByIdResponse, error)
|
||||
UpdateHumanProfilePicture(context.Context, *UpdateHumanProfilePictureRequest) (*UpdateHumanProfilePictureResponse, error)
|
||||
UpdateHumanDisplayName(context.Context, *UpdateHumanDisplayNameRequest) (*UpdateHumanDisplayNameResponse, error)
|
||||
// Lists all humans.
|
||||
ListHumans(context.Context, *ListHumansRequest) (*ListHumansResponse, error)
|
||||
// Returns NOT_FOUND if the human is not found.
|
||||
SetFlowyAdmin(context.Context, *SetFlowyAdminRequest) (*SetFlowyAdminResponse, error)
|
||||
mustEmbedUnimplementedHumanServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedHumanServiceServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedHumanServiceServer struct{}
|
||||
|
||||
func (UnimplementedHumanServiceServer) AddHuman(context.Context, *AddHumanRequest) (*AddHumanResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddHuman not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) GetHumanByEmail(context.Context, *GetHumanByEmailRequest) (*GetHumanByEmailResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetHumanByEmail not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) GetHumanById(context.Context, *GetHumanByIdRequest) (*GetHumanByIdResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetHumanById not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) UpdateHumanProfilePicture(context.Context, *UpdateHumanProfilePictureRequest) (*UpdateHumanProfilePictureResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHumanProfilePicture not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) UpdateHumanDisplayName(context.Context, *UpdateHumanDisplayNameRequest) (*UpdateHumanDisplayNameResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHumanDisplayName not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) ListHumans(context.Context, *ListHumansRequest) (*ListHumansResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListHumans not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) SetFlowyAdmin(context.Context, *SetFlowyAdminRequest) (*SetFlowyAdminResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method SetFlowyAdmin not implemented")
|
||||
}
|
||||
func (UnimplementedHumanServiceServer) mustEmbedUnimplementedHumanServiceServer() {}
|
||||
func (UnimplementedHumanServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeHumanServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to HumanServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeHumanServiceServer interface {
|
||||
mustEmbedUnimplementedHumanServiceServer()
|
||||
}
|
||||
|
||||
func RegisterHumanServiceServer(s grpc.ServiceRegistrar, srv HumanServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedHumanServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&HumanService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _HumanService_AddHuman_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddHumanRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).AddHuman(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_AddHuman_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).AddHuman(ctx, req.(*AddHumanRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_GetHumanByEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetHumanByEmailRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).GetHumanByEmail(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_GetHumanByEmail_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).GetHumanByEmail(ctx, req.(*GetHumanByEmailRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_GetHumanById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetHumanByIdRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).GetHumanById(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_GetHumanById_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).GetHumanById(ctx, req.(*GetHumanByIdRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_UpdateHumanProfilePicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateHumanProfilePictureRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).UpdateHumanProfilePicture(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_UpdateHumanProfilePicture_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).UpdateHumanProfilePicture(ctx, req.(*UpdateHumanProfilePictureRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_UpdateHumanDisplayName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateHumanDisplayNameRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).UpdateHumanDisplayName(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_UpdateHumanDisplayName_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).UpdateHumanDisplayName(ctx, req.(*UpdateHumanDisplayNameRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_ListHumans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListHumansRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).ListHumans(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_ListHumans_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).ListHumans(ctx, req.(*ListHumansRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _HumanService_SetFlowyAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SetFlowyAdminRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(HumanServiceServer).SetFlowyAdmin(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: HumanService_SetFlowyAdmin_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(HumanServiceServer).SetFlowyAdmin(ctx, req.(*SetFlowyAdminRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// HumanService_ServiceDesc is the grpc.ServiceDesc for HumanService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var HumanService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "helios.human.HumanService",
|
||||
HandlerType: (*HumanServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "AddHuman",
|
||||
Handler: _HumanService_AddHuman_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetHumanByEmail",
|
||||
Handler: _HumanService_GetHumanByEmail_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetHumanById",
|
||||
Handler: _HumanService_GetHumanById_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateHumanProfilePicture",
|
||||
Handler: _HumanService_UpdateHumanProfilePicture_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateHumanDisplayName",
|
||||
Handler: _HumanService_UpdateHumanDisplayName_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListHumans",
|
||||
Handler: _HumanService_ListHumans_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SetFlowyAdmin",
|
||||
Handler: _HumanService_SetFlowyAdmin_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "helios/human/human.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user