smart_v1

package
v0.0.0-...-e7eda78 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_smart_v1_smart_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use SmartChat.ProtoReflect.Descriptor instead.

func (*SmartChat) GetMessages

func (x *SmartChat) GetMessages() []*ChatMessage

func (*SmartChat) ProtoMessage

func (*SmartChat) ProtoMessage()

func (*SmartChat) ProtoReflect

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

func (*SmartChat) Reset

func (x *SmartChat) Reset()

func (*SmartChat) String

func (x *SmartChat) String() string

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 SmartGsrv_SmartHomeEnquireClient

type SmartGsrv_SmartHomeEnquireClient interface {
	Send(*anypb.Any) error
	Recv() (*anypb.Any, error)
	grpc.ClientStream
}

type SmartGsrv_SmartHomeEnquireServer

type SmartGsrv_SmartHomeEnquireServer interface {
	Send(*anypb.Any) error
	Recv() (*anypb.Any, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

Deprecated: Use SmartHome.ProtoReflect.Descriptor instead.

func (*SmartHome) GetCurrentModel

func (x *SmartHome) GetCurrentModel() string

func (*SmartHome) ProtoMessage

func (*SmartHome) ProtoMessage()

func (*SmartHome) ProtoReflect

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

func (*SmartHome) Reset

func (x *SmartHome) Reset()

func (*SmartHome) String

func (x *SmartHome) String() string

type UnimplementedSmartGsrvServer

type UnimplementedSmartGsrvServer struct {
}

UnimplementedSmartGsrvServer must be embedded to have forward compatible implementations.

func (UnimplementedSmartGsrvServer) SmartHomeEnquire

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.

Jump to

Keyboard shortcuts

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