Documentation ¶
Index ¶
- Variables
- func RegisterSubtitleGeneratorServer(s grpc.ServiceRegistrar, srv SubtitleGeneratorServer)
- func RegisterSubtitleReceiverServer(s grpc.ServiceRegistrar, srv SubtitleReceiverServer)
- type GenerateRequest
- func (*GenerateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateRequest) GetLanguage() string
- func (x *GenerateRequest) GetSourceFile() string
- func (x *GenerateRequest) GetStreamId() int32
- func (*GenerateRequest) ProtoMessage()
- func (x *GenerateRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateRequest) Reset()
- func (x *GenerateRequest) String() string
- type ReceiveRequest
- func (*ReceiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveRequest) GetLanguage() string
- func (x *ReceiveRequest) GetStreamId() int32
- func (x *ReceiveRequest) GetSubtitles() string
- func (*ReceiveRequest) ProtoMessage()
- func (x *ReceiveRequest) ProtoReflect() protoreflect.Message
- func (x *ReceiveRequest) Reset()
- func (x *ReceiveRequest) String() string
- type SubtitleGeneratorClient
- type SubtitleGeneratorServer
- type SubtitleReceiverClient
- type SubtitleReceiverServer
- type UnimplementedSubtitleGeneratorServer
- type UnimplementedSubtitleReceiverServer
- type UnsafeSubtitleGeneratorServer
- type UnsafeSubtitleReceiverServer
Constants ¶
This section is empty.
Variables ¶
var File_subtitles_proto protoreflect.FileDescriptor
var SubtitleGenerator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "live.voice.v1.SubtitleGenerator", HandlerType: (*SubtitleGeneratorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Generate", Handler: _SubtitleGenerator_Generate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "subtitles.proto", }
SubtitleGenerator_ServiceDesc is the grpc.ServiceDesc for SubtitleGenerator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var SubtitleReceiver_ServiceDesc = grpc.ServiceDesc{ ServiceName: "live.voice.v1.SubtitleReceiver", HandlerType: (*SubtitleReceiverServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Receive", Handler: _SubtitleReceiver_Receive_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "subtitles.proto", }
SubtitleReceiver_ServiceDesc is the grpc.ServiceDesc for SubtitleReceiver service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSubtitleGeneratorServer ¶
func RegisterSubtitleGeneratorServer(s grpc.ServiceRegistrar, srv SubtitleGeneratorServer)
func RegisterSubtitleReceiverServer ¶
func RegisterSubtitleReceiverServer(s grpc.ServiceRegistrar, srv SubtitleReceiverServer)
Types ¶
type GenerateRequest ¶
type GenerateRequest struct { StreamId int32 `protobuf:"varint,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` SourceFile string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile,proto3" json:"source_file,omitempty"` Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` // contains filtered or unexported fields }
func (*GenerateRequest) Descriptor
deprecated
func (*GenerateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.
func (*GenerateRequest) GetLanguage ¶
func (x *GenerateRequest) GetLanguage() string
func (*GenerateRequest) GetSourceFile ¶
func (x *GenerateRequest) GetSourceFile() string
func (*GenerateRequest) GetStreamId ¶
func (x *GenerateRequest) GetStreamId() int32
func (*GenerateRequest) ProtoMessage ¶
func (*GenerateRequest) ProtoMessage()
func (*GenerateRequest) ProtoReflect ¶
func (x *GenerateRequest) ProtoReflect() protoreflect.Message
func (*GenerateRequest) Reset ¶
func (x *GenerateRequest) Reset()
func (*GenerateRequest) String ¶
func (x *GenerateRequest) String() string
type ReceiveRequest ¶
type ReceiveRequest struct { StreamId int32 `protobuf:"varint,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` Subtitles string `protobuf:"bytes,2,opt,name=subtitles,proto3" json:"subtitles,omitempty"` Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` // contains filtered or unexported fields }
func (*ReceiveRequest) Descriptor
deprecated
func (*ReceiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveRequest.ProtoReflect.Descriptor instead.
func (*ReceiveRequest) GetLanguage ¶
func (x *ReceiveRequest) GetLanguage() string
func (*ReceiveRequest) GetStreamId ¶
func (x *ReceiveRequest) GetStreamId() int32
func (*ReceiveRequest) GetSubtitles ¶
func (x *ReceiveRequest) GetSubtitles() string
func (*ReceiveRequest) ProtoMessage ¶
func (*ReceiveRequest) ProtoMessage()
func (*ReceiveRequest) ProtoReflect ¶
func (x *ReceiveRequest) ProtoReflect() protoreflect.Message
func (*ReceiveRequest) Reset ¶
func (x *ReceiveRequest) Reset()
func (*ReceiveRequest) String ¶
func (x *ReceiveRequest) String() string
type SubtitleGeneratorClient ¶
type SubtitleGeneratorClient interface {
Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
SubtitleGeneratorClient is the client API for SubtitleGenerator 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.
func NewSubtitleGeneratorClient ¶
func NewSubtitleGeneratorClient(cc grpc.ClientConnInterface) SubtitleGeneratorClient
type SubtitleGeneratorServer ¶
type SubtitleGeneratorServer interface { Generate(context.Context, *GenerateRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
SubtitleGeneratorServer is the server API for SubtitleGenerator service. All implementations must embed UnimplementedSubtitleGeneratorServer for forward compatibility
type SubtitleReceiverClient ¶
type SubtitleReceiverClient interface {
Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
SubtitleReceiverClient is the client API for SubtitleReceiver 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.
func NewSubtitleReceiverClient ¶
func NewSubtitleReceiverClient(cc grpc.ClientConnInterface) SubtitleReceiverClient
type SubtitleReceiverServer ¶
type SubtitleReceiverServer interface { Receive(context.Context, *ReceiveRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
SubtitleReceiverServer is the server API for SubtitleReceiver service. All implementations must embed UnimplementedSubtitleReceiverServer for forward compatibility
type UnimplementedSubtitleGeneratorServer ¶
type UnimplementedSubtitleGeneratorServer struct { }
UnimplementedSubtitleGeneratorServer must be embedded to have forward compatible implementations.
func (UnimplementedSubtitleGeneratorServer) Generate ¶
func (UnimplementedSubtitleGeneratorServer) Generate(context.Context, *GenerateRequest) (*emptypb.Empty, error)
type UnimplementedSubtitleReceiverServer ¶
type UnimplementedSubtitleReceiverServer struct { }
UnimplementedSubtitleReceiverServer must be embedded to have forward compatible implementations.
func (UnimplementedSubtitleReceiverServer) Receive ¶
func (UnimplementedSubtitleReceiverServer) Receive(context.Context, *ReceiveRequest) (*emptypb.Empty, error)
type UnsafeSubtitleGeneratorServer ¶
type UnsafeSubtitleGeneratorServer interface {
// contains filtered or unexported methods
}
UnsafeSubtitleGeneratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubtitleGeneratorServer will result in compilation errors.
type UnsafeSubtitleReceiverServer ¶
type UnsafeSubtitleReceiverServer interface {
// contains filtered or unexported methods
}
UnsafeSubtitleReceiverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SubtitleReceiverServer will result in compilation errors.