intentpb

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddIntentReply) Descriptor

func (*AddIntentReply) Descriptor() ([]byte, []int)

func (*AddIntentReply) GetIntent

func (m *AddIntentReply) GetIntent() *Intent

func (*AddIntentReply) ProtoMessage

func (*AddIntentReply) ProtoMessage()

func (*AddIntentReply) Reset

func (m *AddIntentReply) Reset()

func (*AddIntentReply) String

func (m *AddIntentReply) String() string

func (*AddIntentReply) XXX_DiscardUnknown added in v1.6.0

func (m *AddIntentReply) XXX_DiscardUnknown()

func (*AddIntentReply) XXX_Marshal added in v1.6.0

func (m *AddIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddIntentReply) XXX_Merge added in v1.6.0

func (dst *AddIntentReply) XXX_Merge(src proto.Message)

func (*AddIntentReply) XXX_Size added in v1.6.0

func (m *AddIntentReply) XXX_Size() int

func (*AddIntentReply) XXX_Unmarshal added in v1.6.0

func (m *AddIntentReply) XXX_Unmarshal(b []byte) error

type AddIntentRequest

type AddIntentRequest struct {
	Intent               *Intent  `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddIntentRequest) Descriptor

func (*AddIntentRequest) Descriptor() ([]byte, []int)

func (*AddIntentRequest) GetIntent

func (m *AddIntentRequest) GetIntent() *Intent

func (*AddIntentRequest) ProtoMessage

func (*AddIntentRequest) ProtoMessage()

func (*AddIntentRequest) Reset

func (m *AddIntentRequest) Reset()

func (*AddIntentRequest) String

func (m *AddIntentRequest) String() string

func (*AddIntentRequest) XXX_DiscardUnknown added in v1.6.0

func (m *AddIntentRequest) XXX_DiscardUnknown()

func (*AddIntentRequest) XXX_Marshal added in v1.6.0

func (m *AddIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddIntentRequest) XXX_Merge added in v1.6.0

func (dst *AddIntentRequest) XXX_Merge(src proto.Message)

func (*AddIntentRequest) XXX_Size added in v1.6.0

func (m *AddIntentRequest) XXX_Size() int

func (*AddIntentRequest) XXX_Unmarshal added in v1.6.0

func (m *AddIntentRequest) XXX_Unmarshal(b []byte) error

type DisableIntentReply

type DisableIntentReply struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DisableIntentReply) Descriptor

func (*DisableIntentReply) Descriptor() ([]byte, []int)

func (*DisableIntentReply) GetId

func (m *DisableIntentReply) GetId() string

func (*DisableIntentReply) ProtoMessage

func (*DisableIntentReply) ProtoMessage()

func (*DisableIntentReply) Reset

func (m *DisableIntentReply) Reset()

func (*DisableIntentReply) String

func (m *DisableIntentReply) String() string

func (*DisableIntentReply) XXX_DiscardUnknown added in v1.6.0

func (m *DisableIntentReply) XXX_DiscardUnknown()

func (*DisableIntentReply) XXX_Marshal added in v1.6.0

func (m *DisableIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisableIntentReply) XXX_Merge added in v1.6.0

func (dst *DisableIntentReply) XXX_Merge(src proto.Message)

func (*DisableIntentReply) XXX_Size added in v1.6.0

func (m *DisableIntentReply) XXX_Size() int

func (*DisableIntentReply) XXX_Unmarshal added in v1.6.0

func (m *DisableIntentReply) XXX_Unmarshal(b []byte) error

type DisableIntentRequest

type DisableIntentRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DisableIntentRequest) Descriptor

func (*DisableIntentRequest) Descriptor() ([]byte, []int)

func (*DisableIntentRequest) GetId

func (m *DisableIntentRequest) GetId() string

func (*DisableIntentRequest) ProtoMessage

func (*DisableIntentRequest) ProtoMessage()

func (*DisableIntentRequest) Reset

func (m *DisableIntentRequest) Reset()

func (*DisableIntentRequest) String

func (m *DisableIntentRequest) String() string

func (*DisableIntentRequest) XXX_DiscardUnknown added in v1.6.0

func (m *DisableIntentRequest) XXX_DiscardUnknown()

func (*DisableIntentRequest) XXX_Marshal added in v1.6.0

func (m *DisableIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisableIntentRequest) XXX_Merge added in v1.6.0

func (dst *DisableIntentRequest) XXX_Merge(src proto.Message)

func (*DisableIntentRequest) XXX_Size added in v1.6.0

func (m *DisableIntentRequest) XXX_Size() int

func (*DisableIntentRequest) XXX_Unmarshal added in v1.6.0

func (m *DisableIntentRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Intent) Descriptor

func (*Intent) Descriptor() ([]byte, []int)

func (*Intent) GetCreated

func (m *Intent) GetCreated() int32

func (*Intent) GetEnabled

func (m *Intent) GetEnabled() bool

func (*Intent) GetEndpoint

func (m *Intent) GetEndpoint() string

func (*Intent) GetHelp

func (m *Intent) GetHelp() string

func (*Intent) GetId

func (m *Intent) GetId() string

func (*Intent) GetMention

func (m *Intent) GetMention() bool

func (*Intent) GetName

func (m *Intent) GetName() string

func (*Intent) GetRegex

func (m *Intent) GetRegex() string

func (*Intent) GetResponse

func (m *Intent) GetResponse() string

func (*Intent) GetServerId

func (m *Intent) GetServerId() string

func (*Intent) ProtoMessage

func (*Intent) ProtoMessage()

func (*Intent) Reset

func (m *Intent) Reset()

func (*Intent) String

func (m *Intent) String() string

func (*Intent) XXX_DiscardUnknown added in v1.6.0

func (m *Intent) XXX_DiscardUnknown()

func (*Intent) XXX_Marshal added in v1.6.0

func (m *Intent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Intent) XXX_Merge added in v1.6.0

func (dst *Intent) XXX_Merge(src proto.Message)

func (*Intent) XXX_Size added in v1.6.0

func (m *Intent) XXX_Size() int

func (*Intent) XXX_Unmarshal added in v1.6.0

func (m *Intent) XXX_Unmarshal(b []byte) error

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.

func NewIntentRegistryClient

func NewIntentRegistryClient(cc *grpc.ClientConn) IntentRegistryClient

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*QueryIntentsRequest) Descriptor

func (*QueryIntentsRequest) Descriptor() ([]byte, []int)

func (*QueryIntentsRequest) GetServerId

func (m *QueryIntentsRequest) GetServerId() string

func (*QueryIntentsRequest) ProtoMessage

func (*QueryIntentsRequest) ProtoMessage()

func (*QueryIntentsRequest) Reset

func (m *QueryIntentsRequest) Reset()

func (*QueryIntentsRequest) String

func (m *QueryIntentsRequest) String() string

func (*QueryIntentsRequest) XXX_DiscardUnknown added in v1.6.0

func (m *QueryIntentsRequest) XXX_DiscardUnknown()

func (*QueryIntentsRequest) XXX_Marshal added in v1.6.0

func (m *QueryIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIntentsRequest) XXX_Merge added in v1.6.0

func (dst *QueryIntentsRequest) XXX_Merge(src proto.Message)

func (*QueryIntentsRequest) XXX_Size added in v1.6.0

func (m *QueryIntentsRequest) XXX_Size() int

func (*QueryIntentsRequest) XXX_Unmarshal added in v1.6.0

func (m *QueryIntentsRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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