2970 lines
98 KiB
Go
2970 lines
98 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.6
|
||
// protoc v5.27.3
|
||
// source: api/proto/room/v1/room.proto
|
||
|
||
package roomv1
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
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)
|
||
)
|
||
|
||
// RequestMeta 固定承载所有命令的调用元信息。
|
||
// room-service 用它串起幂等、追踪、路由和业务操作者身份。
|
||
type RequestMeta struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
||
CommandId string `protobuf:"bytes,2,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
|
||
ActorUserId int64 `protobuf:"varint,3,opt,name=actor_user_id,json=actorUserId,proto3" json:"actor_user_id,omitempty"`
|
||
// room_id 是命令路由、持久化和腾讯 IM/RTC 映射共同依赖的必填字段。
|
||
// CreateRoom 时必须满足 ^[A-Za-z0-9_-]{1,48}$。
|
||
RoomId string `protobuf:"bytes,4,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
|
||
GatewayNodeId string `protobuf:"bytes,5,opt,name=gateway_node_id,json=gatewayNodeId,proto3" json:"gateway_node_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,6,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
SentAtMs int64 `protobuf:"varint,7,opt,name=sent_at_ms,json=sentAtMs,proto3" json:"sent_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RequestMeta) Reset() {
|
||
*x = RequestMeta{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RequestMeta) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RequestMeta) ProtoMessage() {}
|
||
|
||
func (x *RequestMeta) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 RequestMeta.ProtoReflect.Descriptor instead.
|
||
func (*RequestMeta) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *RequestMeta) GetRequestId() string {
|
||
if x != nil {
|
||
return x.RequestId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetCommandId() string {
|
||
if x != nil {
|
||
return x.CommandId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetActorUserId() int64 {
|
||
if x != nil {
|
||
return x.ActorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RequestMeta) GetRoomId() string {
|
||
if x != nil {
|
||
return x.RoomId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetGatewayNodeId() string {
|
||
if x != nil {
|
||
return x.GatewayNodeId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetSentAtMs() int64 {
|
||
if x != nil {
|
||
return x.SentAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// CommandResult 统一返回命令是否真正落地,以及落地后的房间版本。
|
||
type CommandResult struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Applied bool `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"`
|
||
RoomVersion int64 `protobuf:"varint,2,opt,name=room_version,json=roomVersion,proto3" json:"room_version,omitempty"`
|
||
ServerTimeMs int64 `protobuf:"varint,3,opt,name=server_time_ms,json=serverTimeMs,proto3" json:"server_time_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CommandResult) Reset() {
|
||
*x = CommandResult{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CommandResult) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CommandResult) ProtoMessage() {}
|
||
|
||
func (x *CommandResult) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 CommandResult.ProtoReflect.Descriptor instead.
|
||
func (*CommandResult) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *CommandResult) GetApplied() bool {
|
||
if x != nil {
|
||
return x.Applied
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CommandResult) GetRoomVersion() int64 {
|
||
if x != nil {
|
||
return x.RoomVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CommandResult) GetServerTimeMs() int64 {
|
||
if x != nil {
|
||
return x.ServerTimeMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RoomUser 只表达 room-service 需要保存的房间内轻量用户态。
|
||
type RoomUser struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
||
JoinedAtMs int64 `protobuf:"varint,3,opt,name=joined_at_ms,json=joinedAtMs,proto3" json:"joined_at_ms,omitempty"`
|
||
LastSeenAtMs int64 `protobuf:"varint,4,opt,name=last_seen_at_ms,json=lastSeenAtMs,proto3" json:"last_seen_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RoomUser) Reset() {
|
||
*x = RoomUser{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RoomUser) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RoomUser) ProtoMessage() {}
|
||
|
||
func (x *RoomUser) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 RoomUser.ProtoReflect.Descriptor instead.
|
||
func (*RoomUser) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *RoomUser) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RoomUser) GetRole() string {
|
||
if x != nil {
|
||
return x.Role
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RoomUser) GetJoinedAtMs() int64 {
|
||
if x != nil {
|
||
return x.JoinedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RoomUser) GetLastSeenAtMs() int64 {
|
||
if x != nil {
|
||
return x.LastSeenAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// SeatState 表达单个麦位当前占用和 RTC 发流确认状态。
|
||
type SeatState struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
SeatNo int32 `protobuf:"varint,1,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Locked bool `protobuf:"varint,3,opt,name=locked,proto3" json:"locked,omitempty"`
|
||
// publish_state 为空表示空麦或未进入发流流程;上麦后先进入 pending_publish,确认后进入 publishing。
|
||
PublishState string `protobuf:"bytes,4,opt,name=publish_state,json=publishState,proto3" json:"publish_state,omitempty"`
|
||
// mic_session_id 是单次上麦发流会话 ID;所有客户端确认或 RTC webhook 必须带回它。
|
||
MicSessionId string `protobuf:"bytes,5,opt,name=mic_session_id,json=micSessionId,proto3" json:"mic_session_id,omitempty"`
|
||
// publish_deadline_ms 是 pending_publish 必须确认发流的截止时间。
|
||
PublishDeadlineMs int64 `protobuf:"varint,6,opt,name=publish_deadline_ms,json=publishDeadlineMs,proto3" json:"publish_deadline_ms,omitempty"`
|
||
// mic_session_room_version 是创建本次 mic_session 的房间版本,用于丢弃旧版本 RTC 事件。
|
||
MicSessionRoomVersion int64 `protobuf:"varint,7,opt,name=mic_session_room_version,json=micSessionRoomVersion,proto3" json:"mic_session_room_version,omitempty"`
|
||
// last_publish_event_time_ms 记录已接受的最新 RTC/客户端发流事件时间。
|
||
LastPublishEventTimeMs int64 `protobuf:"varint,8,opt,name=last_publish_event_time_ms,json=lastPublishEventTimeMs,proto3" json:"last_publish_event_time_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SeatState) Reset() {
|
||
*x = SeatState{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SeatState) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SeatState) ProtoMessage() {}
|
||
|
||
func (x *SeatState) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 SeatState.ProtoReflect.Descriptor instead.
|
||
func (*SeatState) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *SeatState) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SeatState) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SeatState) GetLocked() bool {
|
||
if x != nil {
|
||
return x.Locked
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *SeatState) GetPublishState() string {
|
||
if x != nil {
|
||
return x.PublishState
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SeatState) GetMicSessionId() string {
|
||
if x != nil {
|
||
return x.MicSessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SeatState) GetPublishDeadlineMs() int64 {
|
||
if x != nil {
|
||
return x.PublishDeadlineMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SeatState) GetMicSessionRoomVersion() int64 {
|
||
if x != nil {
|
||
return x.MicSessionRoomVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SeatState) GetLastPublishEventTimeMs() int64 {
|
||
if x != nil {
|
||
return x.LastPublishEventTimeMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RankItem 表达房间内本地礼物榜项目。
|
||
type RankItem struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
|
||
GiftValue int64 `protobuf:"varint,3,opt,name=gift_value,json=giftValue,proto3" json:"gift_value,omitempty"`
|
||
UpdatedAtMs int64 `protobuf:"varint,4,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RankItem) Reset() {
|
||
*x = RankItem{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RankItem) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RankItem) ProtoMessage() {}
|
||
|
||
func (x *RankItem) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 RankItem.ProtoReflect.Descriptor instead.
|
||
func (*RankItem) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *RankItem) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RankItem) GetScore() int64 {
|
||
if x != nil {
|
||
return x.Score
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RankItem) GetGiftValue() int64 {
|
||
if x != nil {
|
||
return x.GiftValue
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RankItem) GetUpdatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// RoomSnapshot 把 room-service 对外需要暴露的房间投影集中返回。
|
||
type RoomSnapshot struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
|
||
OwnerUserId int64 `protobuf:"varint,2,opt,name=owner_user_id,json=ownerUserId,proto3" json:"owner_user_id,omitempty"`
|
||
HostUserId int64 `protobuf:"varint,3,opt,name=host_user_id,json=hostUserId,proto3" json:"host_user_id,omitempty"`
|
||
Mode string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
|
||
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
|
||
ChatEnabled bool `protobuf:"varint,6,opt,name=chat_enabled,json=chatEnabled,proto3" json:"chat_enabled,omitempty"`
|
||
MicSeats []*SeatState `protobuf:"bytes,7,rep,name=mic_seats,json=micSeats,proto3" json:"mic_seats,omitempty"`
|
||
OnlineUsers []*RoomUser `protobuf:"bytes,8,rep,name=online_users,json=onlineUsers,proto3" json:"online_users,omitempty"`
|
||
AdminUserIds []int64 `protobuf:"varint,9,rep,packed,name=admin_user_ids,json=adminUserIds,proto3" json:"admin_user_ids,omitempty"`
|
||
BanUserIds []int64 `protobuf:"varint,10,rep,packed,name=ban_user_ids,json=banUserIds,proto3" json:"ban_user_ids,omitempty"`
|
||
MuteUserIds []int64 `protobuf:"varint,11,rep,packed,name=mute_user_ids,json=muteUserIds,proto3" json:"mute_user_ids,omitempty"`
|
||
GiftRank []*RankItem `protobuf:"bytes,12,rep,name=gift_rank,json=giftRank,proto3" json:"gift_rank,omitempty"`
|
||
RoomExt map[string]string `protobuf:"bytes,13,rep,name=room_ext,json=roomExt,proto3" json:"room_ext,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||
Heat int64 `protobuf:"varint,14,opt,name=heat,proto3" json:"heat,omitempty"`
|
||
Version int64 `protobuf:"varint,15,opt,name=version,proto3" json:"version,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RoomSnapshot) Reset() {
|
||
*x = RoomSnapshot{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RoomSnapshot) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RoomSnapshot) ProtoMessage() {}
|
||
|
||
func (x *RoomSnapshot) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 RoomSnapshot.ProtoReflect.Descriptor instead.
|
||
func (*RoomSnapshot) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetRoomId() string {
|
||
if x != nil {
|
||
return x.RoomId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetOwnerUserId() int64 {
|
||
if x != nil {
|
||
return x.OwnerUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetHostUserId() int64 {
|
||
if x != nil {
|
||
return x.HostUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetMode() string {
|
||
if x != nil {
|
||
return x.Mode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetChatEnabled() bool {
|
||
if x != nil {
|
||
return x.ChatEnabled
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetMicSeats() []*SeatState {
|
||
if x != nil {
|
||
return x.MicSeats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetOnlineUsers() []*RoomUser {
|
||
if x != nil {
|
||
return x.OnlineUsers
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetAdminUserIds() []int64 {
|
||
if x != nil {
|
||
return x.AdminUserIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetBanUserIds() []int64 {
|
||
if x != nil {
|
||
return x.BanUserIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetMuteUserIds() []int64 {
|
||
if x != nil {
|
||
return x.MuteUserIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetGiftRank() []*RankItem {
|
||
if x != nil {
|
||
return x.GiftRank
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetRoomExt() map[string]string {
|
||
if x != nil {
|
||
return x.RoomExt
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetHeat() int64 {
|
||
if x != nil {
|
||
return x.Heat
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RoomSnapshot) GetVersion() int64 {
|
||
if x != nil {
|
||
return x.Version
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// CreateRoomRequest 创建一个新的房间执行单元。
|
||
// 必填语义:meta.room_id、meta.command_id、meta.actor_user_id、seat_count 和 mode。
|
||
type CreateRoomRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
// seat_count 必须大于 0;没有麦位的语音房不进入 Room Cell。
|
||
SeatCount int32 `protobuf:"varint,2,opt,name=seat_count,json=seatCount,proto3" json:"seat_count,omitempty"`
|
||
// mode 必须非空;当前只作为房间状态字段保存和透出。
|
||
Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateRoomRequest) Reset() {
|
||
*x = CreateRoomRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateRoomRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateRoomRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateRoomRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 CreateRoomRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateRoomRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *CreateRoomRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateRoomRequest) GetSeatCount() int32 {
|
||
if x != nil {
|
||
return x.SeatCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateRoomRequest) GetMode() string {
|
||
if x != nil {
|
||
return x.Mode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// CreateRoomResponse 返回新建后的房间快照。
|
||
type CreateRoomResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateRoomResponse) Reset() {
|
||
*x = CreateRoomResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateRoomResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateRoomResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateRoomResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 CreateRoomResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateRoomResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *CreateRoomResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateRoomResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// JoinRoomRequest 把用户 presence 接入房间业务态。
|
||
type JoinRoomRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *JoinRoomRequest) Reset() {
|
||
*x = JoinRoomRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *JoinRoomRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*JoinRoomRequest) ProtoMessage() {}
|
||
|
||
func (x *JoinRoomRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 JoinRoomRequest.ProtoReflect.Descriptor instead.
|
||
func (*JoinRoomRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *JoinRoomRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *JoinRoomRequest) GetRole() string {
|
||
if x != nil {
|
||
return x.Role
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// JoinRoomResponse 返回加入后的房间快照。
|
||
type JoinRoomResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
User *RoomUser `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *JoinRoomResponse) Reset() {
|
||
*x = JoinRoomResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *JoinRoomResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*JoinRoomResponse) ProtoMessage() {}
|
||
|
||
func (x *JoinRoomResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 JoinRoomResponse.ProtoReflect.Descriptor instead.
|
||
func (*JoinRoomResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *JoinRoomResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *JoinRoomResponse) GetUser() *RoomUser {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *JoinRoomResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// LeaveRoomRequest 把用户从房间 presence 移出。
|
||
type LeaveRoomRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LeaveRoomRequest) Reset() {
|
||
*x = LeaveRoomRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LeaveRoomRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LeaveRoomRequest) ProtoMessage() {}
|
||
|
||
func (x *LeaveRoomRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 LeaveRoomRequest.ProtoReflect.Descriptor instead.
|
||
func (*LeaveRoomRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *LeaveRoomRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// LeaveRoomResponse 返回离房后的房间快照。
|
||
type LeaveRoomResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LeaveRoomResponse) Reset() {
|
||
*x = LeaveRoomResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LeaveRoomResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LeaveRoomResponse) ProtoMessage() {}
|
||
|
||
func (x *LeaveRoomResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 LeaveRoomResponse.ProtoReflect.Descriptor instead.
|
||
func (*LeaveRoomResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *LeaveRoomResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *LeaveRoomResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// MicUpRequest 申请把用户放到指定麦位。
|
||
type MicUpRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,2,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MicUpRequest) Reset() {
|
||
*x = MicUpRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MicUpRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MicUpRequest) ProtoMessage() {}
|
||
|
||
func (x *MicUpRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 MicUpRequest.ProtoReflect.Descriptor instead.
|
||
func (*MicUpRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *MicUpRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MicUpRequest) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// MicUpResponse 返回最新房间快照与目标麦位。
|
||
type MicUpResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,2,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
|
||
MicSessionId string `protobuf:"bytes,4,opt,name=mic_session_id,json=micSessionId,proto3" json:"mic_session_id,omitempty"`
|
||
PublishDeadlineMs int64 `protobuf:"varint,5,opt,name=publish_deadline_ms,json=publishDeadlineMs,proto3" json:"publish_deadline_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MicUpResponse) Reset() {
|
||
*x = MicUpResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MicUpResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MicUpResponse) ProtoMessage() {}
|
||
|
||
func (x *MicUpResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 MicUpResponse.ProtoReflect.Descriptor instead.
|
||
func (*MicUpResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *MicUpResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MicUpResponse) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MicUpResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MicUpResponse) GetMicSessionId() string {
|
||
if x != nil {
|
||
return x.MicSessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MicUpResponse) GetPublishDeadlineMs() int64 {
|
||
if x != nil {
|
||
return x.PublishDeadlineMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// MicDownRequest 把用户从当前麦位移下。
|
||
type MicDownRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
// reason 为空表示主动下麦;系统自动释放麦位时会写入稳定原因,例如 publish_timeout。
|
||
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MicDownRequest) Reset() {
|
||
*x = MicDownRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MicDownRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MicDownRequest) ProtoMessage() {}
|
||
|
||
func (x *MicDownRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_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 MicDownRequest.ProtoReflect.Descriptor instead.
|
||
func (*MicDownRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *MicDownRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MicDownRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MicDownRequest) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// MicDownResponse 返回最新房间快照与目标麦位。
|
||
type MicDownResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,2,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MicDownResponse) Reset() {
|
||
*x = MicDownResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MicDownResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MicDownResponse) ProtoMessage() {}
|
||
|
||
func (x *MicDownResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[15]
|
||
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 MicDownResponse.ProtoReflect.Descriptor instead.
|
||
func (*MicDownResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *MicDownResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MicDownResponse) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MicDownResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ChangeMicSeatRequest 直接调整指定用户所在麦位。
|
||
type ChangeMicSeatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,3,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeMicSeatRequest) Reset() {
|
||
*x = ChangeMicSeatRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeMicSeatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeMicSeatRequest) ProtoMessage() {}
|
||
|
||
func (x *ChangeMicSeatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[16]
|
||
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 ChangeMicSeatRequest.ProtoReflect.Descriptor instead.
|
||
func (*ChangeMicSeatRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *ChangeMicSeatRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChangeMicSeatRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ChangeMicSeatRequest) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// ChangeMicSeatResponse 返回变更后的房间快照。
|
||
type ChangeMicSeatResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeMicSeatResponse) Reset() {
|
||
*x = ChangeMicSeatResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeMicSeatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeMicSeatResponse) ProtoMessage() {}
|
||
|
||
func (x *ChangeMicSeatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[17]
|
||
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 ChangeMicSeatResponse.ProtoReflect.Descriptor instead.
|
||
func (*ChangeMicSeatResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *ChangeMicSeatResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChangeMicSeatResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ConfirmMicPublishingRequest 确认当前 mic_session 已经在 RTC 侧成功发布音频。
|
||
// 客户端 SDK 回调和后续 RTC webhook 都必须带 mic_session_id、room_version 和 event_time_ms。
|
||
type ConfirmMicPublishingRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
// target_user_id 为空时默认确认 actor_user_id;RTC webhook 入口可显式指定目标用户。
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
MicSessionId string `protobuf:"bytes,3,opt,name=mic_session_id,json=micSessionId,proto3" json:"mic_session_id,omitempty"`
|
||
RoomVersion int64 `protobuf:"varint,4,opt,name=room_version,json=roomVersion,proto3" json:"room_version,omitempty"`
|
||
EventTimeMs int64 `protobuf:"varint,5,opt,name=event_time_ms,json=eventTimeMs,proto3" json:"event_time_ms,omitempty"`
|
||
Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) Reset() {
|
||
*x = ConfirmMicPublishingRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ConfirmMicPublishingRequest) ProtoMessage() {}
|
||
|
||
func (x *ConfirmMicPublishingRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[18]
|
||
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 ConfirmMicPublishingRequest.ProtoReflect.Descriptor instead.
|
||
func (*ConfirmMicPublishingRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetMicSessionId() string {
|
||
if x != nil {
|
||
return x.MicSessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetRoomVersion() int64 {
|
||
if x != nil {
|
||
return x.RoomVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetEventTimeMs() int64 {
|
||
if x != nil {
|
||
return x.EventTimeMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingRequest) GetSource() string {
|
||
if x != nil {
|
||
return x.Source
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ConfirmMicPublishingResponse 返回确认后的最新房间快照。
|
||
type ConfirmMicPublishingResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,2,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingResponse) Reset() {
|
||
*x = ConfirmMicPublishingResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ConfirmMicPublishingResponse) ProtoMessage() {}
|
||
|
||
func (x *ConfirmMicPublishingResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[19]
|
||
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 ConfirmMicPublishingResponse.ProtoReflect.Descriptor instead.
|
||
func (*ConfirmMicPublishingResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingResponse) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ConfirmMicPublishingResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetMicSeatLockRequest 锁定或解锁指定麦位。
|
||
type SetMicSeatLockRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
SeatNo int32 `protobuf:"varint,2,opt,name=seat_no,json=seatNo,proto3" json:"seat_no,omitempty"`
|
||
Locked bool `protobuf:"varint,3,opt,name=locked,proto3" json:"locked,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetMicSeatLockRequest) Reset() {
|
||
*x = SetMicSeatLockRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetMicSeatLockRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetMicSeatLockRequest) ProtoMessage() {}
|
||
|
||
func (x *SetMicSeatLockRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[20]
|
||
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 SetMicSeatLockRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetMicSeatLockRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *SetMicSeatLockRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetMicSeatLockRequest) GetSeatNo() int32 {
|
||
if x != nil {
|
||
return x.SeatNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SetMicSeatLockRequest) GetLocked() bool {
|
||
if x != nil {
|
||
return x.Locked
|
||
}
|
||
return false
|
||
}
|
||
|
||
// SetMicSeatLockResponse 返回锁麦后的最新房间快照。
|
||
type SetMicSeatLockResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetMicSeatLockResponse) Reset() {
|
||
*x = SetMicSeatLockResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetMicSeatLockResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetMicSeatLockResponse) ProtoMessage() {}
|
||
|
||
func (x *SetMicSeatLockResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[21]
|
||
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 SetMicSeatLockResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetMicSeatLockResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *SetMicSeatLockResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetMicSeatLockResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetChatEnabledRequest 开启或关闭房间公屏。
|
||
type SetChatEnabledRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetChatEnabledRequest) Reset() {
|
||
*x = SetChatEnabledRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetChatEnabledRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetChatEnabledRequest) ProtoMessage() {}
|
||
|
||
func (x *SetChatEnabledRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[22]
|
||
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 SetChatEnabledRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetChatEnabledRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *SetChatEnabledRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetChatEnabledRequest) GetEnabled() bool {
|
||
if x != nil {
|
||
return x.Enabled
|
||
}
|
||
return false
|
||
}
|
||
|
||
// SetChatEnabledResponse 返回聊天开关变更后的最新房间快照。
|
||
type SetChatEnabledResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetChatEnabledResponse) Reset() {
|
||
*x = SetChatEnabledResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetChatEnabledResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetChatEnabledResponse) ProtoMessage() {}
|
||
|
||
func (x *SetChatEnabledResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[23]
|
||
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 SetChatEnabledResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetChatEnabledResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *SetChatEnabledResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetChatEnabledResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SetRoomAdminRequest 添加或移除房间管理员。
|
||
type SetRoomAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetRoomAdminRequest) Reset() {
|
||
*x = SetRoomAdminRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetRoomAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetRoomAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *SetRoomAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[24]
|
||
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 SetRoomAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetRoomAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *SetRoomAdminRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetRoomAdminRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SetRoomAdminRequest) GetEnabled() bool {
|
||
if x != nil {
|
||
return x.Enabled
|
||
}
|
||
return false
|
||
}
|
||
|
||
// SetRoomAdminResponse 返回管理员集合变更后的最新房间快照。
|
||
type SetRoomAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetRoomAdminResponse) Reset() {
|
||
*x = SetRoomAdminResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetRoomAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetRoomAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *SetRoomAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[25]
|
||
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 SetRoomAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetRoomAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *SetRoomAdminResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetRoomAdminResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// TransferRoomHostRequest 把主持人身份转移给房间内用户。
|
||
type TransferRoomHostRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *TransferRoomHostRequest) Reset() {
|
||
*x = TransferRoomHostRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *TransferRoomHostRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*TransferRoomHostRequest) ProtoMessage() {}
|
||
|
||
func (x *TransferRoomHostRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[26]
|
||
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 TransferRoomHostRequest.ProtoReflect.Descriptor instead.
|
||
func (*TransferRoomHostRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *TransferRoomHostRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *TransferRoomHostRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// TransferRoomHostResponse 返回主持人转移后的最新房间快照。
|
||
type TransferRoomHostResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *TransferRoomHostResponse) Reset() {
|
||
*x = TransferRoomHostResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[27]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *TransferRoomHostResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*TransferRoomHostResponse) ProtoMessage() {}
|
||
|
||
func (x *TransferRoomHostResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[27]
|
||
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 TransferRoomHostResponse.ProtoReflect.Descriptor instead.
|
||
func (*TransferRoomHostResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{27}
|
||
}
|
||
|
||
func (x *TransferRoomHostResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *TransferRoomHostResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// MuteUserRequest 修改房间内禁言态。
|
||
type MuteUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
Muted bool `protobuf:"varint,3,opt,name=muted,proto3" json:"muted,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MuteUserRequest) Reset() {
|
||
*x = MuteUserRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[28]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MuteUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MuteUserRequest) ProtoMessage() {}
|
||
|
||
func (x *MuteUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[28]
|
||
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 MuteUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*MuteUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{28}
|
||
}
|
||
|
||
func (x *MuteUserRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MuteUserRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *MuteUserRequest) GetMuted() bool {
|
||
if x != nil {
|
||
return x.Muted
|
||
}
|
||
return false
|
||
}
|
||
|
||
// MuteUserResponse 返回最新房间快照。
|
||
type MuteUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MuteUserResponse) Reset() {
|
||
*x = MuteUserResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[29]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MuteUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MuteUserResponse) ProtoMessage() {}
|
||
|
||
func (x *MuteUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[29]
|
||
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 MuteUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*MuteUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{29}
|
||
}
|
||
|
||
func (x *MuteUserResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *MuteUserResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// KickUserRequest 把指定用户踢出房间。
|
||
type KickUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *KickUserRequest) Reset() {
|
||
*x = KickUserRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[30]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *KickUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*KickUserRequest) ProtoMessage() {}
|
||
|
||
func (x *KickUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[30]
|
||
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 KickUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*KickUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{30}
|
||
}
|
||
|
||
func (x *KickUserRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *KickUserRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// KickUserResponse 返回最新房间快照。
|
||
type KickUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *KickUserResponse) Reset() {
|
||
*x = KickUserResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[31]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *KickUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*KickUserResponse) ProtoMessage() {}
|
||
|
||
func (x *KickUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[31]
|
||
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 KickUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*KickUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{31}
|
||
}
|
||
|
||
func (x *KickUserResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *KickUserResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// UnbanUserRequest 解除房间内 ban,用户仍需重新 JoinRoom。
|
||
type UnbanUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnbanUserRequest) Reset() {
|
||
*x = UnbanUserRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[32]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnbanUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnbanUserRequest) ProtoMessage() {}
|
||
|
||
func (x *UnbanUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[32]
|
||
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 UnbanUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*UnbanUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{32}
|
||
}
|
||
|
||
func (x *UnbanUserRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UnbanUserRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// UnbanUserResponse 返回解封后的最新房间快照。
|
||
type UnbanUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnbanUserResponse) Reset() {
|
||
*x = UnbanUserResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[33]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnbanUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnbanUserResponse) ProtoMessage() {}
|
||
|
||
func (x *UnbanUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[33]
|
||
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 UnbanUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*UnbanUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{33}
|
||
}
|
||
|
||
func (x *UnbanUserResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UnbanUserResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// SendGiftRequest 是首版房间内最重要的变现命令。
|
||
type SendGiftRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
TargetUserId int64 `protobuf:"varint,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"`
|
||
GiftId string `protobuf:"bytes,3,opt,name=gift_id,json=giftId,proto3" json:"gift_id,omitempty"`
|
||
GiftCount int32 `protobuf:"varint,4,opt,name=gift_count,json=giftCount,proto3" json:"gift_count,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendGiftRequest) Reset() {
|
||
*x = SendGiftRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[34]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendGiftRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendGiftRequest) ProtoMessage() {}
|
||
|
||
func (x *SendGiftRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[34]
|
||
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 SendGiftRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendGiftRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{34}
|
||
}
|
||
|
||
func (x *SendGiftRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendGiftRequest) GetTargetUserId() int64 {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendGiftRequest) GetGiftId() string {
|
||
if x != nil {
|
||
return x.GiftId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendGiftRequest) GetGiftCount() int32 {
|
||
if x != nil {
|
||
return x.GiftCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// SendGiftResponse 返回扣费成功并落到房间后的状态结果。
|
||
type SendGiftResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Result *CommandResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
|
||
BillingReceiptId string `protobuf:"bytes,2,opt,name=billing_receipt_id,json=billingReceiptId,proto3" json:"billing_receipt_id,omitempty"`
|
||
RoomHeat int64 `protobuf:"varint,3,opt,name=room_heat,json=roomHeat,proto3" json:"room_heat,omitempty"`
|
||
GiftRank []*RankItem `protobuf:"bytes,4,rep,name=gift_rank,json=giftRank,proto3" json:"gift_rank,omitempty"`
|
||
Room *RoomSnapshot `protobuf:"bytes,5,opt,name=room,proto3" json:"room,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendGiftResponse) Reset() {
|
||
*x = SendGiftResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[35]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendGiftResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendGiftResponse) ProtoMessage() {}
|
||
|
||
func (x *SendGiftResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[35]
|
||
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 SendGiftResponse.ProtoReflect.Descriptor instead.
|
||
func (*SendGiftResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{35}
|
||
}
|
||
|
||
func (x *SendGiftResponse) GetResult() *CommandResult {
|
||
if x != nil {
|
||
return x.Result
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendGiftResponse) GetBillingReceiptId() string {
|
||
if x != nil {
|
||
return x.BillingReceiptId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendGiftResponse) GetRoomHeat() int64 {
|
||
if x != nil {
|
||
return x.RoomHeat
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendGiftResponse) GetGiftRank() []*RankItem {
|
||
if x != nil {
|
||
return x.GiftRank
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendGiftResponse) GetRoom() *RoomSnapshot {
|
||
if x != nil {
|
||
return x.Room
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// CheckSpeakPermissionRequest 让腾讯云 IM 发言回调或 gateway 在公屏前同步问房间业务态。
|
||
type CheckSpeakPermissionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionRequest) Reset() {
|
||
*x = CheckSpeakPermissionRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[36]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckSpeakPermissionRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckSpeakPermissionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[36]
|
||
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 CheckSpeakPermissionRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckSpeakPermissionRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{36}
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionRequest) GetRoomId() string {
|
||
if x != nil {
|
||
return x.RoomId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// CheckSpeakPermissionResponse 返回当前用户是否允许发言。
|
||
type CheckSpeakPermissionResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Allowed bool `protobuf:"varint,1,opt,name=allowed,proto3" json:"allowed,omitempty"`
|
||
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
|
||
RoomVersion int64 `protobuf:"varint,3,opt,name=room_version,json=roomVersion,proto3" json:"room_version,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionResponse) Reset() {
|
||
*x = CheckSpeakPermissionResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[37]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckSpeakPermissionResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckSpeakPermissionResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[37]
|
||
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 CheckSpeakPermissionResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckSpeakPermissionResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{37}
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionResponse) GetAllowed() bool {
|
||
if x != nil {
|
||
return x.Allowed
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionResponse) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CheckSpeakPermissionResponse) GetRoomVersion() int64 {
|
||
if x != nil {
|
||
return x.RoomVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// VerifyRoomPresenceRequest 让外部 IM 入口在进群前确认用户业务上仍在房间内。
|
||
type VerifyRoomPresenceRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
||
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) Reset() {
|
||
*x = VerifyRoomPresenceRequest{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[38]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*VerifyRoomPresenceRequest) ProtoMessage() {}
|
||
|
||
func (x *VerifyRoomPresenceRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[38]
|
||
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 VerifyRoomPresenceRequest.ProtoReflect.Descriptor instead.
|
||
func (*VerifyRoomPresenceRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{38}
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) GetRoomId() string {
|
||
if x != nil {
|
||
return x.RoomId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) GetSessionId() string {
|
||
if x != nil {
|
||
return x.SessionId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceRequest) GetRequestId() string {
|
||
if x != nil {
|
||
return x.RequestId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// VerifyRoomPresenceResponse 返回用户是否仍然属于该房间。
|
||
type VerifyRoomPresenceResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Present bool `protobuf:"varint,1,opt,name=present,proto3" json:"present,omitempty"`
|
||
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
|
||
RoomVersion int64 `protobuf:"varint,3,opt,name=room_version,json=roomVersion,proto3" json:"room_version,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceResponse) Reset() {
|
||
*x = VerifyRoomPresenceResponse{}
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[39]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*VerifyRoomPresenceResponse) ProtoMessage() {}
|
||
|
||
func (x *VerifyRoomPresenceResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_room_v1_room_proto_msgTypes[39]
|
||
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 VerifyRoomPresenceResponse.ProtoReflect.Descriptor instead.
|
||
func (*VerifyRoomPresenceResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_room_v1_room_proto_rawDescGZIP(), []int{39}
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceResponse) GetPresent() bool {
|
||
if x != nil {
|
||
return x.Present
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceResponse) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *VerifyRoomPresenceResponse) GetRoomVersion() int64 {
|
||
if x != nil {
|
||
return x.RoomVersion
|
||
}
|
||
return 0
|
||
}
|
||
|
||
var File_api_proto_room_v1_room_proto protoreflect.FileDescriptor
|
||
|
||
const file_api_proto_room_v1_room_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x1capi/proto/room/v1/room.proto\x12\rhyapp.room.v1\"\xed\x01\n" +
|
||
"\vRequestMeta\x12\x1d\n" +
|
||
"\n" +
|
||
"request_id\x18\x01 \x01(\tR\trequestId\x12\x1d\n" +
|
||
"\n" +
|
||
"command_id\x18\x02 \x01(\tR\tcommandId\x12\"\n" +
|
||
"\ractor_user_id\x18\x03 \x01(\x03R\vactorUserId\x12\x17\n" +
|
||
"\aroom_id\x18\x04 \x01(\tR\x06roomId\x12&\n" +
|
||
"\x0fgateway_node_id\x18\x05 \x01(\tR\rgatewayNodeId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x06 \x01(\tR\tsessionId\x12\x1c\n" +
|
||
"\n" +
|
||
"sent_at_ms\x18\a \x01(\x03R\bsentAtMs\"r\n" +
|
||
"\rCommandResult\x12\x18\n" +
|
||
"\aapplied\x18\x01 \x01(\bR\aapplied\x12!\n" +
|
||
"\froom_version\x18\x02 \x01(\x03R\vroomVersion\x12$\n" +
|
||
"\x0eserver_time_ms\x18\x03 \x01(\x03R\fserverTimeMs\"\x80\x01\n" +
|
||
"\bRoomUser\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x12\n" +
|
||
"\x04role\x18\x02 \x01(\tR\x04role\x12 \n" +
|
||
"\fjoined_at_ms\x18\x03 \x01(\x03R\n" +
|
||
"joinedAtMs\x12%\n" +
|
||
"\x0flast_seen_at_ms\x18\x04 \x01(\x03R\flastSeenAtMs\"\xc5\x02\n" +
|
||
"\tSeatState\x12\x17\n" +
|
||
"\aseat_no\x18\x01 \x01(\x05R\x06seatNo\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x16\n" +
|
||
"\x06locked\x18\x03 \x01(\bR\x06locked\x12#\n" +
|
||
"\rpublish_state\x18\x04 \x01(\tR\fpublishState\x12$\n" +
|
||
"\x0emic_session_id\x18\x05 \x01(\tR\fmicSessionId\x12.\n" +
|
||
"\x13publish_deadline_ms\x18\x06 \x01(\x03R\x11publishDeadlineMs\x127\n" +
|
||
"\x18mic_session_room_version\x18\a \x01(\x03R\x15micSessionRoomVersion\x12:\n" +
|
||
"\x1alast_publish_event_time_ms\x18\b \x01(\x03R\x16lastPublishEventTimeMs\"|\n" +
|
||
"\bRankItem\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" +
|
||
"\x05score\x18\x02 \x01(\x03R\x05score\x12\x1d\n" +
|
||
"\n" +
|
||
"gift_value\x18\x03 \x01(\x03R\tgiftValue\x12\"\n" +
|
||
"\rupdated_at_ms\x18\x04 \x01(\x03R\vupdatedAtMs\"\x80\x05\n" +
|
||
"\fRoomSnapshot\x12\x17\n" +
|
||
"\aroom_id\x18\x01 \x01(\tR\x06roomId\x12\"\n" +
|
||
"\rowner_user_id\x18\x02 \x01(\x03R\vownerUserId\x12 \n" +
|
||
"\fhost_user_id\x18\x03 \x01(\x03R\n" +
|
||
"hostUserId\x12\x12\n" +
|
||
"\x04mode\x18\x04 \x01(\tR\x04mode\x12\x16\n" +
|
||
"\x06status\x18\x05 \x01(\tR\x06status\x12!\n" +
|
||
"\fchat_enabled\x18\x06 \x01(\bR\vchatEnabled\x125\n" +
|
||
"\tmic_seats\x18\a \x03(\v2\x18.hyapp.room.v1.SeatStateR\bmicSeats\x12:\n" +
|
||
"\fonline_users\x18\b \x03(\v2\x17.hyapp.room.v1.RoomUserR\vonlineUsers\x12$\n" +
|
||
"\x0eadmin_user_ids\x18\t \x03(\x03R\fadminUserIds\x12 \n" +
|
||
"\fban_user_ids\x18\n" +
|
||
" \x03(\x03R\n" +
|
||
"banUserIds\x12\"\n" +
|
||
"\rmute_user_ids\x18\v \x03(\x03R\vmuteUserIds\x124\n" +
|
||
"\tgift_rank\x18\f \x03(\v2\x17.hyapp.room.v1.RankItemR\bgiftRank\x12C\n" +
|
||
"\broom_ext\x18\r \x03(\v2(.hyapp.room.v1.RoomSnapshot.RoomExtEntryR\aroomExt\x12\x12\n" +
|
||
"\x04heat\x18\x0e \x01(\x03R\x04heat\x12\x18\n" +
|
||
"\aversion\x18\x0f \x01(\x03R\aversion\x1a:\n" +
|
||
"\fRoomExtEntry\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"v\n" +
|
||
"\x11CreateRoomRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12\x1d\n" +
|
||
"\n" +
|
||
"seat_count\x18\x02 \x01(\x05R\tseatCount\x12\x12\n" +
|
||
"\x04mode\x18\x03 \x01(\tR\x04mode\"{\n" +
|
||
"\x12CreateRoomResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"U\n" +
|
||
"\x0fJoinRoomRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12\x12\n" +
|
||
"\x04role\x18\x02 \x01(\tR\x04role\"\xa6\x01\n" +
|
||
"\x10JoinRoomResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12+\n" +
|
||
"\x04user\x18\x02 \x01(\v2\x17.hyapp.room.v1.RoomUserR\x04user\x12/\n" +
|
||
"\x04room\x18\x03 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"B\n" +
|
||
"\x10LeaveRoomRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\"z\n" +
|
||
"\x11LeaveRoomResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"W\n" +
|
||
"\fMicUpRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\aseat_no\x18\x02 \x01(\x05R\x06seatNo\"\xe5\x01\n" +
|
||
"\rMicUpResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12\x17\n" +
|
||
"\aseat_no\x18\x02 \x01(\x05R\x06seatNo\x12/\n" +
|
||
"\x04room\x18\x03 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\x12$\n" +
|
||
"\x0emic_session_id\x18\x04 \x01(\tR\fmicSessionId\x12.\n" +
|
||
"\x13publish_deadline_ms\x18\x05 \x01(\x03R\x11publishDeadlineMs\"~\n" +
|
||
"\x0eMicDownRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x16\n" +
|
||
"\x06reason\x18\x03 \x01(\tR\x06reason\"\x91\x01\n" +
|
||
"\x0fMicDownResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12\x17\n" +
|
||
"\aseat_no\x18\x02 \x01(\x05R\x06seatNo\x12/\n" +
|
||
"\x04room\x18\x03 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"\x85\x01\n" +
|
||
"\x14ChangeMicSeatRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x17\n" +
|
||
"\aseat_no\x18\x03 \x01(\x05R\x06seatNo\"~\n" +
|
||
"\x15ChangeMicSeatResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"\xf8\x01\n" +
|
||
"\x1bConfirmMicPublishingRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12$\n" +
|
||
"\x0emic_session_id\x18\x03 \x01(\tR\fmicSessionId\x12!\n" +
|
||
"\froom_version\x18\x04 \x01(\x03R\vroomVersion\x12\"\n" +
|
||
"\revent_time_ms\x18\x05 \x01(\x03R\veventTimeMs\x12\x16\n" +
|
||
"\x06source\x18\x06 \x01(\tR\x06source\"\x9e\x01\n" +
|
||
"\x1cConfirmMicPublishingResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12\x17\n" +
|
||
"\aseat_no\x18\x02 \x01(\x05R\x06seatNo\x12/\n" +
|
||
"\x04room\x18\x03 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"x\n" +
|
||
"\x15SetMicSeatLockRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\aseat_no\x18\x02 \x01(\x05R\x06seatNo\x12\x16\n" +
|
||
"\x06locked\x18\x03 \x01(\bR\x06locked\"\x7f\n" +
|
||
"\x16SetMicSeatLockResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"a\n" +
|
||
"\x15SetChatEnabledRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12\x18\n" +
|
||
"\aenabled\x18\x02 \x01(\bR\aenabled\"\x7f\n" +
|
||
"\x16SetChatEnabledResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"\x85\x01\n" +
|
||
"\x13SetRoomAdminRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x18\n" +
|
||
"\aenabled\x18\x03 \x01(\bR\aenabled\"}\n" +
|
||
"\x14SetRoomAdminResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"o\n" +
|
||
"\x17TransferRoomHostRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\"\x81\x01\n" +
|
||
"\x18TransferRoomHostResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"}\n" +
|
||
"\x0fMuteUserRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x14\n" +
|
||
"\x05muted\x18\x03 \x01(\bR\x05muted\"y\n" +
|
||
"\x10MuteUserResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"g\n" +
|
||
"\x0fKickUserRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\"y\n" +
|
||
"\x10KickUserResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"h\n" +
|
||
"\x10UnbanUserRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\"z\n" +
|
||
"\x11UnbanUserResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12/\n" +
|
||
"\x04room\x18\x02 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"\x9f\x01\n" +
|
||
"\x0fSendGiftRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.room.v1.RequestMetaR\x04meta\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\x03R\ftargetUserId\x12\x17\n" +
|
||
"\agift_id\x18\x03 \x01(\tR\x06giftId\x12\x1d\n" +
|
||
"\n" +
|
||
"gift_count\x18\x04 \x01(\x05R\tgiftCount\"\xfa\x01\n" +
|
||
"\x10SendGiftResponse\x124\n" +
|
||
"\x06result\x18\x01 \x01(\v2\x1c.hyapp.room.v1.CommandResultR\x06result\x12,\n" +
|
||
"\x12billing_receipt_id\x18\x02 \x01(\tR\x10billingReceiptId\x12\x1b\n" +
|
||
"\troom_heat\x18\x03 \x01(\x03R\broomHeat\x124\n" +
|
||
"\tgift_rank\x18\x04 \x03(\v2\x17.hyapp.room.v1.RankItemR\bgiftRank\x12/\n" +
|
||
"\x04room\x18\x05 \x01(\v2\x1b.hyapp.room.v1.RoomSnapshotR\x04room\"O\n" +
|
||
"\x1bCheckSpeakPermissionRequest\x12\x17\n" +
|
||
"\aroom_id\x18\x01 \x01(\tR\x06roomId\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"s\n" +
|
||
"\x1cCheckSpeakPermissionResponse\x12\x18\n" +
|
||
"\aallowed\x18\x01 \x01(\bR\aallowed\x12\x16\n" +
|
||
"\x06reason\x18\x02 \x01(\tR\x06reason\x12!\n" +
|
||
"\froom_version\x18\x03 \x01(\x03R\vroomVersion\"\x8b\x01\n" +
|
||
"\x19VerifyRoomPresenceRequest\x12\x17\n" +
|
||
"\aroom_id\x18\x01 \x01(\tR\x06roomId\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"session_id\x18\x03 \x01(\tR\tsessionId\x12\x1d\n" +
|
||
"\n" +
|
||
"request_id\x18\x04 \x01(\tR\trequestId\"q\n" +
|
||
"\x1aVerifyRoomPresenceResponse\x12\x18\n" +
|
||
"\apresent\x18\x01 \x01(\bR\apresent\x12\x16\n" +
|
||
"\x06reason\x18\x02 \x01(\tR\x06reason\x12!\n" +
|
||
"\froom_version\x18\x03 \x01(\x03R\vroomVersion2\x92\n" +
|
||
"\n" +
|
||
"\x12RoomCommandService\x12Q\n" +
|
||
"\n" +
|
||
"CreateRoom\x12 .hyapp.room.v1.CreateRoomRequest\x1a!.hyapp.room.v1.CreateRoomResponse\x12K\n" +
|
||
"\bJoinRoom\x12\x1e.hyapp.room.v1.JoinRoomRequest\x1a\x1f.hyapp.room.v1.JoinRoomResponse\x12N\n" +
|
||
"\tLeaveRoom\x12\x1f.hyapp.room.v1.LeaveRoomRequest\x1a .hyapp.room.v1.LeaveRoomResponse\x12B\n" +
|
||
"\x05MicUp\x12\x1b.hyapp.room.v1.MicUpRequest\x1a\x1c.hyapp.room.v1.MicUpResponse\x12H\n" +
|
||
"\aMicDown\x12\x1d.hyapp.room.v1.MicDownRequest\x1a\x1e.hyapp.room.v1.MicDownResponse\x12Z\n" +
|
||
"\rChangeMicSeat\x12#.hyapp.room.v1.ChangeMicSeatRequest\x1a$.hyapp.room.v1.ChangeMicSeatResponse\x12o\n" +
|
||
"\x14ConfirmMicPublishing\x12*.hyapp.room.v1.ConfirmMicPublishingRequest\x1a+.hyapp.room.v1.ConfirmMicPublishingResponse\x12]\n" +
|
||
"\x0eSetMicSeatLock\x12$.hyapp.room.v1.SetMicSeatLockRequest\x1a%.hyapp.room.v1.SetMicSeatLockResponse\x12]\n" +
|
||
"\x0eSetChatEnabled\x12$.hyapp.room.v1.SetChatEnabledRequest\x1a%.hyapp.room.v1.SetChatEnabledResponse\x12W\n" +
|
||
"\fSetRoomAdmin\x12\".hyapp.room.v1.SetRoomAdminRequest\x1a#.hyapp.room.v1.SetRoomAdminResponse\x12c\n" +
|
||
"\x10TransferRoomHost\x12&.hyapp.room.v1.TransferRoomHostRequest\x1a'.hyapp.room.v1.TransferRoomHostResponse\x12K\n" +
|
||
"\bMuteUser\x12\x1e.hyapp.room.v1.MuteUserRequest\x1a\x1f.hyapp.room.v1.MuteUserResponse\x12K\n" +
|
||
"\bKickUser\x12\x1e.hyapp.room.v1.KickUserRequest\x1a\x1f.hyapp.room.v1.KickUserResponse\x12N\n" +
|
||
"\tUnbanUser\x12\x1f.hyapp.room.v1.UnbanUserRequest\x1a .hyapp.room.v1.UnbanUserResponse\x12K\n" +
|
||
"\bSendGift\x12\x1e.hyapp.room.v1.SendGiftRequest\x1a\x1f.hyapp.room.v1.SendGiftResponse2\xee\x01\n" +
|
||
"\x10RoomGuardService\x12o\n" +
|
||
"\x14CheckSpeakPermission\x12*.hyapp.room.v1.CheckSpeakPermissionRequest\x1a+.hyapp.room.v1.CheckSpeakPermissionResponse\x12i\n" +
|
||
"\x12VerifyRoomPresence\x12(.hyapp.room.v1.VerifyRoomPresenceRequest\x1a).hyapp.room.v1.VerifyRoomPresenceResponseB Z\x1ehyapp/api/proto/room/v1;roomv1b\x06proto3"
|
||
|
||
var (
|
||
file_api_proto_room_v1_room_proto_rawDescOnce sync.Once
|
||
file_api_proto_room_v1_room_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_api_proto_room_v1_room_proto_rawDescGZIP() []byte {
|
||
file_api_proto_room_v1_room_proto_rawDescOnce.Do(func() {
|
||
file_api_proto_room_v1_room_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_room_v1_room_proto_rawDesc), len(file_api_proto_room_v1_room_proto_rawDesc)))
|
||
})
|
||
return file_api_proto_room_v1_room_proto_rawDescData
|
||
}
|
||
|
||
var file_api_proto_room_v1_room_proto_msgTypes = make([]protoimpl.MessageInfo, 41)
|
||
var file_api_proto_room_v1_room_proto_goTypes = []any{
|
||
(*RequestMeta)(nil), // 0: hyapp.room.v1.RequestMeta
|
||
(*CommandResult)(nil), // 1: hyapp.room.v1.CommandResult
|
||
(*RoomUser)(nil), // 2: hyapp.room.v1.RoomUser
|
||
(*SeatState)(nil), // 3: hyapp.room.v1.SeatState
|
||
(*RankItem)(nil), // 4: hyapp.room.v1.RankItem
|
||
(*RoomSnapshot)(nil), // 5: hyapp.room.v1.RoomSnapshot
|
||
(*CreateRoomRequest)(nil), // 6: hyapp.room.v1.CreateRoomRequest
|
||
(*CreateRoomResponse)(nil), // 7: hyapp.room.v1.CreateRoomResponse
|
||
(*JoinRoomRequest)(nil), // 8: hyapp.room.v1.JoinRoomRequest
|
||
(*JoinRoomResponse)(nil), // 9: hyapp.room.v1.JoinRoomResponse
|
||
(*LeaveRoomRequest)(nil), // 10: hyapp.room.v1.LeaveRoomRequest
|
||
(*LeaveRoomResponse)(nil), // 11: hyapp.room.v1.LeaveRoomResponse
|
||
(*MicUpRequest)(nil), // 12: hyapp.room.v1.MicUpRequest
|
||
(*MicUpResponse)(nil), // 13: hyapp.room.v1.MicUpResponse
|
||
(*MicDownRequest)(nil), // 14: hyapp.room.v1.MicDownRequest
|
||
(*MicDownResponse)(nil), // 15: hyapp.room.v1.MicDownResponse
|
||
(*ChangeMicSeatRequest)(nil), // 16: hyapp.room.v1.ChangeMicSeatRequest
|
||
(*ChangeMicSeatResponse)(nil), // 17: hyapp.room.v1.ChangeMicSeatResponse
|
||
(*ConfirmMicPublishingRequest)(nil), // 18: hyapp.room.v1.ConfirmMicPublishingRequest
|
||
(*ConfirmMicPublishingResponse)(nil), // 19: hyapp.room.v1.ConfirmMicPublishingResponse
|
||
(*SetMicSeatLockRequest)(nil), // 20: hyapp.room.v1.SetMicSeatLockRequest
|
||
(*SetMicSeatLockResponse)(nil), // 21: hyapp.room.v1.SetMicSeatLockResponse
|
||
(*SetChatEnabledRequest)(nil), // 22: hyapp.room.v1.SetChatEnabledRequest
|
||
(*SetChatEnabledResponse)(nil), // 23: hyapp.room.v1.SetChatEnabledResponse
|
||
(*SetRoomAdminRequest)(nil), // 24: hyapp.room.v1.SetRoomAdminRequest
|
||
(*SetRoomAdminResponse)(nil), // 25: hyapp.room.v1.SetRoomAdminResponse
|
||
(*TransferRoomHostRequest)(nil), // 26: hyapp.room.v1.TransferRoomHostRequest
|
||
(*TransferRoomHostResponse)(nil), // 27: hyapp.room.v1.TransferRoomHostResponse
|
||
(*MuteUserRequest)(nil), // 28: hyapp.room.v1.MuteUserRequest
|
||
(*MuteUserResponse)(nil), // 29: hyapp.room.v1.MuteUserResponse
|
||
(*KickUserRequest)(nil), // 30: hyapp.room.v1.KickUserRequest
|
||
(*KickUserResponse)(nil), // 31: hyapp.room.v1.KickUserResponse
|
||
(*UnbanUserRequest)(nil), // 32: hyapp.room.v1.UnbanUserRequest
|
||
(*UnbanUserResponse)(nil), // 33: hyapp.room.v1.UnbanUserResponse
|
||
(*SendGiftRequest)(nil), // 34: hyapp.room.v1.SendGiftRequest
|
||
(*SendGiftResponse)(nil), // 35: hyapp.room.v1.SendGiftResponse
|
||
(*CheckSpeakPermissionRequest)(nil), // 36: hyapp.room.v1.CheckSpeakPermissionRequest
|
||
(*CheckSpeakPermissionResponse)(nil), // 37: hyapp.room.v1.CheckSpeakPermissionResponse
|
||
(*VerifyRoomPresenceRequest)(nil), // 38: hyapp.room.v1.VerifyRoomPresenceRequest
|
||
(*VerifyRoomPresenceResponse)(nil), // 39: hyapp.room.v1.VerifyRoomPresenceResponse
|
||
nil, // 40: hyapp.room.v1.RoomSnapshot.RoomExtEntry
|
||
}
|
||
var file_api_proto_room_v1_room_proto_depIdxs = []int32{
|
||
3, // 0: hyapp.room.v1.RoomSnapshot.mic_seats:type_name -> hyapp.room.v1.SeatState
|
||
2, // 1: hyapp.room.v1.RoomSnapshot.online_users:type_name -> hyapp.room.v1.RoomUser
|
||
4, // 2: hyapp.room.v1.RoomSnapshot.gift_rank:type_name -> hyapp.room.v1.RankItem
|
||
40, // 3: hyapp.room.v1.RoomSnapshot.room_ext:type_name -> hyapp.room.v1.RoomSnapshot.RoomExtEntry
|
||
0, // 4: hyapp.room.v1.CreateRoomRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 5: hyapp.room.v1.CreateRoomResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 6: hyapp.room.v1.CreateRoomResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 7: hyapp.room.v1.JoinRoomRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 8: hyapp.room.v1.JoinRoomResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
2, // 9: hyapp.room.v1.JoinRoomResponse.user:type_name -> hyapp.room.v1.RoomUser
|
||
5, // 10: hyapp.room.v1.JoinRoomResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 11: hyapp.room.v1.LeaveRoomRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 12: hyapp.room.v1.LeaveRoomResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 13: hyapp.room.v1.LeaveRoomResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 14: hyapp.room.v1.MicUpRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 15: hyapp.room.v1.MicUpResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 16: hyapp.room.v1.MicUpResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 17: hyapp.room.v1.MicDownRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 18: hyapp.room.v1.MicDownResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 19: hyapp.room.v1.MicDownResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 20: hyapp.room.v1.ChangeMicSeatRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 21: hyapp.room.v1.ChangeMicSeatResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 22: hyapp.room.v1.ChangeMicSeatResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 23: hyapp.room.v1.ConfirmMicPublishingRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 24: hyapp.room.v1.ConfirmMicPublishingResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 25: hyapp.room.v1.ConfirmMicPublishingResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 26: hyapp.room.v1.SetMicSeatLockRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 27: hyapp.room.v1.SetMicSeatLockResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 28: hyapp.room.v1.SetMicSeatLockResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 29: hyapp.room.v1.SetChatEnabledRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 30: hyapp.room.v1.SetChatEnabledResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 31: hyapp.room.v1.SetChatEnabledResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 32: hyapp.room.v1.SetRoomAdminRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 33: hyapp.room.v1.SetRoomAdminResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 34: hyapp.room.v1.SetRoomAdminResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 35: hyapp.room.v1.TransferRoomHostRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 36: hyapp.room.v1.TransferRoomHostResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 37: hyapp.room.v1.TransferRoomHostResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 38: hyapp.room.v1.MuteUserRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 39: hyapp.room.v1.MuteUserResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 40: hyapp.room.v1.MuteUserResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 41: hyapp.room.v1.KickUserRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 42: hyapp.room.v1.KickUserResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 43: hyapp.room.v1.KickUserResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 44: hyapp.room.v1.UnbanUserRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 45: hyapp.room.v1.UnbanUserResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
5, // 46: hyapp.room.v1.UnbanUserResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
0, // 47: hyapp.room.v1.SendGiftRequest.meta:type_name -> hyapp.room.v1.RequestMeta
|
||
1, // 48: hyapp.room.v1.SendGiftResponse.result:type_name -> hyapp.room.v1.CommandResult
|
||
4, // 49: hyapp.room.v1.SendGiftResponse.gift_rank:type_name -> hyapp.room.v1.RankItem
|
||
5, // 50: hyapp.room.v1.SendGiftResponse.room:type_name -> hyapp.room.v1.RoomSnapshot
|
||
6, // 51: hyapp.room.v1.RoomCommandService.CreateRoom:input_type -> hyapp.room.v1.CreateRoomRequest
|
||
8, // 52: hyapp.room.v1.RoomCommandService.JoinRoom:input_type -> hyapp.room.v1.JoinRoomRequest
|
||
10, // 53: hyapp.room.v1.RoomCommandService.LeaveRoom:input_type -> hyapp.room.v1.LeaveRoomRequest
|
||
12, // 54: hyapp.room.v1.RoomCommandService.MicUp:input_type -> hyapp.room.v1.MicUpRequest
|
||
14, // 55: hyapp.room.v1.RoomCommandService.MicDown:input_type -> hyapp.room.v1.MicDownRequest
|
||
16, // 56: hyapp.room.v1.RoomCommandService.ChangeMicSeat:input_type -> hyapp.room.v1.ChangeMicSeatRequest
|
||
18, // 57: hyapp.room.v1.RoomCommandService.ConfirmMicPublishing:input_type -> hyapp.room.v1.ConfirmMicPublishingRequest
|
||
20, // 58: hyapp.room.v1.RoomCommandService.SetMicSeatLock:input_type -> hyapp.room.v1.SetMicSeatLockRequest
|
||
22, // 59: hyapp.room.v1.RoomCommandService.SetChatEnabled:input_type -> hyapp.room.v1.SetChatEnabledRequest
|
||
24, // 60: hyapp.room.v1.RoomCommandService.SetRoomAdmin:input_type -> hyapp.room.v1.SetRoomAdminRequest
|
||
26, // 61: hyapp.room.v1.RoomCommandService.TransferRoomHost:input_type -> hyapp.room.v1.TransferRoomHostRequest
|
||
28, // 62: hyapp.room.v1.RoomCommandService.MuteUser:input_type -> hyapp.room.v1.MuteUserRequest
|
||
30, // 63: hyapp.room.v1.RoomCommandService.KickUser:input_type -> hyapp.room.v1.KickUserRequest
|
||
32, // 64: hyapp.room.v1.RoomCommandService.UnbanUser:input_type -> hyapp.room.v1.UnbanUserRequest
|
||
34, // 65: hyapp.room.v1.RoomCommandService.SendGift:input_type -> hyapp.room.v1.SendGiftRequest
|
||
36, // 66: hyapp.room.v1.RoomGuardService.CheckSpeakPermission:input_type -> hyapp.room.v1.CheckSpeakPermissionRequest
|
||
38, // 67: hyapp.room.v1.RoomGuardService.VerifyRoomPresence:input_type -> hyapp.room.v1.VerifyRoomPresenceRequest
|
||
7, // 68: hyapp.room.v1.RoomCommandService.CreateRoom:output_type -> hyapp.room.v1.CreateRoomResponse
|
||
9, // 69: hyapp.room.v1.RoomCommandService.JoinRoom:output_type -> hyapp.room.v1.JoinRoomResponse
|
||
11, // 70: hyapp.room.v1.RoomCommandService.LeaveRoom:output_type -> hyapp.room.v1.LeaveRoomResponse
|
||
13, // 71: hyapp.room.v1.RoomCommandService.MicUp:output_type -> hyapp.room.v1.MicUpResponse
|
||
15, // 72: hyapp.room.v1.RoomCommandService.MicDown:output_type -> hyapp.room.v1.MicDownResponse
|
||
17, // 73: hyapp.room.v1.RoomCommandService.ChangeMicSeat:output_type -> hyapp.room.v1.ChangeMicSeatResponse
|
||
19, // 74: hyapp.room.v1.RoomCommandService.ConfirmMicPublishing:output_type -> hyapp.room.v1.ConfirmMicPublishingResponse
|
||
21, // 75: hyapp.room.v1.RoomCommandService.SetMicSeatLock:output_type -> hyapp.room.v1.SetMicSeatLockResponse
|
||
23, // 76: hyapp.room.v1.RoomCommandService.SetChatEnabled:output_type -> hyapp.room.v1.SetChatEnabledResponse
|
||
25, // 77: hyapp.room.v1.RoomCommandService.SetRoomAdmin:output_type -> hyapp.room.v1.SetRoomAdminResponse
|
||
27, // 78: hyapp.room.v1.RoomCommandService.TransferRoomHost:output_type -> hyapp.room.v1.TransferRoomHostResponse
|
||
29, // 79: hyapp.room.v1.RoomCommandService.MuteUser:output_type -> hyapp.room.v1.MuteUserResponse
|
||
31, // 80: hyapp.room.v1.RoomCommandService.KickUser:output_type -> hyapp.room.v1.KickUserResponse
|
||
33, // 81: hyapp.room.v1.RoomCommandService.UnbanUser:output_type -> hyapp.room.v1.UnbanUserResponse
|
||
35, // 82: hyapp.room.v1.RoomCommandService.SendGift:output_type -> hyapp.room.v1.SendGiftResponse
|
||
37, // 83: hyapp.room.v1.RoomGuardService.CheckSpeakPermission:output_type -> hyapp.room.v1.CheckSpeakPermissionResponse
|
||
39, // 84: hyapp.room.v1.RoomGuardService.VerifyRoomPresence:output_type -> hyapp.room.v1.VerifyRoomPresenceResponse
|
||
68, // [68:85] is the sub-list for method output_type
|
||
51, // [51:68] is the sub-list for method input_type
|
||
51, // [51:51] is the sub-list for extension type_name
|
||
51, // [51:51] is the sub-list for extension extendee
|
||
0, // [0:51] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_api_proto_room_v1_room_proto_init() }
|
||
func file_api_proto_room_v1_room_proto_init() {
|
||
if File_api_proto_room_v1_room_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_room_v1_room_proto_rawDesc), len(file_api_proto_room_v1_room_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 41,
|
||
NumExtensions: 0,
|
||
NumServices: 2,
|
||
},
|
||
GoTypes: file_api_proto_room_v1_room_proto_goTypes,
|
||
DependencyIndexes: file_api_proto_room_v1_room_proto_depIdxs,
|
||
MessageInfos: file_api_proto_room_v1_room_proto_msgTypes,
|
||
}.Build()
|
||
File_api_proto_room_v1_room_proto = out.File
|
||
file_api_proto_room_v1_room_proto_goTypes = nil
|
||
file_api_proto_room_v1_room_proto_depIdxs = nil
|
||
}
|