add: signal server
This commit is contained in:
@@ -0,0 +1,347 @@
|
||||
// Code generated by protoc-gen-connect-go. DO NOT EDIT.
|
||||
//
|
||||
// Source: signaler_service.proto
|
||||
|
||||
package genconnect
|
||||
|
||||
import (
|
||||
connect "connectrpc.com/connect"
|
||||
context "context"
|
||||
errors "errors"
|
||||
gen "github.com/chathaway-codes/home-sensors/v2/gen"
|
||||
http "net/http"
|
||||
strings "strings"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file and the connect package are
|
||||
// compatible. If you get a compiler error that this constant is not defined, this code was
|
||||
// generated with a version of connect newer than the one compiled into your binary. You can fix the
|
||||
// problem by either regenerating this code with an older version of connect or updating the connect
|
||||
// version compiled into your binary.
|
||||
const _ = connect.IsAtLeastVersion0_1_0
|
||||
|
||||
const (
|
||||
// SignalerServiceName is the fully-qualified name of the SignalerService service.
|
||||
SignalerServiceName = "signaler.SignalerService"
|
||||
)
|
||||
|
||||
// These constants are the fully-qualified names of the RPCs defined in this package. They're
|
||||
// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
|
||||
//
|
||||
// Note that these are different from the fully-qualified method names used by
|
||||
// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to
|
||||
// reflection-formatted method names, remove the leading slash and convert the remaining slash to a
|
||||
// period.
|
||||
const (
|
||||
// SignalerServiceCreateAuthTokenProcedure is the fully-qualified name of the SignalerService's
|
||||
// CreateAuthToken RPC.
|
||||
SignalerServiceCreateAuthTokenProcedure = "/signaler.SignalerService/CreateAuthToken"
|
||||
// SignalerServiceListCamerasProcedure is the fully-qualified name of the SignalerService's
|
||||
// ListCameras RPC.
|
||||
SignalerServiceListCamerasProcedure = "/signaler.SignalerService/ListCameras"
|
||||
// SignalerServiceCreateSessionProcedure is the fully-qualified name of the SignalerService's
|
||||
// CreateSession RPC.
|
||||
SignalerServiceCreateSessionProcedure = "/signaler.SignalerService/CreateSession"
|
||||
// SignalerServiceUpdateSessionProcedure is the fully-qualified name of the SignalerService's
|
||||
// UpdateSession RPC.
|
||||
SignalerServiceUpdateSessionProcedure = "/signaler.SignalerService/UpdateSession"
|
||||
// SignalerServiceListSessionsProcedure is the fully-qualified name of the SignalerService's
|
||||
// ListSessions RPC.
|
||||
SignalerServiceListSessionsProcedure = "/signaler.SignalerService/ListSessions"
|
||||
// SignalerServiceCreateIceCandidateProcedure is the fully-qualified name of the SignalerService's
|
||||
// CreateIceCandidate RPC.
|
||||
SignalerServiceCreateIceCandidateProcedure = "/signaler.SignalerService/CreateIceCandidate"
|
||||
// SignalerServicePopIceCandidateProcedure is the fully-qualified name of the SignalerService's
|
||||
// PopIceCandidate RPC.
|
||||
SignalerServicePopIceCandidateProcedure = "/signaler.SignalerService/PopIceCandidate"
|
||||
// SignalerServiceCreateIceSessionDescriptionProcedure is the fully-qualified name of the
|
||||
// SignalerService's CreateIceSessionDescription RPC.
|
||||
SignalerServiceCreateIceSessionDescriptionProcedure = "/signaler.SignalerService/CreateIceSessionDescription"
|
||||
// SignalerServicePopIceSessionDescriptionProcedure is the fully-qualified name of the
|
||||
// SignalerService's PopIceSessionDescription RPC.
|
||||
SignalerServicePopIceSessionDescriptionProcedure = "/signaler.SignalerService/PopIceSessionDescription"
|
||||
)
|
||||
|
||||
// SignalerServiceClient is a client for the signaler.SignalerService service.
|
||||
type SignalerServiceClient interface {
|
||||
CreateAuthToken(context.Context, *connect.Request[gen.CreateAuthTokenRequest]) (*connect.Response[gen.AuthToken], error)
|
||||
ListCameras(context.Context, *connect.Request[gen.ListCamerasRequest]) (*connect.Response[gen.ListCamerasResponse], error)
|
||||
// CreateSession creates a new session that can be seen bv the provided Camera and Peer.
|
||||
//
|
||||
// Optionally, wait_for_update can be set to prevent returning until the Camera has seen the
|
||||
// session request, populated candidates, and returned a session offer.
|
||||
CreateSession(context.Context, *connect.Request[gen.CreateSessionRequest]) (*connect.Response[gen.Session], error)
|
||||
// UpdateSession updates the session
|
||||
UpdateSession(context.Context, *connect.Request[gen.UpdateSessionRequest]) (*connect.Response[gen.Session], error)
|
||||
// ListSessions lists all sessions the client should consider.
|
||||
//
|
||||
// TODO: it would be better if we could alert a camera to poll for sessions
|
||||
// i.e., with websockets (or streaming RPCs).
|
||||
ListSessions(context.Context, *connect.Request[gen.ListSessionsRequest]) (*connect.Response[gen.ListSessionsResponse], error)
|
||||
// CreateIceCandidate adds the provided candidate to the list of candidates.
|
||||
CreateIceCandidate(context.Context, *connect.Request[gen.CreateIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error)
|
||||
// PopIceCandidate delete a candidate from the list of candidates and returns it.
|
||||
//
|
||||
// If there are no candidates, this blocks until one becomes available.
|
||||
PopIceCandidate(context.Context, *connect.Request[gen.PopIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error)
|
||||
CreateIceSessionDescription(context.Context, *connect.Request[gen.CreateIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error)
|
||||
PopIceSessionDescription(context.Context, *connect.Request[gen.PopIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error)
|
||||
}
|
||||
|
||||
// NewSignalerServiceClient constructs a client for the signaler.SignalerService service. By
|
||||
// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses,
|
||||
// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the
|
||||
// connect.WithGRPC() or connect.WithGRPCWeb() options.
|
||||
//
|
||||
// The URL supplied here should be the base URL for the Connect or gRPC server (for example,
|
||||
// http://api.acme.com or https://acme.com/grpc).
|
||||
func NewSignalerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SignalerServiceClient {
|
||||
baseURL = strings.TrimRight(baseURL, "/")
|
||||
return &signalerServiceClient{
|
||||
createAuthToken: connect.NewClient[gen.CreateAuthTokenRequest, gen.AuthToken](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceCreateAuthTokenProcedure,
|
||||
opts...,
|
||||
),
|
||||
listCameras: connect.NewClient[gen.ListCamerasRequest, gen.ListCamerasResponse](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceListCamerasProcedure,
|
||||
opts...,
|
||||
),
|
||||
createSession: connect.NewClient[gen.CreateSessionRequest, gen.Session](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceCreateSessionProcedure,
|
||||
opts...,
|
||||
),
|
||||
updateSession: connect.NewClient[gen.UpdateSessionRequest, gen.Session](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceUpdateSessionProcedure,
|
||||
opts...,
|
||||
),
|
||||
listSessions: connect.NewClient[gen.ListSessionsRequest, gen.ListSessionsResponse](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceListSessionsProcedure,
|
||||
opts...,
|
||||
),
|
||||
createIceCandidate: connect.NewClient[gen.CreateIceCandidateRequest, gen.IceCandidate](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceCreateIceCandidateProcedure,
|
||||
opts...,
|
||||
),
|
||||
popIceCandidate: connect.NewClient[gen.PopIceCandidateRequest, gen.IceCandidate](
|
||||
httpClient,
|
||||
baseURL+SignalerServicePopIceCandidateProcedure,
|
||||
opts...,
|
||||
),
|
||||
createIceSessionDescription: connect.NewClient[gen.CreateIceSessionDescriptionRequest, gen.IceSessionDescription](
|
||||
httpClient,
|
||||
baseURL+SignalerServiceCreateIceSessionDescriptionProcedure,
|
||||
opts...,
|
||||
),
|
||||
popIceSessionDescription: connect.NewClient[gen.PopIceSessionDescriptionRequest, gen.IceSessionDescription](
|
||||
httpClient,
|
||||
baseURL+SignalerServicePopIceSessionDescriptionProcedure,
|
||||
opts...,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
// signalerServiceClient implements SignalerServiceClient.
|
||||
type signalerServiceClient struct {
|
||||
createAuthToken *connect.Client[gen.CreateAuthTokenRequest, gen.AuthToken]
|
||||
listCameras *connect.Client[gen.ListCamerasRequest, gen.ListCamerasResponse]
|
||||
createSession *connect.Client[gen.CreateSessionRequest, gen.Session]
|
||||
updateSession *connect.Client[gen.UpdateSessionRequest, gen.Session]
|
||||
listSessions *connect.Client[gen.ListSessionsRequest, gen.ListSessionsResponse]
|
||||
createIceCandidate *connect.Client[gen.CreateIceCandidateRequest, gen.IceCandidate]
|
||||
popIceCandidate *connect.Client[gen.PopIceCandidateRequest, gen.IceCandidate]
|
||||
createIceSessionDescription *connect.Client[gen.CreateIceSessionDescriptionRequest, gen.IceSessionDescription]
|
||||
popIceSessionDescription *connect.Client[gen.PopIceSessionDescriptionRequest, gen.IceSessionDescription]
|
||||
}
|
||||
|
||||
// CreateAuthToken calls signaler.SignalerService.CreateAuthToken.
|
||||
func (c *signalerServiceClient) CreateAuthToken(ctx context.Context, req *connect.Request[gen.CreateAuthTokenRequest]) (*connect.Response[gen.AuthToken], error) {
|
||||
return c.createAuthToken.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// ListCameras calls signaler.SignalerService.ListCameras.
|
||||
func (c *signalerServiceClient) ListCameras(ctx context.Context, req *connect.Request[gen.ListCamerasRequest]) (*connect.Response[gen.ListCamerasResponse], error) {
|
||||
return c.listCameras.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// CreateSession calls signaler.SignalerService.CreateSession.
|
||||
func (c *signalerServiceClient) CreateSession(ctx context.Context, req *connect.Request[gen.CreateSessionRequest]) (*connect.Response[gen.Session], error) {
|
||||
return c.createSession.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// UpdateSession calls signaler.SignalerService.UpdateSession.
|
||||
func (c *signalerServiceClient) UpdateSession(ctx context.Context, req *connect.Request[gen.UpdateSessionRequest]) (*connect.Response[gen.Session], error) {
|
||||
return c.updateSession.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// ListSessions calls signaler.SignalerService.ListSessions.
|
||||
func (c *signalerServiceClient) ListSessions(ctx context.Context, req *connect.Request[gen.ListSessionsRequest]) (*connect.Response[gen.ListSessionsResponse], error) {
|
||||
return c.listSessions.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// CreateIceCandidate calls signaler.SignalerService.CreateIceCandidate.
|
||||
func (c *signalerServiceClient) CreateIceCandidate(ctx context.Context, req *connect.Request[gen.CreateIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error) {
|
||||
return c.createIceCandidate.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// PopIceCandidate calls signaler.SignalerService.PopIceCandidate.
|
||||
func (c *signalerServiceClient) PopIceCandidate(ctx context.Context, req *connect.Request[gen.PopIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error) {
|
||||
return c.popIceCandidate.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// CreateIceSessionDescription calls signaler.SignalerService.CreateIceSessionDescription.
|
||||
func (c *signalerServiceClient) CreateIceSessionDescription(ctx context.Context, req *connect.Request[gen.CreateIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error) {
|
||||
return c.createIceSessionDescription.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// PopIceSessionDescription calls signaler.SignalerService.PopIceSessionDescription.
|
||||
func (c *signalerServiceClient) PopIceSessionDescription(ctx context.Context, req *connect.Request[gen.PopIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error) {
|
||||
return c.popIceSessionDescription.CallUnary(ctx, req)
|
||||
}
|
||||
|
||||
// SignalerServiceHandler is an implementation of the signaler.SignalerService service.
|
||||
type SignalerServiceHandler interface {
|
||||
CreateAuthToken(context.Context, *connect.Request[gen.CreateAuthTokenRequest]) (*connect.Response[gen.AuthToken], error)
|
||||
ListCameras(context.Context, *connect.Request[gen.ListCamerasRequest]) (*connect.Response[gen.ListCamerasResponse], error)
|
||||
// CreateSession creates a new session that can be seen bv the provided Camera and Peer.
|
||||
//
|
||||
// Optionally, wait_for_update can be set to prevent returning until the Camera has seen the
|
||||
// session request, populated candidates, and returned a session offer.
|
||||
CreateSession(context.Context, *connect.Request[gen.CreateSessionRequest]) (*connect.Response[gen.Session], error)
|
||||
// UpdateSession updates the session
|
||||
UpdateSession(context.Context, *connect.Request[gen.UpdateSessionRequest]) (*connect.Response[gen.Session], error)
|
||||
// ListSessions lists all sessions the client should consider.
|
||||
//
|
||||
// TODO: it would be better if we could alert a camera to poll for sessions
|
||||
// i.e., with websockets (or streaming RPCs).
|
||||
ListSessions(context.Context, *connect.Request[gen.ListSessionsRequest]) (*connect.Response[gen.ListSessionsResponse], error)
|
||||
// CreateIceCandidate adds the provided candidate to the list of candidates.
|
||||
CreateIceCandidate(context.Context, *connect.Request[gen.CreateIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error)
|
||||
// PopIceCandidate delete a candidate from the list of candidates and returns it.
|
||||
//
|
||||
// If there are no candidates, this blocks until one becomes available.
|
||||
PopIceCandidate(context.Context, *connect.Request[gen.PopIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error)
|
||||
CreateIceSessionDescription(context.Context, *connect.Request[gen.CreateIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error)
|
||||
PopIceSessionDescription(context.Context, *connect.Request[gen.PopIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error)
|
||||
}
|
||||
|
||||
// NewSignalerServiceHandler builds an HTTP handler from the service implementation. It returns the
|
||||
// path on which to mount the handler and the handler itself.
|
||||
//
|
||||
// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf
|
||||
// and JSON codecs. They also support gzip compression.
|
||||
func NewSignalerServiceHandler(svc SignalerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) {
|
||||
signalerServiceCreateAuthTokenHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceCreateAuthTokenProcedure,
|
||||
svc.CreateAuthToken,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceListCamerasHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceListCamerasProcedure,
|
||||
svc.ListCameras,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceCreateSessionHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceCreateSessionProcedure,
|
||||
svc.CreateSession,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceUpdateSessionHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceUpdateSessionProcedure,
|
||||
svc.UpdateSession,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceListSessionsHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceListSessionsProcedure,
|
||||
svc.ListSessions,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceCreateIceCandidateHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceCreateIceCandidateProcedure,
|
||||
svc.CreateIceCandidate,
|
||||
opts...,
|
||||
)
|
||||
signalerServicePopIceCandidateHandler := connect.NewUnaryHandler(
|
||||
SignalerServicePopIceCandidateProcedure,
|
||||
svc.PopIceCandidate,
|
||||
opts...,
|
||||
)
|
||||
signalerServiceCreateIceSessionDescriptionHandler := connect.NewUnaryHandler(
|
||||
SignalerServiceCreateIceSessionDescriptionProcedure,
|
||||
svc.CreateIceSessionDescription,
|
||||
opts...,
|
||||
)
|
||||
signalerServicePopIceSessionDescriptionHandler := connect.NewUnaryHandler(
|
||||
SignalerServicePopIceSessionDescriptionProcedure,
|
||||
svc.PopIceSessionDescription,
|
||||
opts...,
|
||||
)
|
||||
return "/signaler.SignalerService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.URL.Path {
|
||||
case SignalerServiceCreateAuthTokenProcedure:
|
||||
signalerServiceCreateAuthTokenHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceListCamerasProcedure:
|
||||
signalerServiceListCamerasHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceCreateSessionProcedure:
|
||||
signalerServiceCreateSessionHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceUpdateSessionProcedure:
|
||||
signalerServiceUpdateSessionHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceListSessionsProcedure:
|
||||
signalerServiceListSessionsHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceCreateIceCandidateProcedure:
|
||||
signalerServiceCreateIceCandidateHandler.ServeHTTP(w, r)
|
||||
case SignalerServicePopIceCandidateProcedure:
|
||||
signalerServicePopIceCandidateHandler.ServeHTTP(w, r)
|
||||
case SignalerServiceCreateIceSessionDescriptionProcedure:
|
||||
signalerServiceCreateIceSessionDescriptionHandler.ServeHTTP(w, r)
|
||||
case SignalerServicePopIceSessionDescriptionProcedure:
|
||||
signalerServicePopIceSessionDescriptionHandler.ServeHTTP(w, r)
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// UnimplementedSignalerServiceHandler returns CodeUnimplemented from all methods.
|
||||
type UnimplementedSignalerServiceHandler struct{}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) CreateAuthToken(context.Context, *connect.Request[gen.CreateAuthTokenRequest]) (*connect.Response[gen.AuthToken], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.CreateAuthToken is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) ListCameras(context.Context, *connect.Request[gen.ListCamerasRequest]) (*connect.Response[gen.ListCamerasResponse], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.ListCameras is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) CreateSession(context.Context, *connect.Request[gen.CreateSessionRequest]) (*connect.Response[gen.Session], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.CreateSession is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) UpdateSession(context.Context, *connect.Request[gen.UpdateSessionRequest]) (*connect.Response[gen.Session], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.UpdateSession is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) ListSessions(context.Context, *connect.Request[gen.ListSessionsRequest]) (*connect.Response[gen.ListSessionsResponse], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.ListSessions is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) CreateIceCandidate(context.Context, *connect.Request[gen.CreateIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.CreateIceCandidate is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) PopIceCandidate(context.Context, *connect.Request[gen.PopIceCandidateRequest]) (*connect.Response[gen.IceCandidate], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.PopIceCandidate is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) CreateIceSessionDescription(context.Context, *connect.Request[gen.CreateIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.CreateIceSessionDescription is not implemented"))
|
||||
}
|
||||
|
||||
func (UnimplementedSignalerServiceHandler) PopIceSessionDescription(context.Context, *connect.Request[gen.PopIceSessionDescriptionRequest]) (*connect.Response[gen.IceSessionDescription], error) {
|
||||
return nil, connect.NewError(connect.CodeUnimplemented, errors.New("signaler.SignalerService.PopIceSessionDescription is not implemented"))
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: internal/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthToken extends $pb.GeneratedMessage {
|
||||
factory AuthToken({
|
||||
$core.String? uid,
|
||||
$core.Iterable<$core.String>? homes,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (uid != null) {
|
||||
$result.uid = uid;
|
||||
}
|
||||
if (homes != null) {
|
||||
$result.homes.addAll(homes);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
AuthToken._() : super();
|
||||
factory AuthToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory AuthToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AuthToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'token'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'uid')
|
||||
..pPS(2, _omitFieldNames ? '' : 'homes')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
AuthToken clone() => AuthToken()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
AuthToken copyWith(void Function(AuthToken) updates) => super.copyWith((message) => updates(message as AuthToken)) as AuthToken;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthToken create() => AuthToken._();
|
||||
AuthToken createEmptyInstance() => create();
|
||||
static $pb.PbList<AuthToken> createRepeated() => $pb.PbList<AuthToken>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AuthToken>(create);
|
||||
static AuthToken? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get uid => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set uid($core.String v) { $_setString(0, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasUid() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearUid() => clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.String> get homes => $_getList(1);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
@@ -0,0 +1,159 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc (unknown)
|
||||
// source: internal/token.proto
|
||||
|
||||
package internal
|
||||
|
||||
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 AuthToken struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||
Homes []string `protobuf:"bytes,2,rep,name=homes,proto3" json:"homes,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AuthToken) Reset() {
|
||||
*x = AuthToken{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_internal_token_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AuthToken) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AuthToken) ProtoMessage() {}
|
||||
|
||||
func (x *AuthToken) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_internal_token_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AuthToken.ProtoReflect.Descriptor instead.
|
||||
func (*AuthToken) Descriptor() ([]byte, []int) {
|
||||
return file_internal_token_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *AuthToken) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AuthToken) GetHomes() []string {
|
||||
if x != nil {
|
||||
return x.Homes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_internal_token_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_internal_token_proto_rawDesc = []byte{
|
||||
0x0a, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a,
|
||||
0x09, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x68, 0x6f, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x6f, 0x6d,
|
||||
0x65, 0x73, 0x42, 0x84, 0x01, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||
0x42, 0x0a, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37,
|
||||
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x68,
|
||||
0x61, 0x77, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2d,
|
||||
0x73, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x69,
|
||||
0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x05,
|
||||
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0xca, 0x02, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0xe2, 0x02, 0x11,
|
||||
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
||||
0x61, 0xea, 0x02, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_internal_token_proto_rawDescOnce sync.Once
|
||||
file_internal_token_proto_rawDescData = file_internal_token_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_internal_token_proto_rawDescGZIP() []byte {
|
||||
file_internal_token_proto_rawDescOnce.Do(func() {
|
||||
file_internal_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_token_proto_rawDescData)
|
||||
})
|
||||
return file_internal_token_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_internal_token_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_internal_token_proto_goTypes = []interface{}{
|
||||
(*AuthToken)(nil), // 0: token.AuthToken
|
||||
}
|
||||
var file_internal_token_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] 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_internal_token_proto_init() }
|
||||
func file_internal_token_proto_init() {
|
||||
if File_internal_token_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AuthToken); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_internal_token_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_internal_token_proto_goTypes,
|
||||
DependencyIndexes: file_internal_token_proto_depIdxs,
|
||||
MessageInfos: file_internal_token_proto_msgTypes,
|
||||
}.Build()
|
||||
File_internal_token_proto = out.File
|
||||
file_internal_token_proto_rawDesc = nil
|
||||
file_internal_token_proto_goTypes = nil
|
||||
file_internal_token_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: internal/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: internal/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authTokenDescriptor instead')
|
||||
const AuthToken$json = {
|
||||
'1': 'AuthToken',
|
||||
'2': [
|
||||
{'1': 'uid', '3': 1, '4': 1, '5': 9, '10': 'uid'},
|
||||
{'1': 'homes', '3': 2, '4': 3, '5': 9, '10': 'homes'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthToken`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authTokenDescriptor = $convert.base64Decode(
|
||||
'CglBdXRoVG9rZW4SEAoDdWlkGAEgASgJUgN1aWQSFAoFaG9tZXMYAiADKAlSBWhvbWVz');
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: internal/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'token.pb.dart';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: signaler_service.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -0,0 +1,338 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: signaler_service.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use createAuthTokenRequestDescriptor instead')
|
||||
const CreateAuthTokenRequest$json = {
|
||||
'1': 'CreateAuthTokenRequest',
|
||||
'2': [
|
||||
{'1': 'home', '3': 1, '4': 1, '5': 9, '10': 'home'},
|
||||
{'1': 'camera', '3': 2, '4': 1, '5': 11, '6': '.signaler.CreateAuthTokenRequest.Camera', '9': 0, '10': 'camera'},
|
||||
{'1': 'client', '3': 3, '4': 1, '5': 11, '6': '.signaler.CreateAuthTokenRequest.Client', '9': 0, '10': 'client'},
|
||||
],
|
||||
'3': [CreateAuthTokenRequest_Camera$json, CreateAuthTokenRequest_Client$json],
|
||||
'8': [
|
||||
{'1': 'type'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use createAuthTokenRequestDescriptor instead')
|
||||
const CreateAuthTokenRequest_Camera$json = {
|
||||
'1': 'Camera',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use createAuthTokenRequestDescriptor instead')
|
||||
const CreateAuthTokenRequest_Client$json = {
|
||||
'1': 'Client',
|
||||
};
|
||||
|
||||
/// Descriptor for `CreateAuthTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List createAuthTokenRequestDescriptor = $convert.base64Decode(
|
||||
'ChZDcmVhdGVBdXRoVG9rZW5SZXF1ZXN0EhIKBGhvbWUYASABKAlSBGhvbWUSQQoGY2FtZXJhGA'
|
||||
'IgASgLMicuc2lnbmFsZXIuQ3JlYXRlQXV0aFRva2VuUmVxdWVzdC5DYW1lcmFIAFIGY2FtZXJh'
|
||||
'EkEKBmNsaWVudBgDIAEoCzInLnNpZ25hbGVyLkNyZWF0ZUF1dGhUb2tlblJlcXVlc3QuQ2xpZW'
|
||||
'50SABSBmNsaWVudBoYCgZDYW1lcmESDgoCaWQYASABKAlSAmlkGggKBkNsaWVudEIGCgR0eXBl');
|
||||
|
||||
@$core.Deprecated('Use listCamerasRequestDescriptor instead')
|
||||
const ListCamerasRequest$json = {
|
||||
'1': 'ListCamerasRequest',
|
||||
};
|
||||
|
||||
/// Descriptor for `ListCamerasRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listCamerasRequestDescriptor = $convert.base64Decode(
|
||||
'ChJMaXN0Q2FtZXJhc1JlcXVlc3Q=');
|
||||
|
||||
@$core.Deprecated('Use listCamerasResponseDescriptor instead')
|
||||
const ListCamerasResponse$json = {
|
||||
'1': 'ListCamerasResponse',
|
||||
'2': [
|
||||
{'1': 'cameras', '3': 1, '4': 3, '5': 11, '6': '.signaler.Camera', '10': 'cameras'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListCamerasResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listCamerasResponseDescriptor = $convert.base64Decode(
|
||||
'ChNMaXN0Q2FtZXJhc1Jlc3BvbnNlEioKB2NhbWVyYXMYASADKAsyEC5zaWduYWxlci5DYW1lcm'
|
||||
'FSB2NhbWVyYXM=');
|
||||
|
||||
@$core.Deprecated('Use createSessionRequestDescriptor instead')
|
||||
const CreateSessionRequest$json = {
|
||||
'1': 'CreateSessionRequest',
|
||||
'2': [
|
||||
{'1': 'session', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session', '10': 'session'},
|
||||
{'1': 'wait_for_update', '3': 2, '4': 1, '5': 8, '10': 'waitForUpdate'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `CreateSessionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List createSessionRequestDescriptor = $convert.base64Decode(
|
||||
'ChRDcmVhdGVTZXNzaW9uUmVxdWVzdBIrCgdzZXNzaW9uGAEgASgLMhEuc2lnbmFsZXIuU2Vzc2'
|
||||
'lvblIHc2Vzc2lvbhImCg93YWl0X2Zvcl91cGRhdGUYAiABKAhSDXdhaXRGb3JVcGRhdGU=');
|
||||
|
||||
@$core.Deprecated('Use updateSessionRequestDescriptor instead')
|
||||
const UpdateSessionRequest$json = {
|
||||
'1': 'UpdateSessionRequest',
|
||||
'2': [
|
||||
{'1': 'session', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session', '10': 'session'},
|
||||
{'1': 'wait_for_update', '3': 2, '4': 1, '5': 8, '10': 'waitForUpdate'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UpdateSessionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List updateSessionRequestDescriptor = $convert.base64Decode(
|
||||
'ChRVcGRhdGVTZXNzaW9uUmVxdWVzdBIrCgdzZXNzaW9uGAEgASgLMhEuc2lnbmFsZXIuU2Vzc2'
|
||||
'lvblIHc2Vzc2lvbhImCg93YWl0X2Zvcl91cGRhdGUYAiABKAhSDXdhaXRGb3JVcGRhdGU=');
|
||||
|
||||
@$core.Deprecated('Use listSessionsRequestDescriptor instead')
|
||||
const ListSessionsRequest$json = {
|
||||
'1': 'ListSessionsRequest',
|
||||
};
|
||||
|
||||
/// Descriptor for `ListSessionsRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listSessionsRequestDescriptor = $convert.base64Decode(
|
||||
'ChNMaXN0U2Vzc2lvbnNSZXF1ZXN0');
|
||||
|
||||
@$core.Deprecated('Use listSessionsResponseDescriptor instead')
|
||||
const ListSessionsResponse$json = {
|
||||
'1': 'ListSessionsResponse',
|
||||
'2': [
|
||||
{'1': 'sessions', '3': 1, '4': 3, '5': 11, '6': '.signaler.Session', '10': 'sessions'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListSessionsResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listSessionsResponseDescriptor = $convert.base64Decode(
|
||||
'ChRMaXN0U2Vzc2lvbnNSZXNwb25zZRItCghzZXNzaW9ucxgBIAMoCzIRLnNpZ25hbGVyLlNlc3'
|
||||
'Npb25SCHNlc3Npb25z');
|
||||
|
||||
@$core.Deprecated('Use createIceCandidateRequestDescriptor instead')
|
||||
const CreateIceCandidateRequest$json = {
|
||||
'1': 'CreateIceCandidateRequest',
|
||||
'2': [
|
||||
{'1': 'session_identifier', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session.Identifier', '10': 'sessionIdentifier'},
|
||||
{'1': 'candidate', '3': 2, '4': 1, '5': 11, '6': '.signaler.IceCandidate', '10': 'candidate'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `CreateIceCandidateRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List createIceCandidateRequestDescriptor = $convert.base64Decode(
|
||||
'ChlDcmVhdGVJY2VDYW5kaWRhdGVSZXF1ZXN0EksKEnNlc3Npb25faWRlbnRpZmllchgBIAEoCz'
|
||||
'IcLnNpZ25hbGVyLlNlc3Npb24uSWRlbnRpZmllclIRc2Vzc2lvbklkZW50aWZpZXISNAoJY2Fu'
|
||||
'ZGlkYXRlGAIgASgLMhYuc2lnbmFsZXIuSWNlQ2FuZGlkYXRlUgljYW5kaWRhdGU=');
|
||||
|
||||
@$core.Deprecated('Use popIceCandidateRequestDescriptor instead')
|
||||
const PopIceCandidateRequest$json = {
|
||||
'1': 'PopIceCandidateRequest',
|
||||
'2': [
|
||||
{'1': 'session_identifier', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session.Identifier', '10': 'sessionIdentifier'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PopIceCandidateRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List popIceCandidateRequestDescriptor = $convert.base64Decode(
|
||||
'ChZQb3BJY2VDYW5kaWRhdGVSZXF1ZXN0EksKEnNlc3Npb25faWRlbnRpZmllchgBIAEoCzIcLn'
|
||||
'NpZ25hbGVyLlNlc3Npb24uSWRlbnRpZmllclIRc2Vzc2lvbklkZW50aWZpZXI=');
|
||||
|
||||
@$core.Deprecated('Use createIceSessionDescriptionRequestDescriptor instead')
|
||||
const CreateIceSessionDescriptionRequest$json = {
|
||||
'1': 'CreateIceSessionDescriptionRequest',
|
||||
'2': [
|
||||
{'1': 'session_identifier', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session.Identifier', '10': 'sessionIdentifier'},
|
||||
{'1': 'description', '3': 2, '4': 1, '5': 11, '6': '.signaler.IceSessionDescription', '10': 'description'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `CreateIceSessionDescriptionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List createIceSessionDescriptionRequestDescriptor = $convert.base64Decode(
|
||||
'CiJDcmVhdGVJY2VTZXNzaW9uRGVzY3JpcHRpb25SZXF1ZXN0EksKEnNlc3Npb25faWRlbnRpZm'
|
||||
'llchgBIAEoCzIcLnNpZ25hbGVyLlNlc3Npb24uSWRlbnRpZmllclIRc2Vzc2lvbklkZW50aWZp'
|
||||
'ZXISQQoLZGVzY3JpcHRpb24YAiABKAsyHy5zaWduYWxlci5JY2VTZXNzaW9uRGVzY3JpcHRpb2'
|
||||
'5SC2Rlc2NyaXB0aW9u');
|
||||
|
||||
@$core.Deprecated('Use popIceSessionDescriptionRequestDescriptor instead')
|
||||
const PopIceSessionDescriptionRequest$json = {
|
||||
'1': 'PopIceSessionDescriptionRequest',
|
||||
'2': [
|
||||
{'1': 'session_identifier', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session.Identifier', '10': 'sessionIdentifier'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PopIceSessionDescriptionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List popIceSessionDescriptionRequestDescriptor = $convert.base64Decode(
|
||||
'Ch9Qb3BJY2VTZXNzaW9uRGVzY3JpcHRpb25SZXF1ZXN0EksKEnNlc3Npb25faWRlbnRpZmllch'
|
||||
'gBIAEoCzIcLnNpZ25hbGVyLlNlc3Npb24uSWRlbnRpZmllclIRc2Vzc2lvbklkZW50aWZpZXI=');
|
||||
|
||||
@$core.Deprecated('Use cameraDescriptor instead')
|
||||
const Camera$json = {
|
||||
'1': 'Camera',
|
||||
'2': [
|
||||
{'1': 'identifier', '3': 1, '4': 1, '5': 11, '6': '.signaler.Camera.Identifier', '10': 'identifier'},
|
||||
],
|
||||
'3': [Camera_Identifier$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use cameraDescriptor instead')
|
||||
const Camera_Identifier$json = {
|
||||
'1': 'Identifier',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Camera`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List cameraDescriptor = $convert.base64Decode(
|
||||
'CgZDYW1lcmESOwoKaWRlbnRpZmllchgBIAEoCzIbLnNpZ25hbGVyLkNhbWVyYS5JZGVudGlmaW'
|
||||
'VyUgppZGVudGlmaWVyGhwKCklkZW50aWZpZXISDgoCaWQYASABKAlSAmlk');
|
||||
|
||||
@$core.Deprecated('Use iceCandidateDescriptor instead')
|
||||
const IceCandidate$json = {
|
||||
'1': 'IceCandidate',
|
||||
'2': [
|
||||
{'1': 'candidate', '3': 1, '4': 1, '5': 9, '10': 'candidate'},
|
||||
{'1': 'sdp_mid', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'sdpMid', '17': true},
|
||||
{'1': 'sdp_line_index', '3': 3, '4': 1, '5': 5, '9': 1, '10': 'sdpLineIndex', '17': true},
|
||||
{'1': 'username_fragment', '3': 4, '4': 1, '5': 9, '9': 2, '10': 'usernameFragment', '17': true},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_sdp_mid'},
|
||||
{'1': '_sdp_line_index'},
|
||||
{'1': '_username_fragment'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `IceCandidate`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List iceCandidateDescriptor = $convert.base64Decode(
|
||||
'CgxJY2VDYW5kaWRhdGUSHAoJY2FuZGlkYXRlGAEgASgJUgljYW5kaWRhdGUSHAoHc2RwX21pZB'
|
||||
'gCIAEoCUgAUgZzZHBNaWSIAQESKQoOc2RwX2xpbmVfaW5kZXgYAyABKAVIAVIMc2RwTGluZUlu'
|
||||
'ZGV4iAEBEjAKEXVzZXJuYW1lX2ZyYWdtZW50GAQgASgJSAJSEHVzZXJuYW1lRnJhZ21lbnSIAQ'
|
||||
'FCCgoIX3NkcF9taWRCEQoPX3NkcF9saW5lX2luZGV4QhQKEl91c2VybmFtZV9mcmFnbWVudA==');
|
||||
|
||||
@$core.Deprecated('Use iceSessionDescriptionDescriptor instead')
|
||||
const IceSessionDescription$json = {
|
||||
'1': 'IceSessionDescription',
|
||||
'2': [
|
||||
{'1': 'sdp_type', '3': 1, '4': 1, '5': 3, '10': 'sdpType'},
|
||||
{'1': 'sdp', '3': 2, '4': 1, '5': 9, '10': 'sdp'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `IceSessionDescription`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List iceSessionDescriptionDescriptor = $convert.base64Decode(
|
||||
'ChVJY2VTZXNzaW9uRGVzY3JpcHRpb24SGQoIc2RwX3R5cGUYASABKANSB3NkcFR5cGUSEAoDc2'
|
||||
'RwGAIgASgJUgNzZHA=');
|
||||
|
||||
@$core.Deprecated('Use sessionDescriptor instead')
|
||||
const Session$json = {
|
||||
'1': 'Session',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 11, '6': '.signaler.Session.Identifier', '10': 'id'},
|
||||
{'1': 'camera', '3': 2, '4': 1, '5': 11, '6': '.signaler.Camera.Identifier', '10': 'camera'},
|
||||
{'1': 'client_ice_candidates', '3': 3, '4': 3, '5': 11, '6': '.signaler.IceCandidate', '10': 'clientIceCandidates'},
|
||||
{'1': 'camera_ice_candidates', '3': 4, '4': 3, '5': 11, '6': '.signaler.IceCandidate', '10': 'cameraIceCandidates'},
|
||||
{'1': 'camera_offer', '3': 5, '4': 1, '5': 11, '6': '.signaler.IceSessionDescription', '10': 'cameraOffer'},
|
||||
{'1': 'client_answer', '3': 6, '4': 1, '5': 11, '6': '.signaler.IceSessionDescription', '10': 'clientAnswer'},
|
||||
],
|
||||
'3': [Session_Identifier$json],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use sessionDescriptor instead')
|
||||
const Session_Identifier$json = {
|
||||
'1': 'Identifier',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Session`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List sessionDescriptor = $convert.base64Decode(
|
||||
'CgdTZXNzaW9uEiwKAmlkGAEgASgLMhwuc2lnbmFsZXIuU2Vzc2lvbi5JZGVudGlmaWVyUgJpZB'
|
||||
'IzCgZjYW1lcmEYAiABKAsyGy5zaWduYWxlci5DYW1lcmEuSWRlbnRpZmllclIGY2FtZXJhEkoK'
|
||||
'FWNsaWVudF9pY2VfY2FuZGlkYXRlcxgDIAMoCzIWLnNpZ25hbGVyLkljZUNhbmRpZGF0ZVITY2'
|
||||
'xpZW50SWNlQ2FuZGlkYXRlcxJKChVjYW1lcmFfaWNlX2NhbmRpZGF0ZXMYBCADKAsyFi5zaWdu'
|
||||
'YWxlci5JY2VDYW5kaWRhdGVSE2NhbWVyYUljZUNhbmRpZGF0ZXMSQgoMY2FtZXJhX29mZmVyGA'
|
||||
'UgASgLMh8uc2lnbmFsZXIuSWNlU2Vzc2lvbkRlc2NyaXB0aW9uUgtjYW1lcmFPZmZlchJECg1j'
|
||||
'bGllbnRfYW5zd2VyGAYgASgLMh8uc2lnbmFsZXIuSWNlU2Vzc2lvbkRlc2NyaXB0aW9uUgxjbG'
|
||||
'llbnRBbnN3ZXIaHAoKSWRlbnRpZmllchIOCgJpZBgBIAEoCVICaWQ=');
|
||||
|
||||
@$core.Deprecated('Use authTokenDescriptor instead')
|
||||
const AuthToken$json = {
|
||||
'1': 'AuthToken',
|
||||
'2': [
|
||||
{'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthToken`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authTokenDescriptor = $convert.base64Decode(
|
||||
'CglBdXRoVG9rZW4SFAoFdG9rZW4YASABKAlSBXRva2Vu');
|
||||
|
||||
const $core.Map<$core.String, $core.dynamic> SignalerServiceBase$json = {
|
||||
'1': 'SignalerService',
|
||||
'2': [
|
||||
{'1': 'CreateAuthToken', '2': '.signaler.CreateAuthTokenRequest', '3': '.signaler.AuthToken'},
|
||||
{'1': 'ListCameras', '2': '.signaler.ListCamerasRequest', '3': '.signaler.ListCamerasResponse'},
|
||||
{'1': 'CreateSession', '2': '.signaler.CreateSessionRequest', '3': '.signaler.Session'},
|
||||
{'1': 'UpdateSession', '2': '.signaler.UpdateSessionRequest', '3': '.signaler.Session'},
|
||||
{'1': 'ListSessions', '2': '.signaler.ListSessionsRequest', '3': '.signaler.ListSessionsResponse'},
|
||||
{'1': 'CreateIceCandidate', '2': '.signaler.CreateIceCandidateRequest', '3': '.signaler.IceCandidate'},
|
||||
{'1': 'PopIceCandidate', '2': '.signaler.PopIceCandidateRequest', '3': '.signaler.IceCandidate'},
|
||||
{'1': 'CreateIceSessionDescription', '2': '.signaler.CreateIceSessionDescriptionRequest', '3': '.signaler.IceSessionDescription'},
|
||||
{'1': 'PopIceSessionDescription', '2': '.signaler.PopIceSessionDescriptionRequest', '3': '.signaler.IceSessionDescription'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use signalerServiceDescriptor instead')
|
||||
const $core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> SignalerServiceBase$messageJson = {
|
||||
'.signaler.CreateAuthTokenRequest': CreateAuthTokenRequest$json,
|
||||
'.signaler.CreateAuthTokenRequest.Camera': CreateAuthTokenRequest_Camera$json,
|
||||
'.signaler.CreateAuthTokenRequest.Client': CreateAuthTokenRequest_Client$json,
|
||||
'.signaler.AuthToken': AuthToken$json,
|
||||
'.signaler.ListCamerasRequest': ListCamerasRequest$json,
|
||||
'.signaler.ListCamerasResponse': ListCamerasResponse$json,
|
||||
'.signaler.Camera': Camera$json,
|
||||
'.signaler.Camera.Identifier': Camera_Identifier$json,
|
||||
'.signaler.CreateSessionRequest': CreateSessionRequest$json,
|
||||
'.signaler.Session': Session$json,
|
||||
'.signaler.Session.Identifier': Session_Identifier$json,
|
||||
'.signaler.IceCandidate': IceCandidate$json,
|
||||
'.signaler.IceSessionDescription': IceSessionDescription$json,
|
||||
'.signaler.UpdateSessionRequest': UpdateSessionRequest$json,
|
||||
'.signaler.ListSessionsRequest': ListSessionsRequest$json,
|
||||
'.signaler.ListSessionsResponse': ListSessionsResponse$json,
|
||||
'.signaler.CreateIceCandidateRequest': CreateIceCandidateRequest$json,
|
||||
'.signaler.PopIceCandidateRequest': PopIceCandidateRequest$json,
|
||||
'.signaler.CreateIceSessionDescriptionRequest': CreateIceSessionDescriptionRequest$json,
|
||||
'.signaler.PopIceSessionDescriptionRequest': PopIceSessionDescriptionRequest$json,
|
||||
};
|
||||
|
||||
/// Descriptor for `SignalerService`. Decode as a `google.protobuf.ServiceDescriptorProto`.
|
||||
final $typed_data.Uint8List signalerServiceDescriptor = $convert.base64Decode(
|
||||
'Cg9TaWduYWxlclNlcnZpY2USSAoPQ3JlYXRlQXV0aFRva2VuEiAuc2lnbmFsZXIuQ3JlYXRlQX'
|
||||
'V0aFRva2VuUmVxdWVzdBoTLnNpZ25hbGVyLkF1dGhUb2tlbhJKCgtMaXN0Q2FtZXJhcxIcLnNp'
|
||||
'Z25hbGVyLkxpc3RDYW1lcmFzUmVxdWVzdBodLnNpZ25hbGVyLkxpc3RDYW1lcmFzUmVzcG9uc2'
|
||||
'USQgoNQ3JlYXRlU2Vzc2lvbhIeLnNpZ25hbGVyLkNyZWF0ZVNlc3Npb25SZXF1ZXN0GhEuc2ln'
|
||||
'bmFsZXIuU2Vzc2lvbhJCCg1VcGRhdGVTZXNzaW9uEh4uc2lnbmFsZXIuVXBkYXRlU2Vzc2lvbl'
|
||||
'JlcXVlc3QaES5zaWduYWxlci5TZXNzaW9uEk0KDExpc3RTZXNzaW9ucxIdLnNpZ25hbGVyLkxp'
|
||||
'c3RTZXNzaW9uc1JlcXVlc3QaHi5zaWduYWxlci5MaXN0U2Vzc2lvbnNSZXNwb25zZRJRChJDcm'
|
||||
'VhdGVJY2VDYW5kaWRhdGUSIy5zaWduYWxlci5DcmVhdGVJY2VDYW5kaWRhdGVSZXF1ZXN0GhYu'
|
||||
'c2lnbmFsZXIuSWNlQ2FuZGlkYXRlEksKD1BvcEljZUNhbmRpZGF0ZRIgLnNpZ25hbGVyLlBvcE'
|
||||
'ljZUNhbmRpZGF0ZVJlcXVlc3QaFi5zaWduYWxlci5JY2VDYW5kaWRhdGUSbAobQ3JlYXRlSWNl'
|
||||
'U2Vzc2lvbkRlc2NyaXB0aW9uEiwuc2lnbmFsZXIuQ3JlYXRlSWNlU2Vzc2lvbkRlc2NyaXB0aW'
|
||||
'9uUmVxdWVzdBofLnNpZ25hbGVyLkljZVNlc3Npb25EZXNjcmlwdGlvbhJmChhQb3BJY2VTZXNz'
|
||||
'aW9uRGVzY3JpcHRpb24SKS5zaWduYWxlci5Qb3BJY2VTZXNzaW9uRGVzY3JpcHRpb25SZXF1ZX'
|
||||
'N0Gh8uc2lnbmFsZXIuSWNlU2Vzc2lvbkRlc2NyaXB0aW9u');
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: signaler_service.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'signaler_service.pb.dart' as $0;
|
||||
import 'signaler_service.pbjson.dart';
|
||||
|
||||
export 'signaler_service.pb.dart';
|
||||
|
||||
abstract class SignalerServiceBase extends $pb.GeneratedService {
|
||||
$async.Future<$0.AuthToken> createAuthToken($pb.ServerContext ctx, $0.CreateAuthTokenRequest request);
|
||||
$async.Future<$0.ListCamerasResponse> listCameras($pb.ServerContext ctx, $0.ListCamerasRequest request);
|
||||
$async.Future<$0.Session> createSession($pb.ServerContext ctx, $0.CreateSessionRequest request);
|
||||
$async.Future<$0.Session> updateSession($pb.ServerContext ctx, $0.UpdateSessionRequest request);
|
||||
$async.Future<$0.ListSessionsResponse> listSessions($pb.ServerContext ctx, $0.ListSessionsRequest request);
|
||||
$async.Future<$0.IceCandidate> createIceCandidate($pb.ServerContext ctx, $0.CreateIceCandidateRequest request);
|
||||
$async.Future<$0.IceCandidate> popIceCandidate($pb.ServerContext ctx, $0.PopIceCandidateRequest request);
|
||||
$async.Future<$0.IceSessionDescription> createIceSessionDescription($pb.ServerContext ctx, $0.CreateIceSessionDescriptionRequest request);
|
||||
$async.Future<$0.IceSessionDescription> popIceSessionDescription($pb.ServerContext ctx, $0.PopIceSessionDescriptionRequest request);
|
||||
|
||||
$pb.GeneratedMessage createRequest($core.String methodName) {
|
||||
switch (methodName) {
|
||||
case 'CreateAuthToken': return $0.CreateAuthTokenRequest();
|
||||
case 'ListCameras': return $0.ListCamerasRequest();
|
||||
case 'CreateSession': return $0.CreateSessionRequest();
|
||||
case 'UpdateSession': return $0.UpdateSessionRequest();
|
||||
case 'ListSessions': return $0.ListSessionsRequest();
|
||||
case 'CreateIceCandidate': return $0.CreateIceCandidateRequest();
|
||||
case 'PopIceCandidate': return $0.PopIceCandidateRequest();
|
||||
case 'CreateIceSessionDescription': return $0.CreateIceSessionDescriptionRequest();
|
||||
case 'PopIceSessionDescription': return $0.PopIceSessionDescriptionRequest();
|
||||
default: throw $core.ArgumentError('Unknown method: $methodName');
|
||||
}
|
||||
}
|
||||
|
||||
$async.Future<$pb.GeneratedMessage> handleCall($pb.ServerContext ctx, $core.String methodName, $pb.GeneratedMessage request) {
|
||||
switch (methodName) {
|
||||
case 'CreateAuthToken': return this.createAuthToken(ctx, request as $0.CreateAuthTokenRequest);
|
||||
case 'ListCameras': return this.listCameras(ctx, request as $0.ListCamerasRequest);
|
||||
case 'CreateSession': return this.createSession(ctx, request as $0.CreateSessionRequest);
|
||||
case 'UpdateSession': return this.updateSession(ctx, request as $0.UpdateSessionRequest);
|
||||
case 'ListSessions': return this.listSessions(ctx, request as $0.ListSessionsRequest);
|
||||
case 'CreateIceCandidate': return this.createIceCandidate(ctx, request as $0.CreateIceCandidateRequest);
|
||||
case 'PopIceCandidate': return this.popIceCandidate(ctx, request as $0.PopIceCandidateRequest);
|
||||
case 'CreateIceSessionDescription': return this.createIceSessionDescription(ctx, request as $0.CreateIceSessionDescriptionRequest);
|
||||
case 'PopIceSessionDescription': return this.popIceSessionDescription(ctx, request as $0.PopIceSessionDescriptionRequest);
|
||||
default: throw $core.ArgumentError('Unknown method: $methodName');
|
||||
}
|
||||
}
|
||||
|
||||
$core.Map<$core.String, $core.dynamic> get $json => SignalerServiceBase$json;
|
||||
$core.Map<$core.String, $core.Map<$core.String, $core.dynamic>> get $messageJson => SignalerServiceBase$messageJson;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: token/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthToken extends $pb.GeneratedMessage {
|
||||
factory AuthToken({
|
||||
$core.String? uid,
|
||||
$core.String? home,
|
||||
}) {
|
||||
final $result = create();
|
||||
if (uid != null) {
|
||||
$result.uid = uid;
|
||||
}
|
||||
if (home != null) {
|
||||
$result.home = home;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
AuthToken._() : super();
|
||||
factory AuthToken.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory AuthToken.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AuthToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'token'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'uid')
|
||||
..aOS(2, _omitFieldNames ? '' : 'home')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
|
||||
'Will be removed in next major version')
|
||||
AuthToken clone() => AuthToken()..mergeFromMessage(this);
|
||||
@$core.Deprecated(
|
||||
'Using this can add significant overhead to your binary. '
|
||||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
|
||||
'Will be removed in next major version')
|
||||
AuthToken copyWith(void Function(AuthToken) updates) => super.copyWith((message) => updates(message as AuthToken)) as AuthToken;
|
||||
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthToken create() => AuthToken._();
|
||||
AuthToken createEmptyInstance() => create();
|
||||
static $pb.PbList<AuthToken> createRepeated() => $pb.PbList<AuthToken>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthToken getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AuthToken>(create);
|
||||
static AuthToken? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get uid => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set uid($core.String v) { $_setString(0, v); }
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasUid() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearUid() => clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get home => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set home($core.String v) { $_setString(1, v); }
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasHome() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearHome() => clearField(2);
|
||||
}
|
||||
|
||||
|
||||
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
@@ -0,0 +1,158 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc (unknown)
|
||||
// source: token/token.proto
|
||||
|
||||
package token
|
||||
|
||||
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 AuthToken struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||
Home string `protobuf:"bytes,2,opt,name=home,proto3" json:"home,omitempty"`
|
||||
}
|
||||
|
||||
func (x *AuthToken) Reset() {
|
||||
*x = AuthToken{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_token_token_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *AuthToken) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AuthToken) ProtoMessage() {}
|
||||
|
||||
func (x *AuthToken) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_token_token_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AuthToken.ProtoReflect.Descriptor instead.
|
||||
func (*AuthToken) Descriptor() ([]byte, []int) {
|
||||
return file_token_token_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *AuthToken) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AuthToken) GetHome() string {
|
||||
if x != nil {
|
||||
return x.Home
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_token_token_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_token_token_proto_rawDesc = []byte{
|
||||
0x0a, 0x11, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x09, 0x41, 0x75,
|
||||
0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x6d,
|
||||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x6d, 0x65, 0x42, 0x81, 0x01,
|
||||
0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0a, 0x54, 0x6f, 0x6b,
|
||||
0x65, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x68, 0x61, 0x77, 0x61, 0x79, 0x2d,
|
||||
0x63, 0x6f, 0x64, 0x65, 0x73, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2d, 0x73, 0x65, 0x6e, 0x73, 0x6f,
|
||||
0x72, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0xa2,
|
||||
0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0xca, 0x02, 0x05,
|
||||
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0xe2, 0x02, 0x11, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x5c, 0x47, 0x50,
|
||||
0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x05, 0x54, 0x6f, 0x6b, 0x65,
|
||||
0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_token_token_proto_rawDescOnce sync.Once
|
||||
file_token_token_proto_rawDescData = file_token_token_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_token_token_proto_rawDescGZIP() []byte {
|
||||
file_token_token_proto_rawDescOnce.Do(func() {
|
||||
file_token_token_proto_rawDescData = protoimpl.X.CompressGZIP(file_token_token_proto_rawDescData)
|
||||
})
|
||||
return file_token_token_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_token_token_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_token_token_proto_goTypes = []interface{}{
|
||||
(*AuthToken)(nil), // 0: token.AuthToken
|
||||
}
|
||||
var file_token_token_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] 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_token_token_proto_init() }
|
||||
func file_token_token_proto_init() {
|
||||
if File_token_token_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_token_token_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*AuthToken); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_token_token_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_token_token_proto_goTypes,
|
||||
DependencyIndexes: file_token_token_proto_depIdxs,
|
||||
MessageInfos: file_token_token_proto_msgTypes,
|
||||
}.Build()
|
||||
File_token_token_proto = out.File
|
||||
file_token_token_proto_rawDesc = nil
|
||||
file_token_token_proto_goTypes = nil
|
||||
file_token_token_proto_depIdxs = nil
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: token/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: token/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authTokenDescriptor instead')
|
||||
const AuthToken$json = {
|
||||
'1': 'AuthToken',
|
||||
'2': [
|
||||
{'1': 'uid', '3': 1, '4': 1, '5': 9, '10': 'uid'},
|
||||
{'1': 'home', '3': 2, '4': 1, '5': 9, '10': 'home'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthToken`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authTokenDescriptor = $convert.base64Decode(
|
||||
'CglBdXRoVG9rZW4SEAoDdWlkGAEgASgJUgN1aWQSEgoEaG9tZRgCIAEoCVIEaG9tZQ==');
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Generated code. Do not modify.
|
||||
// source: token/token.proto
|
||||
//
|
||||
// @dart = 2.12
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
|
||||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
|
||||
|
||||
export 'token.pb.dart';
|
||||
|
||||
Reference in New Issue
Block a user