entpb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserStatus_name = map[int32]string{
		0: "USER_STATUS_UNSPECIFIED",
		1: "USER_STATUS_ACTIVE",
		2: "USER_STATUS_INACTIVE",
	}
	UserStatus_value = map[string]int32{
		"USER_STATUS_UNSPECIFIED": 0,
		"USER_STATUS_ACTIVE":      1,
		"USER_STATUS_INACTIVE":    2,
	}
)

Enum value maps for UserStatus.

View Source
var File_entpb_ent_messages_proto protoreflect.FileDescriptor
View Source
var File_entpb_user_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Post

type Post struct {
	Id        int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	OwnerId   int64   `protobuf:"varint,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	PinnerIds []int64 `protobuf:"varint,3,rep,packed,name=pinner_ids,json=pinnerIds,proto3" json:"pinner_ids,omitempty"`
	Published bool    `protobuf:"varint,4,opt,name=published,proto3" json:"published,omitempty"`
	Title     string  `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*Post) Descriptor deprecated

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetId

func (x *Post) GetId() int64

func (*Post) GetOwnerId

func (x *Post) GetOwnerId() int64

func (*Post) GetPinnerIds

func (x *Post) GetPinnerIds() []int64

func (*Post) GetPublished

func (x *Post) GetPublished() bool

func (*Post) GetTitle

func (x *Post) GetTitle() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

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

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

type Tag

type Tag struct {
	Id      int64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	UserIds []int64 `protobuf:"varint,3,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	Users   []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetId

func (x *Tag) GetId() int64

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) GetUserIds

func (x *Tag) GetUserIds() []int64

func (*Tag) GetUsers

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

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type User

type User struct {
	Id                   int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Bio                  *string                `protobuf:"bytes,2,opt,name=bio,proto3,oneof" json:"bio,omitempty"`
	CreatedAt            *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ExpiresAt            *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	FullName             string                 `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	IsPremium            bool                   `protobuf:"varint,6,opt,name=is_premium,json=isPremium,proto3" json:"is_premium,omitempty"`
	Name                 string                 `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	PostIds              []int64                `protobuf:"varint,8,rep,packed,name=post_ids,json=postIds,proto3" json:"post_ids,omitempty"`
	Score                *int64                 `protobuf:"varint,9,opt,name=score,proto3,oneof" json:"score,omitempty"`
	Status               UserStatus             `protobuf:"varint,10,opt,name=status,proto3,enum=entpb.UserStatus" json:"status,omitempty"`
	ExternalId           string                 `protobuf:"bytes,11,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	SubscriptionDuration *durationpb.Duration   `protobuf:"bytes,12,opt,name=subscription_duration,json=subscriptionDuration,proto3" json:"subscription_duration,omitempty"`
	UpdatedAt            *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	PinnedPostId         int64                  `protobuf:"varint,14,opt,name=pinned_post_id,json=pinnedPostId,proto3" json:"pinned_post_id,omitempty"`
	TagIds               []int64                `protobuf:"varint,15,rep,packed,name=tag_ids,json=tagIds,proto3" json:"tag_ids,omitempty"`
	PinnedPost           *Post                  `protobuf:"bytes,16,opt,name=pinned_post,json=pinnedPost,proto3" json:"pinned_post,omitempty"`
	Posts                []*Post                `protobuf:"bytes,17,rep,name=posts,proto3" json:"posts,omitempty"`
	Tags                 []*Tag                 `protobuf:"bytes,18,rep,name=tags,proto3" json:"tags,omitempty"`
	Settings             *structpb.Struct       `protobuf:"bytes,19,opt,name=settings,proto3" json:"settings,omitempty"`
	Labels               *structpb.Struct       `protobuf:"bytes,20,opt,name=labels,proto3" json:"labels,omitempty"`
	TagNames             []string               `protobuf:"bytes,21,rep,name=tag_names,json=tagNames,proto3" json:"tag_names,omitempty"`
	Metadata             *UserMetadata          `protobuf:"bytes,22,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetBio

func (x *User) GetBio() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetExpiresAt

func (x *User) GetExpiresAt() *timestamppb.Timestamp

func (*User) GetExternalId

func (x *User) GetExternalId() string

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsPremium

func (x *User) GetIsPremium() bool

func (*User) GetLabels

func (x *User) GetLabels() *structpb.Struct

func (*User) GetMetadata

func (x *User) GetMetadata() *UserMetadata

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPinnedPost

func (x *User) GetPinnedPost() *Post

func (*User) GetPinnedPostId

func (x *User) GetPinnedPostId() int64

func (*User) GetPostIds

func (x *User) GetPostIds() []int64

func (*User) GetPosts

func (x *User) GetPosts() []*Post

func (*User) GetScore

func (x *User) GetScore() int64

func (*User) GetSettings

func (x *User) GetSettings() *structpb.Struct

func (*User) GetStatus

func (x *User) GetStatus() UserStatus

func (*User) GetSubscriptionDuration

func (x *User) GetSubscriptionDuration() *durationpb.Duration

func (*User) GetTagIds

func (x *User) GetTagIds() []int64

func (*User) GetTagNames

func (x *User) GetTagNames() []string

func (*User) GetTags

func (x *User) GetTags() []*Tag

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() *timestamppb.Timestamp

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 UserMetadata

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

func (*UserMetadata) Descriptor deprecated

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

Deprecated: Use UserMetadata.ProtoReflect.Descriptor instead.

func (x *UserMetadata) GetLinks() []string

func (*UserMetadata) ProtoMessage

func (*UserMetadata) ProtoMessage()

func (*UserMetadata) ProtoReflect

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

func (*UserMetadata) Reset

func (x *UserMetadata) Reset()

func (*UserMetadata) String

func (x *UserMetadata) String() string

type UserStatus

type UserStatus int32
const (
	UserStatus_USER_STATUS_UNSPECIFIED UserStatus = 0
	UserStatus_USER_STATUS_ACTIVE      UserStatus = 1
	UserStatus_USER_STATUS_INACTIVE    UserStatus = 2
)

func (UserStatus) Descriptor

func (UserStatus) Descriptor() protoreflect.EnumDescriptor

func (UserStatus) Enum

func (x UserStatus) Enum() *UserStatus

func (UserStatus) EnumDescriptor deprecated

func (UserStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserStatus.Descriptor instead.

func (UserStatus) Number

func (x UserStatus) Number() protoreflect.EnumNumber

func (UserStatus) String

func (x UserStatus) String() string

func (UserStatus) Type

Jump to

Keyboard shortcuts

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