Documentation ¶
Index ¶
- Variables
- func RegisterContextupdateServer(s *grpc.Server, srv ContextupdateServer)
- type ContextUpdateRequest
- func (*ContextUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContextUpdateRequest) GetAppContext() string
- func (x *ContextUpdateRequest) GetIntentName() string
- func (x *ContextUpdateRequest) GetUpdateFromAppContext() string
- func (*ContextUpdateRequest) ProtoMessage()
- func (x *ContextUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ContextUpdateRequest) Reset()
- func (x *ContextUpdateRequest) String() string
- type ContextUpdateResponse
- func (*ContextUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContextUpdateResponse) GetAppContextUpdateMessage() string
- func (x *ContextUpdateResponse) GetAppContextUpdated() bool
- func (*ContextUpdateResponse) ProtoMessage()
- func (x *ContextUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *ContextUpdateResponse) Reset()
- func (x *ContextUpdateResponse) String() string
- type ContextupdateClient
- type ContextupdateServer
- type EventType
- type PostEventRequest
- func (*PostEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostEventRequest) GetAppContext() string
- func (x *PostEventRequest) GetEventType() EventType
- func (*PostEventRequest) ProtoMessage()
- func (x *PostEventRequest) ProtoReflect() protoreflect.Message
- func (x *PostEventRequest) Reset()
- func (x *PostEventRequest) String() string
- type PostEventResponse
- func (*PostEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostEventResponse) GetPostEventMessage() string
- func (x *PostEventResponse) GetSuccess() bool
- func (*PostEventResponse) ProtoMessage()
- func (x *PostEventResponse) ProtoReflect() protoreflect.Message
- func (x *PostEventResponse) Reset()
- func (x *PostEventResponse) String() string
- type TerminateRequest
- type TerminateResponse
- func (*TerminateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TerminateResponse) GetAppContextTerminated() bool
- func (x *TerminateResponse) GetAppContextTerminatedMessage() string
- func (*TerminateResponse) ProtoMessage()
- func (x *TerminateResponse) ProtoReflect() protoreflect.Message
- func (x *TerminateResponse) Reset()
- func (x *TerminateResponse) String() string
- type UnimplementedContextupdateServer
- func (*UnimplementedContextupdateServer) PostEvent(context.Context, *PostEventRequest) (*PostEventResponse, error)
- func (*UnimplementedContextupdateServer) TerminateAppContext(context.Context, *TerminateRequest) (*TerminateResponse, error)
- func (*UnimplementedContextupdateServer) UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( EventType_name = map[int32]string{ 0: "INSTANTIATE", 1: "TERMINATE", 2: "UPDATE", } EventType_value = map[string]int32{ "INSTANTIATE": 0, "TERMINATE": 1, "UPDATE": 2, } )
Enum value maps for EventType.
var File_contextupdate_proto protoreflect.FileDescriptor
Functions ¶
func RegisterContextupdateServer ¶
func RegisterContextupdateServer(s *grpc.Server, srv ContextupdateServer)
Types ¶
type ContextUpdateRequest ¶
type ContextUpdateRequest struct { // AppContextId for the Request AppContext string `protobuf:"bytes,1,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"` IntentName string `protobuf:"bytes,2,opt,name=intent_name,json=intentName,proto3" json:"intent_name,omitempty"` // Only populated if update/migrate case UpdateFromAppContext string `protobuf:"bytes,3,opt,name=update_from_appContext,json=updateFromAppContext,proto3" json:"update_from_appContext,omitempty"` // contains filtered or unexported fields }
func (*ContextUpdateRequest) Descriptor
deprecated
func (*ContextUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContextUpdateRequest.ProtoReflect.Descriptor instead.
func (*ContextUpdateRequest) GetAppContext ¶
func (x *ContextUpdateRequest) GetAppContext() string
func (*ContextUpdateRequest) GetIntentName ¶
func (x *ContextUpdateRequest) GetIntentName() string
func (*ContextUpdateRequest) GetUpdateFromAppContext ¶
func (x *ContextUpdateRequest) GetUpdateFromAppContext() string
func (*ContextUpdateRequest) ProtoMessage ¶
func (*ContextUpdateRequest) ProtoMessage()
func (*ContextUpdateRequest) ProtoReflect ¶
func (x *ContextUpdateRequest) ProtoReflect() protoreflect.Message
func (*ContextUpdateRequest) Reset ¶
func (x *ContextUpdateRequest) Reset()
func (*ContextUpdateRequest) String ¶
func (x *ContextUpdateRequest) String() string
type ContextUpdateResponse ¶
type ContextUpdateResponse struct { AppContextUpdated bool `protobuf:"varint,1,opt,name=app_context_updated,json=appContextUpdated,proto3" json:"app_context_updated,omitempty"` AppContextUpdateMessage string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ContextUpdateResponse) Descriptor
deprecated
func (*ContextUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContextUpdateResponse.ProtoReflect.Descriptor instead.
func (*ContextUpdateResponse) GetAppContextUpdateMessage ¶
func (x *ContextUpdateResponse) GetAppContextUpdateMessage() string
func (*ContextUpdateResponse) GetAppContextUpdated ¶
func (x *ContextUpdateResponse) GetAppContextUpdated() bool
func (*ContextUpdateResponse) ProtoMessage ¶
func (*ContextUpdateResponse) ProtoMessage()
func (*ContextUpdateResponse) ProtoReflect ¶
func (x *ContextUpdateResponse) ProtoReflect() protoreflect.Message
func (*ContextUpdateResponse) Reset ¶
func (x *ContextUpdateResponse) Reset()
func (*ContextUpdateResponse) String ¶
func (x *ContextUpdateResponse) String() string
type ContextupdateClient ¶
type ContextupdateClient interface { // Instantiation UpdateAppContext(ctx context.Context, in *ContextUpdateRequest, opts ...grpc.CallOption) (*ContextUpdateResponse, error) // Termination TerminateAppContext(ctx context.Context, in *TerminateRequest, opts ...grpc.CallOption) (*TerminateResponse, error) // Post Instantiation, Update and Terminate event PostEvent(ctx context.Context, in *PostEventRequest, opts ...grpc.CallOption) (*PostEventResponse, error) }
ContextupdateClient is the client API for Contextupdate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContextupdateClient ¶
func NewContextupdateClient(cc grpc.ClientConnInterface) ContextupdateClient
type ContextupdateServer ¶
type ContextupdateServer interface { // Instantiation UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error) // Termination TerminateAppContext(context.Context, *TerminateRequest) (*TerminateResponse, error) // Post Instantiation, Update and Terminate event PostEvent(context.Context, *PostEventRequest) (*PostEventResponse, error) }
ContextupdateServer is the server API for Contextupdate service.
type EventType ¶
type EventType int32
Event type for the event
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type PostEventRequest ¶
type PostEventRequest struct { // AppContextId for the Request AppContext string `protobuf:"bytes,1,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"` EventType EventType `protobuf:"varint,2,opt,name=event_type,json=eventType,proto3,enum=EventType" json:"event_type,omitempty"` // contains filtered or unexported fields }
func (*PostEventRequest) Descriptor
deprecated
func (*PostEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostEventRequest.ProtoReflect.Descriptor instead.
func (*PostEventRequest) GetAppContext ¶
func (x *PostEventRequest) GetAppContext() string
func (*PostEventRequest) GetEventType ¶
func (x *PostEventRequest) GetEventType() EventType
func (*PostEventRequest) ProtoMessage ¶
func (*PostEventRequest) ProtoMessage()
func (*PostEventRequest) ProtoReflect ¶
func (x *PostEventRequest) ProtoReflect() protoreflect.Message
func (*PostEventRequest) Reset ¶
func (x *PostEventRequest) Reset()
func (*PostEventRequest) String ¶
func (x *PostEventRequest) String() string
type PostEventResponse ¶
type PostEventResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` PostEventMessage string `protobuf:"bytes,2,opt,name=post_event_message,json=postEventMessage,proto3" json:"post_event_message,omitempty"` // contains filtered or unexported fields }
func (*PostEventResponse) Descriptor
deprecated
func (*PostEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostEventResponse.ProtoReflect.Descriptor instead.
func (*PostEventResponse) GetPostEventMessage ¶
func (x *PostEventResponse) GetPostEventMessage() string
func (*PostEventResponse) GetSuccess ¶
func (x *PostEventResponse) GetSuccess() bool
func (*PostEventResponse) ProtoMessage ¶
func (*PostEventResponse) ProtoMessage()
func (*PostEventResponse) ProtoReflect ¶
func (x *PostEventResponse) ProtoReflect() protoreflect.Message
func (*PostEventResponse) Reset ¶
func (x *PostEventResponse) Reset()
func (*PostEventResponse) String ¶
func (x *PostEventResponse) String() string
type TerminateRequest ¶
type TerminateRequest struct { // AppContextId for the Request AppContext string `protobuf:"bytes,1,opt,name=app_context,json=appContext,proto3" json:"app_context,omitempty"` // contains filtered or unexported fields }
func (*TerminateRequest) Descriptor
deprecated
func (*TerminateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerminateRequest.ProtoReflect.Descriptor instead.
func (*TerminateRequest) GetAppContext ¶
func (x *TerminateRequest) GetAppContext() string
func (*TerminateRequest) ProtoMessage ¶
func (*TerminateRequest) ProtoMessage()
func (*TerminateRequest) ProtoReflect ¶
func (x *TerminateRequest) ProtoReflect() protoreflect.Message
func (*TerminateRequest) Reset ¶
func (x *TerminateRequest) Reset()
func (*TerminateRequest) String ¶
func (x *TerminateRequest) String() string
type TerminateResponse ¶
type TerminateResponse struct { AppContextTerminated bool `protobuf:"varint,1,opt,name=app_context_terminated,json=appContextTerminated,proto3" json:"app_context_terminated,omitempty"` AppContextTerminatedMessage string `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TerminateResponse) Descriptor
deprecated
func (*TerminateResponse) Descriptor() ([]byte, []int)
Deprecated: Use TerminateResponse.ProtoReflect.Descriptor instead.
func (*TerminateResponse) GetAppContextTerminated ¶
func (x *TerminateResponse) GetAppContextTerminated() bool
func (*TerminateResponse) GetAppContextTerminatedMessage ¶
func (x *TerminateResponse) GetAppContextTerminatedMessage() string
func (*TerminateResponse) ProtoMessage ¶
func (*TerminateResponse) ProtoMessage()
func (*TerminateResponse) ProtoReflect ¶
func (x *TerminateResponse) ProtoReflect() protoreflect.Message
func (*TerminateResponse) Reset ¶
func (x *TerminateResponse) Reset()
func (*TerminateResponse) String ¶
func (x *TerminateResponse) String() string
type UnimplementedContextupdateServer ¶
type UnimplementedContextupdateServer struct { }
UnimplementedContextupdateServer can be embedded to have forward compatible implementations.
func (*UnimplementedContextupdateServer) PostEvent ¶
func (*UnimplementedContextupdateServer) PostEvent(context.Context, *PostEventRequest) (*PostEventResponse, error)
func (*UnimplementedContextupdateServer) TerminateAppContext ¶
func (*UnimplementedContextupdateServer) TerminateAppContext(context.Context, *TerminateRequest) (*TerminateResponse, error)
func (*UnimplementedContextupdateServer) UpdateAppContext ¶
func (*UnimplementedContextupdateServer) UpdateAppContext(context.Context, *ContextUpdateRequest) (*ContextUpdateResponse, error)