Documentation ¶
Index ¶
- Variables
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetOriginalUrl() string
- func (m *Image) GetResizedUrl() string
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) String() string
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Image) XXX_Merge(src proto.Message)
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)
- func (m *Metrics) GetHeight() uint32
- func (m *Metrics) GetWeight() uint32
- func (*Metrics) ProtoMessage()
- func (m *Metrics) Reset()
- func (m *Metrics) String() string
- func (m *Metrics) XXX_DiscardUnknown()
- func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Metrics) XXX_Merge(src proto.Message)
- func (m *Metrics) XXX_Size() int
- func (m *Metrics) XXX_Unmarshal(b []byte) error
- type Permission
- type Role
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserRequest) GetFieldMask() *field_mask.FieldMask
- func (m *UpdateUserRequest) GetUser() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (m *UpdateUserRequest) Reset()
- func (m *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) XXX_DiscardUnknown()
- func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateUserRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserRequest) XXX_Size() int
- func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAvatar() *Image
- func (m *User) GetDeactivated() bool
- func (m *User) GetDetails() []*any.Any
- func (m *User) GetFemaleName() string
- func (m *User) GetFriends() []*User
- func (m *User) GetId() uint32
- func (m *User) GetImages() []*Image
- func (m *User) GetMaleName() string
- func (m *User) GetMeta() map[string]string
- func (m *User) GetName() isUser_Name
- func (m *User) GetPermissions() []Permission
- func (m *User) GetRole() Role
- func (m *User) GetTags() []string
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (*User) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type User_FemaleName
- type User_MaleName
Constants ¶
This section is empty.
Variables ¶
View Source
var Permission_name = map[int32]string{
0: "READ",
1: "WRITE",
2: "EXECUTE",
}
View Source
var Permission_value = map[string]int32{
"READ": 0,
"WRITE": 1,
"EXECUTE": 2,
}
View Source
var Role_name = map[int32]string{
0: "UNKNOWN",
1: "REGULAR",
2: "ADMIN",
}
View Source
var Role_value = map[string]int32{
"UNKNOWN": 0,
"REGULAR": 1,
"ADMIN": 2,
}
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { OriginalUrl string `protobuf:"bytes,1,opt,name=original_url,json=originalUrl,proto3" json:"original_url,omitempty"` ResizedUrl string `protobuf:"bytes,2,opt,name=resized_url,json=resizedUrl,proto3" json:"resized_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Image) Descriptor ¶
func (*Image) GetOriginalUrl ¶
func (*Image) GetResizedUrl ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_Unmarshal ¶
type Metrics ¶
type Metrics struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Weight uint32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metrics) Descriptor ¶
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) XXX_DiscardUnknown ¶
func (m *Metrics) XXX_DiscardUnknown()
func (*Metrics) XXX_Marshal ¶
func (*Metrics) XXX_Unmarshal ¶
type Permission ¶
type Permission int32
const ( Permission_READ Permission = 0 Permission_WRITE Permission = 1 Permission_EXECUTE Permission = 2 )
func (Permission) EnumDescriptor ¶
func (Permission) EnumDescriptor() ([]byte, []int)
func (Permission) String ¶
func (x Permission) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetFieldMask ¶
func (m *UpdateUserRequest) GetFieldMask() *field_mask.FieldMask
func (*UpdateUserRequest) GetUser ¶
func (m *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
func (*UpdateUserRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserRequest) XXX_DiscardUnknown()
func (*UpdateUserRequest) XXX_Marshal ¶
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserRequest) XXX_Merge ¶
func (dst *UpdateUserRequest) XXX_Merge(src proto.Message)
func (*UpdateUserRequest) XXX_Size ¶
func (m *UpdateUserRequest) XXX_Size() int
func (*UpdateUserRequest) XXX_Unmarshal ¶
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Role Role `protobuf:"varint,3,opt,name=role,proto3,enum=Role" json:"role,omitempty"` Meta map[string]string `` /* 149-byte string literal not displayed */ Deactivated bool `protobuf:"varint,5,opt,name=deactivated,proto3" json:"deactivated,omitempty"` Permissions []Permission `protobuf:"varint,6,rep,packed,name=permissions,proto3,enum=Permission" json:"permissions,omitempty"` // Types that are valid to be assigned to Name: // *User_MaleName // *User_FemaleName Name isUser_Name `protobuf_oneof:"name"` Details []*any.Any `protobuf:"bytes,9,rep,name=details,proto3" json:"details,omitempty"` Images []*Image `protobuf:"bytes,10,rep,name=images,proto3" json:"images,omitempty"` Avatar *Image `protobuf:"bytes,11,opt,name=avatar,proto3" json:"avatar,omitempty"` Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"` Friends []*User `protobuf:"bytes,13,rep,name=friends,proto3" json:"friends,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetDeactivated ¶
func (*User) GetDetails ¶
func (*User) GetFemaleName ¶
func (*User) GetFriends ¶
func (*User) GetMaleName ¶
func (*User) GetPermissions ¶
func (m *User) GetPermissions() []Permission
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_OneofFuncs ¶
func (*User) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*User) XXX_Unmarshal ¶
type User_FemaleName ¶
type User_FemaleName struct {
FemaleName string `protobuf:"bytes,8,opt,name=female_name,json=femaleName,proto3,oneof"`
}
type User_MaleName ¶
type User_MaleName struct {
MaleName string `protobuf:"bytes,7,opt,name=male_name,json=maleName,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.