intentpb

package
Version: v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_intent_proto protoreflect.FileDescriptor

Functions

func RegisterIntentRegistryServer

func RegisterIntentRegistryServer(s *grpc.Server, srv IntentRegistryServer)

Types

type AddIntentReply

type AddIntentReply struct {
	Intent *Intent `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIntentReply) Descriptor deprecated

This method has been deprecated.
func (*AddIntentReply) Descriptor() ([]byte, []int)

Deprecated: Use AddIntentReply.ProtoReflect.Descriptor instead.

func (*AddIntentReply) GetIntent

func (x *AddIntentReply) GetIntent() *Intent

func (*AddIntentReply) ProtoMessage

func (*AddIntentReply) ProtoMessage()

func (*AddIntentReply) ProtoReflect

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

func (*AddIntentReply) Reset

func (x *AddIntentReply) Reset()

func (*AddIntentReply) String

func (x *AddIntentReply) String() string

type AddIntentRequest

type AddIntentRequest struct {
	Intent *Intent `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIntentRequest) Descriptor deprecated

This method has been deprecated.
func (*AddIntentRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddIntentRequest.ProtoReflect.Descriptor instead.

func (*AddIntentRequest) GetIntent

func (x *AddIntentRequest) GetIntent() *Intent

func (*AddIntentRequest) ProtoMessage

func (*AddIntentRequest) ProtoMessage()

func (*AddIntentRequest) ProtoReflect

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

func (*AddIntentRequest) Reset

func (x *AddIntentRequest) Reset()

func (*AddIntentRequest) String

func (x *AddIntentRequest) String() string

type DisableIntentReply

type DisableIntentReply struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableIntentReply) Descriptor deprecated

This method has been deprecated.
func (*DisableIntentReply) Descriptor() ([]byte, []int)

Deprecated: Use DisableIntentReply.ProtoReflect.Descriptor instead.

func (*DisableIntentReply) GetId

func (x *DisableIntentReply) GetId() string

func (*DisableIntentReply) ProtoMessage

func (*DisableIntentReply) ProtoMessage()

func (*DisableIntentReply) ProtoReflect

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

func (*DisableIntentReply) Reset

func (x *DisableIntentReply) Reset()

func (*DisableIntentReply) String

func (x *DisableIntentReply) String() string

type DisableIntentRequest

type DisableIntentRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableIntentRequest) Descriptor deprecated

This method has been deprecated.
func (*DisableIntentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DisableIntentRequest.ProtoReflect.Descriptor instead.

func (*DisableIntentRequest) GetId

func (x *DisableIntentRequest) GetId() string

func (*DisableIntentRequest) ProtoMessage

func (*DisableIntentRequest) ProtoMessage()

func (*DisableIntentRequest) ProtoReflect

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

func (*DisableIntentRequest) Reset

func (x *DisableIntentRequest) Reset()

func (*DisableIntentRequest) String

func (x *DisableIntentRequest) String() string

type Intent

type Intent struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServerId string `protobuf:"bytes,2,opt,name=serverId,proto3" json:"serverId,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Regex    string `protobuf:"bytes,4,opt,name=regex,proto3" json:"regex,omitempty"`
	Mention  bool   `protobuf:"varint,5,opt,name=mention,proto3" json:"mention,omitempty"`
	Response string `protobuf:"bytes,6,opt,name=response,proto3" json:"response,omitempty"`
	Endpoint string `protobuf:"bytes,7,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Help     string `protobuf:"bytes,8,opt,name=help,proto3" json:"help,omitempty"`
	Enabled  bool   `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Created  int32  `protobuf:"varint,10,opt,name=created,proto3" json:"created,omitempty"`
	Type     string `protobuf:"bytes,11,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Intent) Descriptor deprecated

This method has been deprecated.
func (*Intent) Descriptor() ([]byte, []int)

Deprecated: Use Intent.ProtoReflect.Descriptor instead.

func (*Intent) GetCreated

func (x *Intent) GetCreated() int32

func (*Intent) GetEnabled

func (x *Intent) GetEnabled() bool

func (*Intent) GetEndpoint

func (x *Intent) GetEndpoint() string

func (*Intent) GetHelp

func (x *Intent) GetHelp() string

func (*Intent) GetId

func (x *Intent) GetId() string

func (*Intent) GetMention

func (x *Intent) GetMention() bool

func (*Intent) GetName

func (x *Intent) GetName() string

func (*Intent) GetRegex

func (x *Intent) GetRegex() string

func (*Intent) GetResponse

func (x *Intent) GetResponse() string

func (*Intent) GetServerId

func (x *Intent) GetServerId() string

func (*Intent) GetType

func (x *Intent) GetType() string

func (*Intent) ProtoMessage

func (*Intent) ProtoMessage()

func (*Intent) ProtoReflect

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

func (*Intent) Reset

func (x *Intent) Reset()

func (*Intent) String

func (x *Intent) String() string

type IntentRegistryClient

type IntentRegistryClient interface {
	AddIntent(ctx context.Context, in *AddIntentRequest, opts ...grpc.CallOption) (*AddIntentReply, error)
	DisableIntent(ctx context.Context, in *DisableIntentRequest, opts ...grpc.CallOption) (*DisableIntentReply, error)
	QueryIntents(ctx context.Context, in *QueryIntentsRequest, opts ...grpc.CallOption) (IntentRegistry_QueryIntentsClient, error)
}

IntentRegistryClient is the client API for IntentRegistry service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type IntentRegistryServer

IntentRegistryServer is the server API for IntentRegistry service.

type IntentRegistry_QueryIntentsClient

type IntentRegistry_QueryIntentsClient interface {
	Recv() (*Intent, error)
	grpc.ClientStream
}

type IntentRegistry_QueryIntentsServer

type IntentRegistry_QueryIntentsServer interface {
	Send(*Intent) error
	grpc.ServerStream
}

type QueryIntentsRequest

type QueryIntentsRequest struct {
	ServerId string `protobuf:"bytes,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
	Type     string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIntentsRequest) Descriptor deprecated

This method has been deprecated.
func (*QueryIntentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryIntentsRequest.ProtoReflect.Descriptor instead.

func (*QueryIntentsRequest) GetServerId

func (x *QueryIntentsRequest) GetServerId() string

func (*QueryIntentsRequest) GetType

func (x *QueryIntentsRequest) GetType() string

func (*QueryIntentsRequest) ProtoMessage

func (*QueryIntentsRequest) ProtoMessage()

func (*QueryIntentsRequest) ProtoReflect

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

func (*QueryIntentsRequest) Reset

func (x *QueryIntentsRequest) Reset()

func (*QueryIntentsRequest) String

func (x *QueryIntentsRequest) String() string

type UnimplementedIntentRegistryServer

type UnimplementedIntentRegistryServer struct {
}

UnimplementedIntentRegistryServer can be embedded to have forward compatible implementations.

func (*UnimplementedIntentRegistryServer) AddIntent

func (*UnimplementedIntentRegistryServer) DisableIntent

func (*UnimplementedIntentRegistryServer) QueryIntents

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL