pb

package
v1.36.12-2025110614484... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_user_pb_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetUserRequest

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

func (*GetUserRequest) GetUsername

func (x *GetUserRequest) GetUsername() 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) SetUsername

func (x *GetUserRequest) SetUsername(v string)

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserRequest_builder

type GetUserRequest_builder struct {
	Username string
	// contains filtered or unexported fields
}

func (GetUserRequest_builder) Build

type ListUsersResponse

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

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) SetUsers

func (x *ListUsersResponse) SetUsers(v []*User)

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type ListUsersResponse_builder

type ListUsersResponse_builder struct {
	Users []*User
	// contains filtered or unexported fields
}

func (ListUsersResponse_builder) Build

type User

type User struct {

	// User credentials
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // default redaction
	// User information
	Email string         `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Name  string         `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Home  *User_Location `protobuf:"bytes,5,opt,name=home,proto3" json:"home,omitempty"`
	Opt   string         `protobuf:"bytes,6,opt,name=opt,proto3" json:"opt,omitempty"`
	// contains filtered or unexported fields
}

func (*User) ClearHome

func (x *User) ClearHome()

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetHome

func (x *User) GetHome() *User_Location

func (*User) GetName

func (x *User) GetName() string

func (*User) GetOpt

func (x *User) GetOpt() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) HasHome

func (x *User) HasHome() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) SetEmail

func (x *User) SetEmail(v string)

func (*User) SetHome

func (x *User) SetHome(v *User_Location)

func (*User) SetName

func (x *User) SetName(v string)

func (*User) SetOpt

func (x *User) SetOpt(v string)

func (*User) SetPassword

func (x *User) SetPassword(v string)

func (*User) SetUsername

func (x *User) SetUsername(v string)

func (*User) String

func (x *User) String() string

type User_Location

type User_Location struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
	// contains filtered or unexported fields
}

func (*User_Location) GetLat

func (x *User_Location) GetLat() float64

func (*User_Location) GetLng

func (x *User_Location) GetLng() float64

func (*User_Location) ProtoMessage

func (*User_Location) ProtoMessage()

func (*User_Location) ProtoReflect

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

func (*User_Location) Reset

func (x *User_Location) Reset()

func (*User_Location) SetLat

func (x *User_Location) SetLat(v float64)

func (*User_Location) SetLng

func (x *User_Location) SetLng(v float64)

func (*User_Location) String

func (x *User_Location) String() string

type User_Location_builder

type User_Location_builder struct {
	Lat float64
	Lng float64
	// contains filtered or unexported fields
}

func (User_Location_builder) Build

type User_builder

type User_builder struct {

	// User credentials
	Username string
	Password string
	// User information
	Email string
	Name  string
	Home  *User_Location
	Opt   string
	// contains filtered or unexported fields
}

func (User_builder) Build

func (b0 User_builder) Build() *User

Source Files

  • user.pb.go

Jump to

Keyboard shortcuts

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