Documentation ¶
Index ¶
- Variables
- func RegisterSmartGsrvServer(s grpc.ServiceRegistrar, srv SmartGsrvServer)
- type ChatMessage
- func (*ChatMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMessage) GetContent() string
- func (x *ChatMessage) GetSender() string
- func (*ChatMessage) ProtoMessage()
- func (x *ChatMessage) ProtoReflect() protoreflect.Message
- func (x *ChatMessage) Reset()
- func (x *ChatMessage) String() string
- type SmartChat
- type SmartGsrvClient
- type SmartGsrvServer
- type SmartGsrv_SmartHomeEnquireClient
- type SmartGsrv_SmartHomeEnquireServer
- type SmartHome
- type UnimplementedSmartGsrvServer
- type UnsafeSmartGsrvServer
Constants ¶
This section is empty.
Variables ¶
var File_smart_v1_smart_proto protoreflect.FileDescriptor
var SmartGsrv_ServiceDesc = grpc.ServiceDesc{ ServiceName: "smart.v1.SmartGsrv", HandlerType: (*SmartGsrvServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SmartHomeEnquire", Handler: _SmartGsrv_SmartHomeEnquire_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "smart/v1/smart.proto", }
SmartGsrv_ServiceDesc is the grpc.ServiceDesc for SmartGsrv service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSmartGsrvServer ¶
func RegisterSmartGsrvServer(s grpc.ServiceRegistrar, srv SmartGsrvServer)
Types ¶
type ChatMessage ¶
type ChatMessage struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` // contains filtered or unexported fields }
func (*ChatMessage) Descriptor
deprecated
func (*ChatMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.
func (*ChatMessage) GetContent ¶
func (x *ChatMessage) GetContent() string
func (*ChatMessage) GetSender ¶
func (x *ChatMessage) GetSender() string
func (*ChatMessage) ProtoMessage ¶
func (*ChatMessage) ProtoMessage()
func (*ChatMessage) ProtoReflect ¶
func (x *ChatMessage) ProtoReflect() protoreflect.Message
func (*ChatMessage) Reset ¶
func (x *ChatMessage) Reset()
func (*ChatMessage) String ¶
func (x *ChatMessage) String() string
type SmartChat ¶
type SmartChat struct { Messages []*ChatMessage `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*SmartChat) Descriptor
deprecated
func (*SmartChat) GetMessages ¶
func (x *SmartChat) GetMessages() []*ChatMessage
func (*SmartChat) ProtoMessage ¶
func (*SmartChat) ProtoMessage()
func (*SmartChat) ProtoReflect ¶
func (x *SmartChat) ProtoReflect() protoreflect.Message
type SmartGsrvClient ¶
type SmartGsrvClient interface {
SmartHomeEnquire(ctx context.Context, opts ...grpc.CallOption) (SmartGsrv_SmartHomeEnquireClient, error)
}
SmartGsrvClient is the client API for SmartGsrv 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 NewSmartGsrvClient ¶
func NewSmartGsrvClient(cc grpc.ClientConnInterface) SmartGsrvClient
type SmartGsrvServer ¶
type SmartGsrvServer interface { SmartHomeEnquire(SmartGsrv_SmartHomeEnquireServer) error // contains filtered or unexported methods }
SmartGsrvServer is the server API for SmartGsrv service. All implementations must embed UnimplementedSmartGsrvServer for forward compatibility
type SmartHome ¶
type SmartHome struct { CurrentModel string `protobuf:"bytes,1,opt,name=current_model,json=currentModel,proto3" json:"current_model,omitempty"` // contains filtered or unexported fields }
func (*SmartHome) Descriptor
deprecated
func (*SmartHome) GetCurrentModel ¶
func (*SmartHome) ProtoMessage ¶
func (*SmartHome) ProtoMessage()
func (*SmartHome) ProtoReflect ¶
func (x *SmartHome) ProtoReflect() protoreflect.Message
type UnimplementedSmartGsrvServer ¶
type UnimplementedSmartGsrvServer struct { }
UnimplementedSmartGsrvServer must be embedded to have forward compatible implementations.
func (UnimplementedSmartGsrvServer) SmartHomeEnquire ¶
func (UnimplementedSmartGsrvServer) SmartHomeEnquire(SmartGsrv_SmartHomeEnquireServer) error
type UnsafeSmartGsrvServer ¶
type UnsafeSmartGsrvServer interface {
// contains filtered or unexported methods
}
UnsafeSmartGsrvServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SmartGsrvServer will result in compilation errors.