puzzle_service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PuzzleQueryResult_name = map[int32]string{
		0: "UNSEEN",
		1: "UNRATED",
		2: "UNFINISHED",
		3: "EXHAUSTED",
		4: "RANDOM",
		5: "START",
	}
	PuzzleQueryResult_value = map[string]int32{
		"UNSEEN":     0,
		"UNRATED":    1,
		"UNFINISHED": 2,
		"EXHAUSTED":  3,
		"RANDOM":     4,
		"START":      5,
	}
)

Enum value maps for PuzzleQueryResult.

View Source
var (
	PuzzleStatus_name = map[int32]string{
		0: "UNANSWERED",
		1: "CORRECT",
		2: "INCORRECT",
	}
	PuzzleStatus_value = map[string]int32{
		"UNANSWERED": 0,
		"CORRECT":    1,
		"INCORRECT":  2,
	}
)

Enum value maps for PuzzleStatus.

View Source
var File_proto_puzzle_service_puzzle_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type APIPuzzleGenerationJobRequest

type APIPuzzleGenerationJobRequest struct {
	Request   *PuzzleGenerationJobRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	SecretKey string                      `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// contains filtered or unexported fields
}

func (*APIPuzzleGenerationJobRequest) Descriptor deprecated

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

Deprecated: Use APIPuzzleGenerationJobRequest.ProtoReflect.Descriptor instead.

func (*APIPuzzleGenerationJobRequest) GetRequest

func (*APIPuzzleGenerationJobRequest) GetSecretKey

func (x *APIPuzzleGenerationJobRequest) GetSecretKey() string

func (*APIPuzzleGenerationJobRequest) ProtoMessage

func (*APIPuzzleGenerationJobRequest) ProtoMessage()

func (*APIPuzzleGenerationJobRequest) ProtoReflect

func (*APIPuzzleGenerationJobRequest) Reset

func (x *APIPuzzleGenerationJobRequest) Reset()

func (*APIPuzzleGenerationJobRequest) String

type APIPuzzleGenerationJobResponse

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

func (*APIPuzzleGenerationJobResponse) Descriptor deprecated

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

Deprecated: Use APIPuzzleGenerationJobResponse.ProtoReflect.Descriptor instead.

func (*APIPuzzleGenerationJobResponse) GetStarted

func (x *APIPuzzleGenerationJobResponse) GetStarted() bool

func (*APIPuzzleGenerationJobResponse) ProtoMessage

func (*APIPuzzleGenerationJobResponse) ProtoMessage()

func (*APIPuzzleGenerationJobResponse) ProtoReflect

func (*APIPuzzleGenerationJobResponse) Reset

func (x *APIPuzzleGenerationJobResponse) Reset()

func (*APIPuzzleGenerationJobResponse) String

type AnswerResponse

type AnswerResponse struct {
	CorrectAnswer    *macondo.GameEvent     `protobuf:"bytes,1,opt,name=correct_answer,json=correctAnswer,proto3" json:"correct_answer,omitempty"`
	Status           PuzzleStatus           `protobuf:"varint,2,opt,name=status,proto3,enum=puzzle_service.PuzzleStatus" json:"status,omitempty"`
	Attempts         int32                  `protobuf:"varint,3,opt,name=attempts,proto3" json:"attempts,omitempty"`
	GameId           string                 `protobuf:"bytes,4,opt,name=game_id,json=gameId,proto3" json:"game_id,omitempty"`
	TurnNumber       int32                  `protobuf:"varint,5,opt,name=turn_number,json=turnNumber,proto3" json:"turn_number,omitempty"`
	AfterText        string                 `protobuf:"bytes,6,opt,name=after_text,json=afterText,proto3" json:"after_text,omitempty"`
	NewUserRating    int32                  `protobuf:"varint,7,opt,name=new_user_rating,json=newUserRating,proto3" json:"new_user_rating,omitempty"`
	NewPuzzleRating  int32                  `protobuf:"varint,8,opt,name=new_puzzle_rating,json=newPuzzleRating,proto3" json:"new_puzzle_rating,omitempty"`
	FirstAttemptTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=first_attempt_time,json=firstAttemptTime,proto3" json:"first_attempt_time,omitempty"`
	LastAttemptTime  *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"`
	// contains filtered or unexported fields
}

func (*AnswerResponse) Descriptor deprecated

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

Deprecated: Use AnswerResponse.ProtoReflect.Descriptor instead.

func (*AnswerResponse) GetAfterText

func (x *AnswerResponse) GetAfterText() string

func (*AnswerResponse) GetAttempts

func (x *AnswerResponse) GetAttempts() int32

func (*AnswerResponse) GetCorrectAnswer

func (x *AnswerResponse) GetCorrectAnswer() *macondo.GameEvent

func (*AnswerResponse) GetFirstAttemptTime

func (x *AnswerResponse) GetFirstAttemptTime() *timestamppb.Timestamp

func (*AnswerResponse) GetGameId

func (x *AnswerResponse) GetGameId() string

func (*AnswerResponse) GetLastAttemptTime

func (x *AnswerResponse) GetLastAttemptTime() *timestamppb.Timestamp

func (*AnswerResponse) GetNewPuzzleRating

func (x *AnswerResponse) GetNewPuzzleRating() int32

func (*AnswerResponse) GetNewUserRating

func (x *AnswerResponse) GetNewUserRating() int32

func (*AnswerResponse) GetStatus

func (x *AnswerResponse) GetStatus() PuzzleStatus

func (*AnswerResponse) GetTurnNumber

func (x *AnswerResponse) GetTurnNumber() int32

func (*AnswerResponse) ProtoMessage

func (*AnswerResponse) ProtoMessage()

func (*AnswerResponse) ProtoReflect

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

func (*AnswerResponse) Reset

func (x *AnswerResponse) Reset()

func (*AnswerResponse) String

func (x *AnswerResponse) String() string

type NextClosestRatingPuzzleIdRequest

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

func (*NextClosestRatingPuzzleIdRequest) Descriptor deprecated

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

Deprecated: Use NextClosestRatingPuzzleIdRequest.ProtoReflect.Descriptor instead.

func (*NextClosestRatingPuzzleIdRequest) GetLexicon

func (x *NextClosestRatingPuzzleIdRequest) GetLexicon() string

func (*NextClosestRatingPuzzleIdRequest) ProtoMessage

func (*NextClosestRatingPuzzleIdRequest) ProtoMessage()

func (*NextClosestRatingPuzzleIdRequest) ProtoReflect

func (*NextClosestRatingPuzzleIdRequest) Reset

func (*NextClosestRatingPuzzleIdRequest) String

type NextClosestRatingPuzzleIdResponse

type NextClosestRatingPuzzleIdResponse struct {
	PuzzleId    string            `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	QueryResult PuzzleQueryResult `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NextClosestRatingPuzzleIdResponse) Descriptor deprecated

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

Deprecated: Use NextClosestRatingPuzzleIdResponse.ProtoReflect.Descriptor instead.

func (*NextClosestRatingPuzzleIdResponse) GetPuzzleId

func (x *NextClosestRatingPuzzleIdResponse) GetPuzzleId() string

func (*NextClosestRatingPuzzleIdResponse) GetQueryResult

func (*NextClosestRatingPuzzleIdResponse) ProtoMessage

func (*NextClosestRatingPuzzleIdResponse) ProtoMessage()

func (*NextClosestRatingPuzzleIdResponse) ProtoReflect

func (*NextClosestRatingPuzzleIdResponse) Reset

func (*NextClosestRatingPuzzleIdResponse) String

type NextPuzzleIdRequest

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

func (*NextPuzzleIdRequest) Descriptor deprecated

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

Deprecated: Use NextPuzzleIdRequest.ProtoReflect.Descriptor instead.

func (*NextPuzzleIdRequest) GetLexicon

func (x *NextPuzzleIdRequest) GetLexicon() string

func (*NextPuzzleIdRequest) ProtoMessage

func (*NextPuzzleIdRequest) ProtoMessage()

func (*NextPuzzleIdRequest) ProtoReflect

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

func (*NextPuzzleIdRequest) Reset

func (x *NextPuzzleIdRequest) Reset()

func (*NextPuzzleIdRequest) String

func (x *NextPuzzleIdRequest) String() string

type NextPuzzleIdResponse

type NextPuzzleIdResponse struct {
	PuzzleId    string            `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	QueryResult PuzzleQueryResult `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NextPuzzleIdResponse) Descriptor deprecated

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

Deprecated: Use NextPuzzleIdResponse.ProtoReflect.Descriptor instead.

func (*NextPuzzleIdResponse) GetPuzzleId

func (x *NextPuzzleIdResponse) GetPuzzleId() string

func (*NextPuzzleIdResponse) GetQueryResult

func (x *NextPuzzleIdResponse) GetQueryResult() PuzzleQueryResult

func (*NextPuzzleIdResponse) ProtoMessage

func (*NextPuzzleIdResponse) ProtoMessage()

func (*NextPuzzleIdResponse) ProtoReflect

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

func (*NextPuzzleIdResponse) Reset

func (x *NextPuzzleIdResponse) Reset()

func (*NextPuzzleIdResponse) String

func (x *NextPuzzleIdResponse) String() string

type PreviousPuzzleRequest

type PreviousPuzzleRequest struct {
	PuzzleId string `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PreviousPuzzleRequest) Descriptor deprecated

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

Deprecated: Use PreviousPuzzleRequest.ProtoReflect.Descriptor instead.

func (*PreviousPuzzleRequest) GetPuzzleId

func (x *PreviousPuzzleRequest) GetPuzzleId() string

func (*PreviousPuzzleRequest) ProtoMessage

func (*PreviousPuzzleRequest) ProtoMessage()

func (*PreviousPuzzleRequest) ProtoReflect

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

func (*PreviousPuzzleRequest) Reset

func (x *PreviousPuzzleRequest) Reset()

func (*PreviousPuzzleRequest) String

func (x *PreviousPuzzleRequest) String() string

type PreviousPuzzleResponse

type PreviousPuzzleResponse struct {
	PuzzleId string `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PreviousPuzzleResponse) Descriptor deprecated

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

Deprecated: Use PreviousPuzzleResponse.ProtoReflect.Descriptor instead.

func (*PreviousPuzzleResponse) GetPuzzleId

func (x *PreviousPuzzleResponse) GetPuzzleId() string

func (*PreviousPuzzleResponse) ProtoMessage

func (*PreviousPuzzleResponse) ProtoMessage()

func (*PreviousPuzzleResponse) ProtoReflect

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

func (*PreviousPuzzleResponse) Reset

func (x *PreviousPuzzleResponse) Reset()

func (*PreviousPuzzleResponse) String

func (x *PreviousPuzzleResponse) String() string

type PuzzleGenerationJobRequest

type PuzzleGenerationJobRequest struct {
	BotVsBot           bool   `protobuf:"varint,1,opt,name=bot_vs_bot,json=botVsBot,proto3" json:"bot_vs_bot,omitempty"`
	Lexicon            string `protobuf:"bytes,2,opt,name=lexicon,proto3" json:"lexicon,omitempty"`
	LetterDistribution string `protobuf:"bytes,3,opt,name=letter_distribution,json=letterDistribution,proto3" json:"letter_distribution,omitempty"`
	// Deprecated: Marked as deprecated in proto/puzzle_service/puzzle_service.proto.
	SqlOffset              int32                            `protobuf:"varint,4,opt,name=sql_offset,json=sqlOffset,proto3" json:"sql_offset,omitempty"`
	GameConsiderationLimit int32                            `` /* 130-byte string literal not displayed */
	GameCreationLimit      int32                            `protobuf:"varint,6,opt,name=game_creation_limit,json=gameCreationLimit,proto3" json:"game_creation_limit,omitempty"`
	Request                *macondo.PuzzleGenerationRequest `protobuf:"bytes,7,opt,name=request,proto3" json:"request,omitempty"`
	// start_date is just a YYYY-MM-DD date at which we should
	// start looking for games (in non bot_v_bot), and go backwards
	// from there.
	StartDate            string `protobuf:"bytes,8,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EquityLossTotalLimit uint32 `` /* 126-byte string literal not displayed */
	AvoidBotGames        bool   `protobuf:"varint,10,opt,name=avoid_bot_games,json=avoidBotGames,proto3" json:"avoid_bot_games,omitempty"`
	DaysPerChunk         uint32 `protobuf:"varint,11,opt,name=days_per_chunk,json=daysPerChunk,proto3" json:"days_per_chunk,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleGenerationJobRequest) Descriptor deprecated

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

Deprecated: Use PuzzleGenerationJobRequest.ProtoReflect.Descriptor instead.

func (*PuzzleGenerationJobRequest) GetAvoidBotGames

func (x *PuzzleGenerationJobRequest) GetAvoidBotGames() bool

func (*PuzzleGenerationJobRequest) GetBotVsBot

func (x *PuzzleGenerationJobRequest) GetBotVsBot() bool

func (*PuzzleGenerationJobRequest) GetDaysPerChunk

func (x *PuzzleGenerationJobRequest) GetDaysPerChunk() uint32

func (*PuzzleGenerationJobRequest) GetEquityLossTotalLimit

func (x *PuzzleGenerationJobRequest) GetEquityLossTotalLimit() uint32

func (*PuzzleGenerationJobRequest) GetGameConsiderationLimit

func (x *PuzzleGenerationJobRequest) GetGameConsiderationLimit() int32

func (*PuzzleGenerationJobRequest) GetGameCreationLimit

func (x *PuzzleGenerationJobRequest) GetGameCreationLimit() int32

func (*PuzzleGenerationJobRequest) GetLetterDistribution

func (x *PuzzleGenerationJobRequest) GetLetterDistribution() string

func (*PuzzleGenerationJobRequest) GetLexicon

func (x *PuzzleGenerationJobRequest) GetLexicon() string

func (*PuzzleGenerationJobRequest) GetRequest

func (*PuzzleGenerationJobRequest) GetSqlOffset deprecated

func (x *PuzzleGenerationJobRequest) GetSqlOffset() int32

Deprecated: Marked as deprecated in proto/puzzle_service/puzzle_service.proto.

func (*PuzzleGenerationJobRequest) GetStartDate

func (x *PuzzleGenerationJobRequest) GetStartDate() string

func (*PuzzleGenerationJobRequest) ProtoMessage

func (*PuzzleGenerationJobRequest) ProtoMessage()

func (*PuzzleGenerationJobRequest) ProtoReflect

func (*PuzzleGenerationJobRequest) Reset

func (x *PuzzleGenerationJobRequest) Reset()

func (*PuzzleGenerationJobRequest) String

func (x *PuzzleGenerationJobRequest) String() string

type PuzzleJobLog

type PuzzleJobLog struct {
	Id          int64                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Request     *PuzzleGenerationJobRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	Fulfilled   bool                        `protobuf:"varint,3,opt,name=fulfilled,proto3" json:"fulfilled,omitempty"`
	ErrorStatus string                      `protobuf:"bytes,4,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"`
	CreatedAt   *timestamppb.Timestamp      `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	CompletedAt *timestamppb.Timestamp      `protobuf:"bytes,6,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleJobLog) Descriptor deprecated

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

Deprecated: Use PuzzleJobLog.ProtoReflect.Descriptor instead.

func (*PuzzleJobLog) GetCompletedAt

func (x *PuzzleJobLog) GetCompletedAt() *timestamppb.Timestamp

func (*PuzzleJobLog) GetCreatedAt

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

func (*PuzzleJobLog) GetErrorStatus

func (x *PuzzleJobLog) GetErrorStatus() string

func (*PuzzleJobLog) GetFulfilled

func (x *PuzzleJobLog) GetFulfilled() bool

func (*PuzzleJobLog) GetId

func (x *PuzzleJobLog) GetId() int64

func (*PuzzleJobLog) GetRequest

func (x *PuzzleJobLog) GetRequest() *PuzzleGenerationJobRequest

func (*PuzzleJobLog) ProtoMessage

func (*PuzzleJobLog) ProtoMessage()

func (*PuzzleJobLog) ProtoReflect

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

func (*PuzzleJobLog) Reset

func (x *PuzzleJobLog) Reset()

func (*PuzzleJobLog) String

func (x *PuzzleJobLog) String() string

type PuzzleJobLogsRequest

type PuzzleJobLogsRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleJobLogsRequest) Descriptor deprecated

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

Deprecated: Use PuzzleJobLogsRequest.ProtoReflect.Descriptor instead.

func (*PuzzleJobLogsRequest) GetLimit

func (x *PuzzleJobLogsRequest) GetLimit() int32

func (*PuzzleJobLogsRequest) GetOffset

func (x *PuzzleJobLogsRequest) GetOffset() int32

func (*PuzzleJobLogsRequest) ProtoMessage

func (*PuzzleJobLogsRequest) ProtoMessage()

func (*PuzzleJobLogsRequest) ProtoReflect

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

func (*PuzzleJobLogsRequest) Reset

func (x *PuzzleJobLogsRequest) Reset()

func (*PuzzleJobLogsRequest) String

func (x *PuzzleJobLogsRequest) String() string

type PuzzleJobLogsResponse

type PuzzleJobLogsResponse struct {
	Logs []*PuzzleJobLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleJobLogsResponse) Descriptor deprecated

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

Deprecated: Use PuzzleJobLogsResponse.ProtoReflect.Descriptor instead.

func (*PuzzleJobLogsResponse) GetLogs

func (x *PuzzleJobLogsResponse) GetLogs() []*PuzzleJobLog

func (*PuzzleJobLogsResponse) ProtoMessage

func (*PuzzleJobLogsResponse) ProtoMessage()

func (*PuzzleJobLogsResponse) ProtoReflect

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

func (*PuzzleJobLogsResponse) Reset

func (x *PuzzleJobLogsResponse) Reset()

func (*PuzzleJobLogsResponse) String

func (x *PuzzleJobLogsResponse) String() string

type PuzzleQueryResult

type PuzzleQueryResult int32
const (
	PuzzleQueryResult_UNSEEN     PuzzleQueryResult = 0
	PuzzleQueryResult_UNRATED    PuzzleQueryResult = 1
	PuzzleQueryResult_UNFINISHED PuzzleQueryResult = 2
	PuzzleQueryResult_EXHAUSTED  PuzzleQueryResult = 3
	PuzzleQueryResult_RANDOM     PuzzleQueryResult = 4
	PuzzleQueryResult_START      PuzzleQueryResult = 5
)

func (PuzzleQueryResult) Descriptor

func (PuzzleQueryResult) Enum

func (PuzzleQueryResult) EnumDescriptor deprecated

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

Deprecated: Use PuzzleQueryResult.Descriptor instead.

func (PuzzleQueryResult) Number

func (PuzzleQueryResult) String

func (x PuzzleQueryResult) String() string

func (PuzzleQueryResult) Type

type PuzzleRequest

type PuzzleRequest struct {
	PuzzleId string `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleRequest) Descriptor deprecated

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

Deprecated: Use PuzzleRequest.ProtoReflect.Descriptor instead.

func (*PuzzleRequest) GetPuzzleId

func (x *PuzzleRequest) GetPuzzleId() string

func (*PuzzleRequest) ProtoMessage

func (*PuzzleRequest) ProtoMessage()

func (*PuzzleRequest) ProtoReflect

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

func (*PuzzleRequest) Reset

func (x *PuzzleRequest) Reset()

func (*PuzzleRequest) String

func (x *PuzzleRequest) String() string

type PuzzleResponse

type PuzzleResponse struct {
	History    *macondo.GameHistory `protobuf:"bytes,1,opt,name=history,proto3" json:"history,omitempty"`
	BeforeText string               `protobuf:"bytes,2,opt,name=before_text,json=beforeText,proto3" json:"before_text,omitempty"`
	Answer     *AnswerResponse      `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleResponse) Descriptor deprecated

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

Deprecated: Use PuzzleResponse.ProtoReflect.Descriptor instead.

func (*PuzzleResponse) GetAnswer

func (x *PuzzleResponse) GetAnswer() *AnswerResponse

func (*PuzzleResponse) GetBeforeText

func (x *PuzzleResponse) GetBeforeText() string

func (*PuzzleResponse) GetHistory

func (x *PuzzleResponse) GetHistory() *macondo.GameHistory

func (*PuzzleResponse) ProtoMessage

func (*PuzzleResponse) ProtoMessage()

func (*PuzzleResponse) ProtoReflect

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

func (*PuzzleResponse) Reset

func (x *PuzzleResponse) Reset()

func (*PuzzleResponse) String

func (x *PuzzleResponse) String() string

type PuzzleStatus

type PuzzleStatus int32
const (
	PuzzleStatus_UNANSWERED PuzzleStatus = 0
	PuzzleStatus_CORRECT    PuzzleStatus = 1
	PuzzleStatus_INCORRECT  PuzzleStatus = 2
)

func (PuzzleStatus) Descriptor

func (PuzzleStatus) Enum

func (x PuzzleStatus) Enum() *PuzzleStatus

func (PuzzleStatus) EnumDescriptor deprecated

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

Deprecated: Use PuzzleStatus.Descriptor instead.

func (PuzzleStatus) Number

func (PuzzleStatus) String

func (x PuzzleStatus) String() string

func (PuzzleStatus) Type

type PuzzleVoteRequest

type PuzzleVoteRequest struct {
	PuzzleId string `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	Vote     int32  `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

func (*PuzzleVoteRequest) Descriptor deprecated

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

Deprecated: Use PuzzleVoteRequest.ProtoReflect.Descriptor instead.

func (*PuzzleVoteRequest) GetPuzzleId

func (x *PuzzleVoteRequest) GetPuzzleId() string

func (*PuzzleVoteRequest) GetVote

func (x *PuzzleVoteRequest) GetVote() int32

func (*PuzzleVoteRequest) ProtoMessage

func (*PuzzleVoteRequest) ProtoMessage()

func (*PuzzleVoteRequest) ProtoReflect

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

func (*PuzzleVoteRequest) Reset

func (x *PuzzleVoteRequest) Reset()

func (*PuzzleVoteRequest) String

func (x *PuzzleVoteRequest) String() string

type PuzzleVoteResponse

type PuzzleVoteResponse struct {
	// contains filtered or unexported fields
}

func (*PuzzleVoteResponse) Descriptor deprecated

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

Deprecated: Use PuzzleVoteResponse.ProtoReflect.Descriptor instead.

func (*PuzzleVoteResponse) ProtoMessage

func (*PuzzleVoteResponse) ProtoMessage()

func (*PuzzleVoteResponse) ProtoReflect

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

func (*PuzzleVoteResponse) Reset

func (x *PuzzleVoteResponse) Reset()

func (*PuzzleVoteResponse) String

func (x *PuzzleVoteResponse) String() string

type StartPuzzleIdRequest

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

func (*StartPuzzleIdRequest) Descriptor deprecated

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

Deprecated: Use StartPuzzleIdRequest.ProtoReflect.Descriptor instead.

func (*StartPuzzleIdRequest) GetLexicon

func (x *StartPuzzleIdRequest) GetLexicon() string

func (*StartPuzzleIdRequest) ProtoMessage

func (*StartPuzzleIdRequest) ProtoMessage()

func (*StartPuzzleIdRequest) ProtoReflect

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

func (*StartPuzzleIdRequest) Reset

func (x *StartPuzzleIdRequest) Reset()

func (*StartPuzzleIdRequest) String

func (x *StartPuzzleIdRequest) String() string

type StartPuzzleIdResponse

type StartPuzzleIdResponse struct {
	PuzzleId    string            `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	QueryResult PuzzleQueryResult `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StartPuzzleIdResponse) Descriptor deprecated

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

Deprecated: Use StartPuzzleIdResponse.ProtoReflect.Descriptor instead.

func (*StartPuzzleIdResponse) GetPuzzleId

func (x *StartPuzzleIdResponse) GetPuzzleId() string

func (*StartPuzzleIdResponse) GetQueryResult

func (x *StartPuzzleIdResponse) GetQueryResult() PuzzleQueryResult

func (*StartPuzzleIdResponse) ProtoMessage

func (*StartPuzzleIdResponse) ProtoMessage()

func (*StartPuzzleIdResponse) ProtoReflect

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

func (*StartPuzzleIdResponse) Reset

func (x *StartPuzzleIdResponse) Reset()

func (*StartPuzzleIdResponse) String

func (x *StartPuzzleIdResponse) String() string

type SubmissionRequest

type SubmissionRequest struct {
	PuzzleId     string                   `protobuf:"bytes,1,opt,name=puzzle_id,json=puzzleId,proto3" json:"puzzle_id,omitempty"`
	Answer       *ipc.ClientGameplayEvent `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
	ShowSolution bool                     `protobuf:"varint,3,opt,name=show_solution,json=showSolution,proto3" json:"show_solution,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmissionRequest) Descriptor deprecated

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

Deprecated: Use SubmissionRequest.ProtoReflect.Descriptor instead.

func (*SubmissionRequest) GetAnswer

func (x *SubmissionRequest) GetAnswer() *ipc.ClientGameplayEvent

func (*SubmissionRequest) GetPuzzleId

func (x *SubmissionRequest) GetPuzzleId() string

func (*SubmissionRequest) GetShowSolution

func (x *SubmissionRequest) GetShowSolution() bool

func (*SubmissionRequest) ProtoMessage

func (*SubmissionRequest) ProtoMessage()

func (*SubmissionRequest) ProtoReflect

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

func (*SubmissionRequest) Reset

func (x *SubmissionRequest) Reset()

func (*SubmissionRequest) String

func (x *SubmissionRequest) String() string

type SubmissionResponse

type SubmissionResponse struct {
	UserIsCorrect bool            `protobuf:"varint,1,opt,name=user_is_correct,json=userIsCorrect,proto3" json:"user_is_correct,omitempty"`
	Answer        *AnswerResponse `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmissionResponse) Descriptor deprecated

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

Deprecated: Use SubmissionResponse.ProtoReflect.Descriptor instead.

func (*SubmissionResponse) GetAnswer

func (x *SubmissionResponse) GetAnswer() *AnswerResponse

func (*SubmissionResponse) GetUserIsCorrect

func (x *SubmissionResponse) GetUserIsCorrect() bool

func (*SubmissionResponse) ProtoMessage

func (*SubmissionResponse) ProtoMessage()

func (*SubmissionResponse) ProtoReflect

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

func (*SubmissionResponse) Reset

func (x *SubmissionResponse) Reset()

func (*SubmissionResponse) String

func (x *SubmissionResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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