update vendor
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
19a32db84d
commit
94d1cfbfbf
10501 changed files with 2307943 additions and 29279 deletions
1277
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/agent.pb.go
generated
vendored
Normal file
1277
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/agent.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
748
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/context.pb.go
generated
vendored
Normal file
748
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/context.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,748 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/context.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Represents a context.
|
||||
type Context struct {
|
||||
// Required. The unique identifier of the context. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. The number of conversational query requests after which the
|
||||
// context expires. If set to `0` (the default) the context expires
|
||||
// immediately. Contexts expire automatically after 10 minutes even if there
|
||||
// are no matching queries.
|
||||
LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount,proto3" json:"lifespan_count,omitempty"`
|
||||
// Optional. The collection of parameters associated with this context.
|
||||
// Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
|
||||
// syntax.
|
||||
Parameters *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Context) Reset() { *m = Context{} }
|
||||
func (m *Context) String() string { return proto.CompactTextString(m) }
|
||||
func (*Context) ProtoMessage() {}
|
||||
func (*Context) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{0}
|
||||
}
|
||||
|
||||
func (m *Context) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Context.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Context.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Context) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Context.Merge(m, src)
|
||||
}
|
||||
func (m *Context) XXX_Size() int {
|
||||
return xxx_messageInfo_Context.Size(m)
|
||||
}
|
||||
func (m *Context) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Context.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Context proto.InternalMessageInfo
|
||||
|
||||
func (m *Context) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Context) GetLifespanCount() int32 {
|
||||
if m != nil {
|
||||
return m.LifespanCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Context) GetParameters() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Parameters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
|
||||
type ListContextsRequest struct {
|
||||
// Required. The session to list all contexts from.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 100 and at most 1000.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) Reset() { *m = ListContextsRequest{} }
|
||||
func (m *ListContextsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListContextsRequest) ProtoMessage() {}
|
||||
func (*ListContextsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListContextsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListContextsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListContextsRequest.Size(m)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListContextsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListContextsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListContextsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2.Contexts.ListContexts].
|
||||
type ListContextsResponse struct {
|
||||
// The list of contexts. There will be a maximum number of items
|
||||
// returned based on the page_size field in the request.
|
||||
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) Reset() { *m = ListContextsResponse{} }
|
||||
func (m *ListContextsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListContextsResponse) ProtoMessage() {}
|
||||
func (*ListContextsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListContextsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListContextsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListContextsResponse.Size(m)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListContextsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListContextsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListContextsResponse) GetContexts() []*Context {
|
||||
if m != nil {
|
||||
return m.Contexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2.Contexts.GetContext].
|
||||
type GetContextRequest struct {
|
||||
// Required. The name of the context. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetContextRequest) Reset() { *m = GetContextRequest{} }
|
||||
func (m *GetContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetContextRequest) ProtoMessage() {}
|
||||
func (*GetContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetContextRequest.Size(m)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetContextRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2.Contexts.CreateContext].
|
||||
type CreateContextRequest struct {
|
||||
// Required. The session to create a context for.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The context to create.
|
||||
Context *Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) Reset() { *m = CreateContextRequest{} }
|
||||
func (m *CreateContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateContextRequest) ProtoMessage() {}
|
||||
func (*CreateContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateContextRequest.Size(m)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateContextRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) GetContext() *Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2.Contexts.UpdateContext].
|
||||
type UpdateContextRequest struct {
|
||||
// Required. The context to update.
|
||||
Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
||||
// Optional. The mask to control which fields get updated.
|
||||
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) Reset() { *m = UpdateContextRequest{} }
|
||||
func (m *UpdateContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateContextRequest) ProtoMessage() {}
|
||||
func (*UpdateContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{5}
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateContextRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateContextRequest) GetContext() *Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2.Contexts.DeleteContext].
|
||||
type DeleteContextRequest struct {
|
||||
// Required. The name of the context to delete. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteContextRequest) Reset() { *m = DeleteContextRequest{} }
|
||||
func (m *DeleteContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteContextRequest) ProtoMessage() {}
|
||||
func (*DeleteContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{6}
|
||||
}
|
||||
|
||||
func (m *DeleteContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteContextRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteContextRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2.Contexts.DeleteAllContexts].
|
||||
type DeleteAllContextsRequest struct {
|
||||
// Required. The name of the session to delete all contexts from. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteAllContextsRequest) Reset() { *m = DeleteAllContextsRequest{} }
|
||||
func (m *DeleteAllContextsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteAllContextsRequest) ProtoMessage() {}
|
||||
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e7e2e3bf8515c3b3, []int{7}
|
||||
}
|
||||
|
||||
func (m *DeleteAllContextsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteAllContextsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteAllContextsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Context)(nil), "google.cloud.dialogflow.v2.Context")
|
||||
proto.RegisterType((*ListContextsRequest)(nil), "google.cloud.dialogflow.v2.ListContextsRequest")
|
||||
proto.RegisterType((*ListContextsResponse)(nil), "google.cloud.dialogflow.v2.ListContextsResponse")
|
||||
proto.RegisterType((*GetContextRequest)(nil), "google.cloud.dialogflow.v2.GetContextRequest")
|
||||
proto.RegisterType((*CreateContextRequest)(nil), "google.cloud.dialogflow.v2.CreateContextRequest")
|
||||
proto.RegisterType((*UpdateContextRequest)(nil), "google.cloud.dialogflow.v2.UpdateContextRequest")
|
||||
proto.RegisterType((*DeleteContextRequest)(nil), "google.cloud.dialogflow.v2.DeleteContextRequest")
|
||||
proto.RegisterType((*DeleteAllContextsRequest)(nil), "google.cloud.dialogflow.v2.DeleteAllContextsRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// ContextsClient is the client API for Contexts service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type ContextsClient interface {
|
||||
// Returns the list of all contexts in the specified session.
|
||||
ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
|
||||
// Retrieves the specified context.
|
||||
GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Creates a context.
|
||||
CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Updates the specified context.
|
||||
UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Deletes the specified context.
|
||||
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
// Deletes all active contexts in the specified session.
|
||||
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type contextsClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewContextsClient(cc *grpc.ClientConn) ContextsClient {
|
||||
return &contextsClient{cc}
|
||||
}
|
||||
|
||||
func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error) {
|
||||
out := new(ListContextsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/ListContexts", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/GetContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/CreateContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/UpdateContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ContextsServer is the server API for Contexts service.
|
||||
type ContextsServer interface {
|
||||
// Returns the list of all contexts in the specified session.
|
||||
ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
|
||||
// Retrieves the specified context.
|
||||
GetContext(context.Context, *GetContextRequest) (*Context, error)
|
||||
// Creates a context.
|
||||
CreateContext(context.Context, *CreateContextRequest) (*Context, error)
|
||||
// Updates the specified context.
|
||||
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
|
||||
// Deletes the specified context.
|
||||
DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error)
|
||||
// Deletes all active contexts in the specified session.
|
||||
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
|
||||
s.RegisterService(&_Contexts_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Contexts_ListContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListContextsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).ListContexts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/ListContexts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).ListContexts(ctx, req.(*ListContextsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_GetContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).GetContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/GetContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).GetContext(ctx, req.(*GetContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_CreateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).CreateContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/CreateContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).CreateContext(ctx, req.(*CreateContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_UpdateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).UpdateContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/UpdateContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).UpdateContext(ctx, req.(*UpdateContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_DeleteContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).DeleteContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/DeleteContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).DeleteContext(ctx, req.(*DeleteContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_DeleteAllContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteAllContextsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).DeleteAllContexts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.Contexts/DeleteAllContexts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).DeleteAllContexts(ctx, req.(*DeleteAllContextsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _Contexts_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2.Contexts",
|
||||
HandlerType: (*ContextsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListContexts",
|
||||
Handler: _Contexts_ListContexts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetContext",
|
||||
Handler: _Contexts_GetContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateContext",
|
||||
Handler: _Contexts_CreateContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateContext",
|
||||
Handler: _Contexts_UpdateContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteContext",
|
||||
Handler: _Contexts_DeleteContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteAllContexts",
|
||||
Handler: _Contexts_DeleteAllContexts_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2/context.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2/context.proto", fileDescriptor_e7e2e3bf8515c3b3)
|
||||
}
|
||||
|
||||
var fileDescriptor_e7e2e3bf8515c3b3 = []byte{
|
||||
// 715 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0xe5, 0x0e, 0xf6, 0xe7, 0xdd, 0x0a, 0x9a, 0xa9, 0x46, 0x95, 0x0d, 0x54, 0x05, 0x01,
|
||||
0x55, 0x25, 0x62, 0xc8, 0x90, 0xd0, 0x18, 0x13, 0x62, 0x2d, 0x9b, 0x84, 0x40, 0x9a, 0x3a, 0xe0,
|
||||
0xc0, 0xa5, 0xf2, 0x5a, 0x37, 0x0a, 0x4b, 0xe3, 0x10, 0xbb, 0x63, 0x0c, 0x4d, 0x48, 0x7c, 0x04,
|
||||
0xe0, 0x36, 0x4e, 0x1c, 0x27, 0x4e, 0x7c, 0x15, 0xbe, 0x02, 0x77, 0xae, 0x1c, 0x51, 0x1c, 0xa7,
|
||||
0xff, 0x57, 0x52, 0x6e, 0x89, 0xfd, 0xd8, 0xcf, 0xcf, 0xaf, 0x9f, 0x37, 0x81, 0xa2, 0xc3, 0xb9,
|
||||
0xe3, 0x31, 0x52, 0xf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4, 0x87, 0xf8, 0xee,
|
||||
0xbf, 0xd1, 0x86, 0xdb, 0x36, 0x25, 0xde, 0x24, 0x77, 0xbe, 0x79, 0x82, 0xe0, 0x6a, 0x9d, 0xb7,
|
||||
0xc6, 0xe0, 0x6c, 0x2e, 0x68, 0x8c, 0x9d, 0xc8, 0x74, 0x07, 0xbd, 0xaa, 0x68, 0xad, 0xc3, 0x3d,
|
||||
0xea, 0x3b, 0x16, 0x0f, 0x1d, 0xe2, 0x30, 0x5f, 0x21, 0x91, 0x78, 0x8a, 0x06, 0xae, 0x18, 0xf5,
|
||||
0xf3, 0x5f, 0xef, 0xbe, 0xfd, 0x41, 0xe8, 0x5b, 0x26, 0x53, 0xd9, 0x3a, 0xcd, 0x18, 0xdb, 0xf1,
|
||||
0x76, 0x65, 0x65, 0x5d, 0xe9, 0x5a, 0xbf, 0xb4, 0xf7, 0xa6, 0xd5, 0xae, 0xab, 0x7f, 0x03, 0x00,
|
||||
0x00, 0xff, 0xff, 0xb8, 0xb1, 0x2f, 0xbf, 0x51, 0x08, 0x00, 0x00,
|
||||
}
|
1634
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/entity_type.pb.go
generated
vendored
Normal file
1634
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/entity_type.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3398
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/intent.pb.go
generated
vendored
Normal file
3398
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/intent.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
1523
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session.pb.go
generated
vendored
Normal file
1523
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
721
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go
generated
vendored
Normal file
721
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,721 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/session_entity_type.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The types of modifications for a session entity type.
|
||||
type SessionEntityType_EntityOverrideMode int32
|
||||
|
||||
const (
|
||||
// Not specified. This value should be never used.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED SessionEntityType_EntityOverrideMode = 0
|
||||
// The collection of session entities overrides the collection of entities
|
||||
// in the corresponding developer entity type.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_OVERRIDE SessionEntityType_EntityOverrideMode = 1
|
||||
// The collection of session entities extends the collection of entities in
|
||||
// the corresponding developer entity type.
|
||||
// Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
|
||||
// `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
|
||||
// collection of entities from the developer entity type in the agent's
|
||||
// default language and the session entity type.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_SUPPLEMENT SessionEntityType_EntityOverrideMode = 2
|
||||
)
|
||||
|
||||
var SessionEntityType_EntityOverrideMode_name = map[int32]string{
|
||||
0: "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
|
||||
1: "ENTITY_OVERRIDE_MODE_OVERRIDE",
|
||||
2: "ENTITY_OVERRIDE_MODE_SUPPLEMENT",
|
||||
}
|
||||
|
||||
var SessionEntityType_EntityOverrideMode_value = map[string]int32{
|
||||
"ENTITY_OVERRIDE_MODE_UNSPECIFIED": 0,
|
||||
"ENTITY_OVERRIDE_MODE_OVERRIDE": 1,
|
||||
"ENTITY_OVERRIDE_MODE_SUPPLEMENT": 2,
|
||||
}
|
||||
|
||||
func (x SessionEntityType_EntityOverrideMode) String() string {
|
||||
return proto.EnumName(SessionEntityType_EntityOverrideMode_name, int32(x))
|
||||
}
|
||||
|
||||
func (SessionEntityType_EntityOverrideMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents a session entity type.
|
||||
//
|
||||
// Extends or replaces a developer entity type at the user session level (we
|
||||
// refer to the entity types defined at the agent level as "developer entity
|
||||
// types").
|
||||
//
|
||||
// Note: session entity types apply to all queries, regardless of the language.
|
||||
type SessionEntityType struct {
|
||||
// Required. The unique identifier of this session entity type. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Required. Indicates whether the additional data should override or
|
||||
// supplement the developer entity type definition.
|
||||
EntityOverrideMode SessionEntityType_EntityOverrideMode `protobuf:"varint,2,opt,name=entity_override_mode,json=entityOverrideMode,proto3,enum=google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
|
||||
// Required. The collection of entities associated with this session entity
|
||||
// type.
|
||||
Entities []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) Reset() { *m = SessionEntityType{} }
|
||||
func (m *SessionEntityType) String() string { return proto.CompactTextString(m) }
|
||||
func (*SessionEntityType) ProtoMessage() {}
|
||||
func (*SessionEntityType) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{0}
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SessionEntityType.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SessionEntityType.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SessionEntityType.Merge(m, src)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Size() int {
|
||||
return xxx_messageInfo_SessionEntityType.Size(m)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SessionEntityType.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SessionEntityType proto.InternalMessageInfo
|
||||
|
||||
func (m *SessionEntityType) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) GetEntityOverrideMode() SessionEntityType_EntityOverrideMode {
|
||||
if m != nil {
|
||||
return m.EntityOverrideMode
|
||||
}
|
||||
return SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) GetEntities() []*EntityType_Entity {
|
||||
if m != nil {
|
||||
return m.Entities
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
|
||||
type ListSessionEntityTypesRequest struct {
|
||||
// Required. The session to list all session entity types from.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 100 and at most 1000.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) Reset() { *m = ListSessionEntityTypesRequest{} }
|
||||
func (m *ListSessionEntityTypesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListSessionEntityTypesRequest) ProtoMessage() {}
|
||||
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Size(m)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListSessionEntityTypesRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes].
|
||||
type ListSessionEntityTypesResponse struct {
|
||||
// The list of session entity types. There will be a maximum number of items
|
||||
// returned based on the page_size field in the request.
|
||||
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) Reset() { *m = ListSessionEntityTypesResponse{} }
|
||||
func (m *ListSessionEntityTypesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListSessionEntityTypesResponse) ProtoMessage() {}
|
||||
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Size(m)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListSessionEntityTypesResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityTypes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType].
|
||||
type GetSessionEntityTypeRequest struct {
|
||||
// Required. The name of the session entity type. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) Reset() { *m = GetSessionEntityTypeRequest{} }
|
||||
func (m *GetSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType].
|
||||
type CreateSessionEntityTypeRequest struct {
|
||||
// Required. The session to create a session entity type for.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The session entity type to create.
|
||||
SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) Reset() { *m = CreateSessionEntityTypeRequest{} }
|
||||
func (m *CreateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType].
|
||||
type UpdateSessionEntityTypeRequest struct {
|
||||
// Required. The entity type to update. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>`.
|
||||
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
|
||||
// Optional. The mask to control which fields get updated.
|
||||
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) Reset() { *m = UpdateSessionEntityTypeRequest{} }
|
||||
func (m *UpdateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*UpdateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{5}
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType].
|
||||
type DeleteSessionEntityTypeRequest struct {
|
||||
// Required. The name of the entity type to delete. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) Reset() { *m = DeleteSessionEntityTypeRequest{} }
|
||||
func (m *DeleteSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_841e168133818181, []int{6}
|
||||
}
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value)
|
||||
proto.RegisterType((*SessionEntityType)(nil), "google.cloud.dialogflow.v2.SessionEntityType")
|
||||
proto.RegisterType((*ListSessionEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesRequest")
|
||||
proto.RegisterType((*ListSessionEntityTypesResponse)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesResponse")
|
||||
proto.RegisterType((*GetSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.GetSessionEntityTypeRequest")
|
||||
proto.RegisterType((*CreateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest")
|
||||
proto.RegisterType((*UpdateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest")
|
||||
proto.RegisterType((*DeleteSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// SessionEntityTypesClient is the client API for SessionEntityTypes service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type SessionEntityTypesClient interface {
|
||||
// Returns the list of all session entity types in the specified session.
|
||||
ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error)
|
||||
// Retrieves the specified session entity type.
|
||||
GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Creates a session entity type.
|
||||
CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Updates the specified session entity type.
|
||||
UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Deletes the specified session entity type.
|
||||
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type sessionEntityTypesClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewSessionEntityTypesClient(cc *grpc.ClientConn) SessionEntityTypesClient {
|
||||
return &sessionEntityTypesClient{cc}
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error) {
|
||||
out := new(ListSessionEntityTypesResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/GetSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/CreateSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/UpdateSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// SessionEntityTypesServer is the server API for SessionEntityTypes service.
|
||||
type SessionEntityTypesServer interface {
|
||||
// Returns the list of all session entity types in the specified session.
|
||||
ListSessionEntityTypes(context.Context, *ListSessionEntityTypesRequest) (*ListSessionEntityTypesResponse, error)
|
||||
// Retrieves the specified session entity type.
|
||||
GetSessionEntityType(context.Context, *GetSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Creates a session entity type.
|
||||
CreateSessionEntityType(context.Context, *CreateSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Updates the specified session entity type.
|
||||
UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Deletes the specified session entity type.
|
||||
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer) {
|
||||
s.RegisterService(&_SessionEntityTypes_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_ListSessionEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListSessionEntityTypesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/ListSessionEntityTypes",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, req.(*ListSessionEntityTypesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_GetSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/GetSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, req.(*GetSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_CreateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/CreateSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, req.(*CreateSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_UpdateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/UpdateSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, req.(*UpdateSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_DeleteSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2.SessionEntityTypes/DeleteSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, req.(*DeleteSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _SessionEntityTypes_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2.SessionEntityTypes",
|
||||
HandlerType: (*SessionEntityTypesServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListSessionEntityTypes",
|
||||
Handler: _SessionEntityTypes_ListSessionEntityTypes_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSessionEntityType",
|
||||
Handler: _SessionEntityTypes_GetSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateSessionEntityType",
|
||||
Handler: _SessionEntityTypes_CreateSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateSessionEntityType",
|
||||
Handler: _SessionEntityTypes_UpdateSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteSessionEntityType",
|
||||
Handler: _SessionEntityTypes_DeleteSessionEntityType_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2/session_entity_type.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2/session_entity_type.proto", fileDescriptor_841e168133818181)
|
||||
}
|
||||
|
||||
var fileDescriptor_841e168133818181 = []byte{
|
||||
// 793 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x4e, 0xd4, 0x4a,
|
||||
0x18, 0x3f, 0x53, 0xce, 0x21, 0x30, 0xe4, 0x9c, 0x03, 0x73, 0xc8, 0xb2, 0x29, 0x87, 0x75, 0xad,
|
||||
0xc6, 0x90, 0x8d, 0xb6, 0x71, 0x25, 0x1a, 0x41, 0x13, 0x03, 0x5b, 0x70, 0x23, 0x0b, 0x6b, 0x77,
|
||||
0x21, 0xd1, 0xc4, 0x34, 0x85, 0xfd, 0x68, 0x2a, 0xbb, 0x9d, 0xda, 0xe9, 0xa2, 0x8b, 0xe1, 0x86,
|
||||
0x57, 0xf0, 0xc2, 0x78, 0x6b, 0xe2, 0x85, 0xfa, 0x0a, 0xbc, 0x82, 0x57, 0x5e, 0xf8, 0x02, 0xde,
|
||||
0xf1, 0x02, 0x5e, 0x9a, 0x4e, 0xbb, 0x40, 0x68, 0x3b, 0x66, 0x89, 0x77, 0xf3, 0xe7, 0xfb, 0xf3,
|
||||
0xfb, 0x7d, 0xf3, 0xfb, 0xbe, 0x0c, 0x9e, 0xb3, 0x29, 0xb5, 0xdb, 0xa0, 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0x43, 0x94, 0x27, 0x91, 0xc0, 0x38, 0x71,
|
||||
0x57, 0x0e, 0x11, 0x26, 0xc9, 0xac, 0xe4, 0x2a, 0x2e, 0xea, 0x6b, 0xcd, 0x6a, 0xf3, 0x89, 0xb9,
|
||||
0xbe, 0xa9, 0x1b, 0x46, 0xb5, 0xa2, 0x9b, 0xb5, 0xf5, 0x8a, 0x6e, 0x6e, 0xac, 0x35, 0xea, 0xfa,
|
||||
0x52, 0x75, 0xb9, 0xaa, 0x57, 0xc6, 0xff, 0x20, 0x97, 0xf1, 0x4c, 0xaa, 0x55, 0x7f, 0x37, 0x8e,
|
||||
0xc8, 0x15, 0x7c, 0x29, 0xd5, 0xa4, 0xb1, 0x51, 0xaf, 0xaf, 0xea, 0x35, 0x7d, 0xad, 0x39, 0x2e,
|
||||
0x29, 0x0c, 0xcf, 0xac, 0x3a, 0x2c, 0x48, 0xd4, 0x83, 0x19, 0xf0, 0xa2, 0x0b, 0x2c, 0x20, 0x39,
|
||||
0x3c, 0xec, 0x59, 0x3e, 0xb8, 0x41, 0x5c, 0xfa, 0x78, 0x47, 0xa6, 0xf1, 0xa8, 0x67, 0xd9, 0x60,
|
||||
0x32, 0x67, 0x3f, 0xaa, 0xf8, 0x5f, 0xc6, 0x48, 0x78, 0xd0, 0x70, 0xf6, 0x81, 0xcc, 0x60, 0xcc,
|
||||
0x2f, 0x03, 0xba, 0x0b, 0x6e, 0x7e, 0x88, 0x3b, 0x72, 0xf3, 0x66, 0x78, 0xa0, 0x7c, 0x44, 0xb8,
|
||||
0x90, 0x95, 0x95, 0x79, 0xd4, 0x65, 0x40, 0x4c, 0x3c, 0x99, 0xa2, 0x64, 0x96, 0x47, 0xbf, 0xae,
|
||||
0x79, 0x22, 0xaa, 0x41, 0x58, 0x22, 0x11, 0xb9, 0x86, 0xff, 0x75, 0xe1, 0x55, 0x60, 0x9e, 0xc1,
|
||||
0x29, 0x71, 0x9c, 0x7f, 0x87, 0xc7, 0xf5, 0x13, 0xac, 0x37, 0xf1, 0xf4, 0x0a, 0x24, 0x91, 0xf6,
|
||||
0xcb, 0x93, 0xa2, 0x4b, 0xe5, 0x2d, 0xc2, 0x85, 0x25, 0x1f, 0xac, 0x00, 0x32, 0xdd, 0xb2, 0xaa,
|
||||
0xfa, 0x0c, 0xff, 0x97, 0x42, 0x9b, 0x23, 0x1b, 0x98, 0xf5, 0x44, 0x82, 0xb5, 0x72, 0x84, 0x70,
|
||||
0x61, 0xc3, 0x6b, 0x89, 0x90, 0x65, 0x20, 0x40, 0xbf, 0x07, 0x01, 0x59, 0xc0, 0x63, 0x5d, 0x0e,
|
||||
0x80, 0xb7, 0x7c, 0x4c, 0x4c, 0xee, 0x87, 0xed, 0x4f, 0x05, 0x75, 0x39, 0x9c, 0x0a, 0x35, 0x8b,
|
||||
0xed, 0x1a, 0x38, 0x32, 0x0f, 0xd7, 0xca, 0x1c, 0x2e, 0x54, 0xa0, 0x0d, 0x02, 0xf4, 0x29, 0xcf,
|
||||
0x51, 0x7e, 0x37, 0x82, 0x49, 0x52, 0x69, 0xe4, 0x0b, 0xc2, 0xb9, 0x74, 0x11, 0x92, 0xbb, 0x22,
|
||||
0x9a, 0xc2, 0x76, 0x91, 0xe7, 0x2f, 0xe2, 0x1a, 0x69, 0x5e, 0xb9, 0x77, 0xf8, 0xf5, 0xfb, 0x1b,
|
||||
0xe9, 0x36, 0x99, 0x0b, 0xe7, 0xea, 0xeb, 0x48, 0x11, 0xf7, 0x3d, 0x9f, 0x3e, 0x87, 0xed, 0x80,
|
||||
0x69, 0x25, 0xcd, 0xb2, 0xc1, 0x0d, 0xfa, 0x03, 0x9e, 0x69, 0xa5, 0x83, 0x78, 0xf8, 0x46, 0xa0,
|
||||
0x8f, 0x10, 0x9e, 0x4c, 0x53, 0x2a, 0xb9, 0x23, 0x82, 0x24, 0xd0, 0xb6, 0x3c, 0xd8, 0x6b, 0x9f,
|
||||
0x83, 0x1f, 0x96, 0x5e, 0x04, 0xfe, 0x2c, 0x76, 0xad, 0x74, 0x40, 0xbe, 0x21, 0x3c, 0x95, 0xd1,
|
||||
0x34, 0x44, 0x58, 0x54, 0x71, 0xa7, 0x0d, 0x4a, 0xe2, 0x31, 0x27, 0xf1, 0x48, 0xb9, 0xd0, 0x1b,
|
||||
0xcc, 0xa7, 0xb5, 0x0e, 0x39, 0x46, 0x78, 0x2a, 0xa3, 0xe9, 0xc4, 0xcc, 0xc4, 0x9d, 0x3a, 0x28,
|
||||
0x33, 0xe0, 0xcc, 0xcc, 0xf2, 0x43, 0xce, 0x2c, 0xed, 0x9b, 0x30, 0xe0, 0x93, 0xa5, 0xb3, 0xfd,
|
||||
0x8c, 0xf0, 0x54, 0x46, 0x93, 0x8a, 0xd9, 0x8a, 0x3b, 0x5b, 0xce, 0x25, 0x66, 0x84, 0x1e, 0x7e,
|
||||
0x2b, 0xfa, 0xaa, 0x2b, 0x5d, 0x48, 0x75, 0x8b, 0x1f, 0x10, 0x2e, 0x6c, 0xd3, 0x8e, 0x00, 0xd7,
|
||||
0x62, 0x2e, 0x01, 0xa9, 0x1e, 0x22, 0xa8, 0xa3, 0xa7, 0x95, 0xd8, 0xcb, 0xa6, 0x6d, 0xcb, 0xb5,
|
||||
0x55, 0xea, 0xdb, 0x9a, 0x0d, 0x2e, 0xc7, 0xa7, 0x45, 0x57, 0x96, 0xe7, 0xb0, 0xb4, 0x5f, 0xd3,
|
||||
0xc2, 0xe9, 0xee, 0x07, 0x42, 0xef, 0x25, 0xa9, 0xb2, 0xfc, 0x49, 0x92, 0x57, 0xa2, 0x70, 0x4b,
|
||||
0x1c, 0x44, 0xe5, 0x14, 0xc4, 0x66, 0x79, 0x6b, 0x98, 0x47, 0xbd, 0xf5, 0x33, 0x00, 0x00, 0xff,
|
||||
0xff, 0x3d, 0x82, 0x36, 0x5e, 0xfa, 0x09, 0x00, 0x00,
|
||||
}
|
309
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/webhook.pb.go
generated
vendored
Normal file
309
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/webhook.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,309 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/webhook.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The request message for a webhook call.
|
||||
type WebhookRequest struct {
|
||||
// The unique identifier of detectIntent request session.
|
||||
// Can be used to identify end-user inside webhook implementation.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
|
||||
// The unique identifier of the response. Contains the same value as
|
||||
// `[Streaming]DetectIntentResponse.response_id`.
|
||||
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
|
||||
// The result of the conversational query or event processing. Contains the
|
||||
// same value as `[Streaming]DetectIntentResponse.query_result`.
|
||||
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
|
||||
// Optional. The contents of the original request that was passed to
|
||||
// `[Streaming]DetectIntent` call.
|
||||
OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
|
||||
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebhookRequest) ProtoMessage() {}
|
||||
func (*WebhookRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2ba880626f278d96, []int{0}
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookRequest.Merge(m, src)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_WebhookRequest.Size(m)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *WebhookRequest) GetSession() string {
|
||||
if m != nil {
|
||||
return m.Session
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetResponseId() string {
|
||||
if m != nil {
|
||||
return m.ResponseId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetQueryResult() *QueryResult {
|
||||
if m != nil {
|
||||
return m.QueryResult
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
|
||||
if m != nil {
|
||||
return m.OriginalDetectIntentRequest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The response message for a webhook call.
|
||||
type WebhookResponse struct {
|
||||
// Optional. The text to be shown on the screen. This value is passed directly
|
||||
// to `QueryResult.fulfillment_text`.
|
||||
FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
|
||||
// Optional. The collection of rich messages to present to the user. This
|
||||
// value is passed directly to `QueryResult.fulfillment_messages`.
|
||||
FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
|
||||
// Optional. This value is passed directly to `QueryResult.webhook_source`.
|
||||
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
|
||||
// Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
||||
// See the related `fulfillment_messages[i].payload field`, which may be used
|
||||
// as an alternative to this field.
|
||||
//
|
||||
// This field can be used for Actions on Google responses.
|
||||
// It should have a structure similar to the JSON message shown here. For more
|
||||
// information, see
|
||||
// [Actions on Google Webhook
|
||||
// Format](https://developers.google.com/actions/dialogflow/webhook)
|
||||
// <pre>{
|
||||
// "google": {
|
||||
// "expectUserResponse": true,
|
||||
// "richResponse": {
|
||||
// "items": [
|
||||
// {
|
||||
// "simpleResponse": {
|
||||
// "textToSpeech": "this is a simple response"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
// }</pre>
|
||||
Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
// Optional. The collection of output contexts. This value is passed directly
|
||||
// to `QueryResult.output_contexts`.
|
||||
OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
|
||||
// Optional. Makes the platform immediately invoke another `DetectIntent` call
|
||||
// internally with the specified event as input.
|
||||
FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
|
||||
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebhookResponse) ProtoMessage() {}
|
||||
func (*WebhookResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2ba880626f278d96, []int{1}
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookResponse.Merge(m, src)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_WebhookResponse.Size(m)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *WebhookResponse) GetFulfillmentText() string {
|
||||
if m != nil {
|
||||
return m.FulfillmentText
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message {
|
||||
if m != nil {
|
||||
return m.FulfillmentMessages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetSource() string {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetOutputContexts() []*Context {
|
||||
if m != nil {
|
||||
return m.OutputContexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
|
||||
if m != nil {
|
||||
return m.FollowupEventInput
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Represents the contents of the original request that was passed to
|
||||
// the `[Streaming]DetectIntent` call.
|
||||
type OriginalDetectIntentRequest struct {
|
||||
// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
|
||||
// by Dialogflow-owned servers.
|
||||
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
|
||||
// Optional. This field is set to the value of `QueryParameters.payload` field
|
||||
// passed in the request.
|
||||
Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
|
||||
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*OriginalDetectIntentRequest) ProtoMessage() {}
|
||||
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2ba880626f278d96, []int{2}
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetSource() string {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*WebhookRequest)(nil), "google.cloud.dialogflow.v2.WebhookRequest")
|
||||
proto.RegisterType((*WebhookResponse)(nil), "google.cloud.dialogflow.v2.WebhookResponse")
|
||||
proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2.OriginalDetectIntentRequest")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2/webhook.proto", fileDescriptor_2ba880626f278d96)
|
||||
}
|
||||
|
||||
var fileDescriptor_2ba880626f278d96 = []byte{
|
||||
// 536 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
|
||||
0x14, 0xc6, 0x95, 0x14, 0x3a, 0xcd, 0x9d, 0x56, 0x64, 0x26, 0x88, 0x3a, 0x34, 0xaa, 0x22, 0xb1,
|
||||
0xc2, 0x21, 0x11, 0xe1, 0xc0, 0x81, 0xdb, 0x56, 0x40, 0x45, 0x20, 0x46, 0x40, 0x80, 0x90, 0x50,
|
||||
0x94, 0x26, 0x6e, 0x66, 0xe1, 0xfa, 0xa5, 0xb1, 0xdd, 0x6e, 0x12, 0x7f, 0x03, 0x37, 0x4e, 0xdc,
|
||||
0x38, 0xf2, 0x17, 0x72, 0x44, 0xb1, 0x1d, 0xd2, 0x03, 0x8d, 0x76, 0x7c, 0xf6, 0xe7, 0xdf, 0xfb,
|
||||
0xde, 0xf7, 0x12, 0x34, 0xce, 0x01, 0x72, 0x46, 0x82, 0x94, 0x81, 0xca, 0x82, 0x8c, 0x26, 0x0c,
|
||||
0xf2, 0x39, 0x83, 0x75, 0xb0, 0x0a, 0x83, 0x35, 0x99, 0x9d, 0x03, 0x7c, 0xf5, 0x8b, 0x12, 0x24,
|
||||
0xe0, 0x81, 0x51, 0xfa, 0x5a, 0xe9, 0x37, 0x4a, 0x7f, 0x15, 0x0e, 0xee, 0x58, 0x4a, 0x52, 0xd0,
|
||||
0x20, 0xe1, 0x1c, 0x64, 0x22, 0x29, 0x70, 0x61, 0x5e, 0x0e, 0xda, 0x7a, 0xa4, 0xc0, 0x25, 0xb9,
|
||||
0x90, 0x56, 0x79, 0xdc, 0xa2, 0xa4, 0x5c, 0x12, 0x2e, 0xaf, 0x80, 0x14, 0x44, 0x08, 0x0a, 0xdc,
|
||||
0x2a, 0x6b, 0x6b, 0xba, 0x9a, 0xa9, 0x79, 0x20, 0x64, 0xa9, 0x52, 0xcb, 0x19, 0xfd, 0x70, 0xd1,
|
||||
0xfe, 0x47, 0x33, 0x66, 0x44, 0x96, 0x8a, 0x08, 0x89, 0x3d, 0xb4, 0x63, 0x09, 0xde, 0xb5, 0xa1,
|
||||
0x33, 0xde, 0x8d, 0xea, 0x12, 0xdf, 0x45, 0xbd, 0x92, 0x88, 0x02, 0xb8, 0x20, 0x31, 0xcd, 0x3c,
|
||||
0x47, 0xdf, 0xa2, 0xfa, 0x68, 0x9a, 0xe1, 0x97, 0x68, 0x6f, 0xa9, 0x48, 0x79, 0x19,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93, 0xf7, 0xda, 0x4c, 0x9e,
|
||||
0x1a, 0x6d, 0xb4, 0x6f, 0xde, 0xda, 0x52, 0xe0, 0x4f, 0xe8, 0x60, 0x0e, 0x8c, 0xc1, 0x5a, 0x15,
|
||||
0x31, 0x59, 0x55, 0xa3, 0x53, 0x5e, 0x28, 0xe9, 0x75, 0xb5, 0x9b, 0xfb, 0x6d, 0xc8, 0x67, 0x95,
|
||||
0x7c, 0x5a, 0xa9, 0x23, 0x5c, 0x33, 0x9a, 0xb3, 0xd1, 0x39, 0x3a, 0x6c, 0x59, 0xe6, 0x46, 0x22,
|
||||
0xce, 0xb6, 0x44, 0x3a, 0x57, 0x4b, 0xe4, 0xe4, 0xa7, 0x83, 0x8e, 0x52, 0x58, 0xb4, 0x78, 0x3d,
|
||||
0xd9, 0xb3, 0x9f, 0xc6, 0x59, 0xc5, 0x38, 0x73, 0x3e, 0x4f, 0xac, 0x36, 0x07, 0x96, 0xf0, 0xdc,
|
||||
0x87, 0x32, 0x0f, 0x72, 0xc2, 0x75, 0x87, 0xc0, 0x5c, 0x25, 0x05, 0x15, 0xff, 0xfb, 0x59, 0x9f,
|
||||
0x36, 0xd5, 0x1f, 0xc7, 0xf9, 0xe5, 0xba, 0x93, 0xe7, 0xbf, 0xdd, 0xc1, 0x0b, 0x83, 0x3b, 0xd5,
|
||||
0xad, 0x27, 0x4d, 0xeb, 0x0f, 0xe1, 0xac, 0xab, 0xa9, 0x8f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff,
|
||||
0x75, 0x98, 0x13, 0x07, 0xb8, 0x04, 0x00, 0x00,
|
||||
}
|
1287
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/agent.pb.go
generated
vendored
Normal file
1287
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/agent.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
366
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go
generated
vendored
Normal file
366
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,366 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/audio_config.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Gender of the voice as described in
|
||||
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
|
||||
type SsmlVoiceGender int32
|
||||
|
||||
const (
|
||||
// An unspecified gender, which means that the client doesn't care which
|
||||
// gender the selected voice will have.
|
||||
SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED SsmlVoiceGender = 0
|
||||
// A male voice.
|
||||
SsmlVoiceGender_SSML_VOICE_GENDER_MALE SsmlVoiceGender = 1
|
||||
// A female voice.
|
||||
SsmlVoiceGender_SSML_VOICE_GENDER_FEMALE SsmlVoiceGender = 2
|
||||
// A gender-neutral voice.
|
||||
SsmlVoiceGender_SSML_VOICE_GENDER_NEUTRAL SsmlVoiceGender = 3
|
||||
)
|
||||
|
||||
var SsmlVoiceGender_name = map[int32]string{
|
||||
0: "SSML_VOICE_GENDER_UNSPECIFIED",
|
||||
1: "SSML_VOICE_GENDER_MALE",
|
||||
2: "SSML_VOICE_GENDER_FEMALE",
|
||||
3: "SSML_VOICE_GENDER_NEUTRAL",
|
||||
}
|
||||
|
||||
var SsmlVoiceGender_value = map[string]int32{
|
||||
"SSML_VOICE_GENDER_UNSPECIFIED": 0,
|
||||
"SSML_VOICE_GENDER_MALE": 1,
|
||||
"SSML_VOICE_GENDER_FEMALE": 2,
|
||||
"SSML_VOICE_GENDER_NEUTRAL": 3,
|
||||
}
|
||||
|
||||
func (x SsmlVoiceGender) String() string {
|
||||
return proto.EnumName(SsmlVoiceGender_name, int32(x))
|
||||
}
|
||||
|
||||
func (SsmlVoiceGender) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80617ff5f6b0e1c6, []int{0}
|
||||
}
|
||||
|
||||
// Audio encoding of the output audio format in Text-To-Speech.
|
||||
type OutputAudioEncoding int32
|
||||
|
||||
const (
|
||||
// Not specified.
|
||||
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED OutputAudioEncoding = 0
|
||||
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
|
||||
// Audio content returned as LINEAR16 also contains a WAV header.
|
||||
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_LINEAR_16 OutputAudioEncoding = 1
|
||||
// MP3 audio.
|
||||
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_MP3 OutputAudioEncoding = 2
|
||||
// Opus encoded audio wrapped in an ogg container. The result will be a
|
||||
// file which can be played natively on Android, and in browsers (at least
|
||||
// Chrome and Firefox). The quality of the encoding is considerably higher
|
||||
// than MP3 while using approximately the same bitrate.
|
||||
OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_OGG_OPUS OutputAudioEncoding = 3
|
||||
)
|
||||
|
||||
var OutputAudioEncoding_name = map[int32]string{
|
||||
0: "OUTPUT_AUDIO_ENCODING_UNSPECIFIED",
|
||||
1: "OUTPUT_AUDIO_ENCODING_LINEAR_16",
|
||||
2: "OUTPUT_AUDIO_ENCODING_MP3",
|
||||
3: "OUTPUT_AUDIO_ENCODING_OGG_OPUS",
|
||||
}
|
||||
|
||||
var OutputAudioEncoding_value = map[string]int32{
|
||||
"OUTPUT_AUDIO_ENCODING_UNSPECIFIED": 0,
|
||||
"OUTPUT_AUDIO_ENCODING_LINEAR_16": 1,
|
||||
"OUTPUT_AUDIO_ENCODING_MP3": 2,
|
||||
"OUTPUT_AUDIO_ENCODING_OGG_OPUS": 3,
|
||||
}
|
||||
|
||||
func (x OutputAudioEncoding) String() string {
|
||||
return proto.EnumName(OutputAudioEncoding_name, int32(x))
|
||||
}
|
||||
|
||||
func (OutputAudioEncoding) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80617ff5f6b0e1c6, []int{1}
|
||||
}
|
||||
|
||||
// Description of which voice to use for speech synthesis.
|
||||
type VoiceSelectionParams struct {
|
||||
// Optional. The name of the voice. If not set, the service will choose a
|
||||
// voice based on the other parameters such as language_code and gender.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. The preferred gender of the voice. If not set, the service will
|
||||
// choose a voice based on the other parameters such as language_code and
|
||||
// name. Note that this is only a preference, not requirement. If a
|
||||
// voice of the appropriate gender is not available, the synthesizer should
|
||||
// substitute a voice with a different gender rather than failing the request.
|
||||
SsmlGender SsmlVoiceGender `protobuf:"varint,2,opt,name=ssml_gender,json=ssmlGender,proto3,enum=google.cloud.dialogflow.v2beta1.SsmlVoiceGender" json:"ssml_gender,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *VoiceSelectionParams) Reset() { *m = VoiceSelectionParams{} }
|
||||
func (m *VoiceSelectionParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*VoiceSelectionParams) ProtoMessage() {}
|
||||
func (*VoiceSelectionParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80617ff5f6b0e1c6, []int{0}
|
||||
}
|
||||
|
||||
func (m *VoiceSelectionParams) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_VoiceSelectionParams.Unmarshal(m, b)
|
||||
}
|
||||
func (m *VoiceSelectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_VoiceSelectionParams.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *VoiceSelectionParams) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_VoiceSelectionParams.Merge(m, src)
|
||||
}
|
||||
func (m *VoiceSelectionParams) XXX_Size() int {
|
||||
return xxx_messageInfo_VoiceSelectionParams.Size(m)
|
||||
}
|
||||
func (m *VoiceSelectionParams) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_VoiceSelectionParams.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_VoiceSelectionParams proto.InternalMessageInfo
|
||||
|
||||
func (m *VoiceSelectionParams) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VoiceSelectionParams) GetSsmlGender() SsmlVoiceGender {
|
||||
if m != nil {
|
||||
return m.SsmlGender
|
||||
}
|
||||
return SsmlVoiceGender_SSML_VOICE_GENDER_UNSPECIFIED
|
||||
}
|
||||
|
||||
// Configuration of how speech should be synthesized.
|
||||
type SynthesizeSpeechConfig struct {
|
||||
// Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
|
||||
// native speed supported by the specific voice. 2.0 is twice as fast, and
|
||||
// 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
|
||||
// other values < 0.25 or > 4.0 will return an error.
|
||||
SpeakingRate float64 `protobuf:"fixed64,1,opt,name=speaking_rate,json=speakingRate,proto3" json:"speaking_rate,omitempty"`
|
||||
// Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
|
||||
// semitones from the original pitch. -20 means decrease 20 semitones from the
|
||||
// original pitch.
|
||||
Pitch float64 `protobuf:"fixed64,2,opt,name=pitch,proto3" json:"pitch,omitempty"`
|
||||
// Optional. Volume gain (in dB) of the normal native volume supported by the
|
||||
// specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
|
||||
// 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
|
||||
// will play at approximately half the amplitude of the normal native signal
|
||||
// amplitude. A value of +6.0 (dB) will play at approximately twice the
|
||||
// amplitude of the normal native signal amplitude. We strongly recommend not
|
||||
// to exceed +10 (dB) as there's usually no effective increase in loudness for
|
||||
// any value greater than that.
|
||||
VolumeGainDb float64 `protobuf:"fixed64,3,opt,name=volume_gain_db,json=volumeGainDb,proto3" json:"volume_gain_db,omitempty"`
|
||||
// Optional. An identifier which selects 'audio effects' profiles that are
|
||||
// applied on (post synthesized) text to speech. Effects are applied on top of
|
||||
// each other in the order they are given.
|
||||
EffectsProfileId []string `protobuf:"bytes,5,rep,name=effects_profile_id,json=effectsProfileId,proto3" json:"effects_profile_id,omitempty"`
|
||||
// Optional. The desired voice of the synthesized audio.
|
||||
Voice *VoiceSelectionParams `protobuf:"bytes,4,opt,name=voice,proto3" json:"voice,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) Reset() { *m = SynthesizeSpeechConfig{} }
|
||||
func (m *SynthesizeSpeechConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*SynthesizeSpeechConfig) ProtoMessage() {}
|
||||
func (*SynthesizeSpeechConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80617ff5f6b0e1c6, []int{1}
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SynthesizeSpeechConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SynthesizeSpeechConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SynthesizeSpeechConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SynthesizeSpeechConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SynthesizeSpeechConfig.Merge(m, src)
|
||||
}
|
||||
func (m *SynthesizeSpeechConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_SynthesizeSpeechConfig.Size(m)
|
||||
}
|
||||
func (m *SynthesizeSpeechConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SynthesizeSpeechConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SynthesizeSpeechConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *SynthesizeSpeechConfig) GetSpeakingRate() float64 {
|
||||
if m != nil {
|
||||
return m.SpeakingRate
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) GetPitch() float64 {
|
||||
if m != nil {
|
||||
return m.Pitch
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) GetVolumeGainDb() float64 {
|
||||
if m != nil {
|
||||
return m.VolumeGainDb
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) GetEffectsProfileId() []string {
|
||||
if m != nil {
|
||||
return m.EffectsProfileId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SynthesizeSpeechConfig) GetVoice() *VoiceSelectionParams {
|
||||
if m != nil {
|
||||
return m.Voice
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Instructs the speech synthesizer how to generate the output audio content.
|
||||
type OutputAudioConfig struct {
|
||||
// Required. Audio encoding of the synthesized audio content.
|
||||
AudioEncoding OutputAudioEncoding `protobuf:"varint,1,opt,name=audio_encoding,json=audioEncoding,proto3,enum=google.cloud.dialogflow.v2beta1.OutputAudioEncoding" json:"audio_encoding,omitempty"`
|
||||
// Optional. The synthesis sample rate (in hertz) for this audio. If not
|
||||
// provided, then the synthesizer will use the default sample rate based on
|
||||
// the audio encoding. If this is different from the voice's natural sample
|
||||
// rate, then the synthesizer will honor this request by converting to the
|
||||
// desired sample rate (which might result in worse audio quality).
|
||||
SampleRateHertz int32 `protobuf:"varint,2,opt,name=sample_rate_hertz,json=sampleRateHertz,proto3" json:"sample_rate_hertz,omitempty"`
|
||||
// Optional. Configuration of how speech should be synthesized.
|
||||
SynthesizeSpeechConfig *SynthesizeSpeechConfig `protobuf:"bytes,3,opt,name=synthesize_speech_config,json=synthesizeSpeechConfig,proto3" json:"synthesize_speech_config,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OutputAudioConfig) Reset() { *m = OutputAudioConfig{} }
|
||||
func (m *OutputAudioConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*OutputAudioConfig) ProtoMessage() {}
|
||||
func (*OutputAudioConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_80617ff5f6b0e1c6, []int{2}
|
||||
}
|
||||
|
||||
func (m *OutputAudioConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OutputAudioConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OutputAudioConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OutputAudioConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *OutputAudioConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OutputAudioConfig.Merge(m, src)
|
||||
}
|
||||
func (m *OutputAudioConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_OutputAudioConfig.Size(m)
|
||||
}
|
||||
func (m *OutputAudioConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OutputAudioConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OutputAudioConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *OutputAudioConfig) GetAudioEncoding() OutputAudioEncoding {
|
||||
if m != nil {
|
||||
return m.AudioEncoding
|
||||
}
|
||||
return OutputAudioEncoding_OUTPUT_AUDIO_ENCODING_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *OutputAudioConfig) GetSampleRateHertz() int32 {
|
||||
if m != nil {
|
||||
return m.SampleRateHertz
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig {
|
||||
if m != nil {
|
||||
return m.SynthesizeSpeechConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value)
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value)
|
||||
proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.dialogflow.v2beta1.VoiceSelectionParams")
|
||||
proto.RegisterType((*SynthesizeSpeechConfig)(nil), "google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig")
|
||||
proto.RegisterType((*OutputAudioConfig)(nil), "google.cloud.dialogflow.v2beta1.OutputAudioConfig")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/audio_config.proto", fileDescriptor_80617ff5f6b0e1c6)
|
||||
}
|
||||
|
||||
var fileDescriptor_80617ff5f6b0e1c6 = []byte{
|
||||
// 647 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4f, 0x6f, 0xd3, 0x3e,
|
||||
0x18, 0xfe, 0xb9, 0x5d, 0x7f, 0xd2, 0x3c, 0xd6, 0x65, 0x66, 0x9a, 0xca, 0xb4, 0xb1, 0xae, 0x03,
|
||||
0xa9, 0x9a, 0x50, 0xcb, 0x3a, 0xfe, 0x1c, 0x38, 0x75, 0x6d, 0x56, 0x22, 0xba, 0x26, 0x24, 0xeb,
|
||||
0x0e, 0x70, 0xb0, 0xdc, 0xc4, 0x4d, 0x2d, 0x12, 0x3b, 0x24, 0xe9, 0x10, 0x93, 0xf8, 0x08, 0x88,
|
||||
0xef, 0x80, 0x38, 0x71, 0xe0, 0xd3, 0x71, 0xe0, 0x88, 0x62, 0x07, 0x36, 0x6d, 0x41, 0xbd, 0xc5,
|
||||
0xef, 0xe3, 0xe7, 0xf5, 0xf3, 0x3e, 0x8f, 0x63, 0xd8, 0xf1, 0x85, 0xf0, 0x03, 0xda, 0x76, 0x03,
|
||||
0x31, 0xf7, 0xda, 0x1e, 0x23, 0x81, 0xf0, 0xa7, 0x81, 0xf8, 0xd0, 0xbe, 0xe8, 0x4c, 0x68, 0x4a,
|
||||
0x0e, 0xdb, 0x64, 0xee, 0x31, 0x81, 0x5d, 0xc1, 0xa7, 0xcc, 0x6f, 0x45, 0xb1, 0x48, 0x05, 0xda,
|
||||
0x55, 0x9c, 0x96, 0xe4, 0xb4, 0xae, 0x38, 0xad, 0x9c, 0xb3, 0xb5, 0x9d, 0x37, 0x25, 0x11, 0x6b,
|
||||
0x13, 0xce, 0x45, 0x4a, 0x52, 0x26, 0x78, 0xa2, 0xe8, 0x8d, 0x4f, 0x70, 0xe3, 0x5c, 0x30, 0x97,
|
||||
0x3a, 0x34, 0xa0, 0x6e, 0x06, 0x58, 0x24, 0x26, 0x61, 0x82, 0x10, 0x5c, 0xe2, 0x24, 0xa4, 0x35,
|
||||
0x50, 0x07, 0xcd, 0x65, 0x5b, 0x7e, 0xa3, 0xd7, 0x70, 0x25, 0x49, 0xc2, 0x00, 0xfb, 0x94, 0x7b,
|
||||
0x34, 0xae, 0x95, 0xea, 0xa0, 0x59, 0xed, 0x3c, 0x6e, 0x2d, 0x10, 0xd0, 0x72, 0x92, 0x30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, 0x07, 0x03, 0x6c, 0x5a, 0x63,
|
||||
0x47, 0x2b, 0x1f, 0xff, 0x00, 0x70, 0xdf, 0x15, 0xe1, 0xa2, 0x34, 0x8e, 0xb5, 0x6b, 0xf7, 0xcc,
|
||||
0xca, 0x7e, 0x7c, 0x0b, 0xbc, 0x31, 0x72, 0x92, 0x2f, 0x02, 0xc2, 0xfd, 0x96, 0x88, 0xfd, 0xb6,
|
||||
0x4f, 0xb9, 0x7c, 0x16, 0xda, 0x0a, 0x22, 0x11, 0x4b, 0xfe, 0xf9, 0x18, 0xbd, 0xb8, 0x2a, 0xfd,
|
||||
0x02, 0xe0, 0x6b, 0xa9, 0xd4, 0x3f, 0xf9, 0x5e, 0xda, 0x1d, 0xa8, 0x9e, 0x3d, 0x29, 0xa4, 0x7f,
|
||||
0x25, 0xe4, 0x5c, 0x91, 0x26, 0xff, 0xcb, 0xfe, 0x47, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x18,
|
||||
0xb5, 0x45, 0x5e, 0xeb, 0x04, 0x00, 0x00,
|
||||
}
|
778
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/context.pb.go
generated
vendored
Normal file
778
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/context.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,778 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/context.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Represents a context.
|
||||
type Context struct {
|
||||
// Required. The unique identifier of the context. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
||||
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>/contexts/<Context ID>`. The `Context ID` is
|
||||
// always converted to lowercase. If `Environment ID` is not specified, we
|
||||
// assume default 'draft' environment. If `User ID` is not specified, we
|
||||
// assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. The number of conversational query requests after which the
|
||||
// context expires. If set to `0` (the default) the context expires
|
||||
// immediately. Contexts expire automatically after 10 minutes even if there
|
||||
// are no matching queries.
|
||||
LifespanCount int32 `protobuf:"varint,2,opt,name=lifespan_count,json=lifespanCount,proto3" json:"lifespan_count,omitempty"`
|
||||
// Optional. The collection of parameters associated with this context.
|
||||
// Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) for
|
||||
// syntax.
|
||||
Parameters *_struct.Struct `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Context) Reset() { *m = Context{} }
|
||||
func (m *Context) String() string { return proto.CompactTextString(m) }
|
||||
func (*Context) ProtoMessage() {}
|
||||
func (*Context) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{0}
|
||||
}
|
||||
|
||||
func (m *Context) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Context.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Context) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Context.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Context) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Context.Merge(m, src)
|
||||
}
|
||||
func (m *Context) XXX_Size() int {
|
||||
return xxx_messageInfo_Context.Size(m)
|
||||
}
|
||||
func (m *Context) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Context.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Context proto.InternalMessageInfo
|
||||
|
||||
func (m *Context) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Context) GetLifespanCount() int32 {
|
||||
if m != nil {
|
||||
return m.LifespanCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Context) GetParameters() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Parameters
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
|
||||
type ListContextsRequest struct {
|
||||
// Required. The session to list all contexts from.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
// default 'draft' environment. If `User ID` is not specified, we assume
|
||||
// default '-' user.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 100 and at most 1000.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) Reset() { *m = ListContextsRequest{} }
|
||||
func (m *ListContextsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListContextsRequest) ProtoMessage() {}
|
||||
func (*ListContextsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListContextsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListContextsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListContextsRequest.Size(m)
|
||||
}
|
||||
func (m *ListContextsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListContextsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListContextsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListContextsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListContextsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The response message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
|
||||
type ListContextsResponse struct {
|
||||
// The list of contexts. There will be a maximum number of items
|
||||
// returned based on the page_size field in the request.
|
||||
Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) Reset() { *m = ListContextsResponse{} }
|
||||
func (m *ListContextsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListContextsResponse) ProtoMessage() {}
|
||||
func (*ListContextsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListContextsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListContextsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListContextsResponse.Size(m)
|
||||
}
|
||||
func (m *ListContextsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListContextsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListContextsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListContextsResponse) GetContexts() []*Context {
|
||||
if m != nil {
|
||||
return m.Contexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListContextsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
|
||||
type GetContextRequest struct {
|
||||
// Required. The name of the context. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
// not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
// specified, we assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetContextRequest) Reset() { *m = GetContextRequest{} }
|
||||
func (m *GetContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetContextRequest) ProtoMessage() {}
|
||||
func (*GetContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetContextRequest.Size(m)
|
||||
}
|
||||
func (m *GetContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetContextRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
|
||||
type CreateContextRequest struct {
|
||||
// Required. The session to create a context for.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
// default 'draft' environment. If `User ID` is not specified, we assume
|
||||
// default '-' user.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The context to create.
|
||||
Context *Context `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) Reset() { *m = CreateContextRequest{} }
|
||||
func (m *CreateContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateContextRequest) ProtoMessage() {}
|
||||
func (*CreateContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateContextRequest.Size(m)
|
||||
}
|
||||
func (m *CreateContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateContextRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateContextRequest) GetContext() *Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.UpdateContext][google.cloud.dialogflow.v2beta1.Contexts.UpdateContext].
|
||||
type UpdateContextRequest struct {
|
||||
// Required. The context to update.
|
||||
Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
||||
// Optional. The mask to control which fields get updated.
|
||||
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) Reset() { *m = UpdateContextRequest{} }
|
||||
func (m *UpdateContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateContextRequest) ProtoMessage() {}
|
||||
func (*UpdateContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{5}
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateContextRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateContextRequest) GetContext() *Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
|
||||
type DeleteContextRequest struct {
|
||||
// Required. The name of the context to delete. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
||||
// or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
||||
// not specified, we assume default 'draft' environment. If `User ID` is not
|
||||
// specified, we assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteContextRequest) Reset() { *m = DeleteContextRequest{} }
|
||||
func (m *DeleteContextRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteContextRequest) ProtoMessage() {}
|
||||
func (*DeleteContextRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{6}
|
||||
}
|
||||
|
||||
func (m *DeleteContextRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteContextRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteContextRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteContextRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteContextRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteContextRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteContextRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteContextRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteContextRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
|
||||
type DeleteAllContextsRequest struct {
|
||||
// Required. The name of the session to delete all contexts from. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
||||
// ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
||||
// ID>`. If `Environment ID` is not specified we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteAllContextsRequest) Reset() { *m = DeleteAllContextsRequest{} }
|
||||
func (m *DeleteAllContextsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteAllContextsRequest) ProtoMessage() {}
|
||||
func (*DeleteAllContextsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ff2c900db64d4fc9, []int{7}
|
||||
}
|
||||
|
||||
func (m *DeleteAllContextsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteAllContextsRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteAllContextsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteAllContextsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteAllContextsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Context)(nil), "google.cloud.dialogflow.v2beta1.Context")
|
||||
proto.RegisterType((*ListContextsRequest)(nil), "google.cloud.dialogflow.v2beta1.ListContextsRequest")
|
||||
proto.RegisterType((*ListContextsResponse)(nil), "google.cloud.dialogflow.v2beta1.ListContextsResponse")
|
||||
proto.RegisterType((*GetContextRequest)(nil), "google.cloud.dialogflow.v2beta1.GetContextRequest")
|
||||
proto.RegisterType((*CreateContextRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateContextRequest")
|
||||
proto.RegisterType((*UpdateContextRequest)(nil), "google.cloud.dialogflow.v2beta1.UpdateContextRequest")
|
||||
proto.RegisterType((*DeleteContextRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteContextRequest")
|
||||
proto.RegisterType((*DeleteAllContextsRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteAllContextsRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// ContextsClient is the client API for Contexts service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type ContextsClient interface {
|
||||
// Returns the list of all contexts in the specified session.
|
||||
ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error)
|
||||
// Retrieves the specified context.
|
||||
GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Creates a context.
|
||||
CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Updates the specified context.
|
||||
UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error)
|
||||
// Deletes the specified context.
|
||||
DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
// Deletes all active contexts in the specified session.
|
||||
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type contextsClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewContextsClient(cc *grpc.ClientConn) ContextsClient {
|
||||
return &contextsClient{cc}
|
||||
}
|
||||
|
||||
func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error) {
|
||||
out := new(ListContextsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/GetContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/UpdateContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) DeleteContext(ctx context.Context, in *DeleteContextRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *contextsClient) DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteAllContexts", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ContextsServer is the server API for Contexts service.
|
||||
type ContextsServer interface {
|
||||
// Returns the list of all contexts in the specified session.
|
||||
ListContexts(context.Context, *ListContextsRequest) (*ListContextsResponse, error)
|
||||
// Retrieves the specified context.
|
||||
GetContext(context.Context, *GetContextRequest) (*Context, error)
|
||||
// Creates a context.
|
||||
CreateContext(context.Context, *CreateContextRequest) (*Context, error)
|
||||
// Updates the specified context.
|
||||
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
|
||||
// Deletes the specified context.
|
||||
DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error)
|
||||
// Deletes all active contexts in the specified session.
|
||||
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
|
||||
s.RegisterService(&_Contexts_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Contexts_ListContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListContextsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).ListContexts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).ListContexts(ctx, req.(*ListContextsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_GetContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).GetContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/GetContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).GetContext(ctx, req.(*GetContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_CreateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).CreateContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).CreateContext(ctx, req.(*CreateContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_UpdateContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).UpdateContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/UpdateContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).UpdateContext(ctx, req.(*UpdateContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_DeleteContext_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteContextRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).DeleteContext(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/DeleteContext",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).DeleteContext(ctx, req.(*DeleteContextRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Contexts_DeleteAllContexts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteAllContextsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContextsServer).DeleteAllContexts(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Contexts/DeleteAllContexts",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContextsServer).DeleteAllContexts(ctx, req.(*DeleteAllContextsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _Contexts_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2beta1.Contexts",
|
||||
HandlerType: (*ContextsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListContexts",
|
||||
Handler: _Contexts_ListContexts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetContext",
|
||||
Handler: _Contexts_GetContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateContext",
|
||||
Handler: _Contexts_CreateContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateContext",
|
||||
Handler: _Contexts_UpdateContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteContext",
|
||||
Handler: _Contexts_DeleteContext_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteAllContexts",
|
||||
Handler: _Contexts_DeleteAllContexts_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/context.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/context.proto", fileDescriptor_ff2c900db64d4fc9)
|
||||
}
|
||||
|
||||
var fileDescriptor_ff2c900db64d4fc9 = []byte{
|
||||
// 807 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6b, 0xdb, 0x48,
|
||||
0x14, 0x66, 0x94, 0xdd, 0xfc, 0x98, 0xc4, 0xbb, 0x64, 0xd6, 0x64, 0x8d, 0x93, 0x25, 0x46, 0xcb,
|
||||
0xee, 0x1a, 0xc3, 0x4a, 0xac, 0xf6, 0x17, 0xbb, 0x61, 0x17, 0x1a, 0xbb, 0x09, 0x85, 0x86, 0x06,
|
||||
0xa7, 0x29, 0x25, 0x17, 0x77, 0x62, 0x3f, 0x0b, 0x35, 0xf2, 0x8c, 0xaa, 0x19, 0xa7, 0x69, 0x4a,
|
||||
0x2e, 0xa5, 0x97, 0x5e, 0x4a, 0xa1, 0x94, 0x1e, 0x7a, 0x0b, 0xf4, 0x92,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f2, 0x37, 0xc6, 0x1e, 0xf5, 0x69, 0x07, 0x24,
|
||||
0xf8, 0xa2, 0x30, 0x51, 0x42, 0xe5, 0x59, 0xeb, 0x7b, 0x43, 0xc9, 0x8e, 0x0f, 0x36, 0xb6, 0xc2,
|
||||
0x83, 0xeb, 0x7d, 0x50, 0xdd, 0xc1, 0xdf, 0x5d, 0x75, 0x84, 0x54, 0x14, 0x44, 0x1d, 0xee, 0x74,
|
||||
0x41, 0x48, 0xb2, 0x80, 0x27, 0x3d, 0xea, 0x03, 0x93, 0x8a, 0x8c, 0x7a, 0x23, 0x8b, 0x78, 0xc6,
|
||||
0xa3, 0x36, 0x34, 0x84, 0x73, 0x08, 0x8a, 0xc9, 0x74, 0xb0, 0xb0, 0xe5, 0x1c, 0x02, 0xf9, 0x21,
|
||||
0x20, 0x61, 0x43, 0x43, 0xf2, 0x3d, 0x60, 0x21, 0x89, 0x99, 0x7a, 0x08, 0xbf, 0x1e, 0x2c, 0xe8,
|
||||
0x0f, 0x11, 0xce, 0x0f, 0x9e, 0x25, 0x3c, 0xce, 0x04, 0x90, 0x1a, 0x9e, 0x56, 0xf7, 0x25, 0x0a,
|
||||
0xa8, 0x34, 0x51, 0x9e, 0xb5, 0xca, 0xc6, 0x88, 0x1b, 0x33, 0x54, 0x92, 0x7a, 0x2f, 0x92, 0xfc,
|
||||
0x8c, 0xbf, 0x65, 0x70, 0x20, 0x1b, 0x7d, 0x14, 0xb4, 0x90, 0x42, 0x2e, 0x58, 0xde, 0xec, 0xd1,
|
||||
0xf8, 0x05, 0xcf, 0xaf, 0x43, 0x4c, 0x22, 0xd6, 0x9b, 0x52, 0x7a, 0xdd, 0xc7, 0xf9, 0xaa, 0x0f,
|
||||
0x54, 0xc2, 0x29, 0xec, 0x59, 0xb5, 0x59, 0xc5, 0x53, 0x8a, 0x4c, 0x78, 0x70, 0x16, 0x15, 0x71,
|
||||
0xa0, 0xfe, 0x1c, 0xe1, 0xfc, 0xb6, 0xd7, 0x1a, 0x3e, 0xb4, 0x2f, 0x39, 0x3a, 0x67, 0x72, 0xb2,
|
||||
0x82, 0x67, 0xbb, 0x61, 0xee, 0xd0, 0x9d, 0x8a, 0x64, 0x71, 0xc8, 0x25, 0x6b, 0x81, 0x81, 0x37,
|
||||
0xa8, 0xd8, 0xab, 0xe3, 0x08, 0x1e, 0x3c, 0xeb, 0x15, 0x9c, 0xaf, 0x81, 0x0b, 0x43, 0xc4, 0xd2,
|
||||
0x2a, 0x67, 0xe1, 0x42, 0x84, 0xbd, 0xe4, 0xba, 0x63, 0x3a, 0xcb, 0x7a, 0x33, 0x87, 0xa7, 0x63,
|
||||
0x2c, 0x79, 0xac, 0xe1, 0xb9, 0x7e, 0xab, 0x90, 0x3f, 0x46, 0xaa, 0x4d, 0x71, 0x71, 0xf1, 0xcf,
|
||||
0x8c, 0x51, 0x91, 0x1f, 0xf5, 0x27, 0xe8, 0xc1, 0xdb, 0x77, 0x4f, 0xb5, 0x47, 0x88, 0xfc, 0xd5,
|
||||
0x1b, 0x28, 0xf7, 0x23, 0x9a, 0xff, 0x79, 0x3e, 0xbf, 0x0d, 0x4d, 0x29, 0xcc, 0x8a, 0x49, 0x6d,
|
||||
0x60, 0xd2, 0x14, 0x20, 0x44, 0x30, 0x2b, 0xcc, 0xca, 0x51, 0x3c, 0x75, 0xc4, 0xce, 0x35, 0xb2,
|
||||
0x31, 0x3a, 0x12, 0xd8, 0xbe, 0xe3, 0x73, 0xd6, 0x01, 0x16, 0x2e, 0x76, 0x05, 0xf8, 0xc1, 0x6f,
|
||||
0x5a, 0x42, 0xf2, 0x09, 0x61, 0x9c, 0xb8, 0x96, 0x58, 0x23, 0x85, 0x0d, 0x59, 0xbc, 0x38, 0xb6,
|
||||
0x61, 0xd2, 0xf5, 0x07, 0x17, 0xfb, 0x25, 0xf5, 0x3d, 0xae, 0x66, 0xe5, 0x68, 0x50, 0x7f, 0x7a,
|
||||
0xe4, 0x48, 0xf5, 0xfd, 0x09, 0xc9, 0x33, 0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xda, 0xda, 0x89, 0xb6, 0xbc, 0x1e, 0xe5, 0xac, 0x86, 0x24, 0x6a, 0x09,
|
||||
0x89, 0x1b, 0x51, 0xd0, 0xee, 0x64, 0x98, 0xff, 0xf7, 0xcf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x48,
|
||||
0x77, 0xb8, 0xb5, 0xd6, 0x0a, 0x00, 0x00,
|
||||
}
|
843
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/document.pb.go
generated
vendored
Normal file
843
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/document.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,843 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/document.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
_ "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The knowledge type of document content.
|
||||
type Document_KnowledgeType int32
|
||||
|
||||
const (
|
||||
// The type is unspecified or arbitrary.
|
||||
Document_KNOWLEDGE_TYPE_UNSPECIFIED Document_KnowledgeType = 0
|
||||
// The document content contains question and answer pairs as either HTML or
|
||||
// CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats
|
||||
// may fail to be parsed.
|
||||
//
|
||||
// CSV must have questions in the first column and answers in the second,
|
||||
// with no header. Because of this explicit format, they are always parsed
|
||||
// accurately.
|
||||
Document_FAQ Document_KnowledgeType = 1
|
||||
// Documents for which unstructured text is extracted and used for
|
||||
// question answering.
|
||||
Document_EXTRACTIVE_QA Document_KnowledgeType = 2
|
||||
)
|
||||
|
||||
var Document_KnowledgeType_name = map[int32]string{
|
||||
0: "KNOWLEDGE_TYPE_UNSPECIFIED",
|
||||
1: "FAQ",
|
||||
2: "EXTRACTIVE_QA",
|
||||
}
|
||||
|
||||
var Document_KnowledgeType_value = map[string]int32{
|
||||
"KNOWLEDGE_TYPE_UNSPECIFIED": 0,
|
||||
"FAQ": 1,
|
||||
"EXTRACTIVE_QA": 2,
|
||||
}
|
||||
|
||||
func (x Document_KnowledgeType) String() string {
|
||||
return proto.EnumName(Document_KnowledgeType_name, int32(x))
|
||||
}
|
||||
|
||||
func (Document_KnowledgeType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{0, 0}
|
||||
}
|
||||
|
||||
// States of the operation.
|
||||
type KnowledgeOperationMetadata_State int32
|
||||
|
||||
const (
|
||||
// State unspecified.
|
||||
KnowledgeOperationMetadata_STATE_UNSPECIFIED KnowledgeOperationMetadata_State = 0
|
||||
// The operation has been created.
|
||||
KnowledgeOperationMetadata_PENDING KnowledgeOperationMetadata_State = 1
|
||||
// The operation is currently running.
|
||||
KnowledgeOperationMetadata_RUNNING KnowledgeOperationMetadata_State = 2
|
||||
// The operation is done, either cancelled or completed.
|
||||
KnowledgeOperationMetadata_DONE KnowledgeOperationMetadata_State = 3
|
||||
)
|
||||
|
||||
var KnowledgeOperationMetadata_State_name = map[int32]string{
|
||||
0: "STATE_UNSPECIFIED",
|
||||
1: "PENDING",
|
||||
2: "RUNNING",
|
||||
3: "DONE",
|
||||
}
|
||||
|
||||
var KnowledgeOperationMetadata_State_value = map[string]int32{
|
||||
"STATE_UNSPECIFIED": 0,
|
||||
"PENDING": 1,
|
||||
"RUNNING": 2,
|
||||
"DONE": 3,
|
||||
}
|
||||
|
||||
func (x KnowledgeOperationMetadata_State) String() string {
|
||||
return proto.EnumName(KnowledgeOperationMetadata_State_name, int32(x))
|
||||
}
|
||||
|
||||
func (KnowledgeOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{6, 0}
|
||||
}
|
||||
|
||||
// A document resource.
|
||||
type Document struct {
|
||||
// The document resource name.
|
||||
// The name must be empty when creating a document.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
|
||||
// ID>/documents/<Document ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Required. The display name of the document. The name must be 1024 bytes or
|
||||
// less; otherwise, the creation request fails.
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
// Required. The MIME type of this document.
|
||||
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
||||
// Required. The knowledge type of document content.
|
||||
KnowledgeTypes []Document_KnowledgeType `protobuf:"varint,4,rep,packed,name=knowledge_types,json=knowledgeTypes,proto3,enum=google.cloud.dialogflow.v2beta1.Document_KnowledgeType" json:"knowledge_types,omitempty"`
|
||||
// Required. The source of this document.
|
||||
//
|
||||
// Types that are valid to be assigned to Source:
|
||||
// *Document_ContentUri
|
||||
// *Document_Content
|
||||
Source isDocument_Source `protobuf_oneof:"source"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Document) Reset() { *m = Document{} }
|
||||
func (m *Document) String() string { return proto.CompactTextString(m) }
|
||||
func (*Document) ProtoMessage() {}
|
||||
func (*Document) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{0}
|
||||
}
|
||||
|
||||
func (m *Document) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Document.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Document) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Document.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *Document) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Document.Merge(m, src)
|
||||
}
|
||||
func (m *Document) XXX_Size() int {
|
||||
return xxx_messageInfo_Document.Size(m)
|
||||
}
|
||||
func (m *Document) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Document.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Document proto.InternalMessageInfo
|
||||
|
||||
func (m *Document) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Document) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Document) GetMimeType() string {
|
||||
if m != nil {
|
||||
return m.MimeType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Document) GetKnowledgeTypes() []Document_KnowledgeType {
|
||||
if m != nil {
|
||||
return m.KnowledgeTypes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isDocument_Source interface {
|
||||
isDocument_Source()
|
||||
}
|
||||
|
||||
type Document_ContentUri struct {
|
||||
ContentUri string `protobuf:"bytes,5,opt,name=content_uri,json=contentUri,proto3,oneof"`
|
||||
}
|
||||
|
||||
type Document_Content struct {
|
||||
Content string `protobuf:"bytes,6,opt,name=content,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Document_ContentUri) isDocument_Source() {}
|
||||
|
||||
func (*Document_Content) isDocument_Source() {}
|
||||
|
||||
func (m *Document) GetSource() isDocument_Source {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Document) GetContentUri() string {
|
||||
if x, ok := m.GetSource().(*Document_ContentUri); ok {
|
||||
return x.ContentUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Document) GetContent() string {
|
||||
if x, ok := m.GetSource().(*Document_Content); ok {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Document) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Document_OneofMarshaler, _Document_OneofUnmarshaler, _Document_OneofSizer, []interface{}{
|
||||
(*Document_ContentUri)(nil),
|
||||
(*Document_Content)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Document_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Document)
|
||||
// source
|
||||
switch x := m.Source.(type) {
|
||||
case *Document_ContentUri:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.ContentUri)
|
||||
case *Document_Content:
|
||||
b.EncodeVarint(6<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Content)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Document.Source has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Document_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Document)
|
||||
switch tag {
|
||||
case 5: // source.content_uri
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Source = &Document_ContentUri{x}
|
||||
return true, err
|
||||
case 6: // source.content
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Source = &Document_Content{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Document_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Document)
|
||||
// source
|
||||
switch x := m.Source.(type) {
|
||||
case *Document_ContentUri:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.ContentUri)))
|
||||
n += len(x.ContentUri)
|
||||
case *Document_Content:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.Content)))
|
||||
n += len(x.Content)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
|
||||
type ListDocumentsRequest struct {
|
||||
// Required. The knowledge base to list all documents for.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 10 and at most 100.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListDocumentsRequest) Reset() { *m = ListDocumentsRequest{} }
|
||||
func (m *ListDocumentsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDocumentsRequest) ProtoMessage() {}
|
||||
func (*ListDocumentsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListDocumentsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListDocumentsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListDocumentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListDocumentsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListDocumentsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDocumentsRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListDocumentsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListDocumentsRequest.Size(m)
|
||||
}
|
||||
func (m *ListDocumentsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListDocumentsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListDocumentsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListDocumentsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListDocumentsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListDocumentsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments].
|
||||
type ListDocumentsResponse struct {
|
||||
// The list of documents.
|
||||
Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListDocumentsResponse) Reset() { *m = ListDocumentsResponse{} }
|
||||
func (m *ListDocumentsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListDocumentsResponse) ProtoMessage() {}
|
||||
func (*ListDocumentsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListDocumentsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListDocumentsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListDocumentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListDocumentsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListDocumentsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDocumentsResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListDocumentsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListDocumentsResponse.Size(m)
|
||||
}
|
||||
func (m *ListDocumentsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListDocumentsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListDocumentsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListDocumentsResponse) GetDocuments() []*Document {
|
||||
if m != nil {
|
||||
return m.Documents
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListDocumentsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument].
|
||||
type GetDocumentRequest struct {
|
||||
// Required. The name of the document to retrieve.
|
||||
// Format `projects/<Project ID>/knowledgeBases/<Knowledge Base
|
||||
// ID>/documents/<Document ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetDocumentRequest) Reset() { *m = GetDocumentRequest{} }
|
||||
func (m *GetDocumentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetDocumentRequest) ProtoMessage() {}
|
||||
func (*GetDocumentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetDocumentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetDocumentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetDocumentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetDocumentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetDocumentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetDocumentRequest.Size(m)
|
||||
}
|
||||
func (m *GetDocumentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetDocumentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetDocumentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetDocumentRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument].
|
||||
type CreateDocumentRequest struct {
|
||||
// Required. The knoweldge base to create a document for.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The document to create.
|
||||
Document *Document `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateDocumentRequest) Reset() { *m = CreateDocumentRequest{} }
|
||||
func (m *CreateDocumentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateDocumentRequest) ProtoMessage() {}
|
||||
func (*CreateDocumentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateDocumentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateDocumentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateDocumentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateDocumentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateDocumentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateDocumentRequest.Size(m)
|
||||
}
|
||||
func (m *CreateDocumentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateDocumentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateDocumentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateDocumentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateDocumentRequest) GetDocument() *Document {
|
||||
if m != nil {
|
||||
return m.Document
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument].
|
||||
type DeleteDocumentRequest struct {
|
||||
// The name of the document to delete.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
|
||||
// ID>/documents/<Document ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteDocumentRequest) Reset() { *m = DeleteDocumentRequest{} }
|
||||
func (m *DeleteDocumentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteDocumentRequest) ProtoMessage() {}
|
||||
func (*DeleteDocumentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{5}
|
||||
}
|
||||
|
||||
func (m *DeleteDocumentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteDocumentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteDocumentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteDocumentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteDocumentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteDocumentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteDocumentRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteDocumentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteDocumentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteDocumentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteDocumentRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Metadata in google::longrunning::Operation for Knowledge operations.
|
||||
type KnowledgeOperationMetadata struct {
|
||||
// Required. The current state of this operation.
|
||||
State KnowledgeOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State" json:"state,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KnowledgeOperationMetadata) Reset() { *m = KnowledgeOperationMetadata{} }
|
||||
func (m *KnowledgeOperationMetadata) String() string { return proto.CompactTextString(m) }
|
||||
func (*KnowledgeOperationMetadata) ProtoMessage() {}
|
||||
func (*KnowledgeOperationMetadata) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_2d3494516d3ece6c, []int{6}
|
||||
}
|
||||
|
||||
func (m *KnowledgeOperationMetadata) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KnowledgeOperationMetadata.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KnowledgeOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KnowledgeOperationMetadata.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *KnowledgeOperationMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KnowledgeOperationMetadata.Merge(m, src)
|
||||
}
|
||||
func (m *KnowledgeOperationMetadata) XXX_Size() int {
|
||||
return xxx_messageInfo_KnowledgeOperationMetadata.Size(m)
|
||||
}
|
||||
func (m *KnowledgeOperationMetadata) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KnowledgeOperationMetadata.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_KnowledgeOperationMetadata proto.InternalMessageInfo
|
||||
|
||||
func (m *KnowledgeOperationMetadata) GetState() KnowledgeOperationMetadata_State {
|
||||
if m != nil {
|
||||
return m.State
|
||||
}
|
||||
return KnowledgeOperationMetadata_STATE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Document_KnowledgeType", Document_KnowledgeType_name, Document_KnowledgeType_value)
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State", KnowledgeOperationMetadata_State_name, KnowledgeOperationMetadata_State_value)
|
||||
proto.RegisterType((*Document)(nil), "google.cloud.dialogflow.v2beta1.Document")
|
||||
proto.RegisterType((*ListDocumentsRequest)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsRequest")
|
||||
proto.RegisterType((*ListDocumentsResponse)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsResponse")
|
||||
proto.RegisterType((*GetDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.GetDocumentRequest")
|
||||
proto.RegisterType((*CreateDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateDocumentRequest")
|
||||
proto.RegisterType((*DeleteDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteDocumentRequest")
|
||||
proto.RegisterType((*KnowledgeOperationMetadata)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// DocumentsClient is the client API for Documents service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type DocumentsClient interface {
|
||||
// Returns the list of all documents of the knowledge base.
|
||||
ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error)
|
||||
// Retrieves the specified document.
|
||||
GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error)
|
||||
// Creates a new document.
|
||||
//
|
||||
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Deletes the specified document.
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
type documentsClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewDocumentsClient(cc *grpc.ClientConn) DocumentsClient {
|
||||
return &documentsClient{cc}
|
||||
}
|
||||
|
||||
func (c *documentsClient) ListDocuments(ctx context.Context, in *ListDocumentsRequest, opts ...grpc.CallOption) (*ListDocumentsResponse, error) {
|
||||
out := new(ListDocumentsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/ListDocuments", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *documentsClient) GetDocument(ctx context.Context, in *GetDocumentRequest, opts ...grpc.CallOption) (*Document, error) {
|
||||
out := new(Document)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/GetDocument", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *documentsClient) CreateDocument(ctx context.Context, in *CreateDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/CreateDocument", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *documentsClient) DeleteDocument(ctx context.Context, in *DeleteDocumentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Documents/DeleteDocument", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// DocumentsServer is the server API for Documents service.
|
||||
type DocumentsServer interface {
|
||||
// Returns the list of all documents of the knowledge base.
|
||||
ListDocuments(context.Context, *ListDocumentsRequest) (*ListDocumentsResponse, error)
|
||||
// Retrieves the specified document.
|
||||
GetDocument(context.Context, *GetDocumentRequest) (*Document, error)
|
||||
// Creates a new document.
|
||||
//
|
||||
// Operation <response: [Document][google.cloud.dialogflow.v2beta1.Document],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
CreateDocument(context.Context, *CreateDocumentRequest) (*longrunning.Operation, error)
|
||||
// Deletes the specified document.
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata]>
|
||||
DeleteDocument(context.Context, *DeleteDocumentRequest) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
func RegisterDocumentsServer(s *grpc.Server, srv DocumentsServer) {
|
||||
s.RegisterService(&_Documents_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _Documents_ListDocuments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListDocumentsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DocumentsServer).ListDocuments(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/ListDocuments",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DocumentsServer).ListDocuments(ctx, req.(*ListDocumentsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Documents_GetDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetDocumentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DocumentsServer).GetDocument(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/GetDocument",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DocumentsServer).GetDocument(ctx, req.(*GetDocumentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Documents_CreateDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateDocumentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DocumentsServer).CreateDocument(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/CreateDocument",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DocumentsServer).CreateDocument(ctx, req.(*CreateDocumentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Documents_DeleteDocument_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteDocumentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(DocumentsServer).DeleteDocument(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.Documents/DeleteDocument",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DocumentsServer).DeleteDocument(ctx, req.(*DeleteDocumentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _Documents_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2beta1.Documents",
|
||||
HandlerType: (*DocumentsServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListDocuments",
|
||||
Handler: _Documents_ListDocuments_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetDocument",
|
||||
Handler: _Documents_GetDocument_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateDocument",
|
||||
Handler: _Documents_CreateDocument_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteDocument",
|
||||
Handler: _Documents_DeleteDocument_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/document.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/document.proto", fileDescriptor_2d3494516d3ece6c)
|
||||
}
|
||||
|
||||
var fileDescriptor_2d3494516d3ece6c = []byte{
|
||||
// 885 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xcd, 0x6e, 0x1b, 0x55,
|
||||
0x14, 0xee, 0x1d, 0xe7, 0xc7, 0x39, 0xc6, 0xae, 0x7b, 0x45, 0x90, 0xe5, 0x52, 0x9a, 0x4e, 0x25,
|
||||
0x14, 0x8c, 0x34, 0x23, 0x5c, 0x41, 0x25, 0x50, 0x85, 0xec, 0xcc, 0xc4, 0x58, 0x29, 0x13, 0x77,
|
||||
0xe2, 0xb4, 0x90, 0xcd, 0x70, 0x63, 0xdf, 0x8c, 0xa6, 0x19, 0xdf, 0x3b, 0xcc, 0xbd, 0x6e, 0x49,
|
||||
0x50, 0x25, 0x60, 0xc5, 0x8a, 0x0d, 0xe2, 0x05, 0x58, 0xc2, 0x13, 0xf0, 0x1c, 0x48, 0x3c, 0x01,
|
||||
0x2b, 0x56, 0xb0, 0x63, 0x07, 0x9a, 0x5f, 0xc7, 0xae, 0x13, 0xa7, 0xed, 0xce, 0xe7, 0xef, 0x9b,
|
||||
0xef, 0x9c, 0xf3, 0x9d, 0xf1, 0x80, 0xe6, 0x72, 0xee, 0xfa, 0x54, 0x1f, 0xf8, 0x7c, 0x3c, 0xd4,
|
||||
0x87, 0x1e, 0xf1, 0xb9, 0x7b, 0xe4, 0xf3, 0xa7, 0xfa, 0x93, 0xe6, 0x21, 0x95, 0xe4, 0x3d, 0x7d,
|
||||
0xc8, 0x07, 0xe3, 0x11, 0x65, 0x52, 0x0b, 0x42, 0x2e, 0x39, 0xbe, 0x99, 0xe4, 0x6b, 0x71, 0xbe,
|
||||
0x36, 0xc9, 0xd7, 0xd2, 0xfc, 0xfa, 0x9b, 0x29, 0x20, 0x09, 0x3c, 0x9d, 0x30, 0xc6, 0x25, 0x91,
|
||||
0x1e, 0x67, 0x22, 0x29, 0xaf, 0xdf, 0x4e, 0xa3, 0x3e, 0x67, 0x6e, 0x38, 0x66, 0xcc, 0x63, 0xae,
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e7, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xc6, 0x50,
|
||||
0x98, 0x58, 0x09, 0x00, 0x00,
|
||||
}
|
1634
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go
generated
vendored
Normal file
1634
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
3798
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/intent.pb.go
generated
vendored
Normal file
3798
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/intent.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
575
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/knowledge_base.pb.go
generated
vendored
Normal file
575
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/knowledge_base.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,575 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
_ "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Represents knowledge base resource.
|
||||
type KnowledgeBase struct {
|
||||
// The knowledge base resource name.
|
||||
// The name must be empty when creating a knowledge base.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Required. The display name of the knowledge base. The name must be 1024
|
||||
// bytes or less; otherwise, the creation request fails.
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *KnowledgeBase) Reset() { *m = KnowledgeBase{} }
|
||||
func (m *KnowledgeBase) String() string { return proto.CompactTextString(m) }
|
||||
func (*KnowledgeBase) ProtoMessage() {}
|
||||
func (*KnowledgeBase) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{0}
|
||||
}
|
||||
|
||||
func (m *KnowledgeBase) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_KnowledgeBase.Unmarshal(m, b)
|
||||
}
|
||||
func (m *KnowledgeBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_KnowledgeBase.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *KnowledgeBase) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KnowledgeBase.Merge(m, src)
|
||||
}
|
||||
func (m *KnowledgeBase) XXX_Size() int {
|
||||
return xxx_messageInfo_KnowledgeBase.Size(m)
|
||||
}
|
||||
func (m *KnowledgeBase) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_KnowledgeBase.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_KnowledgeBase proto.InternalMessageInfo
|
||||
|
||||
func (m *KnowledgeBase) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *KnowledgeBase) GetDisplayName() string {
|
||||
if m != nil {
|
||||
return m.DisplayName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
|
||||
type ListKnowledgeBasesRequest struct {
|
||||
// Required. The agent to list of knowledge bases for.
|
||||
// Format: `projects/<Project ID>/agent`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 10 and at most 100.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesRequest) Reset() { *m = ListKnowledgeBasesRequest{} }
|
||||
func (m *ListKnowledgeBasesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListKnowledgeBasesRequest) ProtoMessage() {}
|
||||
func (*ListKnowledgeBasesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListKnowledgeBasesRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListKnowledgeBasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListKnowledgeBasesRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListKnowledgeBasesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListKnowledgeBasesRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListKnowledgeBasesRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListKnowledgeBasesRequest.Size(m)
|
||||
}
|
||||
func (m *ListKnowledgeBasesRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListKnowledgeBasesRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListKnowledgeBasesRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListKnowledgeBasesRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases].
|
||||
type ListKnowledgeBasesResponse struct {
|
||||
// The list of knowledge bases.
|
||||
KnowledgeBases []*KnowledgeBase `protobuf:"bytes,1,rep,name=knowledge_bases,json=knowledgeBases,proto3" json:"knowledge_bases,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesResponse) Reset() { *m = ListKnowledgeBasesResponse{} }
|
||||
func (m *ListKnowledgeBasesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListKnowledgeBasesResponse) ProtoMessage() {}
|
||||
func (*ListKnowledgeBasesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListKnowledgeBasesResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListKnowledgeBasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListKnowledgeBasesResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListKnowledgeBasesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListKnowledgeBasesResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListKnowledgeBasesResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListKnowledgeBasesResponse.Size(m)
|
||||
}
|
||||
func (m *ListKnowledgeBasesResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListKnowledgeBasesResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListKnowledgeBasesResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListKnowledgeBasesResponse) GetKnowledgeBases() []*KnowledgeBase {
|
||||
if m != nil {
|
||||
return m.KnowledgeBases
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListKnowledgeBasesResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [KnowledgeBase.GetDocument][].
|
||||
type GetKnowledgeBaseRequest struct {
|
||||
// Required. The name of the knowledge base to retrieve.
|
||||
// Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetKnowledgeBaseRequest) Reset() { *m = GetKnowledgeBaseRequest{} }
|
||||
func (m *GetKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetKnowledgeBaseRequest) ProtoMessage() {}
|
||||
func (*GetKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetKnowledgeBaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetKnowledgeBaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetKnowledgeBaseRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetKnowledgeBaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetKnowledgeBaseRequest.Size(m)
|
||||
}
|
||||
func (m *GetKnowledgeBaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetKnowledgeBaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetKnowledgeBaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetKnowledgeBaseRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase].
|
||||
type CreateKnowledgeBaseRequest struct {
|
||||
// Required. The agent to create a knowledge base for.
|
||||
// Format: `projects/<Project ID>/agent`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The knowledge base to create.
|
||||
KnowledgeBase *KnowledgeBase `protobuf:"bytes,2,opt,name=knowledge_base,json=knowledgeBase,proto3" json:"knowledge_base,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateKnowledgeBaseRequest) Reset() { *m = CreateKnowledgeBaseRequest{} }
|
||||
func (m *CreateKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateKnowledgeBaseRequest) ProtoMessage() {}
|
||||
func (*CreateKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateKnowledgeBaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateKnowledgeBaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateKnowledgeBaseRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateKnowledgeBaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateKnowledgeBaseRequest.Size(m)
|
||||
}
|
||||
func (m *CreateKnowledgeBaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateKnowledgeBaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateKnowledgeBaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateKnowledgeBaseRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateKnowledgeBaseRequest) GetKnowledgeBase() *KnowledgeBase {
|
||||
if m != nil {
|
||||
return m.KnowledgeBase
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase].
|
||||
type DeleteKnowledgeBaseRequest struct {
|
||||
// Required. The name of the knowledge base to delete.
|
||||
// Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Optional. Force deletes the knowledge base. When set to true, any documents
|
||||
// in the knowledge base are also deleted.
|
||||
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteKnowledgeBaseRequest) Reset() { *m = DeleteKnowledgeBaseRequest{} }
|
||||
func (m *DeleteKnowledgeBaseRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteKnowledgeBaseRequest) ProtoMessage() {}
|
||||
func (*DeleteKnowledgeBaseRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_9cdbbb049e0ce16a, []int{5}
|
||||
}
|
||||
|
||||
func (m *DeleteKnowledgeBaseRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteKnowledgeBaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteKnowledgeBaseRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteKnowledgeBaseRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteKnowledgeBaseRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteKnowledgeBaseRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteKnowledgeBaseRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteKnowledgeBaseRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteKnowledgeBaseRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DeleteKnowledgeBaseRequest) GetForce() bool {
|
||||
if m != nil {
|
||||
return m.Force
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*KnowledgeBase)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeBase")
|
||||
proto.RegisterType((*ListKnowledgeBasesRequest)(nil), "google.cloud.dialogflow.v2beta1.ListKnowledgeBasesRequest")
|
||||
proto.RegisterType((*ListKnowledgeBasesResponse)(nil), "google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse")
|
||||
proto.RegisterType((*GetKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.GetKnowledgeBaseRequest")
|
||||
proto.RegisterType((*CreateKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest")
|
||||
proto.RegisterType((*DeleteKnowledgeBaseRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteKnowledgeBaseRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// KnowledgeBasesClient is the client API for KnowledgeBases service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type KnowledgeBasesClient interface {
|
||||
// Returns the list of all knowledge bases of the specified agent.
|
||||
ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error)
|
||||
// Retrieves the specified knowledge base.
|
||||
GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
|
||||
// Creates a knowledge base.
|
||||
CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error)
|
||||
// Deletes the specified knowledge base.
|
||||
DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type knowledgeBasesClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewKnowledgeBasesClient(cc *grpc.ClientConn) KnowledgeBasesClient {
|
||||
return &knowledgeBasesClient{cc}
|
||||
}
|
||||
|
||||
func (c *knowledgeBasesClient) ListKnowledgeBases(ctx context.Context, in *ListKnowledgeBasesRequest, opts ...grpc.CallOption) (*ListKnowledgeBasesResponse, error) {
|
||||
out := new(ListKnowledgeBasesResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/ListKnowledgeBases", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *knowledgeBasesClient) GetKnowledgeBase(ctx context.Context, in *GetKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) {
|
||||
out := new(KnowledgeBase)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/GetKnowledgeBase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *knowledgeBasesClient) CreateKnowledgeBase(ctx context.Context, in *CreateKnowledgeBaseRequest, opts ...grpc.CallOption) (*KnowledgeBase, error) {
|
||||
out := new(KnowledgeBase)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/CreateKnowledgeBase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *knowledgeBasesClient) DeleteKnowledgeBase(ctx context.Context, in *DeleteKnowledgeBaseRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.KnowledgeBases/DeleteKnowledgeBase", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// KnowledgeBasesServer is the server API for KnowledgeBases service.
|
||||
type KnowledgeBasesServer interface {
|
||||
// Returns the list of all knowledge bases of the specified agent.
|
||||
ListKnowledgeBases(context.Context, *ListKnowledgeBasesRequest) (*ListKnowledgeBasesResponse, error)
|
||||
// Retrieves the specified knowledge base.
|
||||
GetKnowledgeBase(context.Context, *GetKnowledgeBaseRequest) (*KnowledgeBase, error)
|
||||
// Creates a knowledge base.
|
||||
CreateKnowledgeBase(context.Context, *CreateKnowledgeBaseRequest) (*KnowledgeBase, error)
|
||||
// Deletes the specified knowledge base.
|
||||
DeleteKnowledgeBase(context.Context, *DeleteKnowledgeBaseRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterKnowledgeBasesServer(s *grpc.Server, srv KnowledgeBasesServer) {
|
||||
s.RegisterService(&_KnowledgeBases_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _KnowledgeBases_ListKnowledgeBases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListKnowledgeBasesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(KnowledgeBasesServer).ListKnowledgeBases(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/ListKnowledgeBases",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(KnowledgeBasesServer).ListKnowledgeBases(ctx, req.(*ListKnowledgeBasesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _KnowledgeBases_GetKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetKnowledgeBaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(KnowledgeBasesServer).GetKnowledgeBase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/GetKnowledgeBase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(KnowledgeBasesServer).GetKnowledgeBase(ctx, req.(*GetKnowledgeBaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _KnowledgeBases_CreateKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateKnowledgeBaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(KnowledgeBasesServer).CreateKnowledgeBase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/CreateKnowledgeBase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(KnowledgeBasesServer).CreateKnowledgeBase(ctx, req.(*CreateKnowledgeBaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _KnowledgeBases_DeleteKnowledgeBase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteKnowledgeBaseRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(KnowledgeBasesServer).DeleteKnowledgeBase(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.KnowledgeBases/DeleteKnowledgeBase",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(KnowledgeBasesServer).DeleteKnowledgeBase(ctx, req.(*DeleteKnowledgeBaseRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _KnowledgeBases_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2beta1.KnowledgeBases",
|
||||
HandlerType: (*KnowledgeBasesServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListKnowledgeBases",
|
||||
Handler: _KnowledgeBases_ListKnowledgeBases_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetKnowledgeBase",
|
||||
Handler: _KnowledgeBases_GetKnowledgeBase_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateKnowledgeBase",
|
||||
Handler: _KnowledgeBases_CreateKnowledgeBase_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteKnowledgeBase",
|
||||
Handler: _KnowledgeBases_DeleteKnowledgeBase_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/knowledge_base.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/knowledge_base.proto", fileDescriptor_9cdbbb049e0ce16a)
|
||||
}
|
||||
|
||||
var fileDescriptor_9cdbbb049e0ce16a = []byte{
|
||||
// 639 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x4f, 0xd4, 0x40,
|
||||
0x14, 0xce, 0x2c, 0x82, 0x30, 0x08, 0x98, 0xc1, 0x20, 0x16, 0x0d, 0x58, 0x13, 0x43, 0xd6, 0xd8,
|
||||
0x09, 0xe0, 0xc1, 0x40, 0xbc, 0x00, 0x42, 0x8c, 0xc6, 0x90, 0xf5, 0x57, 0xc2, 0x65, 0x33, 0xbb,
|
||||
0xfb, 0xb6, 0xd6, 0xed, 0xce, 0xd4, 0xce, 0x20, 0x82, 0xe1, 0xc2, 0xcd, 0x98, 0x78, 0xf1, 0xec,
|
||||
0xc5, 0xa3, 0x27, 0xff, 0x17, 0xbd, 0x79, 0x35, 0xfe, 0x0b, 0x7a, 0x34, 0x9d, 0xe9, 0x02, 0x53,
|
||||
0x5a, 0xd7, 0x7a, 0xdb, 0x79, 0x6f, 0xbe, 0x37, 0xdf, 0xf7, 0xbe, 0xf7, 0xba, 0xf8, 0x96, 0x2f,
|
||||
0x84, 0x1f, 0x02, 0x6d, 0x86, 0x62, 0xa7, 0x45, 0x5b, 0x01, 0x0b, 0x85, 0xdf, 0x0e, 0xc5, 0x2e,
|
||||
0x7d, 0xb5, 0xd8, 0x00, 0xc5, 0x16, 0x68, 0x87, 0x8b, 0xdd, 0x10, 0x5a, 0x3e, 0xd4, 0x1b, 0x4c,
|
||||
0x82, 0x17, 0xc5, 0x42, 0x09, 0x32, 0x6b, 0x50, 0x9e, 0x46, 0x79, 0xc7, 0x28, 0x2f, 0x45, 0x39,
|
||||
0x97, 0xd3, 0xb2, 0x2c, 0x0a, 0x28, 0xe3, 0x5c, 0x28, 0xa6, 0x02, 0xc1, 0xa5, 0x81, 0x3b, 0x33,
|
||||
0x69, 0x56, 0x9f, 0x1a, 0x3b, 0x6d, 0x0a, 0xdd, 0x48, 0xed, 0xa5, 0xc9, 0xb9, 0x6c, 0xb2, 0x1d,
|
||||
0x40, 0xd8, 0xaa, 0x77, 0x99, 0xec, 0x98, 0x1b, 0xee, 0x06, 0x1e, 0xbb, 0xdf, 0x63, 0xb5, 0xca,
|
||||
0x24, 0x10, 0x82, 0xcf, 0x70, 0xd6, 0x85, 0x69, 0x34, 0x87, 0xe6, 0x47, 0x6a, 0xfa, 0x37, 0xb9,
|
||||
0x8a, 0xcf, 0xb5, 0x02, 0x19, 0x85, 0x6c, 0xaf, 0xae, 0x73, 0x15, 0x9d, 0x1b, 0x4d, 0x63, 0x0f,
|
||||
0x59, 0x17, 0x5c, 0x81, 0x2f, 0x3d, 0x08, 0xa4, 0xb2, 0x6a, 0xc9, 0x1a, 0xbc, 0xdc, 0x01, 0xa9,
|
||||
0xc8, 0x14, 0x1e, 0x8a, 0x58, 0x0c, 0x5c, 0xa5, 0x55, 0xd3, 0x13, 0x99, 0xc1, 0x23, 0x11, 0xf3,
|
||||
0xa1, 0x2e, 0x83, 0x7d, 0x53, 0x74, 0xb0, 0x36, 0x9c, 0x04, 0x1e, 0x05, 0xfb, 0x40, 0xae, 0x60,
|
||||
0xac, 0x93, 0x4a, 0x74, 0x80, 0x4f, 0x0f, 0x68, 0xa0, 0xbe, 0xfe, 0x38, 0x09, 0xb8, 0x1f, 0x11,
|
||||
0x76, 0xf2, 0x5e, 0x94, 0x91, 0xe0, 0x12, 0xc8,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x29, 0x72, 0x4a, 0x5a, 0x9c, 0x27, 0x34, 0x71, 0xee, 0x24, 0x6f,
|
||||
0x9b, 0x30, 0xad, 0x1e, 0xd8, 0x42, 0xb3, 0xd7, 0xb5, 0xcc, 0xd3, 0x20, 0xf2, 0xbe, 0x82, 0x27,
|
||||
0x73, 0x66, 0x99, 0xf4, 0xf7, 0xa9, 0x78, 0x03, 0x4a, 0xcb, 0x7d, 0x8b, 0xb4, 0xde, 0x43, 0xe4,
|
||||
0x96, 0x71, 0x76, 0x39, 0xb3, 0x4e, 0xdb, 0x6b, 0x6e, 0x79, 0xa7, 0xb3, 0x45, 0xc8, 0x37, 0x84,
|
||||
0x27, 0x73, 0xf6, 0xe9, 0x1f, 0x1a, 0x52, 0xbc, 0x85, 0xce, 0x54, 0x0f, 0xdc, 0xfb, 0xb8, 0x7b,
|
||||
0x77, 0x93, 0x2f, 0x7f, 0xcf, 0xe7, 0x6a, 0x39, 0x9f, 0xab, 0xe5, 0x7d, 0x5e, 0xfd, 0x82, 0xf0,
|
||||
0xb5, 0xa6, 0xe8, 0xf6, 0x13, 0xb1, 0x4a, 0x2c, 0xfe, 0x5b, 0x09, 0xdd, 0x2d, 0xb4, 0x7d, 0x2f,
|
||||
0x85, 0xf9, 0x22, 0x64, 0xdc, 0xf7, 0x44, 0xec, 0x53, 0x1f, 0xb8, 0x16, 0x43, 0x4d, 0x8a, 0x45,
|
||||
0x81, 0x2c, 0xfc, 0x33, 0x5d, 0x39, 0x0e, 0xfd, 0x46, 0xe8, 0x53, 0xa5, 0xb2, 0xbe, 0xf1, 0xb9,
|
||||
0x32, 0xbb, 0x69, 0x6a, 0xae, 0x69, 0x2a, 0xeb, 0xc7, 0x54, 0x9e, 0x1a, 0x50, 0x63, 0x48, 0xd7,
|
||||
0x5f, 0xfa, 0x13, 0x00, 0x00, 0xff, 0xff, 0xad, 0x8b, 0xb2, 0x9f, 0xab, 0x07, 0x00, 0x00,
|
||||
}
|
2055
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session.pb.go
generated
vendored
Normal file
2055
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
747
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go
generated
vendored
Normal file
747
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,747 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/session_entity_type.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
empty "github.com/golang/protobuf/ptypes/empty"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
math "math"
|
||||
)
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The types of modifications for a session entity type.
|
||||
type SessionEntityType_EntityOverrideMode int32
|
||||
|
||||
const (
|
||||
// Not specified. This value should be never used.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED SessionEntityType_EntityOverrideMode = 0
|
||||
// The collection of session entities overrides the collection of entities
|
||||
// in the corresponding developer entity type.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_OVERRIDE SessionEntityType_EntityOverrideMode = 1
|
||||
// The collection of session entities extends the collection of entities in
|
||||
// the corresponding developer entity type.
|
||||
// Calls to `ListSessionEntityTypes`, `GetSessionEntityType`,
|
||||
// `CreateSessionEntityType` and `UpdateSessionEntityType` return the full
|
||||
// collection of entities from the developer entity type in the agent's
|
||||
// default language and the session entity type.
|
||||
SessionEntityType_ENTITY_OVERRIDE_MODE_SUPPLEMENT SessionEntityType_EntityOverrideMode = 2
|
||||
)
|
||||
|
||||
var SessionEntityType_EntityOverrideMode_name = map[int32]string{
|
||||
0: "ENTITY_OVERRIDE_MODE_UNSPECIFIED",
|
||||
1: "ENTITY_OVERRIDE_MODE_OVERRIDE",
|
||||
2: "ENTITY_OVERRIDE_MODE_SUPPLEMENT",
|
||||
}
|
||||
|
||||
var SessionEntityType_EntityOverrideMode_value = map[string]int32{
|
||||
"ENTITY_OVERRIDE_MODE_UNSPECIFIED": 0,
|
||||
"ENTITY_OVERRIDE_MODE_OVERRIDE": 1,
|
||||
"ENTITY_OVERRIDE_MODE_SUPPLEMENT": 2,
|
||||
}
|
||||
|
||||
func (x SessionEntityType_EntityOverrideMode) String() string {
|
||||
return proto.EnumName(SessionEntityType_EntityOverrideMode_name, int32(x))
|
||||
}
|
||||
|
||||
func (SessionEntityType_EntityOverrideMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents a session entity type.
|
||||
//
|
||||
// Extends or replaces a developer entity type at the user session level (we
|
||||
// refer to the entity types defined at the agent level as "developer entity
|
||||
// types").
|
||||
//
|
||||
// Note: session entity types apply to all queries, regardless of the language.
|
||||
type SessionEntityType struct {
|
||||
// Required. The unique identifier of this session entity type. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>`, or
|
||||
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
||||
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
||||
// If `Environment ID` is not specified, we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Required. Indicates whether the additional data should override or
|
||||
// supplement the developer entity type definition.
|
||||
EntityOverrideMode SessionEntityType_EntityOverrideMode `protobuf:"varint,2,opt,name=entity_override_mode,json=entityOverrideMode,proto3,enum=google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
|
||||
// Required. The collection of entities associated with this session entity
|
||||
// type.
|
||||
Entities []*EntityType_Entity `protobuf:"bytes,3,rep,name=entities,proto3" json:"entities,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) Reset() { *m = SessionEntityType{} }
|
||||
func (m *SessionEntityType) String() string { return proto.CompactTextString(m) }
|
||||
func (*SessionEntityType) ProtoMessage() {}
|
||||
func (*SessionEntityType) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{0}
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SessionEntityType.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SessionEntityType.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SessionEntityType.Merge(m, src)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_Size() int {
|
||||
return xxx_messageInfo_SessionEntityType.Size(m)
|
||||
}
|
||||
func (m *SessionEntityType) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SessionEntityType.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SessionEntityType proto.InternalMessageInfo
|
||||
|
||||
func (m *SessionEntityType) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) GetEntityOverrideMode() SessionEntityType_EntityOverrideMode {
|
||||
if m != nil {
|
||||
return m.EntityOverrideMode
|
||||
}
|
||||
return SessionEntityType_ENTITY_OVERRIDE_MODE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *SessionEntityType) GetEntities() []*EntityType_Entity {
|
||||
if m != nil {
|
||||
return m.Entities
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
|
||||
type ListSessionEntityTypesRequest struct {
|
||||
// Required. The session to list all session entity types from.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
// sessions/<Session ID>`.
|
||||
// If `Environment ID` is not specified, we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The maximum number of items to return in a single page. By
|
||||
// default 100 and at most 1000.
|
||||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Optional. The next_page_token value returned from a previous list request.
|
||||
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) Reset() { *m = ListSessionEntityTypesRequest{} }
|
||||
func (m *ListSessionEntityTypesRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListSessionEntityTypesRequest) ProtoMessage() {}
|
||||
func (*ListSessionEntityTypesRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{1}
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(m, src)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListSessionEntityTypesRequest.Size(m)
|
||||
}
|
||||
func (m *ListSessionEntityTypesRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListSessionEntityTypesRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
|
||||
type ListSessionEntityTypesResponse struct {
|
||||
// The list of session entity types. There will be a maximum number of items
|
||||
// returned based on the page_size field in the request.
|
||||
SessionEntityTypes []*SessionEntityType `protobuf:"bytes,1,rep,name=session_entity_types,json=sessionEntityTypes,proto3" json:"session_entity_types,omitempty"`
|
||||
// Token to retrieve the next page of results, or empty if there are no
|
||||
// more results in the list.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) Reset() { *m = ListSessionEntityTypesResponse{} }
|
||||
func (m *ListSessionEntityTypesResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListSessionEntityTypesResponse) ProtoMessage() {}
|
||||
func (*ListSessionEntityTypesResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{2}
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(m, src)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListSessionEntityTypesResponse.Size(m)
|
||||
}
|
||||
func (m *ListSessionEntityTypesResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListSessionEntityTypesResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) GetSessionEntityTypes() []*SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityTypes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListSessionEntityTypesResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType].
|
||||
type GetSessionEntityTypeRequest struct {
|
||||
// Required. The name of the session entity type. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) Reset() { *m = GetSessionEntityTypeRequest{} }
|
||||
func (m *GetSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*GetSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{3}
|
||||
}
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *GetSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetSessionEntityTypeRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
|
||||
type CreateSessionEntityTypeRequest struct {
|
||||
// Required. The session to create a session entity type for.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
||||
// sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
// default 'draft' environment. If `User ID` is not specified, we assume
|
||||
// default '-' user.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The session entity type to create.
|
||||
SessionEntityType *SessionEntityType `protobuf:"bytes,2,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) Reset() { *m = CreateSessionEntityTypeRequest{} }
|
||||
func (m *CreateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*CreateSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*CreateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{4}
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_CreateSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *CreateSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CreateSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
|
||||
type UpdateSessionEntityTypeRequest struct {
|
||||
// Required. The entity type to update. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType,proto3" json:"session_entity_type,omitempty"`
|
||||
// Optional. The mask to control which fields get updated.
|
||||
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) Reset() { *m = UpdateSessionEntityTypeRequest{} }
|
||||
func (m *UpdateSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*UpdateSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{5}
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityType {
|
||||
if m != nil {
|
||||
return m.SessionEntityType
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType].
|
||||
type DeleteSessionEntityTypeRequest struct {
|
||||
// Required. The name of the entity type to delete. Format:
|
||||
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
||||
// Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
||||
// ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
||||
// Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
||||
// environment. If `User ID` is not specified, we assume default '-' user.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) Reset() { *m = DeleteSessionEntityTypeRequest{} }
|
||||
func (m *DeleteSessionEntityTypeRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*DeleteSessionEntityTypeRequest) ProtoMessage() {}
|
||||
func (*DeleteSessionEntityTypeRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_ea3dc39aca82329f, []int{6}
|
||||
}
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(m, src)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_DeleteSessionEntityTypeRequest.Size(m)
|
||||
}
|
||||
func (m *DeleteSessionEntityTypeRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_DeleteSessionEntityTypeRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *DeleteSessionEntityTypeRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value)
|
||||
proto.RegisterType((*SessionEntityType)(nil), "google.cloud.dialogflow.v2beta1.SessionEntityType")
|
||||
proto.RegisterType((*ListSessionEntityTypesRequest)(nil), "google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest")
|
||||
proto.RegisterType((*ListSessionEntityTypesResponse)(nil), "google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse")
|
||||
proto.RegisterType((*GetSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest")
|
||||
proto.RegisterType((*CreateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest")
|
||||
proto.RegisterType((*UpdateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest")
|
||||
proto.RegisterType((*DeleteSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// SessionEntityTypesClient is the client API for SessionEntityTypes service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type SessionEntityTypesClient interface {
|
||||
// Returns the list of all session entity types in the specified session.
|
||||
ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error)
|
||||
// Retrieves the specified session entity type.
|
||||
GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Creates a session entity type.
|
||||
CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Updates the specified session entity type.
|
||||
UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error)
|
||||
// Deletes the specified session entity type.
|
||||
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type sessionEntityTypesClient struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewSessionEntityTypesClient(cc *grpc.ClientConn) SessionEntityTypesClient {
|
||||
return &sessionEntityTypesClient{cc}
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error) {
|
||||
out := new(ListSessionEntityTypesResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/UpdateSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *sessionEntityTypesClient) DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
||||
out := new(empty.Empty)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/DeleteSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// SessionEntityTypesServer is the server API for SessionEntityTypes service.
|
||||
type SessionEntityTypesServer interface {
|
||||
// Returns the list of all session entity types in the specified session.
|
||||
ListSessionEntityTypes(context.Context, *ListSessionEntityTypesRequest) (*ListSessionEntityTypesResponse, error)
|
||||
// Retrieves the specified session entity type.
|
||||
GetSessionEntityType(context.Context, *GetSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Creates a session entity type.
|
||||
CreateSessionEntityType(context.Context, *CreateSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Updates the specified session entity type.
|
||||
UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Deletes the specified session entity type.
|
||||
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer) {
|
||||
s.RegisterService(&_SessionEntityTypes_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_ListSessionEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListSessionEntityTypesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).ListSessionEntityTypes(ctx, req.(*ListSessionEntityTypesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_GetSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).GetSessionEntityType(ctx, req.(*GetSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_CreateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).CreateSessionEntityType(ctx, req.(*CreateSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_UpdateSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/UpdateSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).UpdateSessionEntityType(ctx, req.(*UpdateSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _SessionEntityTypes_DeleteSessionEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteSessionEntityTypeRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/DeleteSessionEntityType",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(SessionEntityTypesServer).DeleteSessionEntityType(ctx, req.(*DeleteSessionEntityTypeRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _SessionEntityTypes_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.cloud.dialogflow.v2beta1.SessionEntityTypes",
|
||||
HandlerType: (*SessionEntityTypesServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListSessionEntityTypes",
|
||||
Handler: _SessionEntityTypes_ListSessionEntityTypes_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetSessionEntityType",
|
||||
Handler: _SessionEntityTypes_GetSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateSessionEntityType",
|
||||
Handler: _SessionEntityTypes_CreateSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateSessionEntityType",
|
||||
Handler: _SessionEntityTypes_UpdateSessionEntityType_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteSessionEntityType",
|
||||
Handler: _SessionEntityTypes_DeleteSessionEntityType_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/session_entity_type.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/session_entity_type.proto", fileDescriptor_ea3dc39aca82329f)
|
||||
}
|
||||
|
||||
var fileDescriptor_ea3dc39aca82329f = []byte{
|
||||
// 870 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
|
||||
0x14, 0x66, 0x5c, 0x58, 0xed, 0xce, 0xf2, 0xa3, 0x3b, 0x54, 0x69, 0x94, 0xd2, 0x34, 0x78, 0x11,
|
||||
0xaa, 0x72, 0xb0, 0xd5, 0xc0, 0x65, 0x59, 0x7e, 0x48, 0xdb, 0xb8, 0xab, 0x48, 0x9b, 0x34, 0x72,
|
||||
0xd2, 0x4a, 0xf4, 0x62, 0x39, 0xf5, 0xab, 0x65, 0x9a, 0xcc, 0x18, 0xcf, 0xa4, 0x25, 0xad, 0x7a,
|
||||
0xe9, 0x95, 0x03, 0x07, 0x24, 0x4e, 0x5c, 0xe0, 0xc8, 0x81, 0x03, 0xe2, 0xc2, 0x0d, 0xce, 0x9c,
|
||||
0x10, 0x7f, 0x01, 0x12, 0x07, 0xfe, 0x01, 0x24, 0xb8, 0x21, 0x8f, 0x9d, 0xa6, 0xd4, 0xbf, 0xda,
|
||||
0x6c, 0x4f, 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0x15, 0xf1, 0x7e, 0x52, 0x4a, 0x50, 0xee, 0x86,
|
||||
0x0c, 0xbb, 0x68, 0xaf, 0x15, 0x43, 0x5d, 0x36, 0xb4, 0xa9, 0xab, 0xb1, 0xc0, 0xd5, 0x5d, 0xa0,
|
||||
0x92, 0xbf, 0x1e, 0x3d, 0xb2, 0x7d, 0x8f, 0x67, 0x7e, 0x8a, 0x3f, 0x9e, 0x85, 0xfe, 0x41, 0xe8,
|
||||
0x5b, 0x45, 0x69, 0x6e, 0x7d, 0xa7, 0xac, 0x3d, 0x8d, 0x72, 0x6e, 0xca, 0x76, 0x9a, 0xb3, 0x76,
|
||||
0x76, 0x23, 0xd0, 0xe0, 0x8e, 0xcc, 0xff, 0xce, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xc9,
|
||||
0xd4, 0x00, 0x63, 0x0c, 0x00, 0x00,
|
||||
}
|
356
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/webhook.pb.go
generated
vendored
Normal file
356
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/webhook.pb.go
generated
vendored
Normal file
|
@ -0,0 +1,356 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/webhook.proto
|
||||
|
||||
package dialogflow
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_struct "github.com/golang/protobuf/ptypes/struct"
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// The request message for a webhook call.
|
||||
type WebhookRequest struct {
|
||||
// The unique identifier of detectIntent request session.
|
||||
// Can be used to identify end-user inside webhook implementation.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
||||
Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
|
||||
// The unique identifier of the response. Contains the same value as
|
||||
// `[Streaming]DetectIntentResponse.response_id`.
|
||||
ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
|
||||
// The result of the conversational query or event processing. Contains the
|
||||
// same value as `[Streaming]DetectIntentResponse.query_result`.
|
||||
QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
|
||||
// Alternative query results from KnowledgeService.
|
||||
AlternativeQueryResults []*QueryResult `protobuf:"bytes,5,rep,name=alternative_query_results,json=alternativeQueryResults,proto3" json:"alternative_query_results,omitempty"`
|
||||
// Optional. The contents of the original request that was passed to
|
||||
// `[Streaming]DetectIntent` call.
|
||||
OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) Reset() { *m = WebhookRequest{} }
|
||||
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebhookRequest) ProtoMessage() {}
|
||||
func (*WebhookRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e44190e355d0ffbc, []int{0}
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookRequest.Merge(m, src)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_WebhookRequest.Size(m)
|
||||
}
|
||||
func (m *WebhookRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *WebhookRequest) GetSession() string {
|
||||
if m != nil {
|
||||
return m.Session
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetResponseId() string {
|
||||
if m != nil {
|
||||
return m.ResponseId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetQueryResult() *QueryResult {
|
||||
if m != nil {
|
||||
return m.QueryResult
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetAlternativeQueryResults() []*QueryResult {
|
||||
if m != nil {
|
||||
return m.AlternativeQueryResults
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
|
||||
if m != nil {
|
||||
return m.OriginalDetectIntentRequest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The response message for a webhook call.
|
||||
type WebhookResponse struct {
|
||||
// Optional. The text to be shown on the screen. This value is passed directly
|
||||
// to `QueryResult.fulfillment_text`.
|
||||
FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
|
||||
// Optional. The collection of rich messages to present to the user. This
|
||||
// value is passed directly to `QueryResult.fulfillment_messages`.
|
||||
FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
|
||||
// Optional. This value is passed directly to `QueryResult.webhook_source`.
|
||||
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
|
||||
// Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
||||
// See the related `fulfillment_messages[i].payload field`, which may be used
|
||||
// as an alternative to this field.
|
||||
//
|
||||
// This field can be used for Actions on Google responses.
|
||||
// It should have a structure similar to the JSON message shown here. For more
|
||||
// information, see
|
||||
// [Actions on Google Webhook
|
||||
// Format](https://developers.google.com/actions/dialogflow/webhook)
|
||||
// <pre>{
|
||||
// "google": {
|
||||
// "expectUserResponse": true,
|
||||
// "richResponse": {
|
||||
// "items": [
|
||||
// {
|
||||
// "simpleResponse": {
|
||||
// "textToSpeech": "this is a simple response"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
// }</pre>
|
||||
Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
// Optional. The collection of output contexts. This value is passed directly
|
||||
// to `QueryResult.output_contexts`.
|
||||
OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
|
||||
// Optional. Makes the platform immediately invoke another `DetectIntent` call
|
||||
// internally with the specified event as input.
|
||||
FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
|
||||
// Optional. Indicates that this intent ends an interaction. Some integrations
|
||||
// (e.g., Actions on Google or Dialogflow phone gateway) use this information
|
||||
// to close interaction with an end user. Default is false.
|
||||
EndInteraction bool `protobuf:"varint,8,opt,name=end_interaction,json=endInteraction,proto3" json:"end_interaction,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) Reset() { *m = WebhookResponse{} }
|
||||
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebhookResponse) ProtoMessage() {}
|
||||
func (*WebhookResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e44190e355d0ffbc, []int{1}
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookResponse.Merge(m, src)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_WebhookResponse.Size(m)
|
||||
}
|
||||
func (m *WebhookResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *WebhookResponse) GetFulfillmentText() string {
|
||||
if m != nil {
|
||||
return m.FulfillmentText
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message {
|
||||
if m != nil {
|
||||
return m.FulfillmentMessages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetSource() string {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetOutputContexts() []*Context {
|
||||
if m != nil {
|
||||
return m.OutputContexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
|
||||
if m != nil {
|
||||
return m.FollowupEventInput
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetEndInteraction() bool {
|
||||
if m != nil {
|
||||
return m.EndInteraction
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Represents the contents of the original request that was passed to
|
||||
// the `[Streaming]DetectIntent` call.
|
||||
type OriginalDetectIntentRequest struct {
|
||||
// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
|
||||
// by Dialogflow-owned servers.
|
||||
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
|
||||
// Optional. The version of the protocol used for this request.
|
||||
// This field is AoG-specific.
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// Optional. This field is set to the value of `QueryParameters.payload` field
|
||||
// passed in the request.
|
||||
//
|
||||
// This field is used for the telephony gateway. It should have a
|
||||
// structure similar to this JSON message:
|
||||
// <pre>{
|
||||
// "telephony": {
|
||||
// "caller_id": "+18558363987"
|
||||
// }
|
||||
// }</pre>
|
||||
// Note: The caller ID field (`caller_id`) will be in
|
||||
// [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
|
||||
// for Enterprise Edition and not for Standard Edition agents. When the
|
||||
// telephony gateway is used with a standard tier agent the `caller_id` field
|
||||
// above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
|
||||
Payload *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) Reset() { *m = OriginalDetectIntentRequest{} }
|
||||
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*OriginalDetectIntentRequest) ProtoMessage() {}
|
||||
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_e44190e355d0ffbc, []int{2}
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.Merge(m, src)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
|
||||
}
|
||||
func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetSource() string {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*WebhookRequest)(nil), "google.cloud.dialogflow.v2beta1.WebhookRequest")
|
||||
proto.RegisterType((*WebhookResponse)(nil), "google.cloud.dialogflow.v2beta1.WebhookResponse")
|
||||
proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor_e44190e355d0ffbc)
|
||||
}
|
||||
|
||||
var fileDescriptor_e44190e355d0ffbc = []byte{
|
||||
// 603 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd4, 0x30,
|
||||
0x10, 0xc6, 0x95, 0x5d, 0xe8, 0x1f, 0x6f, 0xd5, 0x45, 0xa6, 0xa2, 0xa1, 0x45, 0x74, 0x55, 0x0e,
|
||||
0x2c, 0xa2, 0x24, 0x6a, 0x39, 0xc2, 0xa9, 0x2d, 0xa0, 0x3d, 0xa0, 0xb6, 0x01, 0x81, 0x84, 0x84,
|
||||
0x22, 0x6f, 0x32, 0x9b, 0x46, 0xb8, 0x9e, 0x34, 0xb6, 0x77, 0xdb, 0x23, 0x1c, 0x79, 0x0c, 0x8e,
|
||||
0x7d, 0x10, 0x9e, 0x89, 0x23, 0x8a, 0xed, 0xb0, 0xe1, 0x50, 0x52, 0x8e, 0x33, 0x9e, 0xef, 0xe7,
|
||||
0xf1, 0x97, 0x99, 0x90, 0x67, 0x19, 0x62, 0xc6, 0x21, 0x4c, 0x38, 0xea, 0x34, 0x4c, 0x73, 0xc6,
|
||||
0x31, 0x9b, 0x70, 0x9c, 0x85, 0xd3, 0xbd, 0x31, 0x28, 0xb6, 0x1b, 0xce, 0x60, 0x7c, 0x8a, 0xf8,
|
||||
0x25, 0x28, 0x4a, 0x54, 0x48, 0xb7, 0x6c, 0x79, 0x60, 0xca, 0x83, 0x79, 0x79, 0xe0, 0xca, 0x37,
|
||||
0x1e, 0x38, 0x1e, 0x2b, 0xf2, 0x90, 0x09, 0x81, 0x8a, 0xa9, 0x1c, 0x85, 0xb4, 0xf2, 0x8d, 0xd6,
|
||||
0xdb, 0x12, 0x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, 0xfc, 0xc7,
|
||||
0x14, 0x34, 0x5c, 0xf4, 0xfe, 0x72, 0xd1, 0x27, 0x8b, 0x53, 0x28, 0xcd, 0xea, 0x75, 0xec, 0xea,
|
||||
0xb9, 0xb0, 0xe9, 0x6f, 0xf7, 0x66, 0xfe, 0xee, 0x5f, 0x79, 0xe4, 0x51, 0x82, 0x67, 0x6d, 0x8f,
|
||||
0xde, 0x5f, 0x71, 0x23, 0x77, 0x5c, 0x81, 0x8e, 0xbd, 0x4f, 0x23, 0x27, 0xc8, 0x90, 0x33, 0x91,
|
||||
0x05, 0x58, 0x66, 0x61, 0x06, 0xc2, 0x5c, 0x13, 0xda, 0x23, 0x56, 0xe4, 0xf2, 0xda, 0xdf, 0xcf,
|
||||
0x8b, 0x79, 0xea, 0x97, 0xe7, 0xfd, 0xe8, 0x74, 0x0e, 0x5f, 0x5f, 0x75, 0xb6, 0xde, 0x58, 0xe6,
|
||||
0x81, 0x69, 0xe2, 0x70, 0xde, 0xc4, 0x07, 0x2b, 0x1a, 0x2f, 0x18, 0xfe, 0xf3, 0xdf, 0x01, 0x00,
|
||||
0x00, 0xff, 0xff, 0x42, 0x28, 0x28, 0xef, 0xa8, 0x05, 0x00, 0x00,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue