implement simple tui with humans data
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "go-cli/protocol"]
|
||||||
|
path = go-cli/protocol
|
||||||
|
url = https://github.com/flowy-live/protocol
|
||||||
+206
-58
@@ -1,28 +1,91 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/charmbracelet/bubbles/viewport"
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
"github.com/charmbracelet/lipgloss"
|
||||||
|
pbhuman "github.com/flowy-live/admin-cli/genproto/helios/human"
|
||||||
|
pbkeypad "github.com/flowy-live/admin-cli/genproto/helios/keypad"
|
||||||
|
"github.com/mergestat/timediff"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
"google.golang.org/grpc"
|
||||||
|
"google.golang.org/grpc/credentials"
|
||||||
|
"google.golang.org/grpc/metadata"
|
||||||
)
|
)
|
||||||
|
|
||||||
type model struct {
|
var (
|
||||||
choices []string // items on the to-do list
|
titleStyle = lipgloss.NewStyle().
|
||||||
cursor int // which to-do list item our cursor is pointing at
|
Bold(true).
|
||||||
selected map[int]struct{} // which to-do items are selected
|
Foreground(lipgloss.Color("#7D56F4")).
|
||||||
|
Padding(0, 1).
|
||||||
|
MarginBottom(1)
|
||||||
|
|
||||||
|
selectedItemStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#FFFFFF")).
|
||||||
|
Background(lipgloss.Color("#7D56F4")).
|
||||||
|
Bold(true).
|
||||||
|
Padding(0, 1)
|
||||||
|
|
||||||
|
normalItemStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#FAFAFA")).
|
||||||
|
Padding(0, 1)
|
||||||
|
|
||||||
|
dimItemStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#666666")).
|
||||||
|
Padding(0, 1)
|
||||||
|
|
||||||
|
cursorStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#FF75B5")).
|
||||||
|
Bold(true)
|
||||||
|
|
||||||
|
helpStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#626262")).
|
||||||
|
Padding(1, 0, 0, 1)
|
||||||
|
|
||||||
|
statusStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#7D56F4")).
|
||||||
|
Bold(true)
|
||||||
|
|
||||||
|
borderStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#3C3C3C"))
|
||||||
|
|
||||||
|
timestampStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#888888")).
|
||||||
|
Italic(true)
|
||||||
|
|
||||||
|
selectedTimestampStyle = lipgloss.NewStyle().
|
||||||
|
Foreground(lipgloss.Color("#CCCCCC")).
|
||||||
|
Italic(true)
|
||||||
|
)
|
||||||
|
|
||||||
|
type HumanData struct {
|
||||||
|
Email string
|
||||||
|
DisplayName string
|
||||||
|
JoinedAt time.Time
|
||||||
|
KeypadConfiguration string
|
||||||
}
|
}
|
||||||
|
|
||||||
func initialModel() model {
|
type model struct {
|
||||||
return model{
|
humans []*HumanData
|
||||||
// Our to-do list is a grocery list
|
cursor int
|
||||||
choices: []string{"Buy carrots", "Buy celery", "Buy kohlrabi"},
|
selectedHumanEmail string
|
||||||
|
viewport viewport.Model
|
||||||
|
ready bool
|
||||||
|
showKeypad bool
|
||||||
|
}
|
||||||
|
|
||||||
// A map which indicates which choices are selected. We're using
|
func initialModel(humans []*HumanData) model {
|
||||||
// the map like a mathematical set. The keys refer to the indexes
|
return model{
|
||||||
// of the `choices` slice, above.
|
humans: humans,
|
||||||
selected: make(map[int]struct{}),
|
cursor: 0,
|
||||||
|
showKeypad: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,81 +95,166 @@ func (m model) Init() tea.Cmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
|
var (
|
||||||
|
cmd tea.Cmd
|
||||||
|
cmds []tea.Cmd
|
||||||
|
)
|
||||||
|
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
|
case tea.WindowSizeMsg:
|
||||||
|
headerHeight := 3 // title + status + separator
|
||||||
|
footerHeight := 2 // help text
|
||||||
|
verticalMarginHeight := headerHeight + footerHeight
|
||||||
|
|
||||||
|
if !m.ready {
|
||||||
|
m.viewport = viewport.New(msg.Width, msg.Height-verticalMarginHeight)
|
||||||
|
m.viewport.YPosition = headerHeight
|
||||||
|
m.viewport.SetContent(m.renderList())
|
||||||
|
m.ready = true
|
||||||
|
} else {
|
||||||
|
m.viewport.Width = msg.Width
|
||||||
|
m.viewport.Height = msg.Height - verticalMarginHeight
|
||||||
|
}
|
||||||
|
|
||||||
// Is it a key press?
|
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
|
|
||||||
// Cool, what was the actual key pressed?
|
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
|
|
||||||
// These keys should exit the program.
|
|
||||||
case "ctrl+c", "q":
|
case "ctrl+c", "q":
|
||||||
return m, tea.Quit
|
return m, tea.Quit
|
||||||
|
|
||||||
// The "up" and "k" keys move the cursor up
|
|
||||||
case "up", "k":
|
case "up", "k":
|
||||||
if m.cursor > 0 {
|
if m.cursor > 0 {
|
||||||
m.cursor--
|
m.cursor--
|
||||||
|
m.viewport.SetContent(m.renderList())
|
||||||
}
|
}
|
||||||
|
|
||||||
// The "down" and "j" keys move the cursor down
|
|
||||||
case "down", "j":
|
case "down", "j":
|
||||||
if m.cursor < len(m.choices)-1 {
|
if m.cursor < len(m.humans)-1 {
|
||||||
m.cursor++
|
m.cursor++
|
||||||
|
m.viewport.SetContent(m.renderList())
|
||||||
}
|
}
|
||||||
|
case "t":
|
||||||
// The "enter" key and the spacebar (a literal space) toggle
|
m.showKeypad = !m.showKeypad
|
||||||
// the selected state for the item that the cursor is pointing at.
|
m.viewport.SetContent(m.renderList())
|
||||||
case "enter", " ":
|
|
||||||
_, ok := m.selected[m.cursor]
|
|
||||||
if ok {
|
|
||||||
delete(m.selected, m.cursor)
|
|
||||||
} else {
|
|
||||||
m.selected[m.cursor] = struct{}{}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the updated model to the Bubble Tea runtime for processing.
|
m.viewport, cmd = m.viewport.Update(msg)
|
||||||
// Note that we're not returning a command.
|
cmds = append(cmds, cmd)
|
||||||
return m, nil
|
|
||||||
|
return m, tea.Batch(cmds...)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m model) renderList() string {
|
||||||
|
var b strings.Builder
|
||||||
|
for i, human := range m.humans {
|
||||||
|
email := human.Email
|
||||||
|
|
||||||
|
// Get relative time ago
|
||||||
|
timeAgo := timediff.TimeDiff(human.JoinedAt)
|
||||||
|
|
||||||
|
if m.cursor == i {
|
||||||
|
// Current selection - highlighted
|
||||||
|
cursor := cursorStyle.Render("▸")
|
||||||
|
item := selectedItemStyle.Render(email)
|
||||||
|
timestamp := selectedTimestampStyle.Render(fmt.Sprintf("joined %s", timeAgo))
|
||||||
|
b.WriteString(fmt.Sprintf("%s %s %s\n", cursor, item, timestamp))
|
||||||
|
if m.showKeypad {
|
||||||
|
b.WriteString(fmt.Sprintf("%s\n", selectedItemStyle.Render(human.KeypadConfiguration)))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Normal item
|
||||||
|
cursor := dimItemStyle.Render(" ")
|
||||||
|
item := normalItemStyle.Render(email)
|
||||||
|
timestamp := timestampStyle.Render(fmt.Sprintf("joined %s", timeAgo))
|
||||||
|
b.WriteString(fmt.Sprintf("%s %s %s\n", cursor, item, timestamp))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return b.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m model) View() string {
|
func (m model) View() string {
|
||||||
// The header
|
if !m.ready {
|
||||||
s := "What should we buy at the market?\n\n"
|
return "\n Initializing..."
|
||||||
|
|
||||||
// Iterate over our choices
|
|
||||||
for i, choice := range m.choices {
|
|
||||||
|
|
||||||
// Is the cursor pointing at this choice?
|
|
||||||
cursor := " " // no cursor
|
|
||||||
if m.cursor == i {
|
|
||||||
cursor = ">" // cursor!
|
|
||||||
}
|
|
||||||
|
|
||||||
// Is this choice selected?
|
|
||||||
checked := " " // not selected
|
|
||||||
if _, ok := m.selected[i]; ok {
|
|
||||||
checked = "x" // selected!
|
|
||||||
}
|
|
||||||
|
|
||||||
// Render the row
|
|
||||||
s += fmt.Sprintf("%s [%s] %s\n", cursor, checked, choice)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The footer
|
// Header with main data
|
||||||
s += "\nPress q to quit.\n"
|
sevenDaysAgo := time.Now().AddDate(0, 0, -7)
|
||||||
|
pastSevenDaysSignupsCount := 0
|
||||||
|
for _, human := range m.humans {
|
||||||
|
if human.JoinedAt.After(sevenDaysAgo) {
|
||||||
|
pastSevenDaysSignupsCount++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
header := titleStyle.Render(fmt.Sprintf("👥 Humans | %d total | %d in the past 7 days", len(m.humans), pastSevenDaysSignupsCount))
|
||||||
|
|
||||||
// Send the UI for rendering
|
// Status bar showing current position
|
||||||
return s
|
statusBar := statusStyle.Render(fmt.Sprintf(" %d/%d", m.cursor+1, len(m.humans)))
|
||||||
|
|
||||||
|
// Help text
|
||||||
|
help := helpStyle.Render("↑/k up • ↓/j down • t toggle keypads • q quit")
|
||||||
|
|
||||||
|
// Separator
|
||||||
|
separator := borderStyle.Render(strings.Repeat("─", m.viewport.Width))
|
||||||
|
|
||||||
|
return fmt.Sprintf("%s%s\n%s\n%s\n%s", header, statusBar, separator, m.viewport.View(), help)
|
||||||
|
}
|
||||||
|
|
||||||
|
func unaryInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
||||||
|
md := metadata.Pairs("authorization", "talksik")
|
||||||
|
ctx = metadata.NewOutgoingContext(ctx, md)
|
||||||
|
return invoker(ctx, method, req, reply, cc, opts...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
logrus.Infof("hello world")
|
logrus.Infof("hello world")
|
||||||
|
|
||||||
p := tea.NewProgram(initialModel())
|
heliosAddr := "helios.flowy.live:443"
|
||||||
|
creds := credentials.NewTLS(&tls.Config{
|
||||||
|
InsecureSkipVerify: true,
|
||||||
|
})
|
||||||
|
heliosService, err := grpc.NewClient(heliosAddr, grpc.WithTransportCredentials(creds), grpc.WithUnaryInterceptor(unaryInterceptor))
|
||||||
|
if err != nil {
|
||||||
|
logrus.Fatalf("connection to aero server invalid: %v", err)
|
||||||
|
}
|
||||||
|
defer heliosService.Close()
|
||||||
|
|
||||||
|
humanService := pbhuman.NewHumanServiceClient(heliosService)
|
||||||
|
keypadService := pbkeypad.NewKeypadServiceClient(heliosService)
|
||||||
|
humansResponse, err := humanService.ListHumans(context.Background(), &pbhuman.ListHumansRequest{})
|
||||||
|
if err != nil {
|
||||||
|
logrus.Fatalf("unable to fetch humans: %v", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
keypadsResponse, err := keypadService.ListKeypads(context.Background(), &pbkeypad.ListKeypadsRequest{})
|
||||||
|
if err != nil {
|
||||||
|
logrus.Fatalf("unable to fetch keypads: %v", err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
keypadsResponse.GetHumanKeypads()[0].GetHumanId()
|
||||||
|
keypadsResponse.GetHumanKeypads()[0].GetYamlConfig()
|
||||||
|
|
||||||
|
logrus.Info("connected to helios")
|
||||||
|
logrus.Infof("fetched %d humans", len(humansResponse.GetHumans()))
|
||||||
|
|
||||||
|
humansData := []*HumanData{}
|
||||||
|
for _, human := range humansResponse.GetHumans() {
|
||||||
|
keypadConfiguration := ""
|
||||||
|
for _, keypad := range keypadsResponse.GetHumanKeypads() {
|
||||||
|
if keypad.GetHumanId() == human.GetId() {
|
||||||
|
keypadConfiguration = keypad.GetYamlConfig()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
humansData = append(humansData, &HumanData{
|
||||||
|
Email: human.GetEmail(),
|
||||||
|
DisplayName: human.GetDisplayName(),
|
||||||
|
JoinedAt: human.GetJoinedAt().AsTime(),
|
||||||
|
KeypadConfiguration: keypadConfiguration,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
p := tea.NewProgram(initialModel(humansData))
|
||||||
if _, err := p.Run(); err != nil {
|
if _, err := p.Run(); err != nil {
|
||||||
fmt.Printf("Alas, there's been an error: %v", err)
|
fmt.Printf("Alas, there's been an error: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|||||||
Executable
+36
@@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/bash -eu
|
||||||
|
|
||||||
|
PATH=$PATH:$(go env GOPATH)/bin
|
||||||
|
|
||||||
|
# Default values
|
||||||
|
protodir="./protocol"
|
||||||
|
outdir="./genproto"
|
||||||
|
|
||||||
|
# Parse command-line options
|
||||||
|
while getopts "p:o:" opt; do
|
||||||
|
case $opt in
|
||||||
|
p) protodir="$OPTARG" ;;
|
||||||
|
o) outdir="$OPTARG" ;;
|
||||||
|
\?) echo "Invalid option: -$OPTARG" >&2; exit 1 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
# Print the directories for verification
|
||||||
|
echo "Proto directory: $protodir"
|
||||||
|
echo "Output directory: $outdir"
|
||||||
|
|
||||||
|
rm -rf $outdir
|
||||||
|
mkdir -p $outdir
|
||||||
|
|
||||||
|
# use the public image from dockerhub which contains tools for protoc & golang/grpc
|
||||||
|
docker run --rm \
|
||||||
|
-v "$protodir/":/protocol \
|
||||||
|
-v "$outdir":/genproto \
|
||||||
|
--workdir / \
|
||||||
|
talksik/golang-protoc:latest \
|
||||||
|
protoc --proto_path=./protocol \
|
||||||
|
--go_out=./genproto \
|
||||||
|
--go_opt=paths=source_relative \
|
||||||
|
--go-grpc_out=./genproto \
|
||||||
|
--go-grpc_opt=paths=source_relative \
|
||||||
|
$(find ./protocol -name "*.proto")
|
||||||
@@ -0,0 +1,554 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: aero/main.proto
|
||||||
|
|
||||||
|
package pbaero
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
_ "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type MagicLinkEmailData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
MagicLink string `protobuf:"bytes,1,opt,name=magic_link,json=magicLink,proto3" json:"magic_link,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MagicLinkEmailData) Reset() {
|
||||||
|
*x = MagicLinkEmailData{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MagicLinkEmailData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MagicLinkEmailData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MagicLinkEmailData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 MagicLinkEmailData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MagicLinkEmailData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MagicLinkEmailData) GetMagicLink() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MagicLink
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GenericFlowyAdminAlertData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GenericFlowyAdminAlertData) Reset() {
|
||||||
|
*x = GenericFlowyAdminAlertData{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GenericFlowyAdminAlertData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GenericFlowyAdminAlertData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GenericFlowyAdminAlertData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 GenericFlowyAdminAlertData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GenericFlowyAdminAlertData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GenericFlowyAdminAlertData) GetMessage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Message
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type KeypadConnectCodeData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *KeypadConnectCodeData) Reset() {
|
||||||
|
*x = KeypadConnectCodeData{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *KeypadConnectCodeData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*KeypadConnectCodeData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *KeypadConnectCodeData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 KeypadConnectCodeData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*KeypadConnectCodeData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *KeypadConnectCodeData) GetCode() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Code
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SimpleTextData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Send raw text-only emails
|
||||||
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleTextData) Reset() {
|
||||||
|
*x = SimpleTextData{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleTextData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SimpleTextData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SimpleTextData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 SimpleTextData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SimpleTextData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleTextData) GetMessage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Message
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SimpleHtmlData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Html string `protobuf:"bytes,1,opt,name=html,proto3" json:"html,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleHtmlData) Reset() {
|
||||||
|
*x = SimpleHtmlData{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleHtmlData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SimpleHtmlData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SimpleHtmlData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 SimpleHtmlData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SimpleHtmlData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SimpleHtmlData) GetHtml() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Html
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ToEmails []string `protobuf:"bytes,1,rep,name=to_emails,json=toEmails,proto3" json:"to_emails,omitempty"`
|
||||||
|
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
|
||||||
|
// Types that are assignable to TemplateData:
|
||||||
|
//
|
||||||
|
// *ShootEmailRequest_MagicLinkData
|
||||||
|
// *ShootEmailRequest_GenericFlowyAdminAlertData
|
||||||
|
// *ShootEmailRequest_KeypadConnectCodeData
|
||||||
|
// *ShootEmailRequest_SimpleTextData
|
||||||
|
// *ShootEmailRequest_SimpleHtmlData
|
||||||
|
TemplateData isShootEmailRequest_TemplateData `protobuf_oneof:"template_data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) Reset() {
|
||||||
|
*x = ShootEmailRequest{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 ShootEmailRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ShootEmailRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetToEmails() []string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ToEmails
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetSubject() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Subject
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ShootEmailRequest) GetTemplateData() isShootEmailRequest_TemplateData {
|
||||||
|
if m != nil {
|
||||||
|
return m.TemplateData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetMagicLinkData() *MagicLinkEmailData {
|
||||||
|
if x, ok := x.GetTemplateData().(*ShootEmailRequest_MagicLinkData); ok {
|
||||||
|
return x.MagicLinkData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetGenericFlowyAdminAlertData() *GenericFlowyAdminAlertData {
|
||||||
|
if x, ok := x.GetTemplateData().(*ShootEmailRequest_GenericFlowyAdminAlertData); ok {
|
||||||
|
return x.GenericFlowyAdminAlertData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetKeypadConnectCodeData() *KeypadConnectCodeData {
|
||||||
|
if x, ok := x.GetTemplateData().(*ShootEmailRequest_KeypadConnectCodeData); ok {
|
||||||
|
return x.KeypadConnectCodeData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetSimpleTextData() *SimpleTextData {
|
||||||
|
if x, ok := x.GetTemplateData().(*ShootEmailRequest_SimpleTextData); ok {
|
||||||
|
return x.SimpleTextData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailRequest) GetSimpleHtmlData() *SimpleHtmlData {
|
||||||
|
if x, ok := x.GetTemplateData().(*ShootEmailRequest_SimpleHtmlData); ok {
|
||||||
|
return x.SimpleHtmlData
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type isShootEmailRequest_TemplateData interface {
|
||||||
|
isShootEmailRequest_TemplateData()
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest_MagicLinkData struct {
|
||||||
|
MagicLinkData *MagicLinkEmailData `protobuf:"bytes,3,opt,name=magic_link_data,json=magicLinkData,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest_GenericFlowyAdminAlertData struct {
|
||||||
|
GenericFlowyAdminAlertData *GenericFlowyAdminAlertData `protobuf:"bytes,4,opt,name=generic_flowy_admin_alert_data,json=genericFlowyAdminAlertData,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest_KeypadConnectCodeData struct {
|
||||||
|
KeypadConnectCodeData *KeypadConnectCodeData `protobuf:"bytes,5,opt,name=keypad_connect_code_data,json=keypadConnectCodeData,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest_SimpleTextData struct {
|
||||||
|
SimpleTextData *SimpleTextData `protobuf:"bytes,6,opt,name=simple_text_data,json=simpleTextData,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type ShootEmailRequest_SimpleHtmlData struct {
|
||||||
|
SimpleHtmlData *SimpleHtmlData `protobuf:"bytes,7,opt,name=simple_html_data,json=simpleHtmlData,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest_MagicLinkData) isShootEmailRequest_TemplateData() {}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest_GenericFlowyAdminAlertData) isShootEmailRequest_TemplateData() {}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest_KeypadConnectCodeData) isShootEmailRequest_TemplateData() {}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest_SimpleTextData) isShootEmailRequest_TemplateData() {}
|
||||||
|
|
||||||
|
func (*ShootEmailRequest_SimpleHtmlData) isShootEmailRequest_TemplateData() {}
|
||||||
|
|
||||||
|
type ShootEmailResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailResponse) Reset() {
|
||||||
|
*x = ShootEmailResponse{}
|
||||||
|
mi := &file_aero_main_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ShootEmailResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ShootEmailResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ShootEmailResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_aero_main_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 ShootEmailResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ShootEmailResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_aero_main_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_aero_main_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_aero_main_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x0f, 0x61, 0x65, 0x72, 0x6f, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x12, 0x04, 0x61, 0x65, 0x72, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
|
||||||
|
0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x33, 0x0a, 0x12, 0x4d, 0x61, 0x67, 0x69,
|
||||||
|
0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d,
|
||||||
|
0x0a, 0x0a, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x22, 0x36, 0x0a,
|
||||||
|
0x1a, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||||
|
0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d,
|
||||||
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
|
||||||
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x2b, 0x0a, 0x15, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43,
|
||||||
|
0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12,
|
||||||
|
0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f,
|
||||||
|
0x64, 0x65, 0x22, 0x2a, 0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x78, 0x74,
|
||||||
|
0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x24,
|
||||||
|
0x0a, 0x0e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48, 0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61,
|
||||||
|
0x12, 0x12, 0x0a, 0x04, 0x68, 0x74, 0x6d, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||||
|
0x68, 0x74, 0x6d, 0x6c, 0x22, 0xe3, 0x03, 0x0a, 0x11, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d,
|
||||||
|
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f,
|
||||||
|
0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74,
|
||||||
|
0x6f, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65,
|
||||||
|
0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63,
|
||||||
|
0x74, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f,
|
||||||
|
0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x65, 0x72,
|
||||||
|
0x6f, 0x2e, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x45, 0x6d, 0x61, 0x69, 0x6c,
|
||||||
|
0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4c, 0x69, 0x6e,
|
||||||
|
0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x66, 0x0a, 0x1e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63,
|
||||||
|
0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6c, 0x65,
|
||||||
|
0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
|
||||||
|
0x61, 0x65, 0x72, 0x6f, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77,
|
||||||
|
0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48,
|
||||||
|
0x00, 0x52, 0x1a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41,
|
||||||
|
0x64, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x65, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x56, 0x0a,
|
||||||
|
0x18, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x5f,
|
||||||
|
0x63, 0x6f, 0x64, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x1b, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43, 0x6f, 0x6e,
|
||||||
|
0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x15,
|
||||||
|
0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64,
|
||||||
|
0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x5f,
|
||||||
|
0x74, 0x65, 0x78, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x14, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x65, 0x78,
|
||||||
|
0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54,
|
||||||
|
0x65, 0x78, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x70, 0x6c,
|
||||||
|
0x65, 0x5f, 0x68, 0x74, 0x6d, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||||
|
0x0b, 0x32, 0x14, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x48,
|
||||||
|
0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x69, 0x6d, 0x70, 0x6c,
|
||||||
|
0x65, 0x48, 0x74, 0x6d, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x42, 0x0f, 0x0a, 0x0d, 0x74, 0x65, 0x6d,
|
||||||
|
0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x68,
|
||||||
|
0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||||
|
0x32, 0x4c, 0x0a, 0x07, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x41, 0x0a, 0x0a, 0x53,
|
||||||
|
0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x17, 0x2e, 0x61, 0x65, 0x72, 0x6f,
|
||||||
|
0x2e, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x65, 0x72, 0x6f, 0x2e, 0x53, 0x68, 0x6f, 0x6f, 0x74, 0x45,
|
||||||
|
0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x30,
|
||||||
|
0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f,
|
||||||
|
0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2f, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x61, 0x65, 0x72, 0x6f, 0x3b, 0x70, 0x62, 0x61, 0x65, 0x72, 0x6f,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_aero_main_proto_rawDescOnce sync.Once
|
||||||
|
file_aero_main_proto_rawDescData = file_aero_main_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_aero_main_proto_rawDescGZIP() []byte {
|
||||||
|
file_aero_main_proto_rawDescOnce.Do(func() {
|
||||||
|
file_aero_main_proto_rawDescData = protoimpl.X.CompressGZIP(file_aero_main_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_aero_main_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_aero_main_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||||
|
var file_aero_main_proto_goTypes = []any{
|
||||||
|
(*MagicLinkEmailData)(nil), // 0: aero.MagicLinkEmailData
|
||||||
|
(*GenericFlowyAdminAlertData)(nil), // 1: aero.GenericFlowyAdminAlertData
|
||||||
|
(*KeypadConnectCodeData)(nil), // 2: aero.KeypadConnectCodeData
|
||||||
|
(*SimpleTextData)(nil), // 3: aero.SimpleTextData
|
||||||
|
(*SimpleHtmlData)(nil), // 4: aero.SimpleHtmlData
|
||||||
|
(*ShootEmailRequest)(nil), // 5: aero.ShootEmailRequest
|
||||||
|
(*ShootEmailResponse)(nil), // 6: aero.ShootEmailResponse
|
||||||
|
}
|
||||||
|
var file_aero_main_proto_depIdxs = []int32{
|
||||||
|
0, // 0: aero.ShootEmailRequest.magic_link_data:type_name -> aero.MagicLinkEmailData
|
||||||
|
1, // 1: aero.ShootEmailRequest.generic_flowy_admin_alert_data:type_name -> aero.GenericFlowyAdminAlertData
|
||||||
|
2, // 2: aero.ShootEmailRequest.keypad_connect_code_data:type_name -> aero.KeypadConnectCodeData
|
||||||
|
3, // 3: aero.ShootEmailRequest.simple_text_data:type_name -> aero.SimpleTextData
|
||||||
|
4, // 4: aero.ShootEmailRequest.simple_html_data:type_name -> aero.SimpleHtmlData
|
||||||
|
5, // 5: aero.Primary.ShootEmail:input_type -> aero.ShootEmailRequest
|
||||||
|
6, // 6: aero.Primary.ShootEmail:output_type -> aero.ShootEmailResponse
|
||||||
|
6, // [6:7] is the sub-list for method output_type
|
||||||
|
5, // [5:6] is the sub-list for method input_type
|
||||||
|
5, // [5:5] is the sub-list for extension type_name
|
||||||
|
5, // [5:5] is the sub-list for extension extendee
|
||||||
|
0, // [0:5] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_aero_main_proto_init() }
|
||||||
|
func file_aero_main_proto_init() {
|
||||||
|
if File_aero_main_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_aero_main_proto_msgTypes[5].OneofWrappers = []any{
|
||||||
|
(*ShootEmailRequest_MagicLinkData)(nil),
|
||||||
|
(*ShootEmailRequest_GenericFlowyAdminAlertData)(nil),
|
||||||
|
(*ShootEmailRequest_KeypadConnectCodeData)(nil),
|
||||||
|
(*ShootEmailRequest_SimpleTextData)(nil),
|
||||||
|
(*ShootEmailRequest_SimpleHtmlData)(nil),
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_aero_main_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 7,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_aero_main_proto_goTypes,
|
||||||
|
DependencyIndexes: file_aero_main_proto_depIdxs,
|
||||||
|
MessageInfos: file_aero_main_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_aero_main_proto = out.File
|
||||||
|
file_aero_main_proto_rawDesc = nil
|
||||||
|
file_aero_main_proto_goTypes = nil
|
||||||
|
file_aero_main_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: aero/main.proto
|
||||||
|
|
||||||
|
package pbaero
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
Primary_ShootEmail_FullMethodName = "/aero.Primary/ShootEmail"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PrimaryClient is the client API for Primary service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type PrimaryClient interface {
|
||||||
|
ShootEmail(ctx context.Context, in *ShootEmailRequest, opts ...grpc.CallOption) (*ShootEmailResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type primaryClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPrimaryClient(cc grpc.ClientConnInterface) PrimaryClient {
|
||||||
|
return &primaryClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *primaryClient) ShootEmail(ctx context.Context, in *ShootEmailRequest, opts ...grpc.CallOption) (*ShootEmailResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ShootEmailResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Primary_ShootEmail_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PrimaryServer is the server API for Primary service.
|
||||||
|
// All implementations must embed UnimplementedPrimaryServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type PrimaryServer interface {
|
||||||
|
ShootEmail(context.Context, *ShootEmailRequest) (*ShootEmailResponse, error)
|
||||||
|
mustEmbedUnimplementedPrimaryServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedPrimaryServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedPrimaryServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedPrimaryServer) ShootEmail(context.Context, *ShootEmailRequest) (*ShootEmailResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ShootEmail not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedPrimaryServer) mustEmbedUnimplementedPrimaryServer() {}
|
||||||
|
func (UnimplementedPrimaryServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafePrimaryServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to PrimaryServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafePrimaryServer interface {
|
||||||
|
mustEmbedUnimplementedPrimaryServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterPrimaryServer(s grpc.ServiceRegistrar, srv PrimaryServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedPrimaryServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&Primary_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Primary_ShootEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ShootEmailRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(PrimaryServer).ShootEmail(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Primary_ShootEmail_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(PrimaryServer).ShootEmail(ctx, req.(*ShootEmailRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Primary_ServiceDesc is the grpc.ServiceDesc for Primary service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var Primary_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "aero.Primary",
|
||||||
|
HandlerType: (*PrimaryServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "ShootEmail",
|
||||||
|
Handler: _Primary_ShootEmail_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "aero/main.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: greeter/service.proto
|
||||||
|
|
||||||
|
package pbgreeter
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type SayHelloRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloRequest) Reset() {
|
||||||
|
*x = SayHelloRequest{}
|
||||||
|
mi := &file_greeter_service_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SayHelloRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SayHelloRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greeter_service_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 SayHelloRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SayHelloRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greeter_service_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloRequest) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SayHelloResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloResponse) Reset() {
|
||||||
|
*x = SayHelloResponse{}
|
||||||
|
mi := &file_greeter_service_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SayHelloResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SayHelloResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greeter_service_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 SayHelloResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SayHelloResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greeter_service_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SayHelloResponse) GetMessage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Message
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_greeter_service_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_greeter_service_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x15, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||||||
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72,
|
||||||
|
0x22, 0x25, 0x0a, 0x0f, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x53, 0x61, 0x79, 0x48, 0x65,
|
||||||
|
0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
|
||||||
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
|
||||||
|
0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x53, 0x0a, 0x0e, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72,
|
||||||
|
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65,
|
||||||
|
0x6c, 0x6c, 0x6f, 0x12, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x61,
|
||||||
|
0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e,
|
||||||
|
0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69,
|
||||||
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c,
|
||||||
|
0x69, 0x76, 0x65, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
|
||||||
|
0x2f, 0x67, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x3b, 0x70, 0x62, 0x67, 0x72, 0x65, 0x65, 0x74,
|
||||||
|
0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_greeter_service_proto_rawDescOnce sync.Once
|
||||||
|
file_greeter_service_proto_rawDescData = file_greeter_service_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_greeter_service_proto_rawDescGZIP() []byte {
|
||||||
|
file_greeter_service_proto_rawDescOnce.Do(func() {
|
||||||
|
file_greeter_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_greeter_service_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_greeter_service_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_greeter_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
|
var file_greeter_service_proto_goTypes = []any{
|
||||||
|
(*SayHelloRequest)(nil), // 0: greeter.SayHelloRequest
|
||||||
|
(*SayHelloResponse)(nil), // 1: greeter.SayHelloResponse
|
||||||
|
}
|
||||||
|
var file_greeter_service_proto_depIdxs = []int32{
|
||||||
|
0, // 0: greeter.GreeterService.SayHello:input_type -> greeter.SayHelloRequest
|
||||||
|
1, // 1: greeter.GreeterService.SayHello:output_type -> greeter.SayHelloResponse
|
||||||
|
1, // [1:2] is the sub-list for method output_type
|
||||||
|
0, // [0:1] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_greeter_service_proto_init() }
|
||||||
|
func file_greeter_service_proto_init() {
|
||||||
|
if File_greeter_service_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_greeter_service_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 2,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_greeter_service_proto_goTypes,
|
||||||
|
DependencyIndexes: file_greeter_service_proto_depIdxs,
|
||||||
|
MessageInfos: file_greeter_service_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_greeter_service_proto = out.File
|
||||||
|
file_greeter_service_proto_rawDesc = nil
|
||||||
|
file_greeter_service_proto_goTypes = nil
|
||||||
|
file_greeter_service_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: greeter/service.proto
|
||||||
|
|
||||||
|
package pbgreeter
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
GreeterService_SayHello_FullMethodName = "/greeter.GreeterService/SayHello"
|
||||||
|
)
|
||||||
|
|
||||||
|
// GreeterServiceClient is the client API for GreeterService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type GreeterServiceClient interface {
|
||||||
|
SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type greeterServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGreeterServiceClient(cc grpc.ClientConnInterface) GreeterServiceClient {
|
||||||
|
return &greeterServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *greeterServiceClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SayHelloResponse)
|
||||||
|
err := c.cc.Invoke(ctx, GreeterService_SayHello_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GreeterServiceServer is the server API for GreeterService service.
|
||||||
|
// All implementations must embed UnimplementedGreeterServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type GreeterServiceServer interface {
|
||||||
|
SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
|
||||||
|
mustEmbedUnimplementedGreeterServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedGreeterServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedGreeterServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedGreeterServiceServer) SayHello(context.Context, *SayHelloRequest) (*SayHelloResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedGreeterServiceServer) mustEmbedUnimplementedGreeterServiceServer() {}
|
||||||
|
func (UnimplementedGreeterServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeGreeterServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to GreeterServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeGreeterServiceServer interface {
|
||||||
|
mustEmbedUnimplementedGreeterServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterGreeterServiceServer(s grpc.ServiceRegistrar, srv GreeterServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedGreeterServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&GreeterService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _GreeterService_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SayHelloRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(GreeterServiceServer).SayHello(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: GreeterService_SayHello_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(GreeterServiceServer).SayHello(ctx, req.(*SayHelloRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// GreeterService_ServiceDesc is the grpc.ServiceDesc for GreeterService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var GreeterService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "greeter.GreeterService",
|
||||||
|
HandlerType: (*GreeterServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "SayHello",
|
||||||
|
Handler: _GreeterService_SayHello_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "greeter/service.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,905 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/auth/auth.proto
|
||||||
|
|
||||||
|
package pbauth
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type AuthRole int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
AuthRole_AUTH_ROLE_UNSPECIFIED AuthRole = 0
|
||||||
|
AuthRole_AUTH_ROLE_HUMAN AuthRole = 1
|
||||||
|
AuthRole_AUTH_ROLE_ADMIN AuthRole = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for AuthRole.
|
||||||
|
var (
|
||||||
|
AuthRole_name = map[int32]string{
|
||||||
|
0: "AUTH_ROLE_UNSPECIFIED",
|
||||||
|
1: "AUTH_ROLE_HUMAN",
|
||||||
|
2: "AUTH_ROLE_ADMIN",
|
||||||
|
}
|
||||||
|
AuthRole_value = map[string]int32{
|
||||||
|
"AUTH_ROLE_UNSPECIFIED": 0,
|
||||||
|
"AUTH_ROLE_HUMAN": 1,
|
||||||
|
"AUTH_ROLE_ADMIN": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x AuthRole) Enum() *AuthRole {
|
||||||
|
p := new(AuthRole)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x AuthRole) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (AuthRole) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_auth_auth_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (AuthRole) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_auth_auth_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x AuthRole) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use AuthRole.Descriptor instead.
|
||||||
|
func (AuthRole) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ClientType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
ClientType_CLIENT_TYPE_UNSPECIFIED ClientType = 0
|
||||||
|
ClientType_CLIENT_TYPE_KEYPAD ClientType = 1
|
||||||
|
ClientType_CLIENT_TYPE_COMPUTER_DAEMON ClientType = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for ClientType.
|
||||||
|
var (
|
||||||
|
ClientType_name = map[int32]string{
|
||||||
|
0: "CLIENT_TYPE_UNSPECIFIED",
|
||||||
|
1: "CLIENT_TYPE_KEYPAD",
|
||||||
|
2: "CLIENT_TYPE_COMPUTER_DAEMON",
|
||||||
|
}
|
||||||
|
ClientType_value = map[string]int32{
|
||||||
|
"CLIENT_TYPE_UNSPECIFIED": 0,
|
||||||
|
"CLIENT_TYPE_KEYPAD": 1,
|
||||||
|
"CLIENT_TYPE_COMPUTER_DAEMON": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x ClientType) Enum() *ClientType {
|
||||||
|
p := new(ClientType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_auth_auth_proto_enumTypes[1].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientType) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_auth_auth_proto_enumTypes[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ClientType.Descriptor instead.
|
||||||
|
func (ClientType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ErrorDetail struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ErrorCode string `protobuf:"bytes,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` // Custom error code (e.g., "USER_NOT_FOUND")
|
||||||
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Human-readable message
|
||||||
|
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Optional extra info
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) Reset() {
|
||||||
|
*x = ErrorDetail{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ErrorDetail) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 ErrorDetail.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ErrorDetail) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) GetErrorCode() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ErrorCode
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) GetMessage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Message
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ErrorDetail) GetMetadata() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Metadata
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthedHuman struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
AuthRole AuthRole `protobuf:"varint,4,opt,name=auth_role,json=authRole,proto3,enum=helios.auth.AuthRole" json:"auth_role,omitempty"`
|
||||||
|
// Whether or not this authed human is invited to use flowy (from the waitlist)
|
||||||
|
IsInvited bool `protobuf:"varint,5,opt,name=is_invited,json=isInvited,proto3" json:"is_invited,omitempty"`
|
||||||
|
ClientType ClientType `protobuf:"varint,6,opt,name=client_type,json=clientType,proto3,enum=helios.auth.ClientType" json:"client_type,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) Reset() {
|
||||||
|
*x = AuthedHuman{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AuthedHuman) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 AuthedHuman.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AuthedHuman) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetAuthRole() AuthRole {
|
||||||
|
if x != nil {
|
||||||
|
return x.AuthRole
|
||||||
|
}
|
||||||
|
return AuthRole_AUTH_ROLE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetIsInvited() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.IsInvited
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHuman) GetClientType() ClientType {
|
||||||
|
if x != nil {
|
||||||
|
return x.ClientType
|
||||||
|
}
|
||||||
|
return ClientType_CLIENT_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
type RegisterRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterRequest) Reset() {
|
||||||
|
*x = RegisterRequest{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*RegisterRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 RegisterRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterRequest) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type RegisterResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterResponse) Reset() {
|
||||||
|
*x = RegisterResponse{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RegisterResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*RegisterResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 RegisterResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignInRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
ClientType ClientType `protobuf:"varint,2,opt,name=client_type,json=clientType,proto3,enum=helios.auth.ClientType" json:"client_type,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInRequest) Reset() {
|
||||||
|
*x = SignInRequest{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignInRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignInRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignInRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignInRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInRequest) GetClientType() ClientType {
|
||||||
|
if x != nil {
|
||||||
|
return x.ClientType
|
||||||
|
}
|
||||||
|
return ClientType_CLIENT_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignInResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInResponse) Reset() {
|
||||||
|
*x = SignInResponse{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignInResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignInResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignInResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignInResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignInVerifyRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyRequest) Reset() {
|
||||||
|
*x = SignInVerifyRequest{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignInVerifyRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignInVerifyRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignInVerifyRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignInVerifyRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyRequest) GetCode() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Code
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignInVerifyResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Please add this to metadata of future requests under the key "authorization"
|
||||||
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||||||
|
Role AuthRole `protobuf:"varint,2,opt,name=role,proto3,enum=helios.auth.AuthRole" json:"role,omitempty"`
|
||||||
|
ClientType ClientType `protobuf:"varint,3,opt,name=client_type,json=clientType,proto3,enum=helios.auth.ClientType" json:"client_type,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) Reset() {
|
||||||
|
*x = SignInVerifyResponse{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignInVerifyResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignInVerifyResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignInVerifyResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) GetToken() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Token
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) GetRole() AuthRole {
|
||||||
|
if x != nil {
|
||||||
|
return x.Role
|
||||||
|
}
|
||||||
|
return AuthRole_AUTH_ROLE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignInVerifyResponse) GetClientType() ClientType {
|
||||||
|
if x != nil {
|
||||||
|
return x.ClientType
|
||||||
|
}
|
||||||
|
return ClientType_CLIENT_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignOutRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignOutRequest) Reset() {
|
||||||
|
*x = SignOutRequest{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[8]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignOutRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignOutRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignOutRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignOutRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignOutRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
type SignOutResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignOutResponse) Reset() {
|
||||||
|
*x = SignOutResponse{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[9]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SignOutResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SignOutResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SignOutResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 SignOutResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SignOutResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{9}
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthedHumanRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHumanRequest) Reset() {
|
||||||
|
*x = AuthedHumanRequest{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHumanRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AuthedHumanRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AuthedHumanRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 AuthedHumanRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AuthedHumanRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{10}
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthedHumanResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
AuthedHuman *AuthedHuman `protobuf:"bytes,1,opt,name=authed_human,json=authedHuman,proto3" json:"authed_human,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHumanResponse) Reset() {
|
||||||
|
*x = AuthedHumanResponse{}
|
||||||
|
mi := &file_helios_auth_auth_proto_msgTypes[11]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHumanResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AuthedHumanResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AuthedHumanResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_auth_auth_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 AuthedHumanResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AuthedHumanResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_auth_auth_proto_rawDescGZIP(), []int{11}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthedHumanResponse) GetAuthedHuman() *AuthedHuman {
|
||||||
|
if x != nil {
|
||||||
|
return x.AuthedHuman
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_auth_auth_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_auth_auth_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x16, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x75,
|
||||||
|
0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2e, 0x61, 0x75, 0x74, 0x68, 0x22, 0xc7, 0x01, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44,
|
||||||
|
0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63,
|
||||||
|
0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
||||||
|
0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x42,
|
||||||
|
0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
||||||
|
0x32, 0x26, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x45,
|
||||||
|
0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64,
|
||||||
|
0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
||||||
|
0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e,
|
||||||
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
|
||||||
|
0xe3, 0x01, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x12,
|
||||||
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
|
0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
|
||||||
|
0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x32, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68,
|
||||||
|
0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f,
|
||||||
|
0x6c, 0x65, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a,
|
||||||
|
0x69, 0x73, 0x5f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
|
||||||
|
0x52, 0x09, 0x69, 0x73, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x0b, 0x63,
|
||||||
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e,
|
||||||
|
0x32, 0x17, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x43,
|
||||||
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
||||||
|
0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
|
||||||
|
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69,
|
||||||
|
0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21,
|
||||||
|
0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
|
||||||
|
0x65, 0x22, 0x12, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x0a, 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x38, 0x0a, 0x0b,
|
||||||
|
0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x0e, 0x32, 0x17, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
|
||||||
|
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65,
|
||||||
|
0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x0a, 0x13, 0x53, 0x69, 0x67, 0x6e,
|
||||||
|
0x49, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
|
0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||||
|
0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x14, 0x53, 0x69,
|
||||||
|
0x67, 0x6e, 0x49, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x29, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x04, 0x72,
|
||||||
|
0x6f, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,
|
||||||
|
0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f,
|
||||||
|
0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
|
||||||
|
0x65, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x10, 0x0a,
|
||||||
|
0x0e, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
||||||
|
0x11, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x41, 0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61,
|
||||||
|
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x52, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68,
|
||||||
|
0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
|
0x3b, 0x0a, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x65, 0x64, 0x5f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61,
|
||||||
|
0x75, 0x74, 0x68, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52,
|
||||||
|
0x0b, 0x61, 0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x2a, 0x4f, 0x0a, 0x08,
|
||||||
|
0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x55, 0x54, 0x48,
|
||||||
|
0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
|
||||||
|
0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x52, 0x4f, 0x4c, 0x45,
|
||||||
|
0x5f, 0x48, 0x55, 0x4d, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x55, 0x54, 0x48,
|
||||||
|
0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x2a, 0x62, 0x0a,
|
||||||
|
0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43,
|
||||||
|
0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
||||||
|
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x49, 0x45,
|
||||||
|
0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x50, 0x41, 0x44, 0x10, 0x01,
|
||||||
|
0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
|
||||||
|
0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x52, 0x5f, 0x44, 0x41, 0x45, 0x4d, 0x4f, 0x4e, 0x10,
|
||||||
|
0x02, 0x32, 0x90, 0x03, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||||||
|
0x65, 0x12, 0x49, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x67, 0x69,
|
||||||
|
0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
|
||||||
|
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x06,
|
||||||
|
0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x1a, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x61, 0x75, 0x74, 0x68, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68,
|
||||||
|
0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
||||||
|
0x00, 0x12, 0x55, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66,
|
||||||
|
0x79, 0x12, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e,
|
||||||
|
0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74,
|
||||||
|
0x68, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65,
|
||||||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e,
|
||||||
|
0x4f, 0x75, 0x74, 0x12, 0x1b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74,
|
||||||
|
0x68, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x1a, 0x1c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x53,
|
||||||
|
0x69, 0x67, 0x6e, 0x4f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
||||||
|
0x12, 0x52, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x12,
|
||||||
|
0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41, 0x75,
|
||||||
|
0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x41,
|
||||||
|
0x75, 0x74, 0x68, 0x65, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x22, 0x00, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
||||||
|
0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x3b, 0x70, 0x62, 0x61, 0x75, 0x74, 0x68,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_auth_auth_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_auth_auth_proto_rawDescData = file_helios_auth_auth_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_auth_auth_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_auth_auth_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_auth_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_auth_auth_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_auth_auth_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_auth_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
|
var file_helios_auth_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||||
|
var file_helios_auth_auth_proto_goTypes = []any{
|
||||||
|
(AuthRole)(0), // 0: helios.auth.AuthRole
|
||||||
|
(ClientType)(0), // 1: helios.auth.ClientType
|
||||||
|
(*ErrorDetail)(nil), // 2: helios.auth.ErrorDetail
|
||||||
|
(*AuthedHuman)(nil), // 3: helios.auth.AuthedHuman
|
||||||
|
(*RegisterRequest)(nil), // 4: helios.auth.RegisterRequest
|
||||||
|
(*RegisterResponse)(nil), // 5: helios.auth.RegisterResponse
|
||||||
|
(*SignInRequest)(nil), // 6: helios.auth.SignInRequest
|
||||||
|
(*SignInResponse)(nil), // 7: helios.auth.SignInResponse
|
||||||
|
(*SignInVerifyRequest)(nil), // 8: helios.auth.SignInVerifyRequest
|
||||||
|
(*SignInVerifyResponse)(nil), // 9: helios.auth.SignInVerifyResponse
|
||||||
|
(*SignOutRequest)(nil), // 10: helios.auth.SignOutRequest
|
||||||
|
(*SignOutResponse)(nil), // 11: helios.auth.SignOutResponse
|
||||||
|
(*AuthedHumanRequest)(nil), // 12: helios.auth.AuthedHumanRequest
|
||||||
|
(*AuthedHumanResponse)(nil), // 13: helios.auth.AuthedHumanResponse
|
||||||
|
nil, // 14: helios.auth.ErrorDetail.MetadataEntry
|
||||||
|
}
|
||||||
|
var file_helios_auth_auth_proto_depIdxs = []int32{
|
||||||
|
14, // 0: helios.auth.ErrorDetail.metadata:type_name -> helios.auth.ErrorDetail.MetadataEntry
|
||||||
|
0, // 1: helios.auth.AuthedHuman.auth_role:type_name -> helios.auth.AuthRole
|
||||||
|
1, // 2: helios.auth.AuthedHuman.client_type:type_name -> helios.auth.ClientType
|
||||||
|
1, // 3: helios.auth.SignInRequest.client_type:type_name -> helios.auth.ClientType
|
||||||
|
0, // 4: helios.auth.SignInVerifyResponse.role:type_name -> helios.auth.AuthRole
|
||||||
|
1, // 5: helios.auth.SignInVerifyResponse.client_type:type_name -> helios.auth.ClientType
|
||||||
|
3, // 6: helios.auth.AuthedHumanResponse.authed_human:type_name -> helios.auth.AuthedHuman
|
||||||
|
4, // 7: helios.auth.AuthService.Register:input_type -> helios.auth.RegisterRequest
|
||||||
|
6, // 8: helios.auth.AuthService.SignIn:input_type -> helios.auth.SignInRequest
|
||||||
|
8, // 9: helios.auth.AuthService.SignInVerify:input_type -> helios.auth.SignInVerifyRequest
|
||||||
|
10, // 10: helios.auth.AuthService.SignOut:input_type -> helios.auth.SignOutRequest
|
||||||
|
12, // 11: helios.auth.AuthService.AuthedHuman:input_type -> helios.auth.AuthedHumanRequest
|
||||||
|
5, // 12: helios.auth.AuthService.Register:output_type -> helios.auth.RegisterResponse
|
||||||
|
7, // 13: helios.auth.AuthService.SignIn:output_type -> helios.auth.SignInResponse
|
||||||
|
9, // 14: helios.auth.AuthService.SignInVerify:output_type -> helios.auth.SignInVerifyResponse
|
||||||
|
11, // 15: helios.auth.AuthService.SignOut:output_type -> helios.auth.SignOutResponse
|
||||||
|
13, // 16: helios.auth.AuthService.AuthedHuman:output_type -> helios.auth.AuthedHumanResponse
|
||||||
|
12, // [12:17] is the sub-list for method output_type
|
||||||
|
7, // [7:12] is the sub-list for method input_type
|
||||||
|
7, // [7:7] is the sub-list for extension type_name
|
||||||
|
7, // [7:7] is the sub-list for extension extendee
|
||||||
|
0, // [0:7] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_auth_auth_proto_init() }
|
||||||
|
func file_helios_auth_auth_proto_init() {
|
||||||
|
if File_helios_auth_auth_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_auth_auth_proto_rawDesc,
|
||||||
|
NumEnums: 2,
|
||||||
|
NumMessages: 13,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_auth_auth_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_auth_auth_proto_depIdxs,
|
||||||
|
EnumInfos: file_helios_auth_auth_proto_enumTypes,
|
||||||
|
MessageInfos: file_helios_auth_auth_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_auth_auth_proto = out.File
|
||||||
|
file_helios_auth_auth_proto_rawDesc = nil
|
||||||
|
file_helios_auth_auth_proto_goTypes = nil
|
||||||
|
file_helios_auth_auth_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,285 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/auth/auth.proto
|
||||||
|
|
||||||
|
package pbauth
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
AuthService_Register_FullMethodName = "/helios.auth.AuthService/Register"
|
||||||
|
AuthService_SignIn_FullMethodName = "/helios.auth.AuthService/SignIn"
|
||||||
|
AuthService_SignInVerify_FullMethodName = "/helios.auth.AuthService/SignInVerify"
|
||||||
|
AuthService_SignOut_FullMethodName = "/helios.auth.AuthService/SignOut"
|
||||||
|
AuthService_AuthedHuman_FullMethodName = "/helios.auth.AuthService/AuthedHuman"
|
||||||
|
)
|
||||||
|
|
||||||
|
// AuthServiceClient is the client API for AuthService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type AuthServiceClient interface {
|
||||||
|
// Returns "ALREADY_EXISTS" if the email is already registered.
|
||||||
|
Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
|
||||||
|
// Sends email with a code.
|
||||||
|
SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
|
||||||
|
// Verifies the code and returns a token.
|
||||||
|
SignInVerify(ctx context.Context, in *SignInVerifyRequest, opts ...grpc.CallOption) (*SignInVerifyResponse, error)
|
||||||
|
// Expires the session, if have one with provided token in "authorization" metadata
|
||||||
|
SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, error)
|
||||||
|
// Returns the authed human based on session_token in metadata. Returns unauthenticated otherwise.
|
||||||
|
// Requires session token in "authorization" metadata.
|
||||||
|
AuthedHuman(ctx context.Context, in *AuthedHumanRequest, opts ...grpc.CallOption) (*AuthedHumanResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type authServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient {
|
||||||
|
return &authServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *authServiceClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(RegisterResponse)
|
||||||
|
err := c.cc.Invoke(ctx, AuthService_Register_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *authServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SignInResponse)
|
||||||
|
err := c.cc.Invoke(ctx, AuthService_SignIn_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *authServiceClient) SignInVerify(ctx context.Context, in *SignInVerifyRequest, opts ...grpc.CallOption) (*SignInVerifyResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SignInVerifyResponse)
|
||||||
|
err := c.cc.Invoke(ctx, AuthService_SignInVerify_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *authServiceClient) SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SignOutResponse)
|
||||||
|
err := c.cc.Invoke(ctx, AuthService_SignOut_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *authServiceClient) AuthedHuman(ctx context.Context, in *AuthedHumanRequest, opts ...grpc.CallOption) (*AuthedHumanResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(AuthedHumanResponse)
|
||||||
|
err := c.cc.Invoke(ctx, AuthService_AuthedHuman_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// AuthServiceServer is the server API for AuthService service.
|
||||||
|
// All implementations must embed UnimplementedAuthServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type AuthServiceServer interface {
|
||||||
|
// Returns "ALREADY_EXISTS" if the email is already registered.
|
||||||
|
Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
|
||||||
|
// Sends email with a code.
|
||||||
|
SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
|
||||||
|
// Verifies the code and returns a token.
|
||||||
|
SignInVerify(context.Context, *SignInVerifyRequest) (*SignInVerifyResponse, error)
|
||||||
|
// Expires the session, if have one with provided token in "authorization" metadata
|
||||||
|
SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error)
|
||||||
|
// Returns the authed human based on session_token in metadata. Returns unauthenticated otherwise.
|
||||||
|
// Requires session token in "authorization" metadata.
|
||||||
|
AuthedHuman(context.Context, *AuthedHumanRequest) (*AuthedHumanResponse, error)
|
||||||
|
mustEmbedUnimplementedAuthServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedAuthServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedAuthServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAuthServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAuthServiceServer) SignInVerify(context.Context, *SignInVerifyRequest) (*SignInVerifyResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SignInVerify not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAuthServiceServer) SignOut(context.Context, *SignOutRequest) (*SignOutResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SignOut not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAuthServiceServer) AuthedHuman(context.Context, *AuthedHumanRequest) (*AuthedHumanResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method AuthedHuman not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {}
|
||||||
|
func (UnimplementedAuthServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to AuthServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeAuthServiceServer interface {
|
||||||
|
mustEmbedUnimplementedAuthServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedAuthServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&AuthService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _AuthService_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(RegisterRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AuthServiceServer).Register(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: AuthService_Register_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AuthServiceServer).Register(ctx, req.(*RegisterRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _AuthService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SignInRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AuthServiceServer).SignIn(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: AuthService_SignIn_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AuthServiceServer).SignIn(ctx, req.(*SignInRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _AuthService_SignInVerify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SignInVerifyRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AuthServiceServer).SignInVerify(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: AuthService_SignInVerify_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AuthServiceServer).SignInVerify(ctx, req.(*SignInVerifyRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _AuthService_SignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SignOutRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AuthServiceServer).SignOut(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: AuthService_SignOut_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AuthServiceServer).SignOut(ctx, req.(*SignOutRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _AuthService_AuthedHuman_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AuthedHumanRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(AuthServiceServer).AuthedHuman(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: AuthService_AuthedHuman_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(AuthServiceServer).AuthedHuman(ctx, req.(*AuthedHumanRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var AuthService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.auth.AuthService",
|
||||||
|
HandlerType: (*AuthServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "Register",
|
||||||
|
Handler: _AuthService_Register_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SignIn",
|
||||||
|
Handler: _AuthService_SignIn_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SignInVerify",
|
||||||
|
Handler: _AuthService_SignInVerify_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SignOut",
|
||||||
|
Handler: _AuthService_SignOut_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "AuthedHuman",
|
||||||
|
Handler: _AuthService_AuthedHuman_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/auth/auth.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,643 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/compass/compass.proto
|
||||||
|
|
||||||
|
package pbcompass
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type SearchPlacesRequest_SearchType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
SearchPlacesRequest_SEARCH_TYPE_UNSPECIFIED SearchPlacesRequest_SearchType = 0
|
||||||
|
// When we strictly want to search for a city, state, country
|
||||||
|
SearchPlacesRequest_SEARCH_TYPE_CITY SearchPlacesRequest_SearchType = 1
|
||||||
|
// When we want a full address like for a shipping address
|
||||||
|
SearchPlacesRequest_SEARCH_TYPE_ADDRESS SearchPlacesRequest_SearchType = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for SearchPlacesRequest_SearchType.
|
||||||
|
var (
|
||||||
|
SearchPlacesRequest_SearchType_name = map[int32]string{
|
||||||
|
0: "SEARCH_TYPE_UNSPECIFIED",
|
||||||
|
1: "SEARCH_TYPE_CITY",
|
||||||
|
2: "SEARCH_TYPE_ADDRESS",
|
||||||
|
}
|
||||||
|
SearchPlacesRequest_SearchType_value = map[string]int32{
|
||||||
|
"SEARCH_TYPE_UNSPECIFIED": 0,
|
||||||
|
"SEARCH_TYPE_CITY": 1,
|
||||||
|
"SEARCH_TYPE_ADDRESS": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x SearchPlacesRequest_SearchType) Enum() *SearchPlacesRequest_SearchType {
|
||||||
|
p := new(SearchPlacesRequest_SearchType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x SearchPlacesRequest_SearchType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (SearchPlacesRequest_SearchType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_compass_compass_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (SearchPlacesRequest_SearchType) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_compass_compass_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x SearchPlacesRequest_SearchType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use SearchPlacesRequest_SearchType.Descriptor instead.
|
||||||
|
func (SearchPlacesRequest_SearchType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{1, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type Coordinate struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Latitude float64 `protobuf:"fixed64,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
||||||
|
Longitude float64 `protobuf:"fixed64,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Coordinate) Reset() {
|
||||||
|
*x = Coordinate{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Coordinate) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Coordinate) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Coordinate) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 Coordinate.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Coordinate) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Coordinate) GetLatitude() float64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Latitude
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Coordinate) GetLongitude() float64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Longitude
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type SearchPlacesRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
||||||
|
SearchType SearchPlacesRequest_SearchType `protobuf:"varint,2,opt,name=search_type,json=searchType,proto3,enum=helios.compass.SearchPlacesRequest_SearchType" json:"search_type,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesRequest) Reset() {
|
||||||
|
*x = SearchPlacesRequest{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SearchPlacesRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SearchPlacesRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 SearchPlacesRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SearchPlacesRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesRequest) GetQuery() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Query
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesRequest) GetSearchType() SearchPlacesRequest_SearchType {
|
||||||
|
if x != nil {
|
||||||
|
return x.SearchType
|
||||||
|
}
|
||||||
|
return SearchPlacesRequest_SEARCH_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
type SearchPlacesResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Places []*SearchPlacesResponse_AutocompletePrediction `protobuf:"bytes,1,rep,name=places,proto3" json:"places,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse) Reset() {
|
||||||
|
*x = SearchPlacesResponse{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SearchPlacesResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 SearchPlacesResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SearchPlacesResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse) GetPlaces() []*SearchPlacesResponse_AutocompletePrediction {
|
||||||
|
if x != nil {
|
||||||
|
return x.Places
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetPlaceByIdRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdRequest) Reset() {
|
||||||
|
*x = GetPlaceByIdRequest{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetPlaceByIdRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 GetPlaceByIdRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetPlaceByIdRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdRequest) GetPlaceId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlaceId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetPlaceByIdResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
Coordinate *Coordinate `protobuf:"bytes,3,opt,name=coordinate,proto3" json:"coordinate,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) Reset() {
|
||||||
|
*x = GetPlaceByIdResponse{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetPlaceByIdResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 GetPlaceByIdResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetPlaceByIdResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) GetPlaceId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlaceId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIdResponse) GetCoordinate() *Coordinate {
|
||||||
|
if x != nil {
|
||||||
|
return x.Coordinate
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetPlaceByIpRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpRequest) Reset() {
|
||||||
|
*x = GetPlaceByIpRequest{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetPlaceByIpRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 GetPlaceByIpRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetPlaceByIpRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpRequest) GetIp() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Ip
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetPlaceByIpResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
Coordinate *Coordinate `protobuf:"bytes,3,opt,name=coordinate,proto3" json:"coordinate,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) Reset() {
|
||||||
|
*x = GetPlaceByIpResponse{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetPlaceByIpResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 GetPlaceByIpResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetPlaceByIpResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) GetPlaceId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlaceId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPlaceByIpResponse) GetCoordinate() *Coordinate {
|
||||||
|
if x != nil {
|
||||||
|
return x.Coordinate
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type SearchPlacesResponse_AutocompletePrediction struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse_AutocompletePrediction) Reset() {
|
||||||
|
*x = SearchPlacesResponse_AutocompletePrediction{}
|
||||||
|
mi := &file_helios_compass_compass_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse_AutocompletePrediction) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SearchPlacesResponse_AutocompletePrediction) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse_AutocompletePrediction) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_compass_compass_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 SearchPlacesResponse_AutocompletePrediction.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SearchPlacesResponse_AutocompletePrediction) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_compass_compass_proto_rawDescGZIP(), []int{2, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse_AutocompletePrediction) GetPlaceId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlaceId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SearchPlacesResponse_AutocompletePrediction) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_compass_compass_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_compass_compass_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1c, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73,
|
||||||
|
0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x22, 0x46,
|
||||||
|
0x0a, 0x0a, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
|
0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08,
|
||||||
|
0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67,
|
||||||
|
0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e,
|
||||||
|
0x67, 0x69, 0x74, 0x75, 0x64, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63,
|
||||||
|
0x68, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
||||||
|
0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71,
|
||||||
|
0x75, 0x65, 0x72, 0x79, 0x12, 0x4f, 0x0a, 0x0b, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x74,
|
||||||
|
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
|
||||||
|
0x68, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53,
|
||||||
|
0x65, 0x61, 0x72, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x61, 0x72, 0x63,
|
||||||
|
0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x54,
|
||||||
|
0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x54, 0x59,
|
||||||
|
0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
|
||||||
|
0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f,
|
||||||
|
0x43, 0x49, 0x54, 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48,
|
||||||
|
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x22,
|
||||||
|
0xc3, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x63,
|
||||||
|
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f,
|
||||||
|
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
|
||||||
|
0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41,
|
||||||
|
0x75, 0x74, 0x6f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69,
|
||||||
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x1a, 0x56, 0x0a,
|
||||||
|
0x16, 0x41, 0x75, 0x74, 0x6f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x65,
|
||||||
|
0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x63, 0x65,
|
||||||
|
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x63, 0x65,
|
||||||
|
0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
|
||||||
|
0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
|
||||||
|
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x63,
|
||||||
|
0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
|
||||||
|
0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
||||||
|
0x70, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50,
|
||||||
|
0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||||
|
0x12, 0x19, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64,
|
||||||
|
0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a,
|
||||||
|
0x0a, 0x0a, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70,
|
||||||
|
0x61, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x0a,
|
||||||
|
0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x22, 0x25, 0x0a, 0x13, 0x47, 0x65,
|
||||||
|
0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
||||||
|
0x70, 0x22, 0x90, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79,
|
||||||
|
0x49, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6c,
|
||||||
|
0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6c,
|
||||||
|
0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
|
||||||
|
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
|
||||||
|
0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x63, 0x6f, 0x6f, 0x72,
|
||||||
|
0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x43, 0x6f,
|
||||||
|
0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69,
|
||||||
|
0x6e, 0x61, 0x74, 0x65, 0x32, 0xa0, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73,
|
||||||
|
0x12, 0x5b, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73,
|
||||||
|
0x12, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73,
|
||||||
|
0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65,
|
||||||
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63,
|
||||||
|
0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x6c, 0x61,
|
||||||
|
0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a,
|
||||||
|
0x0c, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x12, 0x23, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x47,
|
||||||
|
0x65, 0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70,
|
||||||
|
0x61, 0x73, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0c, 0x47, 0x65,
|
||||||
|
0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x70, 0x12, 0x23, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x50,
|
||||||
|
0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||||
|
0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73,
|
||||||
|
0x2e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x70, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||||
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65,
|
||||||
|
0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x3b,
|
||||||
|
0x70, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_compass_compass_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_compass_compass_proto_rawDescData = file_helios_compass_compass_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_compass_compass_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_compass_compass_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_compass_compass_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_compass_compass_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_compass_compass_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_compass_compass_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_helios_compass_compass_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
|
var file_helios_compass_compass_proto_goTypes = []any{
|
||||||
|
(SearchPlacesRequest_SearchType)(0), // 0: helios.compass.SearchPlacesRequest.SearchType
|
||||||
|
(*Coordinate)(nil), // 1: helios.compass.Coordinate
|
||||||
|
(*SearchPlacesRequest)(nil), // 2: helios.compass.SearchPlacesRequest
|
||||||
|
(*SearchPlacesResponse)(nil), // 3: helios.compass.SearchPlacesResponse
|
||||||
|
(*GetPlaceByIdRequest)(nil), // 4: helios.compass.GetPlaceByIdRequest
|
||||||
|
(*GetPlaceByIdResponse)(nil), // 5: helios.compass.GetPlaceByIdResponse
|
||||||
|
(*GetPlaceByIpRequest)(nil), // 6: helios.compass.GetPlaceByIpRequest
|
||||||
|
(*GetPlaceByIpResponse)(nil), // 7: helios.compass.GetPlaceByIpResponse
|
||||||
|
(*SearchPlacesResponse_AutocompletePrediction)(nil), // 8: helios.compass.SearchPlacesResponse.AutocompletePrediction
|
||||||
|
}
|
||||||
|
var file_helios_compass_compass_proto_depIdxs = []int32{
|
||||||
|
0, // 0: helios.compass.SearchPlacesRequest.search_type:type_name -> helios.compass.SearchPlacesRequest.SearchType
|
||||||
|
8, // 1: helios.compass.SearchPlacesResponse.places:type_name -> helios.compass.SearchPlacesResponse.AutocompletePrediction
|
||||||
|
1, // 2: helios.compass.GetPlaceByIdResponse.coordinate:type_name -> helios.compass.Coordinate
|
||||||
|
1, // 3: helios.compass.GetPlaceByIpResponse.coordinate:type_name -> helios.compass.Coordinate
|
||||||
|
2, // 4: helios.compass.Compass.SearchPlaces:input_type -> helios.compass.SearchPlacesRequest
|
||||||
|
4, // 5: helios.compass.Compass.GetPlaceById:input_type -> helios.compass.GetPlaceByIdRequest
|
||||||
|
6, // 6: helios.compass.Compass.GetPlaceByIp:input_type -> helios.compass.GetPlaceByIpRequest
|
||||||
|
3, // 7: helios.compass.Compass.SearchPlaces:output_type -> helios.compass.SearchPlacesResponse
|
||||||
|
5, // 8: helios.compass.Compass.GetPlaceById:output_type -> helios.compass.GetPlaceByIdResponse
|
||||||
|
7, // 9: helios.compass.Compass.GetPlaceByIp:output_type -> helios.compass.GetPlaceByIpResponse
|
||||||
|
7, // [7:10] is the sub-list for method output_type
|
||||||
|
4, // [4:7] is the sub-list for method input_type
|
||||||
|
4, // [4:4] is the sub-list for extension type_name
|
||||||
|
4, // [4:4] is the sub-list for extension extendee
|
||||||
|
0, // [0:4] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_compass_compass_proto_init() }
|
||||||
|
func file_helios_compass_compass_proto_init() {
|
||||||
|
if File_helios_compass_compass_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_compass_compass_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 8,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_compass_compass_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_compass_compass_proto_depIdxs,
|
||||||
|
EnumInfos: file_helios_compass_compass_proto_enumTypes,
|
||||||
|
MessageInfos: file_helios_compass_compass_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_compass_compass_proto = out.File
|
||||||
|
file_helios_compass_compass_proto_rawDesc = nil
|
||||||
|
file_helios_compass_compass_proto_goTypes = nil
|
||||||
|
file_helios_compass_compass_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/compass/compass.proto
|
||||||
|
|
||||||
|
package pbcompass
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
Compass_SearchPlaces_FullMethodName = "/helios.compass.Compass/SearchPlaces"
|
||||||
|
Compass_GetPlaceById_FullMethodName = "/helios.compass.Compass/GetPlaceById"
|
||||||
|
Compass_GetPlaceByIp_FullMethodName = "/helios.compass.Compass/GetPlaceByIp"
|
||||||
|
)
|
||||||
|
|
||||||
|
// CompassClient is the client API for Compass service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
//
|
||||||
|
// compass knows a lot about where we are in the world and universe we live in, how it's connected, and more.
|
||||||
|
type CompassClient interface {
|
||||||
|
// SearchPlaces returns a list of places based on the given query.
|
||||||
|
SearchPlaces(ctx context.Context, in *SearchPlacesRequest, opts ...grpc.CallOption) (*SearchPlacesResponse, error)
|
||||||
|
// GetPlaceById returns a place and it's details by its place_id which is google place id.
|
||||||
|
// if it's not found, it returns an error
|
||||||
|
GetPlaceById(ctx context.Context, in *GetPlaceByIdRequest, opts ...grpc.CallOption) (*GetPlaceByIdResponse, error)
|
||||||
|
GetPlaceByIp(ctx context.Context, in *GetPlaceByIpRequest, opts ...grpc.CallOption) (*GetPlaceByIpResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type compassClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewCompassClient(cc grpc.ClientConnInterface) CompassClient {
|
||||||
|
return &compassClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *compassClient) SearchPlaces(ctx context.Context, in *SearchPlacesRequest, opts ...grpc.CallOption) (*SearchPlacesResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SearchPlacesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Compass_SearchPlaces_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *compassClient) GetPlaceById(ctx context.Context, in *GetPlaceByIdRequest, opts ...grpc.CallOption) (*GetPlaceByIdResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetPlaceByIdResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Compass_GetPlaceById_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *compassClient) GetPlaceByIp(ctx context.Context, in *GetPlaceByIpRequest, opts ...grpc.CallOption) (*GetPlaceByIpResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetPlaceByIpResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Compass_GetPlaceByIp_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CompassServer is the server API for Compass service.
|
||||||
|
// All implementations must embed UnimplementedCompassServer
|
||||||
|
// for forward compatibility.
|
||||||
|
//
|
||||||
|
// compass knows a lot about where we are in the world and universe we live in, how it's connected, and more.
|
||||||
|
type CompassServer interface {
|
||||||
|
// SearchPlaces returns a list of places based on the given query.
|
||||||
|
SearchPlaces(context.Context, *SearchPlacesRequest) (*SearchPlacesResponse, error)
|
||||||
|
// GetPlaceById returns a place and it's details by its place_id which is google place id.
|
||||||
|
// if it's not found, it returns an error
|
||||||
|
GetPlaceById(context.Context, *GetPlaceByIdRequest) (*GetPlaceByIdResponse, error)
|
||||||
|
GetPlaceByIp(context.Context, *GetPlaceByIpRequest) (*GetPlaceByIpResponse, error)
|
||||||
|
mustEmbedUnimplementedCompassServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedCompassServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedCompassServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedCompassServer) SearchPlaces(context.Context, *SearchPlacesRequest) (*SearchPlacesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SearchPlaces not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedCompassServer) GetPlaceById(context.Context, *GetPlaceByIdRequest) (*GetPlaceByIdResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetPlaceById not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedCompassServer) GetPlaceByIp(context.Context, *GetPlaceByIpRequest) (*GetPlaceByIpResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetPlaceByIp not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedCompassServer) mustEmbedUnimplementedCompassServer() {}
|
||||||
|
func (UnimplementedCompassServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeCompassServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to CompassServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeCompassServer interface {
|
||||||
|
mustEmbedUnimplementedCompassServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterCompassServer(s grpc.ServiceRegistrar, srv CompassServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedCompassServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&Compass_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Compass_SearchPlaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SearchPlacesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(CompassServer).SearchPlaces(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Compass_SearchPlaces_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(CompassServer).SearchPlaces(ctx, req.(*SearchPlacesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Compass_GetPlaceById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetPlaceByIdRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(CompassServer).GetPlaceById(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Compass_GetPlaceById_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(CompassServer).GetPlaceById(ctx, req.(*GetPlaceByIdRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Compass_GetPlaceByIp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetPlaceByIpRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(CompassServer).GetPlaceByIp(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Compass_GetPlaceByIp_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(CompassServer).GetPlaceByIp(ctx, req.(*GetPlaceByIpRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compass_ServiceDesc is the grpc.ServiceDesc for Compass service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var Compass_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.compass.Compass",
|
||||||
|
HandlerType: (*CompassServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "SearchPlaces",
|
||||||
|
Handler: _Compass_SearchPlaces_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetPlaceById",
|
||||||
|
Handler: _Compass_GetPlaceById_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetPlaceByIp",
|
||||||
|
Handler: _Compass_GetPlaceByIp_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/compass/compass.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,871 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/depot/depot.proto
|
||||||
|
|
||||||
|
package pbdepot
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type Object struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
// Presigned url to download the object
|
||||||
|
ObjectUrl string `protobuf:"bytes,2,opt,name=object_url,json=objectUrl,proto3" json:"object_url,omitempty"`
|
||||||
|
// Whether or not this object is publicly accessible.
|
||||||
|
PublicInternet bool `protobuf:"varint,3,opt,name=public_internet,json=publicInternet,proto3" json:"public_internet,omitempty"`
|
||||||
|
// Arbitrary name that you can associate with this object.
|
||||||
|
// NOTE: This will NOT have problems with collisions. The depot system can have as many objects with the same name as desired.
|
||||||
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
ContentType string `protobuf:"bytes,5,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
||||||
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||||
|
ContentLength int32 `protobuf:"varint,7,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
|
||||||
|
StorageInformation *Object_StorageInformation `protobuf:"bytes,8,opt,name=storage_information,json=storageInformation,proto3" json:"storage_information,omitempty"`
|
||||||
|
// Whether or not this object contains content, yet (use to check whether upload urls were used).
|
||||||
|
ContainsContent bool `protobuf:"varint,9,opt,name=contains_content,json=containsContent,proto3" json:"contains_content,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) Reset() {
|
||||||
|
*x = Object{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Object) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Object) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 Object.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Object) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetObjectUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetPublicInternet() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.PublicInternet
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetContentType() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentType
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetCreatedAt() *timestamppb.Timestamp {
|
||||||
|
if x != nil {
|
||||||
|
return x.CreatedAt
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetContentLength() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentLength
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetStorageInformation() *Object_StorageInformation {
|
||||||
|
if x != nil {
|
||||||
|
return x.StorageInformation
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object) GetContainsContent() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContainsContent
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetObjectRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectRequest) Reset() {
|
||||||
|
*x = GetObjectRequest{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetObjectRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetObjectRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 GetObjectRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetObjectRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectRequest) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetObjectResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Object *Object `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectResponse) Reset() {
|
||||||
|
*x = GetObjectResponse{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetObjectResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetObjectResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 GetObjectResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetObjectResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectResponse) GetObject() *Object {
|
||||||
|
if x != nil {
|
||||||
|
return x.Object
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetObjectsRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectIds []string `protobuf:"bytes,1,rep,name=object_ids,json=objectIds,proto3" json:"object_ids,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsRequest) Reset() {
|
||||||
|
*x = GetObjectsRequest{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetObjectsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetObjectsRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 GetObjectsRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetObjectsRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsRequest) GetObjectIds() []string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectIds
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetObjectsResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsResponse) Reset() {
|
||||||
|
*x = GetObjectsResponse{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetObjectsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetObjectsResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 GetObjectsResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetObjectsResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetObjectsResponse) GetObjects() []*Object {
|
||||||
|
if x != nil {
|
||||||
|
return x.Objects
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListObjectsRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListObjectsRequest) Reset() {
|
||||||
|
*x = ListObjectsRequest{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListObjectsRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListObjectsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 ListObjectsRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListObjectsRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListObjectsResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListObjectsResponse) Reset() {
|
||||||
|
*x = ListObjectsResponse{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListObjectsResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListObjectsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 ListObjectsResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListObjectsResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListObjectsResponse) GetObjects() []*Object {
|
||||||
|
if x != nil {
|
||||||
|
return x.Objects
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type UploadNewObjectRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Required...anything for example: "image.jpg"
|
||||||
|
// we don't really care about the extension as the object that is stored in the bucket is based on a generated object_id
|
||||||
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
// Required
|
||||||
|
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
||||||
|
// Required
|
||||||
|
ContentLength int64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
|
||||||
|
// Required. Whether or not to make this publicly accessible to the internet.
|
||||||
|
PublicInternet bool `protobuf:"varint,4,opt,name=public_internet,json=publicInternet,proto3" json:"public_internet,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) Reset() {
|
||||||
|
*x = UploadNewObjectRequest{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UploadNewObjectRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 UploadNewObjectRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UploadNewObjectRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) GetContentType() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentType
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) GetContentLength() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentLength
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectRequest) GetPublicInternet() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.PublicInternet
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type UploadNewObjectResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
// make a PUT request to this URL
|
||||||
|
UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
|
||||||
|
// headers to include in the PUT request
|
||||||
|
UploadHeaders map[string]string `protobuf:"bytes,3,rep,name=upload_headers,json=uploadHeaders,proto3" json:"upload_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) Reset() {
|
||||||
|
*x = UploadNewObjectResponse{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[8]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UploadNewObjectResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 UploadNewObjectResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UploadNewObjectResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) GetUploadUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UploadUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UploadNewObjectResponse) GetUploadHeaders() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UploadHeaders
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteObjectRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteObjectRequest) Reset() {
|
||||||
|
*x = DeleteObjectRequest{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[9]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteObjectRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DeleteObjectRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 DeleteObjectRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DeleteObjectRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{9}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteObjectRequest) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeleteObjectResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteObjectResponse) Reset() {
|
||||||
|
*x = DeleteObjectResponse{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeleteObjectResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DeleteObjectResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DeleteObjectResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 DeleteObjectResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DeleteObjectResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{10}
|
||||||
|
}
|
||||||
|
|
||||||
|
type Object_StorageInformation struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
||||||
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||||
|
GsUtilUri string `protobuf:"bytes,3,opt,name=gs_util_uri,json=gsUtilUri,proto3" json:"gs_util_uri,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) Reset() {
|
||||||
|
*x = Object_StorageInformation{}
|
||||||
|
mi := &file_helios_depot_depot_proto_msgTypes[11]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Object_StorageInformation) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_depot_depot_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 Object_StorageInformation.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Object_StorageInformation) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_depot_depot_proto_rawDescGZIP(), []int{0, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) GetBucket() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Bucket
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) GetKey() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Key
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Object_StorageInformation) GetGsUtilUri() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.GsUtilUri
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_depot_depot_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_depot_depot_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x18, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2f, 0x64,
|
||||||
|
0x65, 0x70, 0x6f, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
|
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x03, 0x0a, 0x06, 0x4f, 0x62,
|
||||||
|
0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69,
|
||||||
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49,
|
||||||
|
0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18,
|
||||||
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6c,
|
||||||
|
0x12, 0x27, 0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
||||||
|
0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69,
|
||||||
|
0x63, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
|
||||||
|
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
|
||||||
|
0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
|
||||||
|
0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06,
|
||||||
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
||||||
|
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x63,
|
||||||
|
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x07, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67,
|
||||||
|
0x74, 0x68, 0x12, 0x58, 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e,
|
||||||
|
0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x27, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f,
|
||||||
|
0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66,
|
||||||
|
0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67,
|
||||||
|
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10,
|
||||||
|
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
||||||
|
0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73,
|
||||||
|
0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x1a, 0x5e, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x72, 0x61,
|
||||||
|
0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a,
|
||||||
|
0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62,
|
||||||
|
0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0b, 0x67, 0x73, 0x5f, 0x75, 0x74,
|
||||||
|
0x69, 0x6c, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x73,
|
||||||
|
0x55, 0x74, 0x69, 0x6c, 0x55, 0x72, 0x69, 0x22, 0x2f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4f, 0x62,
|
||||||
|
0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f,
|
||||||
|
0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
|
0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f,
|
||||||
|
0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
|
||||||
|
0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a,
|
||||||
|
0x65, 0x63, 0x74, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x32, 0x0a, 0x11, 0x47,
|
||||||
|
0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01,
|
||||||
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x73, 0x22,
|
||||||
|
0x44, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
|
||||||
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62,
|
||||||
|
0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a,
|
||||||
|
0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x13, 0x4c,
|
||||||
|
0x69, 0x73, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20,
|
||||||
|
0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70,
|
||||||
|
0x6f, 0x74, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x6f, 0x62, 0x6a, 0x65, 0x63,
|
||||||
|
0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77,
|
||||||
|
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
|
||||||
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||||
|
0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70,
|
||||||
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
||||||
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
|
||||||
|
0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f,
|
||||||
|
0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x27, 0x0a, 0x0f, 0x70,
|
||||||
|
0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x18, 0x04,
|
||||||
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x6e, 0x74, 0x65,
|
||||||
|
0x72, 0x6e, 0x65, 0x74, 0x22, 0xf8, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e,
|
||||||
|
0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||||
|
0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a,
|
||||||
|
0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x5f, 0x0a, 0x0e,
|
||||||
|
0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65,
|
||||||
|
0x70, 0x6f, 0x74, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a,
|
||||||
|
0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x70, 0x6c, 0x6f,
|
||||||
|
0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d,
|
||||||
|
0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x40, 0x0a,
|
||||||
|
0x12, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e,
|
||||||
|
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
|
||||||
|
0x32, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||||
|
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63,
|
||||||
|
0x74, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a,
|
||||||
|
0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe5, 0x02, 0x0a, 0x05,
|
||||||
|
0x44, 0x65, 0x70, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65,
|
||||||
|
0x63, 0x74, 0x12, 0x1e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f,
|
||||||
|
0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f,
|
||||||
|
0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65,
|
||||||
|
0x63, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70,
|
||||||
|
0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71,
|
||||||
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65,
|
||||||
|
0x70, 0x6f, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65,
|
||||||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0f, 0x55, 0x70, 0x6c, 0x6f,
|
||||||
|
0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
|
||||||
|
0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x1a, 0x25, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74,
|
||||||
|
0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x65, 0x77, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0c, 0x44, 0x65,
|
||||||
|
0x6c, 0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
||||||
|
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x2e, 0x44, 0x65, 0x6c,
|
||||||
|
0x65, 0x74, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
||||||
|
0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x3b, 0x70, 0x62, 0x64, 0x65, 0x70, 0x6f,
|
||||||
|
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_depot_depot_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_depot_depot_proto_rawDescData = file_helios_depot_depot_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_depot_depot_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_depot_depot_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_depot_depot_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_depot_depot_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_depot_depot_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_depot_depot_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||||
|
var file_helios_depot_depot_proto_goTypes = []any{
|
||||||
|
(*Object)(nil), // 0: helios.depot.Object
|
||||||
|
(*GetObjectRequest)(nil), // 1: helios.depot.GetObjectRequest
|
||||||
|
(*GetObjectResponse)(nil), // 2: helios.depot.GetObjectResponse
|
||||||
|
(*GetObjectsRequest)(nil), // 3: helios.depot.GetObjectsRequest
|
||||||
|
(*GetObjectsResponse)(nil), // 4: helios.depot.GetObjectsResponse
|
||||||
|
(*ListObjectsRequest)(nil), // 5: helios.depot.ListObjectsRequest
|
||||||
|
(*ListObjectsResponse)(nil), // 6: helios.depot.ListObjectsResponse
|
||||||
|
(*UploadNewObjectRequest)(nil), // 7: helios.depot.UploadNewObjectRequest
|
||||||
|
(*UploadNewObjectResponse)(nil), // 8: helios.depot.UploadNewObjectResponse
|
||||||
|
(*DeleteObjectRequest)(nil), // 9: helios.depot.DeleteObjectRequest
|
||||||
|
(*DeleteObjectResponse)(nil), // 10: helios.depot.DeleteObjectResponse
|
||||||
|
(*Object_StorageInformation)(nil), // 11: helios.depot.Object.StorageInformation
|
||||||
|
nil, // 12: helios.depot.UploadNewObjectResponse.UploadHeadersEntry
|
||||||
|
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp
|
||||||
|
}
|
||||||
|
var file_helios_depot_depot_proto_depIdxs = []int32{
|
||||||
|
13, // 0: helios.depot.Object.created_at:type_name -> google.protobuf.Timestamp
|
||||||
|
11, // 1: helios.depot.Object.storage_information:type_name -> helios.depot.Object.StorageInformation
|
||||||
|
0, // 2: helios.depot.GetObjectResponse.object:type_name -> helios.depot.Object
|
||||||
|
0, // 3: helios.depot.GetObjectsResponse.objects:type_name -> helios.depot.Object
|
||||||
|
0, // 4: helios.depot.ListObjectsResponse.objects:type_name -> helios.depot.Object
|
||||||
|
12, // 5: helios.depot.UploadNewObjectResponse.upload_headers:type_name -> helios.depot.UploadNewObjectResponse.UploadHeadersEntry
|
||||||
|
1, // 6: helios.depot.Depot.GetObject:input_type -> helios.depot.GetObjectRequest
|
||||||
|
3, // 7: helios.depot.Depot.GetObjects:input_type -> helios.depot.GetObjectsRequest
|
||||||
|
7, // 8: helios.depot.Depot.UploadNewObject:input_type -> helios.depot.UploadNewObjectRequest
|
||||||
|
9, // 9: helios.depot.Depot.DeleteObject:input_type -> helios.depot.DeleteObjectRequest
|
||||||
|
2, // 10: helios.depot.Depot.GetObject:output_type -> helios.depot.GetObjectResponse
|
||||||
|
4, // 11: helios.depot.Depot.GetObjects:output_type -> helios.depot.GetObjectsResponse
|
||||||
|
8, // 12: helios.depot.Depot.UploadNewObject:output_type -> helios.depot.UploadNewObjectResponse
|
||||||
|
10, // 13: helios.depot.Depot.DeleteObject:output_type -> helios.depot.DeleteObjectResponse
|
||||||
|
10, // [10:14] is the sub-list for method output_type
|
||||||
|
6, // [6:10] is the sub-list for method input_type
|
||||||
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
|
6, // [6:6] is the sub-list for extension extendee
|
||||||
|
0, // [0:6] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_depot_depot_proto_init() }
|
||||||
|
func file_helios_depot_depot_proto_init() {
|
||||||
|
if File_helios_depot_depot_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_depot_depot_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 13,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_depot_depot_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_depot_depot_proto_depIdxs,
|
||||||
|
MessageInfos: file_helios_depot_depot_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_depot_depot_proto = out.File
|
||||||
|
file_helios_depot_depot_proto_rawDesc = nil
|
||||||
|
file_helios_depot_depot_proto_goTypes = nil
|
||||||
|
file_helios_depot_depot_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,241 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/depot/depot.proto
|
||||||
|
|
||||||
|
package pbdepot
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
Depot_GetObject_FullMethodName = "/helios.depot.Depot/GetObject"
|
||||||
|
Depot_GetObjects_FullMethodName = "/helios.depot.Depot/GetObjects"
|
||||||
|
Depot_UploadNewObject_FullMethodName = "/helios.depot.Depot/UploadNewObject"
|
||||||
|
Depot_DeleteObject_FullMethodName = "/helios.depot.Depot/DeleteObject"
|
||||||
|
)
|
||||||
|
|
||||||
|
// DepotClient is the client API for Depot service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
//
|
||||||
|
// Depot stores assets as objects and has other features of handling media.
|
||||||
|
type DepotClient interface {
|
||||||
|
// Returns NOT_FOUND if the object does not exist.
|
||||||
|
GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error)
|
||||||
|
GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error)
|
||||||
|
UploadNewObject(ctx context.Context, in *UploadNewObjectRequest, opts ...grpc.CallOption) (*UploadNewObjectResponse, error)
|
||||||
|
DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type depotClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewDepotClient(cc grpc.ClientConnInterface) DepotClient {
|
||||||
|
return &depotClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *depotClient) GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetObjectResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Depot_GetObject_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *depotClient) GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetObjectsResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Depot_GetObjects_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *depotClient) UploadNewObject(ctx context.Context, in *UploadNewObjectRequest, opts ...grpc.CallOption) (*UploadNewObjectResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(UploadNewObjectResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Depot_UploadNewObject_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *depotClient) DeleteObject(ctx context.Context, in *DeleteObjectRequest, opts ...grpc.CallOption) (*DeleteObjectResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(DeleteObjectResponse)
|
||||||
|
err := c.cc.Invoke(ctx, Depot_DeleteObject_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// DepotServer is the server API for Depot service.
|
||||||
|
// All implementations must embed UnimplementedDepotServer
|
||||||
|
// for forward compatibility.
|
||||||
|
//
|
||||||
|
// Depot stores assets as objects and has other features of handling media.
|
||||||
|
type DepotServer interface {
|
||||||
|
// Returns NOT_FOUND if the object does not exist.
|
||||||
|
GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
|
||||||
|
GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
|
||||||
|
UploadNewObject(context.Context, *UploadNewObjectRequest) (*UploadNewObjectResponse, error)
|
||||||
|
DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error)
|
||||||
|
mustEmbedUnimplementedDepotServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedDepotServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedDepotServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedDepotServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetObject not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedDepotServer) GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetObjects not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedDepotServer) UploadNewObject(context.Context, *UploadNewObjectRequest) (*UploadNewObjectResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UploadNewObject not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedDepotServer) DeleteObject(context.Context, *DeleteObjectRequest) (*DeleteObjectResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteObject not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedDepotServer) mustEmbedUnimplementedDepotServer() {}
|
||||||
|
func (UnimplementedDepotServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeDepotServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to DepotServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeDepotServer interface {
|
||||||
|
mustEmbedUnimplementedDepotServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterDepotServer(s grpc.ServiceRegistrar, srv DepotServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedDepotServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&Depot_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Depot_GetObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetObjectRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(DepotServer).GetObject(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Depot_GetObject_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(DepotServer).GetObject(ctx, req.(*GetObjectRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Depot_GetObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetObjectsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(DepotServer).GetObjects(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Depot_GetObjects_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(DepotServer).GetObjects(ctx, req.(*GetObjectsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Depot_UploadNewObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UploadNewObjectRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(DepotServer).UploadNewObject(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Depot_UploadNewObject_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(DepotServer).UploadNewObject(ctx, req.(*UploadNewObjectRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _Depot_DeleteObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteObjectRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(DepotServer).DeleteObject(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: Depot_DeleteObject_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(DepotServer).DeleteObject(ctx, req.(*DeleteObjectRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Depot_ServiceDesc is the grpc.ServiceDesc for Depot service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var Depot_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.depot.Depot",
|
||||||
|
HandlerType: (*DepotServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "GetObject",
|
||||||
|
Handler: _Depot_GetObject_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetObjects",
|
||||||
|
Handler: _Depot_GetObjects_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "UploadNewObject",
|
||||||
|
Handler: _Depot_UploadNewObject_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteObject",
|
||||||
|
Handler: _Depot_DeleteObject_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/depot/depot.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,955 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/human/human.proto
|
||||||
|
|
||||||
|
package pbhuman
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type Human struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
// Public url for the profile picture/headshot
|
||||||
|
ProfilePictureUrl string `protobuf:"bytes,2,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
||||||
|
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
IsFlowyAdmin bool `protobuf:"varint,5,opt,name=is_flowy_admin,json=isFlowyAdmin,proto3" json:"is_flowy_admin,omitempty"`
|
||||||
|
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) Reset() {
|
||||||
|
*x = Human{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Human) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Human) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 Human.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Human) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetProfilePictureUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ProfilePictureUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetIsFlowyAdmin() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.IsFlowyAdmin
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Human) GetJoinedAt() *timestamppb.Timestamp {
|
||||||
|
if x != nil {
|
||||||
|
return x.JoinedAt
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type AddHumanRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
ProfilePictureUrl string `protobuf:"bytes,3,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) Reset() {
|
||||||
|
*x = AddHumanRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AddHumanRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 AddHumanRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AddHumanRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanRequest) GetProfilePictureUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ProfilePictureUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type AddHumanResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanResponse) Reset() {
|
||||||
|
*x = AddHumanResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AddHumanResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AddHumanResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 AddHumanResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AddHumanResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddHumanResponse) GetHuman() *Human {
|
||||||
|
if x != nil {
|
||||||
|
return x.Human
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetHumanByEmailRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailRequest) Reset() {
|
||||||
|
*x = GetHumanByEmailRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetHumanByEmailRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 GetHumanByEmailRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetHumanByEmailRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetHumanByEmailResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailResponse) Reset() {
|
||||||
|
*x = GetHumanByEmailResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetHumanByEmailResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 GetHumanByEmailResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetHumanByEmailResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByEmailResponse) GetHuman() *Human {
|
||||||
|
if x != nil {
|
||||||
|
return x.Human
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetHumanByIdRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdRequest) Reset() {
|
||||||
|
*x = GetHumanByIdRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetHumanByIdRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 GetHumanByIdRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetHumanByIdRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdRequest) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetHumanByIdResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Human *Human `protobuf:"bytes,1,opt,name=human,proto3" json:"human,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdResponse) Reset() {
|
||||||
|
*x = GetHumanByIdResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetHumanByIdResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 GetHumanByIdResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetHumanByIdResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetHumanByIdResponse) GetHuman() *Human {
|
||||||
|
if x != nil {
|
||||||
|
return x.Human
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type UpdateHumanProfilePictureRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||||
|
// Ensure that this profile picture is public
|
||||||
|
NewProfilePictureUrl string `protobuf:"bytes,2,opt,name=new_profile_picture_url,json=newProfilePictureUrl,proto3" json:"new_profile_picture_url,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureRequest) Reset() {
|
||||||
|
*x = UpdateHumanProfilePictureRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateHumanProfilePictureRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 UpdateHumanProfilePictureRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UpdateHumanProfilePictureRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureRequest) GetHumanId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.HumanId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureRequest) GetNewProfilePictureUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.NewProfilePictureUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type UpdateHumanProfilePictureResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureResponse) Reset() {
|
||||||
|
*x = UpdateHumanProfilePictureResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[8]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateHumanProfilePictureResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UpdateHumanProfilePictureResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 UpdateHumanProfilePictureResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UpdateHumanProfilePictureResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
type UpdateHumanDisplayNameRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||||
|
NewDisplayName string `protobuf:"bytes,2,opt,name=new_display_name,json=newDisplayName,proto3" json:"new_display_name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameRequest) Reset() {
|
||||||
|
*x = UpdateHumanDisplayNameRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[9]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateHumanDisplayNameRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 UpdateHumanDisplayNameRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UpdateHumanDisplayNameRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{9}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameRequest) GetHumanId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.HumanId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameRequest) GetNewDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.NewDisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type UpdateHumanDisplayNameResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameResponse) Reset() {
|
||||||
|
*x = UpdateHumanDisplayNameResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*UpdateHumanDisplayNameResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *UpdateHumanDisplayNameResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 UpdateHumanDisplayNameResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*UpdateHumanDisplayNameResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{10}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListHumansRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListHumansRequest) Reset() {
|
||||||
|
*x = ListHumansRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[11]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListHumansRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListHumansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListHumansRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 ListHumansRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListHumansRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{11}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListHumansResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Humans []*Human `protobuf:"bytes,1,rep,name=humans,proto3" json:"humans,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListHumansResponse) Reset() {
|
||||||
|
*x = ListHumansResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[12]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListHumansResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListHumansResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListHumansResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 ListHumansResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListHumansResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{12}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListHumansResponse) GetHumans() []*Human {
|
||||||
|
if x != nil {
|
||||||
|
return x.Humans
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetFlowyAdminRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||||
|
IsFlowyAdmin bool `protobuf:"varint,2,opt,name=is_flowy_admin,json=isFlowyAdmin,proto3" json:"is_flowy_admin,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminRequest) Reset() {
|
||||||
|
*x = SetFlowyAdminRequest{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[13]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetFlowyAdminRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 SetFlowyAdminRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetFlowyAdminRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{13}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminRequest) GetHumanId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.HumanId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminRequest) GetIsFlowyAdmin() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.IsFlowyAdmin
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type SetFlowyAdminResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminResponse) Reset() {
|
||||||
|
*x = SetFlowyAdminResponse{}
|
||||||
|
mi := &file_helios_human_human_proto_msgTypes[14]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SetFlowyAdminResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SetFlowyAdminResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_human_human_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 SetFlowyAdminResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SetFlowyAdminResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_human_human_proto_rawDescGZIP(), []int{14}
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_human_human_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_human_human_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x18, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2f, 0x68,
|
||||||
|
0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
|
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x05, 0x48, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70,
|
||||||
|
0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x11, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65,
|
||||||
|
0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73,
|
||||||
|
0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e,
|
||||||
|
0x69, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x05,
|
||||||
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||||
|
0x69, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
|
||||||
|
0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||||
|
0x70, 0x52, 0x08, 0x6a, 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x41, 0x74, 0x22, 0x7a, 0x0a, 0x0f, 0x41,
|
||||||
|
0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14,
|
||||||
|
0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
|
||||||
|
0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f,
|
||||||
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70,
|
||||||
|
0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69,
|
||||||
|
0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63,
|
||||||
|
0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x3d, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x48, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x68,
|
||||||
|
0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52,
|
||||||
|
0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x2e, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x44, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x12, 0x29, 0x0a, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||||
|
0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e,
|
||||||
|
0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x25, 0x0a, 0x13,
|
||||||
|
0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x02, 0x69, 0x64, 0x22, 0x41, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42,
|
||||||
|
0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x68,
|
||||||
|
0x75, 0x6d, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52,
|
||||||
|
0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x22, 0x74, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||||
|
0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74,
|
||||||
|
0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x17, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x72, 0x6f,
|
||||||
|
0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6e, 0x65, 0x77, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||||
|
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x23, 0x0a, 0x21,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||||
|
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0x64, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a,
|
||||||
|
0x10, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d,
|
||||||
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x65, 0x77, 0x44, 0x69, 0x73, 0x70,
|
||||||
|
0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74,
|
||||||
|
0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
|
||||||
|
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73,
|
||||||
|
0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x41,
|
||||||
|
0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x18, 0x01,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x06, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x73, 0x22, 0x57, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d,
|
||||||
|
0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x77, 0x79,
|
||||||
|
0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73,
|
||||||
|
0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65,
|
||||||
|
0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x32, 0xbc, 0x05, 0x0a, 0x0c, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x53, 0x65, 0x72,
|
||||||
|
0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x12, 0x1d, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e,
|
||||||
|
0x41, 0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||||
|
0x1e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x41,
|
||||||
|
0x64, 0x64, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
||||||
|
0x00, 0x12, 0x60, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x45,
|
||||||
|
0x6d, 0x61, 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75,
|
||||||
|
0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d,
|
||||||
|
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x42, 0x79, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42,
|
||||||
|
0x79, 0x49, 0x64, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x42, 0x79,
|
||||||
|
0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x19,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69,
|
||||||
|
0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||||
|
0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75,
|
||||||
|
0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||||
|
0x75, 0x6d, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x69, 0x63, 0x74, 0x75,
|
||||||
|
0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x16,
|
||||||
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c,
|
||||||
|
0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61,
|
||||||
|
0x6e, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d,
|
||||||
|
0x61, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x44, 0x69,
|
||||||
|
0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x73, 0x12, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61,
|
||||||
|
0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f,
|
||||||
|
0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x79, 0x41,
|
||||||
|
0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x6c,
|
||||||
|
0x6f, 0x77, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||||
|
0x22, 0x00, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||||
|
0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x3b, 0x70, 0x62, 0x68, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_human_human_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_human_human_proto_rawDescData = file_helios_human_human_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_human_human_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_human_human_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_human_human_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_human_human_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_human_human_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_human_human_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||||
|
var file_helios_human_human_proto_goTypes = []any{
|
||||||
|
(*Human)(nil), // 0: helios.human.Human
|
||||||
|
(*AddHumanRequest)(nil), // 1: helios.human.AddHumanRequest
|
||||||
|
(*AddHumanResponse)(nil), // 2: helios.human.AddHumanResponse
|
||||||
|
(*GetHumanByEmailRequest)(nil), // 3: helios.human.GetHumanByEmailRequest
|
||||||
|
(*GetHumanByEmailResponse)(nil), // 4: helios.human.GetHumanByEmailResponse
|
||||||
|
(*GetHumanByIdRequest)(nil), // 5: helios.human.GetHumanByIdRequest
|
||||||
|
(*GetHumanByIdResponse)(nil), // 6: helios.human.GetHumanByIdResponse
|
||||||
|
(*UpdateHumanProfilePictureRequest)(nil), // 7: helios.human.UpdateHumanProfilePictureRequest
|
||||||
|
(*UpdateHumanProfilePictureResponse)(nil), // 8: helios.human.UpdateHumanProfilePictureResponse
|
||||||
|
(*UpdateHumanDisplayNameRequest)(nil), // 9: helios.human.UpdateHumanDisplayNameRequest
|
||||||
|
(*UpdateHumanDisplayNameResponse)(nil), // 10: helios.human.UpdateHumanDisplayNameResponse
|
||||||
|
(*ListHumansRequest)(nil), // 11: helios.human.ListHumansRequest
|
||||||
|
(*ListHumansResponse)(nil), // 12: helios.human.ListHumansResponse
|
||||||
|
(*SetFlowyAdminRequest)(nil), // 13: helios.human.SetFlowyAdminRequest
|
||||||
|
(*SetFlowyAdminResponse)(nil), // 14: helios.human.SetFlowyAdminResponse
|
||||||
|
(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
|
||||||
|
}
|
||||||
|
var file_helios_human_human_proto_depIdxs = []int32{
|
||||||
|
15, // 0: helios.human.Human.joined_at:type_name -> google.protobuf.Timestamp
|
||||||
|
0, // 1: helios.human.AddHumanResponse.human:type_name -> helios.human.Human
|
||||||
|
0, // 2: helios.human.GetHumanByEmailResponse.human:type_name -> helios.human.Human
|
||||||
|
0, // 3: helios.human.GetHumanByIdResponse.human:type_name -> helios.human.Human
|
||||||
|
0, // 4: helios.human.ListHumansResponse.humans:type_name -> helios.human.Human
|
||||||
|
1, // 5: helios.human.HumanService.AddHuman:input_type -> helios.human.AddHumanRequest
|
||||||
|
3, // 6: helios.human.HumanService.GetHumanByEmail:input_type -> helios.human.GetHumanByEmailRequest
|
||||||
|
5, // 7: helios.human.HumanService.GetHumanById:input_type -> helios.human.GetHumanByIdRequest
|
||||||
|
7, // 8: helios.human.HumanService.UpdateHumanProfilePicture:input_type -> helios.human.UpdateHumanProfilePictureRequest
|
||||||
|
9, // 9: helios.human.HumanService.UpdateHumanDisplayName:input_type -> helios.human.UpdateHumanDisplayNameRequest
|
||||||
|
11, // 10: helios.human.HumanService.ListHumans:input_type -> helios.human.ListHumansRequest
|
||||||
|
13, // 11: helios.human.HumanService.SetFlowyAdmin:input_type -> helios.human.SetFlowyAdminRequest
|
||||||
|
2, // 12: helios.human.HumanService.AddHuman:output_type -> helios.human.AddHumanResponse
|
||||||
|
4, // 13: helios.human.HumanService.GetHumanByEmail:output_type -> helios.human.GetHumanByEmailResponse
|
||||||
|
6, // 14: helios.human.HumanService.GetHumanById:output_type -> helios.human.GetHumanByIdResponse
|
||||||
|
8, // 15: helios.human.HumanService.UpdateHumanProfilePicture:output_type -> helios.human.UpdateHumanProfilePictureResponse
|
||||||
|
10, // 16: helios.human.HumanService.UpdateHumanDisplayName:output_type -> helios.human.UpdateHumanDisplayNameResponse
|
||||||
|
12, // 17: helios.human.HumanService.ListHumans:output_type -> helios.human.ListHumansResponse
|
||||||
|
14, // 18: helios.human.HumanService.SetFlowyAdmin:output_type -> helios.human.SetFlowyAdminResponse
|
||||||
|
12, // [12:19] is the sub-list for method output_type
|
||||||
|
5, // [5:12] is the sub-list for method input_type
|
||||||
|
5, // [5:5] is the sub-list for extension type_name
|
||||||
|
5, // [5:5] is the sub-list for extension extendee
|
||||||
|
0, // [0:5] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_human_human_proto_init() }
|
||||||
|
func file_helios_human_human_proto_init() {
|
||||||
|
if File_helios_human_human_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_human_human_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 15,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_human_human_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_human_human_proto_depIdxs,
|
||||||
|
MessageInfos: file_helios_human_human_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_human_human_proto = out.File
|
||||||
|
file_helios_human_human_proto_rawDesc = nil
|
||||||
|
file_helios_human_human_proto_goTypes = nil
|
||||||
|
file_helios_human_human_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,359 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/human/human.proto
|
||||||
|
|
||||||
|
package pbhuman
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
HumanService_AddHuman_FullMethodName = "/helios.human.HumanService/AddHuman"
|
||||||
|
HumanService_GetHumanByEmail_FullMethodName = "/helios.human.HumanService/GetHumanByEmail"
|
||||||
|
HumanService_GetHumanById_FullMethodName = "/helios.human.HumanService/GetHumanById"
|
||||||
|
HumanService_UpdateHumanProfilePicture_FullMethodName = "/helios.human.HumanService/UpdateHumanProfilePicture"
|
||||||
|
HumanService_UpdateHumanDisplayName_FullMethodName = "/helios.human.HumanService/UpdateHumanDisplayName"
|
||||||
|
HumanService_ListHumans_FullMethodName = "/helios.human.HumanService/ListHumans"
|
||||||
|
HumanService_SetFlowyAdmin_FullMethodName = "/helios.human.HumanService/SetFlowyAdmin"
|
||||||
|
)
|
||||||
|
|
||||||
|
// HumanServiceClient is the client API for HumanService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type HumanServiceClient interface {
|
||||||
|
// Returns ALREADY_EXISTS if the human is already added.
|
||||||
|
AddHuman(ctx context.Context, in *AddHumanRequest, opts ...grpc.CallOption) (*AddHumanResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
GetHumanByEmail(ctx context.Context, in *GetHumanByEmailRequest, opts ...grpc.CallOption) (*GetHumanByEmailResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
GetHumanById(ctx context.Context, in *GetHumanByIdRequest, opts ...grpc.CallOption) (*GetHumanByIdResponse, error)
|
||||||
|
UpdateHumanProfilePicture(ctx context.Context, in *UpdateHumanProfilePictureRequest, opts ...grpc.CallOption) (*UpdateHumanProfilePictureResponse, error)
|
||||||
|
UpdateHumanDisplayName(ctx context.Context, in *UpdateHumanDisplayNameRequest, opts ...grpc.CallOption) (*UpdateHumanDisplayNameResponse, error)
|
||||||
|
// Lists all humans.
|
||||||
|
ListHumans(ctx context.Context, in *ListHumansRequest, opts ...grpc.CallOption) (*ListHumansResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
SetFlowyAdmin(ctx context.Context, in *SetFlowyAdminRequest, opts ...grpc.CallOption) (*SetFlowyAdminResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type humanServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewHumanServiceClient(cc grpc.ClientConnInterface) HumanServiceClient {
|
||||||
|
return &humanServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) AddHuman(ctx context.Context, in *AddHumanRequest, opts ...grpc.CallOption) (*AddHumanResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(AddHumanResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_AddHuman_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) GetHumanByEmail(ctx context.Context, in *GetHumanByEmailRequest, opts ...grpc.CallOption) (*GetHumanByEmailResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetHumanByEmailResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_GetHumanByEmail_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) GetHumanById(ctx context.Context, in *GetHumanByIdRequest, opts ...grpc.CallOption) (*GetHumanByIdResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetHumanByIdResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_GetHumanById_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) UpdateHumanProfilePicture(ctx context.Context, in *UpdateHumanProfilePictureRequest, opts ...grpc.CallOption) (*UpdateHumanProfilePictureResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(UpdateHumanProfilePictureResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_UpdateHumanProfilePicture_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) UpdateHumanDisplayName(ctx context.Context, in *UpdateHumanDisplayNameRequest, opts ...grpc.CallOption) (*UpdateHumanDisplayNameResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(UpdateHumanDisplayNameResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_UpdateHumanDisplayName_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) ListHumans(ctx context.Context, in *ListHumansRequest, opts ...grpc.CallOption) (*ListHumansResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ListHumansResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_ListHumans_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *humanServiceClient) SetFlowyAdmin(ctx context.Context, in *SetFlowyAdminRequest, opts ...grpc.CallOption) (*SetFlowyAdminResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SetFlowyAdminResponse)
|
||||||
|
err := c.cc.Invoke(ctx, HumanService_SetFlowyAdmin_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// HumanServiceServer is the server API for HumanService service.
|
||||||
|
// All implementations must embed UnimplementedHumanServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type HumanServiceServer interface {
|
||||||
|
// Returns ALREADY_EXISTS if the human is already added.
|
||||||
|
AddHuman(context.Context, *AddHumanRequest) (*AddHumanResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
GetHumanByEmail(context.Context, *GetHumanByEmailRequest) (*GetHumanByEmailResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
GetHumanById(context.Context, *GetHumanByIdRequest) (*GetHumanByIdResponse, error)
|
||||||
|
UpdateHumanProfilePicture(context.Context, *UpdateHumanProfilePictureRequest) (*UpdateHumanProfilePictureResponse, error)
|
||||||
|
UpdateHumanDisplayName(context.Context, *UpdateHumanDisplayNameRequest) (*UpdateHumanDisplayNameResponse, error)
|
||||||
|
// Lists all humans.
|
||||||
|
ListHumans(context.Context, *ListHumansRequest) (*ListHumansResponse, error)
|
||||||
|
// Returns NOT_FOUND if the human is not found.
|
||||||
|
SetFlowyAdmin(context.Context, *SetFlowyAdminRequest) (*SetFlowyAdminResponse, error)
|
||||||
|
mustEmbedUnimplementedHumanServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedHumanServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedHumanServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedHumanServiceServer) AddHuman(context.Context, *AddHumanRequest) (*AddHumanResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method AddHuman not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) GetHumanByEmail(context.Context, *GetHumanByEmailRequest) (*GetHumanByEmailResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetHumanByEmail not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) GetHumanById(context.Context, *GetHumanByIdRequest) (*GetHumanByIdResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetHumanById not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) UpdateHumanProfilePicture(context.Context, *UpdateHumanProfilePictureRequest) (*UpdateHumanProfilePictureResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHumanProfilePicture not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) UpdateHumanDisplayName(context.Context, *UpdateHumanDisplayNameRequest) (*UpdateHumanDisplayNameResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateHumanDisplayName not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) ListHumans(context.Context, *ListHumansRequest) (*ListHumansResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ListHumans not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) SetFlowyAdmin(context.Context, *SetFlowyAdminRequest) (*SetFlowyAdminResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SetFlowyAdmin not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedHumanServiceServer) mustEmbedUnimplementedHumanServiceServer() {}
|
||||||
|
func (UnimplementedHumanServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeHumanServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to HumanServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeHumanServiceServer interface {
|
||||||
|
mustEmbedUnimplementedHumanServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterHumanServiceServer(s grpc.ServiceRegistrar, srv HumanServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedHumanServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&HumanService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_AddHuman_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AddHumanRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).AddHuman(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_AddHuman_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).AddHuman(ctx, req.(*AddHumanRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_GetHumanByEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetHumanByEmailRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).GetHumanByEmail(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_GetHumanByEmail_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).GetHumanByEmail(ctx, req.(*GetHumanByEmailRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_GetHumanById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetHumanByIdRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).GetHumanById(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_GetHumanById_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).GetHumanById(ctx, req.(*GetHumanByIdRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_UpdateHumanProfilePicture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UpdateHumanProfilePictureRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).UpdateHumanProfilePicture(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_UpdateHumanProfilePicture_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).UpdateHumanProfilePicture(ctx, req.(*UpdateHumanProfilePictureRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_UpdateHumanDisplayName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UpdateHumanDisplayNameRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).UpdateHumanDisplayName(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_UpdateHumanDisplayName_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).UpdateHumanDisplayName(ctx, req.(*UpdateHumanDisplayNameRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_ListHumans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListHumansRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).ListHumans(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_ListHumans_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).ListHumans(ctx, req.(*ListHumansRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _HumanService_SetFlowyAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SetFlowyAdminRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(HumanServiceServer).SetFlowyAdmin(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: HumanService_SetFlowyAdmin_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(HumanServiceServer).SetFlowyAdmin(ctx, req.(*SetFlowyAdminRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// HumanService_ServiceDesc is the grpc.ServiceDesc for HumanService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var HumanService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.human.HumanService",
|
||||||
|
HandlerType: (*HumanServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "AddHuman",
|
||||||
|
Handler: _HumanService_AddHuman_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetHumanByEmail",
|
||||||
|
Handler: _HumanService_GetHumanByEmail_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetHumanById",
|
||||||
|
Handler: _HumanService_GetHumanById_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "UpdateHumanProfilePicture",
|
||||||
|
Handler: _HumanService_UpdateHumanProfilePicture_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "UpdateHumanDisplayName",
|
||||||
|
Handler: _HumanService_UpdateHumanDisplayName_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ListHumans",
|
||||||
|
Handler: _HumanService_ListHumans_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SetFlowyAdmin",
|
||||||
|
Handler: _HumanService_SetFlowyAdmin_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/human/human.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/intelligence/intelligence.proto
|
||||||
|
|
||||||
|
package pbintelligence
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
_ "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type GeneralQuestionRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionRequest) Reset() {
|
||||||
|
*x = GeneralQuestionRequest{}
|
||||||
|
mi := &file_helios_intelligence_intelligence_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GeneralQuestionRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_intelligence_intelligence_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 GeneralQuestionRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GeneralQuestionRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_intelligence_intelligence_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionRequest) GetQuestion() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Question
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GeneralQuestionResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionResponse) Reset() {
|
||||||
|
*x = GeneralQuestionResponse{}
|
||||||
|
mi := &file_helios_intelligence_intelligence_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GeneralQuestionResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_intelligence_intelligence_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 GeneralQuestionResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GeneralQuestionResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_intelligence_intelligence_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GeneralQuestionResponse) GetAnswer() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Answer
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_intelligence_intelligence_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_intelligence_intelligence_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x26, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x6c, 0x6c, 0x69,
|
||||||
|
0x67, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e,
|
||||||
|
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2e, 0x69, 0x6e, 0x74, 0x65, 0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x1f, 0x67,
|
||||||
|
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
|
||||||
|
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x34,
|
||||||
|
0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f,
|
||||||
|
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x69, 0x6f, 0x6e, 0x22, 0x31, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51,
|
||||||
|
0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
|
0x16, 0x0a, 0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x06, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x32, 0x83, 0x01, 0x0a, 0x13, 0x49, 0x6e, 0x74, 0x65,
|
||||||
|
0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
|
||||||
|
0x6c, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69,
|
||||||
|
0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65,
|
||||||
|
0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c,
|
||||||
|
0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||||
|
0x2c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x6c, 0x6c, 0x69,
|
||||||
|
0x67, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x51, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x4a, 0x5a,
|
||||||
|
0x48, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77,
|
||||||
|
0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65,
|
||||||
|
0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x69, 0x6e,
|
||||||
|
0x74, 0x65, 0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x3b, 0x70, 0x62, 0x69, 0x6e, 0x74,
|
||||||
|
0x65, 0x6c, 0x6c, 0x69, 0x67, 0x65, 0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_intelligence_intelligence_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_intelligence_intelligence_proto_rawDescData = file_helios_intelligence_intelligence_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_intelligence_intelligence_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_intelligence_intelligence_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_intelligence_intelligence_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_intelligence_intelligence_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_intelligence_intelligence_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_intelligence_intelligence_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||||
|
var file_helios_intelligence_intelligence_proto_goTypes = []any{
|
||||||
|
(*GeneralQuestionRequest)(nil), // 0: helios.intelligence.GeneralQuestionRequest
|
||||||
|
(*GeneralQuestionResponse)(nil), // 1: helios.intelligence.GeneralQuestionResponse
|
||||||
|
}
|
||||||
|
var file_helios_intelligence_intelligence_proto_depIdxs = []int32{
|
||||||
|
0, // 0: helios.intelligence.IntelligenceService.GeneralQuestion:input_type -> helios.intelligence.GeneralQuestionRequest
|
||||||
|
1, // 1: helios.intelligence.IntelligenceService.GeneralQuestion:output_type -> helios.intelligence.GeneralQuestionResponse
|
||||||
|
1, // [1:2] is the sub-list for method output_type
|
||||||
|
0, // [0:1] is the sub-list for method input_type
|
||||||
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
|
0, // [0:0] is the sub-list for extension extendee
|
||||||
|
0, // [0:0] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_intelligence_intelligence_proto_init() }
|
||||||
|
func file_helios_intelligence_intelligence_proto_init() {
|
||||||
|
if File_helios_intelligence_intelligence_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_intelligence_intelligence_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 2,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_intelligence_intelligence_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_intelligence_intelligence_proto_depIdxs,
|
||||||
|
MessageInfos: file_helios_intelligence_intelligence_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_intelligence_intelligence_proto = out.File
|
||||||
|
file_helios_intelligence_intelligence_proto_rawDesc = nil
|
||||||
|
file_helios_intelligence_intelligence_proto_goTypes = nil
|
||||||
|
file_helios_intelligence_intelligence_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/intelligence/intelligence.proto
|
||||||
|
|
||||||
|
package pbintelligence
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
IntelligenceService_GeneralQuestion_FullMethodName = "/helios.intelligence.IntelligenceService/GeneralQuestion"
|
||||||
|
)
|
||||||
|
|
||||||
|
// IntelligenceServiceClient is the client API for IntelligenceService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type IntelligenceServiceClient interface {
|
||||||
|
GeneralQuestion(ctx context.Context, in *GeneralQuestionRequest, opts ...grpc.CallOption) (*GeneralQuestionResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type intelligenceServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewIntelligenceServiceClient(cc grpc.ClientConnInterface) IntelligenceServiceClient {
|
||||||
|
return &intelligenceServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *intelligenceServiceClient) GeneralQuestion(ctx context.Context, in *GeneralQuestionRequest, opts ...grpc.CallOption) (*GeneralQuestionResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GeneralQuestionResponse)
|
||||||
|
err := c.cc.Invoke(ctx, IntelligenceService_GeneralQuestion_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IntelligenceServiceServer is the server API for IntelligenceService service.
|
||||||
|
// All implementations must embed UnimplementedIntelligenceServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type IntelligenceServiceServer interface {
|
||||||
|
GeneralQuestion(context.Context, *GeneralQuestionRequest) (*GeneralQuestionResponse, error)
|
||||||
|
mustEmbedUnimplementedIntelligenceServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedIntelligenceServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedIntelligenceServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedIntelligenceServiceServer) GeneralQuestion(context.Context, *GeneralQuestionRequest) (*GeneralQuestionResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GeneralQuestion not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedIntelligenceServiceServer) mustEmbedUnimplementedIntelligenceServiceServer() {}
|
||||||
|
func (UnimplementedIntelligenceServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeIntelligenceServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to IntelligenceServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeIntelligenceServiceServer interface {
|
||||||
|
mustEmbedUnimplementedIntelligenceServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterIntelligenceServiceServer(s grpc.ServiceRegistrar, srv IntelligenceServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedIntelligenceServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&IntelligenceService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _IntelligenceService_GeneralQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GeneralQuestionRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(IntelligenceServiceServer).GeneralQuestion(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: IntelligenceService_GeneralQuestion_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(IntelligenceServiceServer).GeneralQuestion(ctx, req.(*GeneralQuestionRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// IntelligenceService_ServiceDesc is the grpc.ServiceDesc for IntelligenceService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var IntelligenceService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.intelligence.IntelligenceService",
|
||||||
|
HandlerType: (*IntelligenceServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "GeneralQuestion",
|
||||||
|
Handler: _IntelligenceService_GeneralQuestion_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/intelligence/intelligence.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,431 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/keypad/keypad.proto
|
||||||
|
|
||||||
|
package pbkeypad
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type GetConfigRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetConfigRequest) Reset() {
|
||||||
|
*x = GetConfigRequest{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetConfigRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetConfigRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetConfigRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 GetConfigRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetConfigRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetConfigResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
YamlConfig string `protobuf:"bytes,1,opt,name=yaml_config,json=yamlConfig,proto3" json:"yaml_config,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetConfigResponse) Reset() {
|
||||||
|
*x = GetConfigResponse{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetConfigResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetConfigResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetConfigResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 GetConfigResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetConfigResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetConfigResponse) GetYamlConfig() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.YamlConfig
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SaveConfigRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
YamlConfig string `protobuf:"bytes,1,opt,name=yaml_config,json=yamlConfig,proto3" json:"yaml_config,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SaveConfigRequest) Reset() {
|
||||||
|
*x = SaveConfigRequest{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SaveConfigRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SaveConfigRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SaveConfigRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 SaveConfigRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SaveConfigRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SaveConfigRequest) GetYamlConfig() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.YamlConfig
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type SaveConfigResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SaveConfigResponse) Reset() {
|
||||||
|
*x = SaveConfigResponse{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SaveConfigResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*SaveConfigResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *SaveConfigResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 SaveConfigResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*SaveConfigResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListKeypadsRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsRequest) Reset() {
|
||||||
|
*x = ListKeypadsRequest{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListKeypadsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListKeypadsRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 ListKeypadsRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListKeypadsRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListKeypadsResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HumanKeypads []*ListKeypadsResponse_HumanKeypad `protobuf:"bytes,1,rep,name=human_keypads,json=humanKeypads,proto3" json:"human_keypads,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse) Reset() {
|
||||||
|
*x = ListKeypadsResponse{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListKeypadsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 ListKeypadsResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListKeypadsResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse) GetHumanKeypads() []*ListKeypadsResponse_HumanKeypad {
|
||||||
|
if x != nil {
|
||||||
|
return x.HumanKeypads
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListKeypadsResponse_HumanKeypad struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
HumanId string `protobuf:"bytes,1,opt,name=human_id,json=humanId,proto3" json:"human_id,omitempty"`
|
||||||
|
YamlConfig string `protobuf:"bytes,2,opt,name=yaml_config,json=yamlConfig,proto3" json:"yaml_config,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse_HumanKeypad) Reset() {
|
||||||
|
*x = ListKeypadsResponse_HumanKeypad{}
|
||||||
|
mi := &file_helios_keypad_keypad_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse_HumanKeypad) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListKeypadsResponse_HumanKeypad) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse_HumanKeypad) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_keypad_keypad_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 ListKeypadsResponse_HumanKeypad.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListKeypadsResponse_HumanKeypad) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescGZIP(), []int{5, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse_HumanKeypad) GetHumanId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.HumanId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListKeypadsResponse_HumanKeypad) GetYamlConfig() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.YamlConfig
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_keypad_keypad_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_keypad_keypad_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1a, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2f,
|
||||||
|
0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x47,
|
||||||
|
0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
|
||||||
|
0x34, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x79, 0x61, 0x6d, 0x6c, 0x5f, 0x63, 0x6f, 0x6e,
|
||||||
|
0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x43,
|
||||||
|
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x34, 0x0a, 0x11, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e,
|
||||||
|
0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x79, 0x61,
|
||||||
|
0x6d, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x14, 0x0a, 0x12, 0x53,
|
||||||
|
0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x73,
|
||||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb5, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74,
|
||||||
|
0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
|
0x53, 0x0a, 0x0d, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x73,
|
||||||
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x70, 0x61,
|
||||||
|
0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e,
|
||||||
|
0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x52, 0x0c, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x4b, 0x65, 0x79,
|
||||||
|
0x70, 0x61, 0x64, 0x73, 0x1a, 0x49, 0x0a, 0x0b, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x4b, 0x65, 0x79,
|
||||||
|
0x70, 0x61, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x1f,
|
||||||
|
0x0a, 0x0b, 0x79, 0x61, 0x6d, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x0a, 0x79, 0x61, 0x6d, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32,
|
||||||
|
0x88, 0x02, 0x0a, 0x0d, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
|
||||||
|
0x65, 0x12, 0x4e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f,
|
||||||
|
0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e, 0x47,
|
||||||
|
0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||||
|
0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e,
|
||||||
|
0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
|
||||||
|
0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e,
|
||||||
|
0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x1a, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79, 0x70, 0x61,
|
||||||
|
0x64, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x70,
|
||||||
|
0x61, 0x64, 0x73, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6b, 0x65, 0x79,
|
||||||
|
0x70, 0x61, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x73, 0x52,
|
||||||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e,
|
||||||
|
0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x70, 0x61,
|
||||||
|
0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69,
|
||||||
|
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c,
|
||||||
|
0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x6b, 0x65, 0x79, 0x70, 0x61,
|
||||||
|
0x64, 0x3b, 0x70, 0x62, 0x6b, 0x65, 0x79, 0x70, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_keypad_keypad_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_keypad_keypad_proto_rawDescData = file_helios_keypad_keypad_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_keypad_keypad_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_keypad_keypad_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_keypad_keypad_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_keypad_keypad_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_keypad_keypad_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_keypad_keypad_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||||
|
var file_helios_keypad_keypad_proto_goTypes = []any{
|
||||||
|
(*GetConfigRequest)(nil), // 0: helios.keypad.GetConfigRequest
|
||||||
|
(*GetConfigResponse)(nil), // 1: helios.keypad.GetConfigResponse
|
||||||
|
(*SaveConfigRequest)(nil), // 2: helios.keypad.SaveConfigRequest
|
||||||
|
(*SaveConfigResponse)(nil), // 3: helios.keypad.SaveConfigResponse
|
||||||
|
(*ListKeypadsRequest)(nil), // 4: helios.keypad.ListKeypadsRequest
|
||||||
|
(*ListKeypadsResponse)(nil), // 5: helios.keypad.ListKeypadsResponse
|
||||||
|
(*ListKeypadsResponse_HumanKeypad)(nil), // 6: helios.keypad.ListKeypadsResponse.HumanKeypad
|
||||||
|
}
|
||||||
|
var file_helios_keypad_keypad_proto_depIdxs = []int32{
|
||||||
|
6, // 0: helios.keypad.ListKeypadsResponse.human_keypads:type_name -> helios.keypad.ListKeypadsResponse.HumanKeypad
|
||||||
|
0, // 1: helios.keypad.KeypadService.GetConfig:input_type -> helios.keypad.GetConfigRequest
|
||||||
|
2, // 2: helios.keypad.KeypadService.SaveConfig:input_type -> helios.keypad.SaveConfigRequest
|
||||||
|
4, // 3: helios.keypad.KeypadService.ListKeypads:input_type -> helios.keypad.ListKeypadsRequest
|
||||||
|
1, // 4: helios.keypad.KeypadService.GetConfig:output_type -> helios.keypad.GetConfigResponse
|
||||||
|
3, // 5: helios.keypad.KeypadService.SaveConfig:output_type -> helios.keypad.SaveConfigResponse
|
||||||
|
5, // 6: helios.keypad.KeypadService.ListKeypads:output_type -> helios.keypad.ListKeypadsResponse
|
||||||
|
4, // [4:7] is the sub-list for method output_type
|
||||||
|
1, // [1:4] is the sub-list for method input_type
|
||||||
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
|
1, // [1:1] is the sub-list for extension extendee
|
||||||
|
0, // [0:1] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_keypad_keypad_proto_init() }
|
||||||
|
func file_helios_keypad_keypad_proto_init() {
|
||||||
|
if File_helios_keypad_keypad_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_keypad_keypad_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 7,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_keypad_keypad_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_keypad_keypad_proto_depIdxs,
|
||||||
|
MessageInfos: file_helios_keypad_keypad_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_keypad_keypad_proto = out.File
|
||||||
|
file_helios_keypad_keypad_proto_rawDesc = nil
|
||||||
|
file_helios_keypad_keypad_proto_goTypes = nil
|
||||||
|
file_helios_keypad_keypad_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,203 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/keypad/keypad.proto
|
||||||
|
|
||||||
|
package pbkeypad
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
KeypadService_GetConfig_FullMethodName = "/helios.keypad.KeypadService/GetConfig"
|
||||||
|
KeypadService_SaveConfig_FullMethodName = "/helios.keypad.KeypadService/SaveConfig"
|
||||||
|
KeypadService_ListKeypads_FullMethodName = "/helios.keypad.KeypadService/ListKeypads"
|
||||||
|
)
|
||||||
|
|
||||||
|
// KeypadServiceClient is the client API for KeypadService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type KeypadServiceClient interface {
|
||||||
|
// Requires authed human.
|
||||||
|
GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
|
||||||
|
// Requires authed human.
|
||||||
|
SaveConfig(ctx context.Context, in *SaveConfigRequest, opts ...grpc.CallOption) (*SaveConfigResponse, error)
|
||||||
|
// Requires admin.
|
||||||
|
ListKeypads(ctx context.Context, in *ListKeypadsRequest, opts ...grpc.CallOption) (*ListKeypadsResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type keypadServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewKeypadServiceClient(cc grpc.ClientConnInterface) KeypadServiceClient {
|
||||||
|
return &keypadServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *keypadServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetConfigResponse)
|
||||||
|
err := c.cc.Invoke(ctx, KeypadService_GetConfig_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *keypadServiceClient) SaveConfig(ctx context.Context, in *SaveConfigRequest, opts ...grpc.CallOption) (*SaveConfigResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SaveConfigResponse)
|
||||||
|
err := c.cc.Invoke(ctx, KeypadService_SaveConfig_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *keypadServiceClient) ListKeypads(ctx context.Context, in *ListKeypadsRequest, opts ...grpc.CallOption) (*ListKeypadsResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ListKeypadsResponse)
|
||||||
|
err := c.cc.Invoke(ctx, KeypadService_ListKeypads_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// KeypadServiceServer is the server API for KeypadService service.
|
||||||
|
// All implementations must embed UnimplementedKeypadServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type KeypadServiceServer interface {
|
||||||
|
// Requires authed human.
|
||||||
|
GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
|
||||||
|
// Requires authed human.
|
||||||
|
SaveConfig(context.Context, *SaveConfigRequest) (*SaveConfigResponse, error)
|
||||||
|
// Requires admin.
|
||||||
|
ListKeypads(context.Context, *ListKeypadsRequest) (*ListKeypadsResponse, error)
|
||||||
|
mustEmbedUnimplementedKeypadServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedKeypadServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedKeypadServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedKeypadServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedKeypadServiceServer) SaveConfig(context.Context, *SaveConfigRequest) (*SaveConfigResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SaveConfig not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedKeypadServiceServer) ListKeypads(context.Context, *ListKeypadsRequest) (*ListKeypadsResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ListKeypads not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedKeypadServiceServer) mustEmbedUnimplementedKeypadServiceServer() {}
|
||||||
|
func (UnimplementedKeypadServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeKeypadServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to KeypadServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeKeypadServiceServer interface {
|
||||||
|
mustEmbedUnimplementedKeypadServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterKeypadServiceServer(s grpc.ServiceRegistrar, srv KeypadServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedKeypadServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&KeypadService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _KeypadService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetConfigRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(KeypadServiceServer).GetConfig(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: KeypadService_GetConfig_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(KeypadServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _KeypadService_SaveConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SaveConfigRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(KeypadServiceServer).SaveConfig(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: KeypadService_SaveConfig_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(KeypadServiceServer).SaveConfig(ctx, req.(*SaveConfigRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _KeypadService_ListKeypads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListKeypadsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(KeypadServiceServer).ListKeypads(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: KeypadService_ListKeypads_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(KeypadServiceServer).ListKeypads(ctx, req.(*ListKeypadsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// KeypadService_ServiceDesc is the grpc.ServiceDesc for KeypadService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var KeypadService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.keypad.KeypadService",
|
||||||
|
HandlerType: (*KeypadServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "GetConfig",
|
||||||
|
Handler: _KeypadService_GetConfig_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SaveConfig",
|
||||||
|
Handler: _KeypadService_SaveConfig_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ListKeypads",
|
||||||
|
Handler: _KeypadService_ListKeypads_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/keypad/keypad.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,715 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/messenger/messenger.proto
|
||||||
|
|
||||||
|
package pbmessenger
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type ClientStateUpdate_UpdateType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
ClientStateUpdate_UPDATE_TYPE_UNSPECIFIED ClientStateUpdate_UpdateType = 0
|
||||||
|
ClientStateUpdate_UPDATE_TYPE_CLIENT_CONNECTED ClientStateUpdate_UpdateType = 1
|
||||||
|
ClientStateUpdate_UPDATE_TYPE_CLIENT_DISCONNECTED ClientStateUpdate_UpdateType = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for ClientStateUpdate_UpdateType.
|
||||||
|
var (
|
||||||
|
ClientStateUpdate_UpdateType_name = map[int32]string{
|
||||||
|
0: "UPDATE_TYPE_UNSPECIFIED",
|
||||||
|
1: "UPDATE_TYPE_CLIENT_CONNECTED",
|
||||||
|
2: "UPDATE_TYPE_CLIENT_DISCONNECTED",
|
||||||
|
}
|
||||||
|
ClientStateUpdate_UpdateType_value = map[string]int32{
|
||||||
|
"UPDATE_TYPE_UNSPECIFIED": 0,
|
||||||
|
"UPDATE_TYPE_CLIENT_CONNECTED": 1,
|
||||||
|
"UPDATE_TYPE_CLIENT_DISCONNECTED": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x ClientStateUpdate_UpdateType) Enum() *ClientStateUpdate_UpdateType {
|
||||||
|
p := new(ClientStateUpdate_UpdateType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientStateUpdate_UpdateType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientStateUpdate_UpdateType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_messenger_messenger_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientStateUpdate_UpdateType) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_messenger_messenger_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientStateUpdate_UpdateType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ClientStateUpdate_UpdateType.Descriptor instead.
|
||||||
|
func (ClientStateUpdate_UpdateType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{3, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ClientInfo_ClientType int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
ClientInfo_CLIENT_TYPE_UNSPECIFIED ClientInfo_ClientType = 0
|
||||||
|
ClientInfo_CLIENT_TYPE_KEYPAD ClientInfo_ClientType = 1
|
||||||
|
ClientInfo_CLIENT_TYPE_DAEMON ClientInfo_ClientType = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for ClientInfo_ClientType.
|
||||||
|
var (
|
||||||
|
ClientInfo_ClientType_name = map[int32]string{
|
||||||
|
0: "CLIENT_TYPE_UNSPECIFIED",
|
||||||
|
1: "CLIENT_TYPE_KEYPAD",
|
||||||
|
2: "CLIENT_TYPE_DAEMON",
|
||||||
|
}
|
||||||
|
ClientInfo_ClientType_value = map[string]int32{
|
||||||
|
"CLIENT_TYPE_UNSPECIFIED": 0,
|
||||||
|
"CLIENT_TYPE_KEYPAD": 1,
|
||||||
|
"CLIENT_TYPE_DAEMON": 2,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x ClientInfo_ClientType) Enum() *ClientInfo_ClientType {
|
||||||
|
p := new(ClientInfo_ClientType)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientInfo_ClientType) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientInfo_ClientType) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_messenger_messenger_proto_enumTypes[1].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ClientInfo_ClientType) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_messenger_messenger_proto_enumTypes[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x ClientInfo_ClientType) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ClientInfo_ClientType.Descriptor instead.
|
||||||
|
func (ClientInfo_ClientType) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{4, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type OutboundMessage struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||||||
|
ToHostname string `protobuf:"bytes,2,opt,name=to_hostname,json=toHostname,proto3" json:"to_hostname,omitempty"`
|
||||||
|
// For heartbeats, should send "heartbeat". This keeps the connection alive.
|
||||||
|
Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) Reset() {
|
||||||
|
*x = OutboundMessage{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*OutboundMessage) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 OutboundMessage.ProtoReflect.Descriptor instead.
|
||||||
|
func (*OutboundMessage) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) GetMessageId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MessageId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) GetToHostname() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ToHostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *OutboundMessage) GetPayload() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Payload
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type Message struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||||||
|
ToHostname string `protobuf:"bytes,2,opt,name=to_hostname,json=toHostname,proto3" json:"to_hostname,omitempty"`
|
||||||
|
FromHostname string `protobuf:"bytes,3,opt,name=from_hostname,json=fromHostname,proto3" json:"from_hostname,omitempty"`
|
||||||
|
Payload string `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) Reset() {
|
||||||
|
*x = Message{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Message) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Message) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 Message.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Message) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) GetMessageId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MessageId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) GetToHostname() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ToHostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) GetFromHostname() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.FromHostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Message) GetPayload() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Payload
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type InboundMessage struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Types that are assignable to Data:
|
||||||
|
//
|
||||||
|
// *InboundMessage_ClientMessage
|
||||||
|
// *InboundMessage_Error
|
||||||
|
// *InboundMessage_ClientUpdate
|
||||||
|
Data isInboundMessage_Data `protobuf_oneof:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InboundMessage) Reset() {
|
||||||
|
*x = InboundMessage{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InboundMessage) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InboundMessage) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InboundMessage) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 InboundMessage.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InboundMessage) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *InboundMessage) GetData() isInboundMessage_Data {
|
||||||
|
if m != nil {
|
||||||
|
return m.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InboundMessage) GetClientMessage() *Message {
|
||||||
|
if x, ok := x.GetData().(*InboundMessage_ClientMessage); ok {
|
||||||
|
return x.ClientMessage
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InboundMessage) GetError() string {
|
||||||
|
if x, ok := x.GetData().(*InboundMessage_Error); ok {
|
||||||
|
return x.Error
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InboundMessage) GetClientUpdate() *ClientStateUpdate {
|
||||||
|
if x, ok := x.GetData().(*InboundMessage_ClientUpdate); ok {
|
||||||
|
return x.ClientUpdate
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type isInboundMessage_Data interface {
|
||||||
|
isInboundMessage_Data()
|
||||||
|
}
|
||||||
|
|
||||||
|
type InboundMessage_ClientMessage struct {
|
||||||
|
ClientMessage *Message `protobuf:"bytes,1,opt,name=client_message,json=clientMessage,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type InboundMessage_Error struct {
|
||||||
|
Error string `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type InboundMessage_ClientUpdate struct {
|
||||||
|
ClientUpdate *ClientStateUpdate `protobuf:"bytes,3,opt,name=client_update,json=clientUpdate,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InboundMessage_ClientMessage) isInboundMessage_Data() {}
|
||||||
|
|
||||||
|
func (*InboundMessage_Error) isInboundMessage_Data() {}
|
||||||
|
|
||||||
|
func (*InboundMessage_ClientUpdate) isInboundMessage_Data() {}
|
||||||
|
|
||||||
|
type ClientStateUpdate struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Type ClientStateUpdate_UpdateType `protobuf:"varint,1,opt,name=type,proto3,enum=helios.messenger.ClientStateUpdate_UpdateType" json:"type,omitempty"`
|
||||||
|
Client *ClientInfo `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
|
||||||
|
AllClients []*ClientInfo `protobuf:"bytes,3,rep,name=all_clients,json=allClients,proto3" json:"all_clients,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) Reset() {
|
||||||
|
*x = ClientStateUpdate{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ClientStateUpdate) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 ClientStateUpdate.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ClientStateUpdate) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) GetType() ClientStateUpdate_UpdateType {
|
||||||
|
if x != nil {
|
||||||
|
return x.Type
|
||||||
|
}
|
||||||
|
return ClientStateUpdate_UPDATE_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) GetClient() *ClientInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.Client
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientStateUpdate) GetAllClients() []*ClientInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.AllClients
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ClientInfo struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Type ClientInfo_ClientType `protobuf:"varint,1,opt,name=type,proto3,enum=helios.messenger.ClientInfo_ClientType" json:"type,omitempty"`
|
||||||
|
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||||
|
ConnectedAt int64 `protobuf:"varint,3,opt,name=connected_at,json=connectedAt,proto3" json:"connected_at,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientInfo) Reset() {
|
||||||
|
*x = ClientInfo{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientInfo) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ClientInfo) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ClientInfo) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 ClientInfo.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ClientInfo) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientInfo) GetType() ClientInfo_ClientType {
|
||||||
|
if x != nil {
|
||||||
|
return x.Type
|
||||||
|
}
|
||||||
|
return ClientInfo_CLIENT_TYPE_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientInfo) GetHostname() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Hostname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ClientInfo) GetConnectedAt() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ConnectedAt
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListClientsRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListClientsRequest) Reset() {
|
||||||
|
*x = ListClientsRequest{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListClientsRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListClientsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListClientsRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 ListClientsRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListClientsRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
type ListClientsResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Clients []*ClientInfo `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListClientsResponse) Reset() {
|
||||||
|
*x = ListClientsResponse{}
|
||||||
|
mi := &file_helios_messenger_messenger_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListClientsResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ListClientsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ListClientsResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_messenger_messenger_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 ListClientsResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ListClientsResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ListClientsResponse) GetClients() []*ClientInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.Clients
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_messenger_messenger_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_messenger_messenger_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x20, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67,
|
||||||
|
0x65, 0x72, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x12, 0x10, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65,
|
||||||
|
0x6e, 0x67, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
|
||||||
|
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
||||||
|
0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73,
|
||||||
|
0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x68, 0x6f, 0x73,
|
||||||
|
0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x6f, 0x48,
|
||||||
|
0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f,
|
||||||
|
0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
|
||||||
|
0x64, 0x22, 0x88, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a,
|
||||||
|
0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b,
|
||||||
|
0x74, 0x6f, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x0a, 0x74, 0x6f, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a,
|
||||||
|
0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61,
|
||||||
|
0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xc0, 0x01, 0x0a,
|
||||||
|
0x0e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
||||||
|
0x42, 0x0a, 0x0e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||||||
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
||||||
|
0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73,
|
||||||
|
0x61, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4a, 0x0a, 0x0d, 0x63,
|
||||||
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
||||||
|
0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74,
|
||||||
|
0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6c, 0x69, 0x65, 0x6e,
|
||||||
|
0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
|
||||||
|
0xbe, 0x02, 0x0a, 0x11, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x55,
|
||||||
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73,
|
||||||
|
0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61,
|
||||||
|
0x74, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,
|
||||||
|
0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x63, 0x6c, 0x69,
|
||||||
|
0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x69,
|
||||||
|
0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12,
|
||||||
|
0x3d, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65,
|
||||||
|
0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e,
|
||||||
|
0x66, 0x6f, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x70,
|
||||||
|
0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17,
|
||||||
|
0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
|
||||||
|
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x55, 0x50, 0x44,
|
||||||
|
0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f,
|
||||||
|
0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x55,
|
||||||
|
0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e,
|
||||||
|
0x54, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02,
|
||||||
|
0x22, 0xe3, 0x01, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12,
|
||||||
|
0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72,
|
||||||
|
0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x43, 0x6c, 0x69, 0x65,
|
||||||
|
0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
|
0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
|
0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x6e,
|
||||||
|
0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
|
||||||
|
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x59, 0x0a, 0x0a, 0x43,
|
||||||
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4c, 0x49,
|
||||||
|
0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
|
||||||
|
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54,
|
||||||
|
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4b, 0x45, 0x59, 0x50, 0x41, 0x44, 0x10, 0x01, 0x12, 0x16,
|
||||||
|
0x0a, 0x12, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41,
|
||||||
|
0x45, 0x4d, 0x4f, 0x4e, 0x10, 0x02, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c,
|
||||||
|
0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x13,
|
||||||
|
0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65,
|
||||||
|
0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e,
|
||||||
|
0x66, 0x6f, 0x52, 0x07, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x32, 0xc1, 0x01, 0x0a, 0x10,
|
||||||
|
0x4d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
||||||
|
0x12, 0x51, 0x0a, 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x21, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x4f, 0x75,
|
||||||
|
0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x20, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72,
|
||||||
|
0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28,
|
||||||
|
0x01, 0x30, 0x01, 0x12, 0x5a, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e,
|
||||||
|
0x74, 0x73, 0x12, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
||||||
|
0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
||||||
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f,
|
||||||
|
0x73, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74,
|
||||||
|
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
|
||||||
|
0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c,
|
||||||
|
0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f,
|
||||||
|
0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f,
|
||||||
|
0x6d, 0x65, 0x73, 0x73, 0x65, 0x6e, 0x67, 0x65, 0x72, 0x3b, 0x70, 0x62, 0x6d, 0x65, 0x73, 0x73,
|
||||||
|
0x65, 0x6e, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_messenger_messenger_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_messenger_messenger_proto_rawDescData = file_helios_messenger_messenger_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_messenger_messenger_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_messenger_messenger_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_messenger_messenger_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_messenger_messenger_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_messenger_messenger_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_messenger_messenger_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
|
var file_helios_messenger_messenger_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||||
|
var file_helios_messenger_messenger_proto_goTypes = []any{
|
||||||
|
(ClientStateUpdate_UpdateType)(0), // 0: helios.messenger.ClientStateUpdate.UpdateType
|
||||||
|
(ClientInfo_ClientType)(0), // 1: helios.messenger.ClientInfo.ClientType
|
||||||
|
(*OutboundMessage)(nil), // 2: helios.messenger.OutboundMessage
|
||||||
|
(*Message)(nil), // 3: helios.messenger.Message
|
||||||
|
(*InboundMessage)(nil), // 4: helios.messenger.InboundMessage
|
||||||
|
(*ClientStateUpdate)(nil), // 5: helios.messenger.ClientStateUpdate
|
||||||
|
(*ClientInfo)(nil), // 6: helios.messenger.ClientInfo
|
||||||
|
(*ListClientsRequest)(nil), // 7: helios.messenger.ListClientsRequest
|
||||||
|
(*ListClientsResponse)(nil), // 8: helios.messenger.ListClientsResponse
|
||||||
|
}
|
||||||
|
var file_helios_messenger_messenger_proto_depIdxs = []int32{
|
||||||
|
3, // 0: helios.messenger.InboundMessage.client_message:type_name -> helios.messenger.Message
|
||||||
|
5, // 1: helios.messenger.InboundMessage.client_update:type_name -> helios.messenger.ClientStateUpdate
|
||||||
|
0, // 2: helios.messenger.ClientStateUpdate.type:type_name -> helios.messenger.ClientStateUpdate.UpdateType
|
||||||
|
6, // 3: helios.messenger.ClientStateUpdate.client:type_name -> helios.messenger.ClientInfo
|
||||||
|
6, // 4: helios.messenger.ClientStateUpdate.all_clients:type_name -> helios.messenger.ClientInfo
|
||||||
|
1, // 5: helios.messenger.ClientInfo.type:type_name -> helios.messenger.ClientInfo.ClientType
|
||||||
|
6, // 6: helios.messenger.ListClientsResponse.clients:type_name -> helios.messenger.ClientInfo
|
||||||
|
2, // 7: helios.messenger.MessengerService.Stream:input_type -> helios.messenger.OutboundMessage
|
||||||
|
7, // 8: helios.messenger.MessengerService.ListClients:input_type -> helios.messenger.ListClientsRequest
|
||||||
|
4, // 9: helios.messenger.MessengerService.Stream:output_type -> helios.messenger.InboundMessage
|
||||||
|
8, // 10: helios.messenger.MessengerService.ListClients:output_type -> helios.messenger.ListClientsResponse
|
||||||
|
9, // [9:11] is the sub-list for method output_type
|
||||||
|
7, // [7:9] is the sub-list for method input_type
|
||||||
|
7, // [7:7] is the sub-list for extension type_name
|
||||||
|
7, // [7:7] is the sub-list for extension extendee
|
||||||
|
0, // [0:7] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_messenger_messenger_proto_init() }
|
||||||
|
func file_helios_messenger_messenger_proto_init() {
|
||||||
|
if File_helios_messenger_messenger_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_helios_messenger_messenger_proto_msgTypes[2].OneofWrappers = []any{
|
||||||
|
(*InboundMessage_ClientMessage)(nil),
|
||||||
|
(*InboundMessage_Error)(nil),
|
||||||
|
(*InboundMessage_ClientUpdate)(nil),
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_messenger_messenger_proto_rawDesc,
|
||||||
|
NumEnums: 2,
|
||||||
|
NumMessages: 7,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_messenger_messenger_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_messenger_messenger_proto_depIdxs,
|
||||||
|
EnumInfos: file_helios_messenger_messenger_proto_enumTypes,
|
||||||
|
MessageInfos: file_helios_messenger_messenger_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_messenger_messenger_proto = out.File
|
||||||
|
file_helios_messenger_messenger_proto_rawDesc = nil
|
||||||
|
file_helios_messenger_messenger_proto_goTypes = nil
|
||||||
|
file_helios_messenger_messenger_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/messenger/messenger.proto
|
||||||
|
|
||||||
|
package pbmessenger
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
MessengerService_Stream_FullMethodName = "/helios.messenger.MessengerService/Stream"
|
||||||
|
MessengerService_ListClients_FullMethodName = "/helios.messenger.MessengerService/ListClients"
|
||||||
|
)
|
||||||
|
|
||||||
|
// MessengerServiceClient is the client API for MessengerService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
//
|
||||||
|
// Helios' messenger service serves as a dumb 'pipe' for communication between clients of the same account
|
||||||
|
type MessengerServiceClient interface {
|
||||||
|
// Note: must set hostname & authorization (session_id) headers
|
||||||
|
// Send heartbeats to keep connection alive.
|
||||||
|
// Also make sure to have reconnect logic as helios deployments does zero-downtime deploys, but still terminates old pods.
|
||||||
|
Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[OutboundMessage, InboundMessage], error)
|
||||||
|
ListClients(ctx context.Context, in *ListClientsRequest, opts ...grpc.CallOption) (*ListClientsResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type messengerServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewMessengerServiceClient(cc grpc.ClientConnInterface) MessengerServiceClient {
|
||||||
|
return &messengerServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *messengerServiceClient) Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[OutboundMessage, InboundMessage], error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
stream, err := c.cc.NewStream(ctx, &MessengerService_ServiceDesc.Streams[0], MessengerService_Stream_FullMethodName, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
x := &grpc.GenericClientStream[OutboundMessage, InboundMessage]{ClientStream: stream}
|
||||||
|
return x, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
|
type MessengerService_StreamClient = grpc.BidiStreamingClient[OutboundMessage, InboundMessage]
|
||||||
|
|
||||||
|
func (c *messengerServiceClient) ListClients(ctx context.Context, in *ListClientsRequest, opts ...grpc.CallOption) (*ListClientsResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ListClientsResponse)
|
||||||
|
err := c.cc.Invoke(ctx, MessengerService_ListClients_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// MessengerServiceServer is the server API for MessengerService service.
|
||||||
|
// All implementations must embed UnimplementedMessengerServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
//
|
||||||
|
// Helios' messenger service serves as a dumb 'pipe' for communication between clients of the same account
|
||||||
|
type MessengerServiceServer interface {
|
||||||
|
// Note: must set hostname & authorization (session_id) headers
|
||||||
|
// Send heartbeats to keep connection alive.
|
||||||
|
// Also make sure to have reconnect logic as helios deployments does zero-downtime deploys, but still terminates old pods.
|
||||||
|
Stream(grpc.BidiStreamingServer[OutboundMessage, InboundMessage]) error
|
||||||
|
ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error)
|
||||||
|
mustEmbedUnimplementedMessengerServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedMessengerServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedMessengerServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedMessengerServiceServer) Stream(grpc.BidiStreamingServer[OutboundMessage, InboundMessage]) error {
|
||||||
|
return status.Errorf(codes.Unimplemented, "method Stream not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedMessengerServiceServer) ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ListClients not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedMessengerServiceServer) mustEmbedUnimplementedMessengerServiceServer() {}
|
||||||
|
func (UnimplementedMessengerServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeMessengerServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to MessengerServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeMessengerServiceServer interface {
|
||||||
|
mustEmbedUnimplementedMessengerServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterMessengerServiceServer(s grpc.ServiceRegistrar, srv MessengerServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedMessengerServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&MessengerService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _MessengerService_Stream_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||||
|
return srv.(MessengerServiceServer).Stream(&grpc.GenericServerStream[OutboundMessage, InboundMessage]{ServerStream: stream})
|
||||||
|
}
|
||||||
|
|
||||||
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
|
type MessengerService_StreamServer = grpc.BidiStreamingServer[OutboundMessage, InboundMessage]
|
||||||
|
|
||||||
|
func _MessengerService_ListClients_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListClientsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(MessengerServiceServer).ListClients(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: MessengerService_ListClients_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(MessengerServiceServer).ListClients(ctx, req.(*ListClientsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MessengerService_ServiceDesc is the grpc.ServiceDesc for MessengerService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var MessengerService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.messenger.MessengerService",
|
||||||
|
HandlerType: (*MessengerServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "ListClients",
|
||||||
|
Handler: _MessengerService_ListClients_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{
|
||||||
|
{
|
||||||
|
StreamName: "Stream",
|
||||||
|
Handler: _MessengerService_Stream_Handler,
|
||||||
|
ServerStreams: true,
|
||||||
|
ClientStreams: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Metadata: "helios/messenger/messenger.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,349 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/speech/speech.proto
|
||||||
|
|
||||||
|
package pbspeech
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type GetUploadUrlRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
||||||
|
ContentLength int64 `protobuf:"varint,2,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlRequest) Reset() {
|
||||||
|
*x = GetUploadUrlRequest{}
|
||||||
|
mi := &file_helios_speech_speech_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetUploadUrlRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_speech_speech_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 GetUploadUrlRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetUploadUrlRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_speech_speech_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlRequest) GetContentType() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentType
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlRequest) GetContentLength() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ContentLength
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetUploadUrlResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Reference id to the object
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
// Make a PUT request to this url with the content
|
||||||
|
UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
|
||||||
|
// Use these headers in the upload PUT request
|
||||||
|
UploadHeaders map[string]string `protobuf:"bytes,3,rep,name=upload_headers,json=uploadHeaders,proto3" json:"upload_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) Reset() {
|
||||||
|
*x = GetUploadUrlResponse{}
|
||||||
|
mi := &file_helios_speech_speech_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetUploadUrlResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_speech_speech_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 GetUploadUrlResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetUploadUrlResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_speech_speech_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) GetUploadUrl() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UploadUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetUploadUrlResponse) GetUploadHeaders() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.UploadHeaders
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type TranscribeRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ObjectId string `protobuf:"bytes,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
|
||||||
|
// Whether or not to use deepgram smart format
|
||||||
|
SmartFormat bool `protobuf:"varint,2,opt,name=smart_format,json=smartFormat,proto3" json:"smart_format,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeRequest) Reset() {
|
||||||
|
*x = TranscribeRequest{}
|
||||||
|
mi := &file_helios_speech_speech_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*TranscribeRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *TranscribeRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_speech_speech_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 TranscribeRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*TranscribeRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_speech_speech_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeRequest) GetObjectId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.ObjectId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeRequest) GetSmartFormat() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.SmartFormat
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type TranscribeResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
FullText string `protobuf:"bytes,1,opt,name=full_text,json=fullText,proto3" json:"full_text,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeResponse) Reset() {
|
||||||
|
*x = TranscribeResponse{}
|
||||||
|
mi := &file_helios_speech_speech_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*TranscribeResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *TranscribeResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_speech_speech_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 TranscribeResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*TranscribeResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_speech_speech_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TranscribeResponse) GetFullText() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.FullText
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_speech_speech_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_speech_speech_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1a, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f,
|
||||||
|
0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x68, 0x65,
|
||||||
|
0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x22, 0x5f, 0x0a, 0x13, 0x47,
|
||||||
|
0x65, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79,
|
||||||
|
0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
|
||||||
|
0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
|
||||||
|
0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63,
|
||||||
|
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0xf3, 0x01, 0x0a,
|
||||||
|
0x14, 0x47, 0x65, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f,
|
||||||
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
|
||||||
|
0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72,
|
||||||
|
0x6c, 0x12, 0x5d, 0x0a, 0x0e, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x68, 0x65, 0x61, 0x64,
|
||||||
|
0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x68, 0x65, 0x6c, 0x69,
|
||||||
|
0x6f, 0x73, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x70, 0x6c,
|
||||||
|
0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55,
|
||||||
|
0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72,
|
||||||
|
0x79, 0x52, 0x0d, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
|
||||||
|
0x1a, 0x40, 0x0a, 0x12, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
||||||
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
|
||||||
|
0x38, 0x01, 0x22, 0x53, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
|
||||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x62, 0x6a, 0x65, 0x63,
|
||||||
|
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x62, 0x6a, 0x65,
|
||||||
|
0x63, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6d, 0x61, 0x72, 0x74, 0x5f, 0x66, 0x6f,
|
||||||
|
0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x6d, 0x61, 0x72,
|
||||||
|
0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x31, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x6e, 0x73,
|
||||||
|
0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a,
|
||||||
|
0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x32, 0xbb, 0x01, 0x0a, 0x0d, 0x53,
|
||||||
|
0x70, 0x65, 0x65, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x0c,
|
||||||
|
0x47, 0x65, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x22, 0x2e, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x47, 0x65, 0x74,
|
||||||
|
0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x1a, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68,
|
||||||
|
0x2e, 0x47, 0x65, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73,
|
||||||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72,
|
||||||
|
0x69, 0x62, 0x65, 0x12, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x73, 0x70, 0x65,
|
||||||
|
0x65, 0x63, 0x68, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65,
|
||||||
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x73,
|
||||||
|
0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68,
|
||||||
|
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76,
|
||||||
|
0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x3b,
|
||||||
|
0x70, 0x62, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_speech_speech_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_speech_speech_proto_rawDescData = file_helios_speech_speech_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_speech_speech_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_speech_speech_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_speech_speech_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_speech_speech_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_speech_speech_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_speech_speech_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||||
|
var file_helios_speech_speech_proto_goTypes = []any{
|
||||||
|
(*GetUploadUrlRequest)(nil), // 0: helios.speech.GetUploadUrlRequest
|
||||||
|
(*GetUploadUrlResponse)(nil), // 1: helios.speech.GetUploadUrlResponse
|
||||||
|
(*TranscribeRequest)(nil), // 2: helios.speech.TranscribeRequest
|
||||||
|
(*TranscribeResponse)(nil), // 3: helios.speech.TranscribeResponse
|
||||||
|
nil, // 4: helios.speech.GetUploadUrlResponse.UploadHeadersEntry
|
||||||
|
}
|
||||||
|
var file_helios_speech_speech_proto_depIdxs = []int32{
|
||||||
|
4, // 0: helios.speech.GetUploadUrlResponse.upload_headers:type_name -> helios.speech.GetUploadUrlResponse.UploadHeadersEntry
|
||||||
|
0, // 1: helios.speech.SpeechService.GetUploadUrl:input_type -> helios.speech.GetUploadUrlRequest
|
||||||
|
2, // 2: helios.speech.SpeechService.Transcribe:input_type -> helios.speech.TranscribeRequest
|
||||||
|
1, // 3: helios.speech.SpeechService.GetUploadUrl:output_type -> helios.speech.GetUploadUrlResponse
|
||||||
|
3, // 4: helios.speech.SpeechService.Transcribe:output_type -> helios.speech.TranscribeResponse
|
||||||
|
3, // [3:5] is the sub-list for method output_type
|
||||||
|
1, // [1:3] is the sub-list for method input_type
|
||||||
|
1, // [1:1] is the sub-list for extension type_name
|
||||||
|
1, // [1:1] is the sub-list for extension extendee
|
||||||
|
0, // [0:1] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_speech_speech_proto_init() }
|
||||||
|
func file_helios_speech_speech_proto_init() {
|
||||||
|
if File_helios_speech_speech_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_speech_speech_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 5,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_speech_speech_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_speech_speech_proto_depIdxs,
|
||||||
|
MessageInfos: file_helios_speech_speech_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_speech_speech_proto = out.File
|
||||||
|
file_helios_speech_speech_proto_rawDesc = nil
|
||||||
|
file_helios_speech_speech_proto_goTypes = nil
|
||||||
|
file_helios_speech_speech_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,163 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/speech/speech.proto
|
||||||
|
|
||||||
|
package pbspeech
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
SpeechService_GetUploadUrl_FullMethodName = "/helios.speech.SpeechService/GetUploadUrl"
|
||||||
|
SpeechService_Transcribe_FullMethodName = "/helios.speech.SpeechService/Transcribe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// SpeechServiceClient is the client API for SpeechService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type SpeechServiceClient interface {
|
||||||
|
GetUploadUrl(ctx context.Context, in *GetUploadUrlRequest, opts ...grpc.CallOption) (*GetUploadUrlResponse, error)
|
||||||
|
// Transcribes the given media & cleans up the resources.
|
||||||
|
// NOTE: must have uploaded to referenced object.
|
||||||
|
Transcribe(ctx context.Context, in *TranscribeRequest, opts ...grpc.CallOption) (*TranscribeResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type speechServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewSpeechServiceClient(cc grpc.ClientConnInterface) SpeechServiceClient {
|
||||||
|
return &speechServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *speechServiceClient) GetUploadUrl(ctx context.Context, in *GetUploadUrlRequest, opts ...grpc.CallOption) (*GetUploadUrlResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetUploadUrlResponse)
|
||||||
|
err := c.cc.Invoke(ctx, SpeechService_GetUploadUrl_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *speechServiceClient) Transcribe(ctx context.Context, in *TranscribeRequest, opts ...grpc.CallOption) (*TranscribeResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(TranscribeResponse)
|
||||||
|
err := c.cc.Invoke(ctx, SpeechService_Transcribe_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SpeechServiceServer is the server API for SpeechService service.
|
||||||
|
// All implementations must embed UnimplementedSpeechServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type SpeechServiceServer interface {
|
||||||
|
GetUploadUrl(context.Context, *GetUploadUrlRequest) (*GetUploadUrlResponse, error)
|
||||||
|
// Transcribes the given media & cleans up the resources.
|
||||||
|
// NOTE: must have uploaded to referenced object.
|
||||||
|
Transcribe(context.Context, *TranscribeRequest) (*TranscribeResponse, error)
|
||||||
|
mustEmbedUnimplementedSpeechServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedSpeechServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedSpeechServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedSpeechServiceServer) GetUploadUrl(context.Context, *GetUploadUrlRequest) (*GetUploadUrlResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetUploadUrl not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedSpeechServiceServer) Transcribe(context.Context, *TranscribeRequest) (*TranscribeResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Transcribe not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedSpeechServiceServer) mustEmbedUnimplementedSpeechServiceServer() {}
|
||||||
|
func (UnimplementedSpeechServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeSpeechServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to SpeechServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeSpeechServiceServer interface {
|
||||||
|
mustEmbedUnimplementedSpeechServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterSpeechServiceServer(s grpc.ServiceRegistrar, srv SpeechServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedSpeechServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&SpeechService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _SpeechService_GetUploadUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetUploadUrlRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(SpeechServiceServer).GetUploadUrl(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: SpeechService_GetUploadUrl_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(SpeechServiceServer).GetUploadUrl(ctx, req.(*GetUploadUrlRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _SpeechService_Transcribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(TranscribeRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(SpeechServiceServer).Transcribe(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: SpeechService_Transcribe_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(SpeechServiceServer).Transcribe(ctx, req.(*TranscribeRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SpeechService_ServiceDesc is the grpc.ServiceDesc for SpeechService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var SpeechService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.speech.SpeechService",
|
||||||
|
HandlerType: (*SpeechServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "GetUploadUrl",
|
||||||
|
Handler: _SpeechService_GetUploadUrl_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Transcribe",
|
||||||
|
Handler: _SpeechService_Transcribe_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/speech/speech.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,779 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/waitlist/waitlist.proto
|
||||||
|
|
||||||
|
package pbwaitlist
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type GetWaitlistRequest_Filter int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
GetWaitlistRequest_FilterUnspecified GetWaitlistRequest_Filter = 0
|
||||||
|
GetWaitlistRequest_FilterAll GetWaitlistRequest_Filter = 1
|
||||||
|
GetWaitlistRequest_FilterInvitedOnly GetWaitlistRequest_Filter = 2
|
||||||
|
GetWaitlistRequest_FilterUninvitedOnly GetWaitlistRequest_Filter = 3
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for GetWaitlistRequest_Filter.
|
||||||
|
var (
|
||||||
|
GetWaitlistRequest_Filter_name = map[int32]string{
|
||||||
|
0: "FilterUnspecified",
|
||||||
|
1: "FilterAll",
|
||||||
|
2: "FilterInvitedOnly",
|
||||||
|
3: "FilterUninvitedOnly",
|
||||||
|
}
|
||||||
|
GetWaitlistRequest_Filter_value = map[string]int32{
|
||||||
|
"FilterUnspecified": 0,
|
||||||
|
"FilterAll": 1,
|
||||||
|
"FilterInvitedOnly": 2,
|
||||||
|
"FilterUninvitedOnly": 3,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x GetWaitlistRequest_Filter) Enum() *GetWaitlistRequest_Filter {
|
||||||
|
p := new(GetWaitlistRequest_Filter)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x GetWaitlistRequest_Filter) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (GetWaitlistRequest_Filter) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_waitlist_waitlist_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (GetWaitlistRequest_Filter) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_waitlist_waitlist_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x GetWaitlistRequest_Filter) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use GetWaitlistRequest_Filter.Descriptor instead.
|
||||||
|
func (GetWaitlistRequest_Filter) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{3, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type WaitlistEntry struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||||
|
IsInvited bool `protobuf:"varint,4,opt,name=is_invited,json=isInvited,proto3" json:"is_invited,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) Reset() {
|
||||||
|
*x = WaitlistEntry{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WaitlistEntry) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 WaitlistEntry.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WaitlistEntry) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) GetMetadata() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Metadata
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) GetCreatedAt() *timestamppb.Timestamp {
|
||||||
|
if x != nil {
|
||||||
|
return x.CreatedAt
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WaitlistEntry) GetIsInvited() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.IsInvited
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type AddToWaitlistRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistRequest) Reset() {
|
||||||
|
*x = AddToWaitlistRequest{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AddToWaitlistRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 AddToWaitlistRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AddToWaitlistRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistRequest) GetMetadata() map[string]string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Metadata
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type AddToWaitlistResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistResponse) Reset() {
|
||||||
|
*x = AddToWaitlistResponse{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AddToWaitlistResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AddToWaitlistResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 AddToWaitlistResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AddToWaitlistResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetWaitlistRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Filter GetWaitlistRequest_Filter `protobuf:"varint,1,opt,name=filter,proto3,enum=helios.waitlist.GetWaitlistRequest_Filter" json:"filter,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistRequest) Reset() {
|
||||||
|
*x = GetWaitlistRequest{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetWaitlistRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetWaitlistRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 GetWaitlistRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetWaitlistRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistRequest) GetFilter() GetWaitlistRequest_Filter {
|
||||||
|
if x != nil {
|
||||||
|
return x.Filter
|
||||||
|
}
|
||||||
|
return GetWaitlistRequest_FilterUnspecified
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetWaitlistResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
WaitlistEntries []*WaitlistEntry `protobuf:"bytes,1,rep,name=waitlist_entries,json=waitlistEntries,proto3" json:"waitlist_entries,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistResponse) Reset() {
|
||||||
|
*x = GetWaitlistResponse{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetWaitlistResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetWaitlistResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 GetWaitlistResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetWaitlistResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistResponse) GetWaitlistEntries() []*WaitlistEntry {
|
||||||
|
if x != nil {
|
||||||
|
return x.WaitlistEntries
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetWaitlistEntryRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryRequest) Reset() {
|
||||||
|
*x = GetWaitlistEntryRequest{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetWaitlistEntryRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 GetWaitlistEntryRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetWaitlistEntryRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetWaitlistEntryResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
WaitlistEntry *WaitlistEntry `protobuf:"bytes,1,opt,name=waitlist_entry,json=waitlistEntry,proto3" json:"waitlist_entry,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryResponse) Reset() {
|
||||||
|
*x = GetWaitlistEntryResponse{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetWaitlistEntryResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 GetWaitlistEntryResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetWaitlistEntryResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetWaitlistEntryResponse) GetWaitlistEntry() *WaitlistEntry {
|
||||||
|
if x != nil {
|
||||||
|
return x.WaitlistEntry
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type InviteWaitlistEntrantRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantRequest) Reset() {
|
||||||
|
*x = InviteWaitlistEntrantRequest{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InviteWaitlistEntrantRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 InviteWaitlistEntrantRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InviteWaitlistEntrantRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type InviteWaitlistEntrantResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantResponse) Reset() {
|
||||||
|
*x = InviteWaitlistEntrantResponse{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[8]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InviteWaitlistEntrantResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InviteWaitlistEntrantResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 InviteWaitlistEntrantResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InviteWaitlistEntrantResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
type InquiryRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||||
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryRequest) Reset() {
|
||||||
|
*x = InquiryRequest{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[9]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InquiryRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InquiryRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 InquiryRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InquiryRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{9}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryRequest) GetEmail() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Email
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryRequest) GetMessage() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Message
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type InquiryResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryResponse) Reset() {
|
||||||
|
*x = InquiryResponse{}
|
||||||
|
mi := &file_helios_waitlist_waitlist_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *InquiryResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InquiryResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *InquiryResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_waitlist_waitlist_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 InquiryResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*InquiryResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescGZIP(), []int{10}
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_waitlist_waitlist_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_waitlist_waitlist_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73,
|
||||||
|
0x74, 0x2f, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x12, 0x0f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73,
|
||||||
|
0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
||||||
|
0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x22, 0x86, 0x02, 0x0a, 0x0d, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45,
|
||||||
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x48, 0x0a, 0x08, 0x6d, 0x65,
|
||||||
|
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57,
|
||||||
|
0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x4d, 0x65, 0x74,
|
||||||
|
0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61,
|
||||||
|
0x64, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
|
||||||
|
0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||||
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
||||||
|
0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
|
||||||
|
0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20,
|
||||||
|
0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x1a, 0x3b,
|
||||||
|
0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
||||||
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
||||||
|
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xba, 0x01, 0x0a, 0x14,
|
||||||
|
0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
|
||||||
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x4f, 0x0a, 0x08, 0x6d, 0x65,
|
||||||
|
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x41,
|
||||||
|
0x64, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72,
|
||||||
|
0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d,
|
||||||
|
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
|
||||||
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
|
||||||
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
|
||||||
|
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x17, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x54,
|
||||||
|
0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||||
|
0x65, 0x22, 0xb8, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73,
|
||||||
|
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
|
||||||
|
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f,
|
||||||
|
0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61,
|
||||||
|
0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69,
|
||||||
|
0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x06,
|
||||||
|
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72,
|
||||||
|
0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0d, 0x0a,
|
||||||
|
0x09, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x41, 0x6c, 0x6c, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11,
|
||||||
|
0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x4f, 0x6e, 0x6c,
|
||||||
|
0x79, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x55, 0x6e, 0x69,
|
||||||
|
0x6e, 0x76, 0x69, 0x74, 0x65, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x03, 0x22, 0x60, 0x0a, 0x13,
|
||||||
|
0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x10, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f,
|
||||||
|
0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e,
|
||||||
|
0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x77,
|
||||||
|
0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x2f,
|
||||||
|
0x0a, 0x17, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74,
|
||||||
|
0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61,
|
||||||
|
0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22,
|
||||||
|
0x61, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e,
|
||||||
|
0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x77,
|
||||||
|
0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20,
|
||||||
|
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69,
|
||||||
|
0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e,
|
||||||
|
0x74, 0x72, 0x79, 0x52, 0x0d, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74,
|
||||||
|
0x72, 0x79, 0x22, 0x34, 0x0a, 0x1c, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x57, 0x61, 0x69, 0x74,
|
||||||
|
0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x1f, 0x0a, 0x1d, 0x49, 0x6e, 0x76, 0x69,
|
||||||
|
0x74, 0x65, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x61, 0x6e,
|
||||||
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x0a, 0x0e, 0x49, 0x6e, 0x71,
|
||||||
|
0x75, 0x69, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65,
|
||||||
|
0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69,
|
||||||
|
0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x49,
|
||||||
|
0x6e, 0x71, 0x75, 0x69, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x84,
|
||||||
|
0x04, 0x0a, 0x0f, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
|
||||||
|
0x63, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c,
|
||||||
|
0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69,
|
||||||
|
0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c,
|
||||||
|
0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x64,
|
||||||
|
0x54, 0x6f, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c,
|
||||||
|
0x69, 0x73, 0x74, 0x12, 0x23, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69,
|
||||||
|
0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73,
|
||||||
|
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f,
|
||||||
|
0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61,
|
||||||
|
0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
||||||
|
0x12, 0x69, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45,
|
||||||
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x28, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61,
|
||||||
|
0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69,
|
||||||
|
0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29,
|
||||||
|
0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74,
|
||||||
|
0x2e, 0x47, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72,
|
||||||
|
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x15, 0x49,
|
||||||
|
0x6e, 0x76, 0x69, 0x74, 0x65, 0x57, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74,
|
||||||
|
0x72, 0x61, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61,
|
||||||
|
0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x57, 0x61, 0x69,
|
||||||
|
0x74, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69,
|
||||||
|
0x74, 0x6c, 0x69, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x57, 0x61, 0x69, 0x74,
|
||||||
|
0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x07, 0x49, 0x6e, 0x71, 0x75, 0x69, 0x72, 0x79,
|
||||||
|
0x12, 0x1f, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69,
|
||||||
|
0x73, 0x74, 0x2e, 0x49, 0x6e, 0x71, 0x75, 0x69, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
|
0x74, 0x1a, 0x20, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x61, 0x69, 0x74, 0x6c,
|
||||||
|
0x69, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x71, 0x75, 0x69, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x42, 0x5a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
||||||
|
0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68,
|
||||||
|
0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x3b, 0x70,
|
||||||
|
0x62, 0x77, 0x61, 0x69, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_waitlist_waitlist_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_waitlist_waitlist_proto_rawDescData = file_helios_waitlist_waitlist_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_waitlist_waitlist_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_waitlist_waitlist_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_waitlist_waitlist_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_waitlist_waitlist_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_waitlist_waitlist_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_waitlist_waitlist_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_helios_waitlist_waitlist_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||||
|
var file_helios_waitlist_waitlist_proto_goTypes = []any{
|
||||||
|
(GetWaitlistRequest_Filter)(0), // 0: helios.waitlist.GetWaitlistRequest.Filter
|
||||||
|
(*WaitlistEntry)(nil), // 1: helios.waitlist.WaitlistEntry
|
||||||
|
(*AddToWaitlistRequest)(nil), // 2: helios.waitlist.AddToWaitlistRequest
|
||||||
|
(*AddToWaitlistResponse)(nil), // 3: helios.waitlist.AddToWaitlistResponse
|
||||||
|
(*GetWaitlistRequest)(nil), // 4: helios.waitlist.GetWaitlistRequest
|
||||||
|
(*GetWaitlistResponse)(nil), // 5: helios.waitlist.GetWaitlistResponse
|
||||||
|
(*GetWaitlistEntryRequest)(nil), // 6: helios.waitlist.GetWaitlistEntryRequest
|
||||||
|
(*GetWaitlistEntryResponse)(nil), // 7: helios.waitlist.GetWaitlistEntryResponse
|
||||||
|
(*InviteWaitlistEntrantRequest)(nil), // 8: helios.waitlist.InviteWaitlistEntrantRequest
|
||||||
|
(*InviteWaitlistEntrantResponse)(nil), // 9: helios.waitlist.InviteWaitlistEntrantResponse
|
||||||
|
(*InquiryRequest)(nil), // 10: helios.waitlist.InquiryRequest
|
||||||
|
(*InquiryResponse)(nil), // 11: helios.waitlist.InquiryResponse
|
||||||
|
nil, // 12: helios.waitlist.WaitlistEntry.MetadataEntry
|
||||||
|
nil, // 13: helios.waitlist.AddToWaitlistRequest.MetadataEntry
|
||||||
|
(*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp
|
||||||
|
}
|
||||||
|
var file_helios_waitlist_waitlist_proto_depIdxs = []int32{
|
||||||
|
12, // 0: helios.waitlist.WaitlistEntry.metadata:type_name -> helios.waitlist.WaitlistEntry.MetadataEntry
|
||||||
|
14, // 1: helios.waitlist.WaitlistEntry.created_at:type_name -> google.protobuf.Timestamp
|
||||||
|
13, // 2: helios.waitlist.AddToWaitlistRequest.metadata:type_name -> helios.waitlist.AddToWaitlistRequest.MetadataEntry
|
||||||
|
0, // 3: helios.waitlist.GetWaitlistRequest.filter:type_name -> helios.waitlist.GetWaitlistRequest.Filter
|
||||||
|
1, // 4: helios.waitlist.GetWaitlistResponse.waitlist_entries:type_name -> helios.waitlist.WaitlistEntry
|
||||||
|
1, // 5: helios.waitlist.GetWaitlistEntryResponse.waitlist_entry:type_name -> helios.waitlist.WaitlistEntry
|
||||||
|
2, // 6: helios.waitlist.WaitlistService.AddToWaitlist:input_type -> helios.waitlist.AddToWaitlistRequest
|
||||||
|
4, // 7: helios.waitlist.WaitlistService.GetWaitlist:input_type -> helios.waitlist.GetWaitlistRequest
|
||||||
|
6, // 8: helios.waitlist.WaitlistService.GetWaitlistEntry:input_type -> helios.waitlist.GetWaitlistEntryRequest
|
||||||
|
8, // 9: helios.waitlist.WaitlistService.InviteWaitlistEntrant:input_type -> helios.waitlist.InviteWaitlistEntrantRequest
|
||||||
|
10, // 10: helios.waitlist.WaitlistService.Inquiry:input_type -> helios.waitlist.InquiryRequest
|
||||||
|
3, // 11: helios.waitlist.WaitlistService.AddToWaitlist:output_type -> helios.waitlist.AddToWaitlistResponse
|
||||||
|
5, // 12: helios.waitlist.WaitlistService.GetWaitlist:output_type -> helios.waitlist.GetWaitlistResponse
|
||||||
|
7, // 13: helios.waitlist.WaitlistService.GetWaitlistEntry:output_type -> helios.waitlist.GetWaitlistEntryResponse
|
||||||
|
9, // 14: helios.waitlist.WaitlistService.InviteWaitlistEntrant:output_type -> helios.waitlist.InviteWaitlistEntrantResponse
|
||||||
|
11, // 15: helios.waitlist.WaitlistService.Inquiry:output_type -> helios.waitlist.InquiryResponse
|
||||||
|
11, // [11:16] is the sub-list for method output_type
|
||||||
|
6, // [6:11] is the sub-list for method input_type
|
||||||
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
|
6, // [6:6] is the sub-list for extension extendee
|
||||||
|
0, // [0:6] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_waitlist_waitlist_proto_init() }
|
||||||
|
func file_helios_waitlist_waitlist_proto_init() {
|
||||||
|
if File_helios_waitlist_waitlist_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_waitlist_waitlist_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 13,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 1,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_waitlist_waitlist_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_waitlist_waitlist_proto_depIdxs,
|
||||||
|
EnumInfos: file_helios_waitlist_waitlist_proto_enumTypes,
|
||||||
|
MessageInfos: file_helios_waitlist_waitlist_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_waitlist_waitlist_proto = out.File
|
||||||
|
file_helios_waitlist_waitlist_proto_rawDesc = nil
|
||||||
|
file_helios_waitlist_waitlist_proto_goTypes = nil
|
||||||
|
file_helios_waitlist_waitlist_proto_depIdxs = nil
|
||||||
|
}
|
||||||
@@ -0,0 +1,273 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/waitlist/waitlist.proto
|
||||||
|
|
||||||
|
package pbwaitlist
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
WaitlistService_AddToWaitlist_FullMethodName = "/helios.waitlist.WaitlistService/AddToWaitlist"
|
||||||
|
WaitlistService_GetWaitlist_FullMethodName = "/helios.waitlist.WaitlistService/GetWaitlist"
|
||||||
|
WaitlistService_GetWaitlistEntry_FullMethodName = "/helios.waitlist.WaitlistService/GetWaitlistEntry"
|
||||||
|
WaitlistService_InviteWaitlistEntrant_FullMethodName = "/helios.waitlist.WaitlistService/InviteWaitlistEntrant"
|
||||||
|
WaitlistService_Inquiry_FullMethodName = "/helios.waitlist.WaitlistService/Inquiry"
|
||||||
|
)
|
||||||
|
|
||||||
|
// WaitlistServiceClient is the client API for WaitlistService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
type WaitlistServiceClient interface {
|
||||||
|
AddToWaitlist(ctx context.Context, in *AddToWaitlistRequest, opts ...grpc.CallOption) (*AddToWaitlistResponse, error)
|
||||||
|
GetWaitlist(ctx context.Context, in *GetWaitlistRequest, opts ...grpc.CallOption) (*GetWaitlistResponse, error)
|
||||||
|
GetWaitlistEntry(ctx context.Context, in *GetWaitlistEntryRequest, opts ...grpc.CallOption) (*GetWaitlistEntryResponse, error)
|
||||||
|
InviteWaitlistEntrant(ctx context.Context, in *InviteWaitlistEntrantRequest, opts ...grpc.CallOption) (*InviteWaitlistEntrantResponse, error)
|
||||||
|
Inquiry(ctx context.Context, in *InquiryRequest, opts ...grpc.CallOption) (*InquiryResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type waitlistServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewWaitlistServiceClient(cc grpc.ClientConnInterface) WaitlistServiceClient {
|
||||||
|
return &waitlistServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *waitlistServiceClient) AddToWaitlist(ctx context.Context, in *AddToWaitlistRequest, opts ...grpc.CallOption) (*AddToWaitlistResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(AddToWaitlistResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WaitlistService_AddToWaitlist_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *waitlistServiceClient) GetWaitlist(ctx context.Context, in *GetWaitlistRequest, opts ...grpc.CallOption) (*GetWaitlistResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetWaitlistResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WaitlistService_GetWaitlist_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *waitlistServiceClient) GetWaitlistEntry(ctx context.Context, in *GetWaitlistEntryRequest, opts ...grpc.CallOption) (*GetWaitlistEntryResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(GetWaitlistEntryResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WaitlistService_GetWaitlistEntry_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *waitlistServiceClient) InviteWaitlistEntrant(ctx context.Context, in *InviteWaitlistEntrantRequest, opts ...grpc.CallOption) (*InviteWaitlistEntrantResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(InviteWaitlistEntrantResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WaitlistService_InviteWaitlistEntrant_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *waitlistServiceClient) Inquiry(ctx context.Context, in *InquiryRequest, opts ...grpc.CallOption) (*InquiryResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(InquiryResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WaitlistService_Inquiry_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// WaitlistServiceServer is the server API for WaitlistService service.
|
||||||
|
// All implementations must embed UnimplementedWaitlistServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
type WaitlistServiceServer interface {
|
||||||
|
AddToWaitlist(context.Context, *AddToWaitlistRequest) (*AddToWaitlistResponse, error)
|
||||||
|
GetWaitlist(context.Context, *GetWaitlistRequest) (*GetWaitlistResponse, error)
|
||||||
|
GetWaitlistEntry(context.Context, *GetWaitlistEntryRequest) (*GetWaitlistEntryResponse, error)
|
||||||
|
InviteWaitlistEntrant(context.Context, *InviteWaitlistEntrantRequest) (*InviteWaitlistEntrantResponse, error)
|
||||||
|
Inquiry(context.Context, *InquiryRequest) (*InquiryResponse, error)
|
||||||
|
mustEmbedUnimplementedWaitlistServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedWaitlistServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedWaitlistServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedWaitlistServiceServer) AddToWaitlist(context.Context, *AddToWaitlistRequest) (*AddToWaitlistResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method AddToWaitlist not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWaitlistServiceServer) GetWaitlist(context.Context, *GetWaitlistRequest) (*GetWaitlistResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetWaitlist not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWaitlistServiceServer) GetWaitlistEntry(context.Context, *GetWaitlistEntryRequest) (*GetWaitlistEntryResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method GetWaitlistEntry not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWaitlistServiceServer) InviteWaitlistEntrant(context.Context, *InviteWaitlistEntrantRequest) (*InviteWaitlistEntrantResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method InviteWaitlistEntrant not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWaitlistServiceServer) Inquiry(context.Context, *InquiryRequest) (*InquiryResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method Inquiry not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWaitlistServiceServer) mustEmbedUnimplementedWaitlistServiceServer() {}
|
||||||
|
func (UnimplementedWaitlistServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeWaitlistServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to WaitlistServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeWaitlistServiceServer interface {
|
||||||
|
mustEmbedUnimplementedWaitlistServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterWaitlistServiceServer(s grpc.ServiceRegistrar, srv WaitlistServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedWaitlistServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&WaitlistService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WaitlistService_AddToWaitlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AddToWaitlistRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WaitlistServiceServer).AddToWaitlist(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WaitlistService_AddToWaitlist_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WaitlistServiceServer).AddToWaitlist(ctx, req.(*AddToWaitlistRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WaitlistService_GetWaitlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetWaitlistRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WaitlistServiceServer).GetWaitlist(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WaitlistService_GetWaitlist_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WaitlistServiceServer).GetWaitlist(ctx, req.(*GetWaitlistRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WaitlistService_GetWaitlistEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(GetWaitlistEntryRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WaitlistServiceServer).GetWaitlistEntry(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WaitlistService_GetWaitlistEntry_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WaitlistServiceServer).GetWaitlistEntry(ctx, req.(*GetWaitlistEntryRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WaitlistService_InviteWaitlistEntrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(InviteWaitlistEntrantRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WaitlistServiceServer).InviteWaitlistEntrant(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WaitlistService_InviteWaitlistEntrant_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WaitlistServiceServer).InviteWaitlistEntrant(ctx, req.(*InviteWaitlistEntrantRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WaitlistService_Inquiry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(InquiryRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WaitlistServiceServer).Inquiry(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WaitlistService_Inquiry_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WaitlistServiceServer).Inquiry(ctx, req.(*InquiryRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WaitlistService_ServiceDesc is the grpc.ServiceDesc for WaitlistService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var WaitlistService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.waitlist.WaitlistService",
|
||||||
|
HandlerType: (*WaitlistServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "AddToWaitlist",
|
||||||
|
Handler: _WaitlistService_AddToWaitlist_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetWaitlist",
|
||||||
|
Handler: _WaitlistService_GetWaitlist_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "GetWaitlistEntry",
|
||||||
|
Handler: _WaitlistService_GetWaitlistEntry_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "InviteWaitlistEntrant",
|
||||||
|
Handler: _WaitlistService_InviteWaitlistEntrant_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "Inquiry",
|
||||||
|
Handler: _WaitlistService_Inquiry_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/waitlist/waitlist.proto",
|
||||||
|
}
|
||||||
@@ -0,0 +1,554 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.35.1
|
||||||
|
// protoc v5.28.3
|
||||||
|
// source: helios/widgets/widgets.proto
|
||||||
|
|
||||||
|
package pbwidgets
|
||||||
|
|
||||||
|
import (
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
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)
|
||||||
|
)
|
||||||
|
|
||||||
|
type WidgetSizeVariant int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_UNSPECIFIED WidgetSizeVariant = 0
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_1_X_1 WidgetSizeVariant = 1
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_2_X_1 WidgetSizeVariant = 2
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_1_X_2 WidgetSizeVariant = 3
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_2_X_2 WidgetSizeVariant = 4
|
||||||
|
WidgetSizeVariant_WIDGET_SIZE_VARIANT_4_X_4 WidgetSizeVariant = 5
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enum value maps for WidgetSizeVariant.
|
||||||
|
var (
|
||||||
|
WidgetSizeVariant_name = map[int32]string{
|
||||||
|
0: "WIDGET_SIZE_VARIANT_UNSPECIFIED",
|
||||||
|
1: "WIDGET_SIZE_VARIANT_1_X_1",
|
||||||
|
2: "WIDGET_SIZE_VARIANT_2_X_1",
|
||||||
|
3: "WIDGET_SIZE_VARIANT_1_X_2",
|
||||||
|
4: "WIDGET_SIZE_VARIANT_2_X_2",
|
||||||
|
5: "WIDGET_SIZE_VARIANT_4_X_4",
|
||||||
|
}
|
||||||
|
WidgetSizeVariant_value = map[string]int32{
|
||||||
|
"WIDGET_SIZE_VARIANT_UNSPECIFIED": 0,
|
||||||
|
"WIDGET_SIZE_VARIANT_1_X_1": 1,
|
||||||
|
"WIDGET_SIZE_VARIANT_2_X_1": 2,
|
||||||
|
"WIDGET_SIZE_VARIANT_1_X_2": 3,
|
||||||
|
"WIDGET_SIZE_VARIANT_2_X_2": 4,
|
||||||
|
"WIDGET_SIZE_VARIANT_4_X_4": 5,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x WidgetSizeVariant) Enum() *WidgetSizeVariant {
|
||||||
|
p := new(WidgetSizeVariant)
|
||||||
|
*p = x
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x WidgetSizeVariant) String() string {
|
||||||
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (WidgetSizeVariant) Descriptor() protoreflect.EnumDescriptor {
|
||||||
|
return file_helios_widgets_widgets_proto_enumTypes[0].Descriptor()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (WidgetSizeVariant) Type() protoreflect.EnumType {
|
||||||
|
return &file_helios_widgets_widgets_proto_enumTypes[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x WidgetSizeVariant) Number() protoreflect.EnumNumber {
|
||||||
|
return protoreflect.EnumNumber(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use WidgetSizeVariant.Descriptor instead.
|
||||||
|
func (WidgetSizeVariant) EnumDescriptor() ([]byte, []int) {
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
// A flowy system representation of a human's context/what they're doing.
|
||||||
|
type AppContext struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
// e.g. Figma (web)
|
||||||
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||||
|
IconUri *AppContext_IconUri `protobuf:"bytes,3,opt,name=icon_uri,json=iconUri,proto3" json:"icon_uri,omitempty"`
|
||||||
|
// Types that are assignable to ContextMatch:
|
||||||
|
//
|
||||||
|
// *AppContext_DesktopAppProcessName
|
||||||
|
// *AppContext_WebAppDomain
|
||||||
|
// *AppContext_WebUrlPrefix
|
||||||
|
ContextMatch isAppContext_ContextMatch `protobuf_oneof:"context_match"`
|
||||||
|
// Optional.
|
||||||
|
// Hue that matches the branding of this app context. Used for widget gradient bg aesthetic.
|
||||||
|
HueColorHex string `protobuf:"bytes,7,opt,name=hue_color_hex,json=hueColorHex,proto3" json:"hue_color_hex,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) Reset() {
|
||||||
|
*x = AppContext{}
|
||||||
|
mi := &file_helios_widgets_widgets_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AppContext) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AppContext) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_widgets_widgets_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 AppContext.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AppContext) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetDisplayName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.DisplayName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetIconUri() *AppContext_IconUri {
|
||||||
|
if x != nil {
|
||||||
|
return x.IconUri
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *AppContext) GetContextMatch() isAppContext_ContextMatch {
|
||||||
|
if m != nil {
|
||||||
|
return m.ContextMatch
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetDesktopAppProcessName() string {
|
||||||
|
if x, ok := x.GetContextMatch().(*AppContext_DesktopAppProcessName); ok {
|
||||||
|
return x.DesktopAppProcessName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetWebAppDomain() string {
|
||||||
|
if x, ok := x.GetContextMatch().(*AppContext_WebAppDomain); ok {
|
||||||
|
return x.WebAppDomain
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetWebUrlPrefix() string {
|
||||||
|
if x, ok := x.GetContextMatch().(*AppContext_WebUrlPrefix); ok {
|
||||||
|
return x.WebUrlPrefix
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext) GetHueColorHex() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.HueColorHex
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type isAppContext_ContextMatch interface {
|
||||||
|
isAppContext_ContextMatch()
|
||||||
|
}
|
||||||
|
|
||||||
|
type AppContext_DesktopAppProcessName struct {
|
||||||
|
// e.g. Code
|
||||||
|
DesktopAppProcessName string `protobuf:"bytes,4,opt,name=desktop_app_process_name,json=desktopAppProcessName,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type AppContext_WebAppDomain struct {
|
||||||
|
// e.g. figma.com
|
||||||
|
WebAppDomain string `protobuf:"bytes,5,opt,name=web_app_domain,json=webAppDomain,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type AppContext_WebUrlPrefix struct {
|
||||||
|
// e.g. youtube.com/watch
|
||||||
|
WebUrlPrefix string `protobuf:"bytes,6,opt,name=web_url_prefix,json=webUrlPrefix,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AppContext_DesktopAppProcessName) isAppContext_ContextMatch() {}
|
||||||
|
|
||||||
|
func (*AppContext_WebAppDomain) isAppContext_ContextMatch() {}
|
||||||
|
|
||||||
|
func (*AppContext_WebUrlPrefix) isAppContext_ContextMatch() {}
|
||||||
|
|
||||||
|
type Space struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
|
// Optional.
|
||||||
|
// This defines how this space auto-activates, as well as what action a manual trigger performs (e.g. focus desktop app, find relevant browser tab)
|
||||||
|
AppContext *AppContext `protobuf:"bytes,3,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"`
|
||||||
|
WidgetsInstances []*WidgetInstance `protobuf:"bytes,4,rep,name=widgets_instances,json=widgetsInstances,proto3" json:"widgets_instances,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) Reset() {
|
||||||
|
*x = Space{}
|
||||||
|
mi := &file_helios_widgets_widgets_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Space) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Space) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_widgets_widgets_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 Space.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Space) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) GetName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) GetAppContext() *AppContext {
|
||||||
|
if x != nil {
|
||||||
|
return x.AppContext
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Space) GetWidgetsInstances() []*WidgetInstance {
|
||||||
|
if x != nil {
|
||||||
|
return x.WidgetsInstances
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type WidgetInstance struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||||
|
WidgetIdentifier string `protobuf:"bytes,2,opt,name=widget_identifier,json=widgetIdentifier,proto3" json:"widget_identifier,omitempty"`
|
||||||
|
WidgetVersion string `protobuf:"bytes,3,opt,name=widget_version,json=widgetVersion,proto3" json:"widget_version,omitempty"`
|
||||||
|
// The selected size_variant from the available ones of the underlying widget.
|
||||||
|
WidgetSizeVariant WidgetSizeVariant `protobuf:"varint,4,opt,name=widget_size_variant,json=widgetSizeVariant,proto3,enum=helios.widgets.WidgetSizeVariant" json:"widget_size_variant,omitempty"`
|
||||||
|
// Configuration data or state for this specific widget instance.
|
||||||
|
// e.g. bookmark url, list of saved terminal commands
|
||||||
|
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) Reset() {
|
||||||
|
*x = WidgetInstance{}
|
||||||
|
mi := &file_helios_widgets_widgets_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*WidgetInstance) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_widgets_widgets_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 WidgetInstance.ProtoReflect.Descriptor instead.
|
||||||
|
func (*WidgetInstance) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) GetWidgetIdentifier() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.WidgetIdentifier
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) GetWidgetVersion() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.WidgetVersion
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) GetWidgetSizeVariant() WidgetSizeVariant {
|
||||||
|
if x != nil {
|
||||||
|
return x.WidgetSizeVariant
|
||||||
|
}
|
||||||
|
return WidgetSizeVariant_WIDGET_SIZE_VARIANT_UNSPECIFIED
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *WidgetInstance) GetData() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type AppContext_IconUri struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Dark string `protobuf:"bytes,1,opt,name=dark,proto3" json:"dark,omitempty"`
|
||||||
|
Light string `protobuf:"bytes,2,opt,name=light,proto3" json:"light,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext_IconUri) Reset() {
|
||||||
|
*x = AppContext_IconUri{}
|
||||||
|
mi := &file_helios_widgets_widgets_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext_IconUri) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AppContext_IconUri) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AppContext_IconUri) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_helios_widgets_widgets_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 AppContext_IconUri.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AppContext_IconUri) Descriptor() ([]byte, []int) {
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescGZIP(), []int{0, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext_IconUri) GetDark() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Dark
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AppContext_IconUri) GetLight() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Light
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_helios_widgets_widgets_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_helios_widgets_widgets_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x1c, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2f, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73,
|
||||||
|
0x2f, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
|
||||||
|
0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x22, 0xf3,
|
||||||
|
0x02, 0x0a, 0x0a, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0e, 0x0a,
|
||||||
|
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a,
|
||||||
|
0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
||||||
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
|
0x12, 0x3d, 0x0a, 0x08, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01,
|
||||||
|
0x28, 0x0b, 0x32, 0x22, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x69, 0x64, 0x67,
|
||||||
|
0x65, 0x74, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x49,
|
||||||
|
0x63, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x52, 0x07, 0x69, 0x63, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x12,
|
||||||
|
0x39, 0x0a, 0x18, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x70,
|
||||||
|
0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x48, 0x00, 0x52, 0x15, 0x64, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x50,
|
||||||
|
0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x77, 0x65,
|
||||||
|
0x62, 0x5f, 0x61, 0x70, 0x70, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x65, 0x62, 0x41, 0x70, 0x70, 0x44, 0x6f, 0x6d, 0x61,
|
||||||
|
0x69, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x77, 0x65, 0x62, 0x5f, 0x75, 0x72, 0x6c, 0x5f, 0x70, 0x72,
|
||||||
|
0x65, 0x66, 0x69, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x65,
|
||||||
|
0x62, 0x55, 0x72, 0x6c, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x75,
|
||||||
|
0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x5f, 0x68, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28,
|
||||||
|
0x09, 0x52, 0x0b, 0x68, 0x75, 0x65, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x48, 0x65, 0x78, 0x1a, 0x33,
|
||||||
|
0x0a, 0x07, 0x49, 0x63, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x72,
|
||||||
|
0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x72, 0x6b, 0x12, 0x14, 0x0a,
|
||||||
|
0x05, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69,
|
||||||
|
0x67, 0x68, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6d,
|
||||||
|
0x61, 0x74, 0x63, 0x68, 0x22, 0xb5, 0x01, 0x0a, 0x05, 0x53, 0x70, 0x61, 0x63, 0x65, 0x12, 0x0e,
|
||||||
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
|
||||||
|
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
|
||||||
|
0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78,
|
||||||
|
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2e, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74,
|
||||||
|
0x65, 0x78, 0x74, 0x52, 0x0a, 0x61, 0x70, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12,
|
||||||
|
0x4b, 0x0a, 0x11, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61,
|
||||||
|
0x6e, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x68, 0x65, 0x6c,
|
||||||
|
0x69, 0x6f, 0x73, 0x2e, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x2e, 0x57, 0x69, 0x64, 0x67,
|
||||||
|
0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x10, 0x77, 0x69, 0x64, 0x67,
|
||||||
|
0x65, 0x74, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xdb, 0x01, 0x0a,
|
||||||
|
0x0e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12,
|
||||||
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
|
||||||
|
0x2b, 0x0a, 0x11, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69,
|
||||||
|
0x66, 0x69, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x77, 0x69, 0x64, 0x67,
|
||||||
|
0x65, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e,
|
||||||
|
0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73,
|
||||||
|
0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x13, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x69,
|
||||||
|
0x7a, 0x65, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,
|
||||||
|
0x32, 0x21, 0x2e, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73, 0x2e, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74,
|
||||||
|
0x73, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x56, 0x61, 0x72, 0x69,
|
||||||
|
0x61, 0x6e, 0x74, 0x52, 0x11, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x56,
|
||||||
|
0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05,
|
||||||
|
0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0xd3, 0x01, 0x0a, 0x11, 0x57,
|
||||||
|
0x69, 0x64, 0x67, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74,
|
||||||
|
0x12, 0x23, 0x0a, 0x1f, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x5f,
|
||||||
|
0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
|
||||||
|
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f,
|
||||||
|
0x53, 0x49, 0x5a, 0x45, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x31, 0x5f, 0x58,
|
||||||
|
0x5f, 0x31, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x53,
|
||||||
|
0x49, 0x5a, 0x45, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x32, 0x5f, 0x58, 0x5f,
|
||||||
|
0x31, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x53, 0x49,
|
||||||
|
0x5a, 0x45, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x31, 0x5f, 0x58, 0x5f, 0x32,
|
||||||
|
0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x5a,
|
||||||
|
0x45, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x32, 0x5f, 0x58, 0x5f, 0x32, 0x10,
|
||||||
|
0x04, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x49, 0x44, 0x47, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x5a, 0x45,
|
||||||
|
0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x4e, 0x54, 0x5f, 0x34, 0x5f, 0x58, 0x5f, 0x34, 0x10, 0x05,
|
||||||
|
0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66,
|
||||||
|
0x6c, 0x6f, 0x77, 0x79, 0x2d, 0x6c, 0x69, 0x76, 0x65, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x68, 0x65, 0x6c, 0x69, 0x6f, 0x73,
|
||||||
|
0x2f, 0x77, 0x69, 0x64, 0x67, 0x65, 0x74, 0x73, 0x3b, 0x70, 0x62, 0x77, 0x69, 0x64, 0x67, 0x65,
|
||||||
|
0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_helios_widgets_widgets_proto_rawDescOnce sync.Once
|
||||||
|
file_helios_widgets_widgets_proto_rawDescData = file_helios_widgets_widgets_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_helios_widgets_widgets_proto_rawDescGZIP() []byte {
|
||||||
|
file_helios_widgets_widgets_proto_rawDescOnce.Do(func() {
|
||||||
|
file_helios_widgets_widgets_proto_rawDescData = protoimpl.X.CompressGZIP(file_helios_widgets_widgets_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_helios_widgets_widgets_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_helios_widgets_widgets_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
|
var file_helios_widgets_widgets_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||||
|
var file_helios_widgets_widgets_proto_goTypes = []any{
|
||||||
|
(WidgetSizeVariant)(0), // 0: helios.widgets.WidgetSizeVariant
|
||||||
|
(*AppContext)(nil), // 1: helios.widgets.AppContext
|
||||||
|
(*Space)(nil), // 2: helios.widgets.Space
|
||||||
|
(*WidgetInstance)(nil), // 3: helios.widgets.WidgetInstance
|
||||||
|
(*AppContext_IconUri)(nil), // 4: helios.widgets.AppContext.IconUri
|
||||||
|
}
|
||||||
|
var file_helios_widgets_widgets_proto_depIdxs = []int32{
|
||||||
|
4, // 0: helios.widgets.AppContext.icon_uri:type_name -> helios.widgets.AppContext.IconUri
|
||||||
|
1, // 1: helios.widgets.Space.app_context:type_name -> helios.widgets.AppContext
|
||||||
|
3, // 2: helios.widgets.Space.widgets_instances:type_name -> helios.widgets.WidgetInstance
|
||||||
|
0, // 3: helios.widgets.WidgetInstance.widget_size_variant:type_name -> helios.widgets.WidgetSizeVariant
|
||||||
|
4, // [4:4] is the sub-list for method output_type
|
||||||
|
4, // [4:4] is the sub-list for method input_type
|
||||||
|
4, // [4:4] is the sub-list for extension type_name
|
||||||
|
4, // [4:4] is the sub-list for extension extendee
|
||||||
|
0, // [0:4] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_helios_widgets_widgets_proto_init() }
|
||||||
|
func file_helios_widgets_widgets_proto_init() {
|
||||||
|
if File_helios_widgets_widgets_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_helios_widgets_widgets_proto_msgTypes[0].OneofWrappers = []any{
|
||||||
|
(*AppContext_DesktopAppProcessName)(nil),
|
||||||
|
(*AppContext_WebAppDomain)(nil),
|
||||||
|
(*AppContext_WebUrlPrefix)(nil),
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_helios_widgets_widgets_proto_rawDesc,
|
||||||
|
NumEnums: 1,
|
||||||
|
NumMessages: 4,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_helios_widgets_widgets_proto_goTypes,
|
||||||
|
DependencyIndexes: file_helios_widgets_widgets_proto_depIdxs,
|
||||||
|
EnumInfos: file_helios_widgets_widgets_proto_enumTypes,
|
||||||
|
MessageInfos: file_helios_widgets_widgets_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_helios_widgets_widgets_proto = out.File
|
||||||
|
file_helios_widgets_widgets_proto_rawDesc = nil
|
||||||
|
file_helios_widgets_widgets_proto_goTypes = nil
|
||||||
|
file_helios_widgets_widgets_proto_depIdxs = nil
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,477 @@
|
|||||||
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.5.1
|
||||||
|
// - protoc v5.28.3
|
||||||
|
// source: helios/widgets/widgetservice.proto
|
||||||
|
|
||||||
|
package pbwidgets
|
||||||
|
|
||||||
|
import (
|
||||||
|
context "context"
|
||||||
|
grpc "google.golang.org/grpc"
|
||||||
|
codes "google.golang.org/grpc/codes"
|
||||||
|
status "google.golang.org/grpc/status"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the grpc package it is being compiled against.
|
||||||
|
// Requires gRPC-Go v1.64.0 or later.
|
||||||
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
|
const (
|
||||||
|
WidgetService_ListAppContexts_FullMethodName = "/helios.widgets.WidgetService/ListAppContexts"
|
||||||
|
WidgetService_ListSpaces_FullMethodName = "/helios.widgets.WidgetService/ListSpaces"
|
||||||
|
WidgetService_AddSpace_FullMethodName = "/helios.widgets.WidgetService/AddSpace"
|
||||||
|
WidgetService_UpdateSpace_FullMethodName = "/helios.widgets.WidgetService/UpdateSpace"
|
||||||
|
WidgetService_DeleteSpace_FullMethodName = "/helios.widgets.WidgetService/DeleteSpace"
|
||||||
|
WidgetService_ReorderSpaces_FullMethodName = "/helios.widgets.WidgetService/ReorderSpaces"
|
||||||
|
WidgetService_CreateWidgetInstance_FullMethodName = "/helios.widgets.WidgetService/CreateWidgetInstance"
|
||||||
|
WidgetService_SaveWidgetInstanceData_FullMethodName = "/helios.widgets.WidgetService/SaveWidgetInstanceData"
|
||||||
|
WidgetService_MoveWidgetInstanceToSpace_FullMethodName = "/helios.widgets.WidgetService/MoveWidgetInstanceToSpace"
|
||||||
|
WidgetService_DeleteWidgetInstance_FullMethodName = "/helios.widgets.WidgetService/DeleteWidgetInstance"
|
||||||
|
)
|
||||||
|
|
||||||
|
// WidgetServiceClient is the client API for WidgetService service.
|
||||||
|
//
|
||||||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||||
|
//
|
||||||
|
// Requires authed human.
|
||||||
|
type WidgetServiceClient interface {
|
||||||
|
ListAppContexts(ctx context.Context, in *ListAppContextsRequest, opts ...grpc.CallOption) (*ListAppContextsResponse, error)
|
||||||
|
// All spaces & attached widget instances for the authed human.
|
||||||
|
ListSpaces(ctx context.Context, in *ListSpacesRequest, opts ...grpc.CallOption) (*ListSpacesResponse, error)
|
||||||
|
AddSpace(ctx context.Context, in *AddSpaceRequest, opts ...grpc.CallOption) (*AddSpaceResponse, error)
|
||||||
|
// Authoritative: please define every field, otherwise they will be overwritten as empty.
|
||||||
|
UpdateSpace(ctx context.Context, in *UpdateSpaceRequest, opts ...grpc.CallOption) (*UpdateSpaceResponse, error)
|
||||||
|
// Deletes space and all widget instances within.
|
||||||
|
DeleteSpace(ctx context.Context, in *DeleteSpaceRequest, opts ...grpc.CallOption) (*DeleteSpaceResponse, error)
|
||||||
|
// All existing spaces for human must be provided.
|
||||||
|
ReorderSpaces(ctx context.Context, in *ReorderSpacesRequest, opts ...grpc.CallOption) (*ReorderSpacesResponse, error)
|
||||||
|
// Create a widget instance and set it's initial space
|
||||||
|
CreateWidgetInstance(ctx context.Context, in *CreateWidgetInstanceRequest, opts ...grpc.CallOption) (*CreateWidgetInstanceResponse, error)
|
||||||
|
SaveWidgetInstanceData(ctx context.Context, in *SaveWidgetInstanceDataRequest, opts ...grpc.CallOption) (*SaveWidgetInstanceDataResponse, error)
|
||||||
|
MoveWidgetInstanceToSpace(ctx context.Context, in *MoveWidgetInstanceToSpaceRequest, opts ...grpc.CallOption) (*MoveWidgetInstanceToSpaceResponse, error)
|
||||||
|
DeleteWidgetInstance(ctx context.Context, in *DeleteWidgetInstanceRequest, opts ...grpc.CallOption) (*DeleteWidgetInstanceResponse, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type widgetServiceClient struct {
|
||||||
|
cc grpc.ClientConnInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewWidgetServiceClient(cc grpc.ClientConnInterface) WidgetServiceClient {
|
||||||
|
return &widgetServiceClient{cc}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) ListAppContexts(ctx context.Context, in *ListAppContextsRequest, opts ...grpc.CallOption) (*ListAppContextsResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ListAppContextsResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_ListAppContexts_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) ListSpaces(ctx context.Context, in *ListSpacesRequest, opts ...grpc.CallOption) (*ListSpacesResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ListSpacesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_ListSpaces_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) AddSpace(ctx context.Context, in *AddSpaceRequest, opts ...grpc.CallOption) (*AddSpaceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(AddSpaceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_AddSpace_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) UpdateSpace(ctx context.Context, in *UpdateSpaceRequest, opts ...grpc.CallOption) (*UpdateSpaceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(UpdateSpaceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_UpdateSpace_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) DeleteSpace(ctx context.Context, in *DeleteSpaceRequest, opts ...grpc.CallOption) (*DeleteSpaceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(DeleteSpaceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_DeleteSpace_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) ReorderSpaces(ctx context.Context, in *ReorderSpacesRequest, opts ...grpc.CallOption) (*ReorderSpacesResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(ReorderSpacesResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_ReorderSpaces_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) CreateWidgetInstance(ctx context.Context, in *CreateWidgetInstanceRequest, opts ...grpc.CallOption) (*CreateWidgetInstanceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(CreateWidgetInstanceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_CreateWidgetInstance_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) SaveWidgetInstanceData(ctx context.Context, in *SaveWidgetInstanceDataRequest, opts ...grpc.CallOption) (*SaveWidgetInstanceDataResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(SaveWidgetInstanceDataResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_SaveWidgetInstanceData_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) MoveWidgetInstanceToSpace(ctx context.Context, in *MoveWidgetInstanceToSpaceRequest, opts ...grpc.CallOption) (*MoveWidgetInstanceToSpaceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(MoveWidgetInstanceToSpaceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_MoveWidgetInstanceToSpace_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *widgetServiceClient) DeleteWidgetInstance(ctx context.Context, in *DeleteWidgetInstanceRequest, opts ...grpc.CallOption) (*DeleteWidgetInstanceResponse, error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
out := new(DeleteWidgetInstanceResponse)
|
||||||
|
err := c.cc.Invoke(ctx, WidgetService_DeleteWidgetInstance_FullMethodName, in, out, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// WidgetServiceServer is the server API for WidgetService service.
|
||||||
|
// All implementations must embed UnimplementedWidgetServiceServer
|
||||||
|
// for forward compatibility.
|
||||||
|
//
|
||||||
|
// Requires authed human.
|
||||||
|
type WidgetServiceServer interface {
|
||||||
|
ListAppContexts(context.Context, *ListAppContextsRequest) (*ListAppContextsResponse, error)
|
||||||
|
// All spaces & attached widget instances for the authed human.
|
||||||
|
ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error)
|
||||||
|
AddSpace(context.Context, *AddSpaceRequest) (*AddSpaceResponse, error)
|
||||||
|
// Authoritative: please define every field, otherwise they will be overwritten as empty.
|
||||||
|
UpdateSpace(context.Context, *UpdateSpaceRequest) (*UpdateSpaceResponse, error)
|
||||||
|
// Deletes space and all widget instances within.
|
||||||
|
DeleteSpace(context.Context, *DeleteSpaceRequest) (*DeleteSpaceResponse, error)
|
||||||
|
// All existing spaces for human must be provided.
|
||||||
|
ReorderSpaces(context.Context, *ReorderSpacesRequest) (*ReorderSpacesResponse, error)
|
||||||
|
// Create a widget instance and set it's initial space
|
||||||
|
CreateWidgetInstance(context.Context, *CreateWidgetInstanceRequest) (*CreateWidgetInstanceResponse, error)
|
||||||
|
SaveWidgetInstanceData(context.Context, *SaveWidgetInstanceDataRequest) (*SaveWidgetInstanceDataResponse, error)
|
||||||
|
MoveWidgetInstanceToSpace(context.Context, *MoveWidgetInstanceToSpaceRequest) (*MoveWidgetInstanceToSpaceResponse, error)
|
||||||
|
DeleteWidgetInstance(context.Context, *DeleteWidgetInstanceRequest) (*DeleteWidgetInstanceResponse, error)
|
||||||
|
mustEmbedUnimplementedWidgetServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnimplementedWidgetServiceServer must be embedded to have
|
||||||
|
// forward compatible implementations.
|
||||||
|
//
|
||||||
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||||
|
// pointer dereference when methods are called.
|
||||||
|
type UnimplementedWidgetServiceServer struct{}
|
||||||
|
|
||||||
|
func (UnimplementedWidgetServiceServer) ListAppContexts(context.Context, *ListAppContextsRequest) (*ListAppContextsResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ListAppContexts not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) ListSpaces(context.Context, *ListSpacesRequest) (*ListSpacesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ListSpaces not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) AddSpace(context.Context, *AddSpaceRequest) (*AddSpaceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method AddSpace not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) UpdateSpace(context.Context, *UpdateSpaceRequest) (*UpdateSpaceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateSpace not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) DeleteSpace(context.Context, *DeleteSpaceRequest) (*DeleteSpaceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteSpace not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) ReorderSpaces(context.Context, *ReorderSpacesRequest) (*ReorderSpacesResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method ReorderSpaces not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) CreateWidgetInstance(context.Context, *CreateWidgetInstanceRequest) (*CreateWidgetInstanceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method CreateWidgetInstance not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) SaveWidgetInstanceData(context.Context, *SaveWidgetInstanceDataRequest) (*SaveWidgetInstanceDataResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method SaveWidgetInstanceData not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) MoveWidgetInstanceToSpace(context.Context, *MoveWidgetInstanceToSpaceRequest) (*MoveWidgetInstanceToSpaceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method MoveWidgetInstanceToSpace not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) DeleteWidgetInstance(context.Context, *DeleteWidgetInstanceRequest) (*DeleteWidgetInstanceResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteWidgetInstance not implemented")
|
||||||
|
}
|
||||||
|
func (UnimplementedWidgetServiceServer) mustEmbedUnimplementedWidgetServiceServer() {}
|
||||||
|
func (UnimplementedWidgetServiceServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
|
// UnsafeWidgetServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
|
// Use of this interface is not recommended, as added methods to WidgetServiceServer will
|
||||||
|
// result in compilation errors.
|
||||||
|
type UnsafeWidgetServiceServer interface {
|
||||||
|
mustEmbedUnimplementedWidgetServiceServer()
|
||||||
|
}
|
||||||
|
|
||||||
|
func RegisterWidgetServiceServer(s grpc.ServiceRegistrar, srv WidgetServiceServer) {
|
||||||
|
// If the following call pancis, it indicates UnimplementedWidgetServiceServer was
|
||||||
|
// embedded by pointer and is nil. This will cause panics if an
|
||||||
|
// unimplemented method is ever invoked, so we test this at initialization
|
||||||
|
// time to prevent it from happening at runtime later due to I/O.
|
||||||
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||||
|
t.testEmbeddedByValue()
|
||||||
|
}
|
||||||
|
s.RegisterService(&WidgetService_ServiceDesc, srv)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_ListAppContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListAppContextsRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).ListAppContexts(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_ListAppContexts_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).ListAppContexts(ctx, req.(*ListAppContextsRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_ListSpaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ListSpacesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).ListSpaces(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_ListSpaces_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).ListSpaces(ctx, req.(*ListSpacesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_AddSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(AddSpaceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).AddSpace(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_AddSpace_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).AddSpace(ctx, req.(*AddSpaceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_UpdateSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(UpdateSpaceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).UpdateSpace(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_UpdateSpace_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).UpdateSpace(ctx, req.(*UpdateSpaceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_DeleteSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteSpaceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).DeleteSpace(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_DeleteSpace_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).DeleteSpace(ctx, req.(*DeleteSpaceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_ReorderSpaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(ReorderSpacesRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).ReorderSpaces(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_ReorderSpaces_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).ReorderSpaces(ctx, req.(*ReorderSpacesRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_CreateWidgetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(CreateWidgetInstanceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).CreateWidgetInstance(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_CreateWidgetInstance_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).CreateWidgetInstance(ctx, req.(*CreateWidgetInstanceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_SaveWidgetInstanceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(SaveWidgetInstanceDataRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).SaveWidgetInstanceData(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_SaveWidgetInstanceData_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).SaveWidgetInstanceData(ctx, req.(*SaveWidgetInstanceDataRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_MoveWidgetInstanceToSpace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(MoveWidgetInstanceToSpaceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).MoveWidgetInstanceToSpace(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_MoveWidgetInstanceToSpace_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).MoveWidgetInstanceToSpace(ctx, req.(*MoveWidgetInstanceToSpaceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
func _WidgetService_DeleteWidgetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(DeleteWidgetInstanceRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(WidgetServiceServer).DeleteWidgetInstance(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: WidgetService_DeleteWidgetInstance_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(WidgetServiceServer).DeleteWidgetInstance(ctx, req.(*DeleteWidgetInstanceRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
// WidgetService_ServiceDesc is the grpc.ServiceDesc for WidgetService service.
|
||||||
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
var WidgetService_ServiceDesc = grpc.ServiceDesc{
|
||||||
|
ServiceName: "helios.widgets.WidgetService",
|
||||||
|
HandlerType: (*WidgetServiceServer)(nil),
|
||||||
|
Methods: []grpc.MethodDesc{
|
||||||
|
{
|
||||||
|
MethodName: "ListAppContexts",
|
||||||
|
Handler: _WidgetService_ListAppContexts_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ListSpaces",
|
||||||
|
Handler: _WidgetService_ListSpaces_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "AddSpace",
|
||||||
|
Handler: _WidgetService_AddSpace_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "UpdateSpace",
|
||||||
|
Handler: _WidgetService_UpdateSpace_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteSpace",
|
||||||
|
Handler: _WidgetService_DeleteSpace_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "ReorderSpaces",
|
||||||
|
Handler: _WidgetService_ReorderSpaces_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "CreateWidgetInstance",
|
||||||
|
Handler: _WidgetService_CreateWidgetInstance_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "SaveWidgetInstanceData",
|
||||||
|
Handler: _WidgetService_SaveWidgetInstanceData_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "MoveWidgetInstanceToSpace",
|
||||||
|
Handler: _WidgetService_MoveWidgetInstanceToSpace_Handler,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
MethodName: "DeleteWidgetInstance",
|
||||||
|
Handler: _WidgetService_DeleteWidgetInstance_Handler,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Streams: []grpc.StreamDesc{},
|
||||||
|
Metadata: "helios/widgets/widgetservice.proto",
|
||||||
|
}
|
||||||
+12
-4
@@ -2,13 +2,19 @@ module github.com/flowy-live/admin-cli
|
|||||||
|
|
||||||
go 1.24.0
|
go 1.24.0
|
||||||
|
|
||||||
require github.com/sirupsen/logrus v1.9.3
|
require (
|
||||||
|
github.com/charmbracelet/bubbles v0.21.0
|
||||||
|
github.com/charmbracelet/bubbletea v1.3.10
|
||||||
|
github.com/charmbracelet/lipgloss v1.1.0
|
||||||
|
github.com/mergestat/timediff v0.0.4
|
||||||
|
github.com/sirupsen/logrus v1.9.3
|
||||||
|
google.golang.org/grpc v1.76.0
|
||||||
|
google.golang.org/protobuf v1.36.10
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
||||||
github.com/charmbracelet/bubbletea v1.3.10 // indirect
|
|
||||||
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
|
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc // indirect
|
||||||
github.com/charmbracelet/lipgloss v1.1.0 // indirect
|
|
||||||
github.com/charmbracelet/x/ansi v0.10.1 // indirect
|
github.com/charmbracelet/x/ansi v0.10.1 // indirect
|
||||||
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
|
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
|
||||||
github.com/charmbracelet/x/term v0.2.1 // indirect
|
github.com/charmbracelet/x/term v0.2.1 // indirect
|
||||||
@@ -22,6 +28,8 @@ require (
|
|||||||
github.com/muesli/termenv v0.16.0 // indirect
|
github.com/muesli/termenv v0.16.0 // indirect
|
||||||
github.com/rivo/uniseg v0.4.7 // indirect
|
github.com/rivo/uniseg v0.4.7 // indirect
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
||||||
|
golang.org/x/net v0.42.0 // indirect
|
||||||
golang.org/x/sys v0.36.0 // indirect
|
golang.org/x/sys v0.36.0 // indirect
|
||||||
golang.org/x/text v0.3.8 // indirect
|
golang.org/x/text v0.27.0 // indirect
|
||||||
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
+40
-3
@@ -1,5 +1,7 @@
|
|||||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
|
||||||
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
|
||||||
|
github.com/charmbracelet/bubbles v0.21.0 h1:9TdC97SdRVg/1aaXNVWfFH3nnLAwOXr8Fn6u6mfQdFs=
|
||||||
|
github.com/charmbracelet/bubbles v0.21.0/go.mod h1:HF+v6QUR4HkEpz62dx7ym2xc71/KBHg+zKwJtMw+qtg=
|
||||||
github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw=
|
github.com/charmbracelet/bubbletea v1.3.10 h1:otUDHWMMzQSB0Pkc87rm691KZ3SWa4KUlvF9nRvCICw=
|
||||||
github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4=
|
github.com/charmbracelet/bubbletea v1.3.10/go.mod h1:ORQfo0fk8U+po9VaNvnV95UPWA1BitP1E0N6xJPlHr4=
|
||||||
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc h1:4pZI35227imm7yK2bGPcfpFEmuY1gc2YSTShr4iJBfs=
|
github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc h1:4pZI35227imm7yK2bGPcfpFEmuY1gc2YSTShr4iJBfs=
|
||||||
@@ -17,6 +19,16 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
|
|||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
|
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
|
||||||
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
|
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
|
||||||
|
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
|
||||||
|
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
|
||||||
|
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
|
||||||
|
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
|
||||||
|
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
|
||||||
|
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
|
||||||
|
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
||||||
|
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
||||||
|
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||||
|
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
||||||
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||||
@@ -25,6 +37,8 @@ github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2J
|
|||||||
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
||||||
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
|
github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc=
|
||||||
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||||
|
github.com/mergestat/timediff v0.0.4 h1:NZ3sqG/6K9flhTubdltmRx3RBfIiYv6LsGP+4FlXMM8=
|
||||||
|
github.com/mergestat/timediff v0.0.4/go.mod h1:yvMUaRu2oetc+9IbPLYBJviz6sA7xz8OXMDfhBl7YSI=
|
||||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
|
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
|
||||||
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
|
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
|
||||||
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
|
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
|
||||||
@@ -43,14 +57,37 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
|
|||||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
||||||
|
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
|
||||||
|
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
|
||||||
|
go.opentelemetry.io/otel v1.37.0 h1:9zhNfelUvx0KBfu/gb+ZgeAfAgtWrfHJZcAqFC228wQ=
|
||||||
|
go.opentelemetry.io/otel v1.37.0/go.mod h1:ehE/umFRLnuLa/vSccNq9oS1ErUlkkK71gMcN34UG8I=
|
||||||
|
go.opentelemetry.io/otel/metric v1.37.0 h1:mvwbQS5m0tbmqML4NqK+e3aDiO02vsf/WgbsdpcPoZE=
|
||||||
|
go.opentelemetry.io/otel/metric v1.37.0/go.mod h1:04wGrZurHYKOc+RKeye86GwKiTb9FKm1WHtO+4EVr2E=
|
||||||
|
go.opentelemetry.io/otel/sdk v1.37.0 h1:ItB0QUqnjesGRvNcmAcU0LyvkVyGJ2xftD29bWdDvKI=
|
||||||
|
go.opentelemetry.io/otel/sdk v1.37.0/go.mod h1:VredYzxUvuo2q3WRcDnKDjbdvmO0sCzOvVAiY+yUkAg=
|
||||||
|
go.opentelemetry.io/otel/sdk/metric v1.37.0 h1:90lI228XrB9jCMuSdA0673aubgRobVZFhbjxHHspCPc=
|
||||||
|
go.opentelemetry.io/otel/sdk/metric v1.37.0/go.mod h1:cNen4ZWfiD37l5NhS+Keb5RXVWZWpRE+9WyVCpbo5ps=
|
||||||
|
go.opentelemetry.io/otel/trace v1.37.0 h1:HLdcFNbRQBE2imdSEgm/kwqmQj1Or1l/7bW6mxVK7z4=
|
||||||
|
go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXewPGyayAWSBS0=
|
||||||
|
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
|
||||||
|
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
|
||||||
|
golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
|
||||||
|
golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
|
||||||
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
|
|
||||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
|
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
|
||||||
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||||
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
|
golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
|
||||||
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
|
golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU=
|
||||||
|
gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=
|
||||||
|
gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E=
|
||||||
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b h1:zPKJod4w6F1+nRGDI9ubnXYhU9NSWoFAijkHkUXeTK8=
|
||||||
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
|
||||||
|
google.golang.org/grpc v1.76.0 h1:UnVkv1+uMLYXoIz6o7chp59WfQUYA2ex/BXQ9rHZu7A=
|
||||||
|
google.golang.org/grpc v1.76.0/go.mod h1:Ju12QI8M6iQJtbcsV+awF5a4hfJMLi4X0JLo94ULZ6c=
|
||||||
|
google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE=
|
||||||
|
google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
|||||||
Submodule
+1
Submodule go-cli/protocol added at 30ca2c323c
Reference in New Issue
Block a user