userpb

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_protobuf_spec_user_user_v1_proto protoreflect.FileDescriptor

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type Address

type Address struct {
	Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	Zip     string `protobuf:"bytes,2,opt,name=zip,proto3" json:"zip,omitempty"`
	City    string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetZip

func (x *Address) GetZip() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type Birthday

type Birthday struct {
	Day   int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"`
	Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
	Year  int32 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"`
	// contains filtered or unexported fields
}

func (*Birthday) Descriptor deprecated

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

Deprecated: Use Birthday.ProtoReflect.Descriptor instead.

func (*Birthday) GetDay

func (x *Birthday) GetDay() int32

func (*Birthday) GetMonth

func (x *Birthday) GetMonth() int32

func (*Birthday) GetYear

func (x *Birthday) GetYear() int32

func (*Birthday) ProtoMessage

func (*Birthday) ProtoMessage()

func (*Birthday) ProtoReflect

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

func (*Birthday) Reset

func (x *Birthday) Reset()

func (*Birthday) String

func (x *Birthday) String() string

type GetUserRequest

type GetUserRequest struct {
	Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"`
	Requested string `protobuf:"bytes,2,opt,name=requested,proto3" json:"requested,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetRequested

func (x *GetUserRequest) GetRequested() string

func (*GetUserRequest) GetRequester

func (x *GetUserRequest) GetRequester() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

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

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type GetUsersRequest

type GetUsersRequest struct {
	Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersRequest) Descriptor deprecated

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

Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.

func (*GetUsersRequest) GetUsers

func (x *GetUsersRequest) GetUsers() []string

func (*GetUsersRequest) ProtoMessage

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) ProtoReflect

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

func (*GetUsersRequest) Reset

func (x *GetUsersRequest) Reset()

func (*GetUsersRequest) String

func (x *GetUsersRequest) String() string

type GetUsersResponse

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

func (*GetUsersResponse) Descriptor deprecated

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

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

func (*GetUsersResponse) GetUser

func (x *GetUsersResponse) GetUser() []*User

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

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

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

type Profile

type Profile struct {
	FirstName string    `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string    `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Birthday  *Birthday `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Address   *Address  `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	AvatarUrl string    `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	Biography string    `protobuf:"bytes,6,opt,name=biography,proto3" json:"biography,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetAddress

func (x *Profile) GetAddress() *Address

func (*Profile) GetAvatarUrl

func (x *Profile) GetAvatarUrl() string

func (*Profile) GetBiography

func (x *Profile) GetBiography() string

func (*Profile) GetBirthday

func (x *Profile) GetBirthday() *Birthday

func (*Profile) GetFirstName

func (x *Profile) GetFirstName() string

func (*Profile) GetLastName

func (x *Profile) GetLastName() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) GetUser

func (*UnimplementedUserServiceServer) GetUsers

func (*UnimplementedUserServiceServer) UpdateAvatar added in v0.4.5

func (*UnimplementedUserServiceServer) UpdateProfile added in v0.4.1

type UpdateAvatarRequest added in v0.4.5

type UpdateAvatarRequest struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Url    string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAvatarRequest) Descriptor deprecated added in v0.4.5

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

Deprecated: Use UpdateAvatarRequest.ProtoReflect.Descriptor instead.

func (*UpdateAvatarRequest) GetKey added in v0.4.5

func (x *UpdateAvatarRequest) GetKey() string

func (*UpdateAvatarRequest) GetUrl added in v0.4.5

func (x *UpdateAvatarRequest) GetUrl() string

func (*UpdateAvatarRequest) GetUserId added in v0.4.7

func (x *UpdateAvatarRequest) GetUserId() string

func (*UpdateAvatarRequest) ProtoMessage added in v0.4.5

func (*UpdateAvatarRequest) ProtoMessage()

func (*UpdateAvatarRequest) ProtoReflect added in v0.4.5

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

func (*UpdateAvatarRequest) Reset added in v0.4.5

func (x *UpdateAvatarRequest) Reset()

func (*UpdateAvatarRequest) String added in v0.4.5

func (x *UpdateAvatarRequest) String() string

type UpdateProfileRequest added in v0.4.1

type UpdateProfileRequest struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	UserId  string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) Descriptor deprecated added in v0.4.1

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetProfile added in v0.4.1

func (x *UpdateProfileRequest) GetProfile() *Profile

func (*UpdateProfileRequest) GetUserId added in v0.4.2

func (x *UpdateProfileRequest) GetUserId() string

func (*UpdateProfileRequest) ProtoMessage added in v0.4.1

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect added in v0.4.1

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

func (*UpdateProfileRequest) Reset added in v0.4.1

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String added in v0.4.1

func (x *UpdateProfileRequest) String() string

type UpdateProfileResponse added in v0.4.1

type UpdateProfileResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileResponse) Descriptor deprecated added in v0.4.1

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

Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.

func (*UpdateProfileResponse) GetSuccess added in v0.4.1

func (x *UpdateProfileResponse) GetSuccess() bool

func (*UpdateProfileResponse) ProtoMessage added in v0.4.1

func (*UpdateProfileResponse) ProtoMessage()

func (*UpdateProfileResponse) ProtoReflect added in v0.4.1

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

func (*UpdateProfileResponse) Reset added in v0.4.1

func (x *UpdateProfileResponse) Reset()

func (*UpdateProfileResponse) String added in v0.4.1

func (x *UpdateProfileResponse) String() string

type User

type User struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	PhoneNumber string   `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	Email       string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Profile     *Profile `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetPhoneNumber

func (x *User) GetPhoneNumber() string

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserServiceClient

type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
	UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error)
	UpdateAvatar(ctx context.Context, in *UpdateAvatarRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

UserServiceClient is the client API for UserService service.

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

type UserServiceServer

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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