mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
1264
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/agent.pb.go
generated
vendored
Normal file
1264
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
738
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/context.pb.go
generated
vendored
Normal file
738
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/context.pb.go
generated
vendored
Normal file
@ -0,0 +1,738 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/context.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
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_context_81c56ca1e96cd61f, []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 (dst *Context) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Context.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *ListContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsRequest.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *ListContextsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsResponse.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *GetContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetContextRequest.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *CreateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateContextRequest.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *UpdateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateContextRequest.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *DeleteContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteContextRequest.Merge(dst, 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_context_81c56ca1e96cd61f, []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 (dst *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.Merge(dst, 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_context_81c56ca1e96cd61f)
|
||||
}
|
||||
|
||||
var fileDescriptor_context_81c56ca1e96cd61f = []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, 0xf7, 0x78, 0xbb, 0x41, 0x1a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
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,
|
||||
}
|
1613
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/entity_type.pb.go
generated
vendored
Normal file
1613
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
3354
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/intent.pb.go
generated
vendored
Normal file
3354
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
1506
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session.pb.go
generated
vendored
Normal file
1506
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
710
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go
generated
vendored
Normal file
710
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go
generated
vendored
Normal file
@ -0,0 +1,710 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/session_entity_type.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
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_session_entity_type_f014f04ccf41506d, []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_session_entity_type_f014f04ccf41506d, []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 (dst *SessionEntityType) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SessionEntityType.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(dst, 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_session_entity_type_f014f04ccf41506d, []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 (dst *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(dst, 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.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")
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value)
|
||||
}
|
||||
|
||||
// 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_session_entity_type_f014f04ccf41506d)
|
||||
}
|
||||
|
||||
var fileDescriptor_session_entity_type_f014f04ccf41506d = []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, 0xf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 0x2a, 0x1e, 0xe1, 0xa7,
|
||||
0x0e, 0xb0, 0xfc, 0x50, 0x71, 0x68, 0x76, 0xac, 0x7c, 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, 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00,
|
||||
}
|
304
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/webhook.pb.go
generated
vendored
Normal file
304
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2/webhook.pb.go
generated
vendored
Normal file
@ -0,0 +1,304 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2/webhook.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// 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_webhook_d01678681840ffff, []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 (dst *WebhookRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookRequest.Merge(dst, 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_webhook_d01678681840ffff, []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 (dst *WebhookResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookResponse.Merge(dst, 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_webhook_d01678681840ffff, []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 (dst *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.Merge(dst, 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_webhook_d01678681840ffff)
|
||||
}
|
||||
|
||||
var fileDescriptor_webhook_d01678681840ffff = []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,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, 0xed, 0x47, 0xb5, 0x0e, 0xbf, 0x42,
|
||||
0x7d, 0x50, 0xb2, 0x50, 0x32, 0xb6, 0x5f, 0xa2, 0xf0, 0xae, 0x6b, 0x93, 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,
|
||||
}
|
533
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/agent.pb.go
generated
vendored
533
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/agent.pb.go
generated
vendored
@ -1,93 +1,16 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/agent.proto
|
||||
|
||||
/*
|
||||
Package dialogflow is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/cloud/dialogflow/v2beta1/agent.proto
|
||||
google/cloud/dialogflow/v2beta1/context.proto
|
||||
google/cloud/dialogflow/v2beta1/entity_type.proto
|
||||
google/cloud/dialogflow/v2beta1/intent.proto
|
||||
google/cloud/dialogflow/v2beta1/session.proto
|
||||
google/cloud/dialogflow/v2beta1/session_entity_type.proto
|
||||
google/cloud/dialogflow/v2beta1/webhook.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Agent
|
||||
GetAgentRequest
|
||||
SearchAgentsRequest
|
||||
SearchAgentsResponse
|
||||
TrainAgentRequest
|
||||
ExportAgentRequest
|
||||
ExportAgentResponse
|
||||
ImportAgentRequest
|
||||
RestoreAgentRequest
|
||||
Context
|
||||
ListContextsRequest
|
||||
ListContextsResponse
|
||||
GetContextRequest
|
||||
CreateContextRequest
|
||||
UpdateContextRequest
|
||||
DeleteContextRequest
|
||||
DeleteAllContextsRequest
|
||||
EntityType
|
||||
ListEntityTypesRequest
|
||||
ListEntityTypesResponse
|
||||
GetEntityTypeRequest
|
||||
CreateEntityTypeRequest
|
||||
UpdateEntityTypeRequest
|
||||
DeleteEntityTypeRequest
|
||||
BatchUpdateEntityTypesRequest
|
||||
BatchUpdateEntityTypesResponse
|
||||
BatchDeleteEntityTypesRequest
|
||||
BatchCreateEntitiesRequest
|
||||
BatchUpdateEntitiesRequest
|
||||
BatchDeleteEntitiesRequest
|
||||
EntityTypeBatch
|
||||
Intent
|
||||
ListIntentsRequest
|
||||
ListIntentsResponse
|
||||
GetIntentRequest
|
||||
CreateIntentRequest
|
||||
UpdateIntentRequest
|
||||
DeleteIntentRequest
|
||||
BatchUpdateIntentsRequest
|
||||
BatchUpdateIntentsResponse
|
||||
BatchDeleteIntentsRequest
|
||||
IntentBatch
|
||||
DetectIntentRequest
|
||||
DetectIntentResponse
|
||||
QueryParameters
|
||||
QueryInput
|
||||
QueryResult
|
||||
StreamingDetectIntentRequest
|
||||
StreamingDetectIntentResponse
|
||||
StreamingRecognitionResult
|
||||
InputAudioConfig
|
||||
TextInput
|
||||
EventInput
|
||||
SessionEntityType
|
||||
ListSessionEntityTypesRequest
|
||||
ListSessionEntityTypesResponse
|
||||
GetSessionEntityTypeRequest
|
||||
CreateSessionEntityTypeRequest
|
||||
UpdateSessionEntityTypeRequest
|
||||
DeleteSessionEntityTypeRequest
|
||||
WebhookRequest
|
||||
WebhookResponse
|
||||
OriginalDetectIntentRequest
|
||||
*/
|
||||
package dialogflow
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
import _ "github.com/golang/protobuf/ptypes/empty"
|
||||
import _ "google.golang.org/genproto/protobuf/field_mask"
|
||||
import _ "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
import _ "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -133,38 +56,40 @@ var Agent_MatchMode_value = map[string]int32{
|
||||
func (x Agent_MatchMode) String() string {
|
||||
return proto.EnumName(Agent_MatchMode_name, int32(x))
|
||||
}
|
||||
func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
||||
func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents a conversational agent.
|
||||
type Agent struct {
|
||||
// Required. The project of this agent.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The name of this agent.
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
|
||||
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
|
||||
// Required. The default language of the agent as a language tag. See
|
||||
// [Language Support](https://dialogflow.com/docs/reference/language) for a
|
||||
// list of the currently supported language codes.
|
||||
// This field cannot be set by the `Update` method.
|
||||
DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode" json:"default_language_code,omitempty"`
|
||||
DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"`
|
||||
// Optional. The list of all languages supported by this agent (except for the
|
||||
// `default_language_code`).
|
||||
SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes" json:"supported_language_codes,omitempty"`
|
||||
SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes,proto3" json:"supported_language_codes,omitempty"`
|
||||
// Required. The time zone of this agent from the
|
||||
// [time zone database](https://www.iana.org/time-zones), e.g.,
|
||||
// America/New_York, Europe/Paris.
|
||||
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone" json:"time_zone,omitempty"`
|
||||
TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
|
||||
// Optional. The description of this agent.
|
||||
// The maximum length is 500 characters. If exceeded, the request is rejected.
|
||||
Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"`
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Optional. The URI of the agent's avatar.
|
||||
// Avatars are used throughout API.AI console and in the self-hosted
|
||||
// Avatars are used throughout the Dialogflow console and in the self-hosted
|
||||
// [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration.
|
||||
AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri" json:"avatar_uri,omitempty"`
|
||||
AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"`
|
||||
// Optional. Determines whether this agent should log conversation queries.
|
||||
EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging" json:"enable_logging,omitempty"`
|
||||
EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`
|
||||
// Optional. Determines how intents are detected from user queries.
|
||||
MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,enum=google.cloud.dialogflow.v2beta1.Agent_MatchMode" json:"match_mode,omitempty"`
|
||||
MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,proto3,enum=google.cloud.dialogflow.v2beta1.Agent_MatchMode" json:"match_mode,omitempty"`
|
||||
// Optional. To filter out false positive results and still get variety in
|
||||
// matched natural language inputs for your agent, you can tune the machine
|
||||
// learning classification threshold. If the returned score value is less than
|
||||
@ -172,13 +97,35 @@ type Agent struct {
|
||||
// are no fallback intents defined, no intent will be triggered. The score
|
||||
// values range from 0.0 (completely uncertain) to 1.0 (completely certain).
|
||||
// If set to 0.0, the default of 0.3 is used.
|
||||
ClassificationThreshold float32 `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold" json:"classification_threshold,omitempty"`
|
||||
ClassificationThreshold float32 `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold,proto3" json:"classification_threshold,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Agent) Reset() { *m = Agent{} }
|
||||
func (m *Agent) String() string { return proto.CompactTextString(m) }
|
||||
func (*Agent) ProtoMessage() {}
|
||||
func (*Agent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Agent) Reset() { *m = Agent{} }
|
||||
func (m *Agent) String() string { return proto.CompactTextString(m) }
|
||||
func (*Agent) ProtoMessage() {}
|
||||
func (*Agent) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{0}
|
||||
}
|
||||
func (m *Agent) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Agent.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Agent.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Agent) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Agent.Merge(dst, src)
|
||||
}
|
||||
func (m *Agent) XXX_Size() int {
|
||||
return xxx_messageInfo_Agent.Size(m)
|
||||
}
|
||||
func (m *Agent) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Agent.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Agent proto.InternalMessageInfo
|
||||
|
||||
func (m *Agent) GetParent() string {
|
||||
if m != nil {
|
||||
@ -254,13 +201,35 @@ func (m *Agent) GetClassificationThreshold() float32 {
|
||||
type GetAgentRequest struct {
|
||||
// Required. The project that the agent to fetch is associated with.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
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 *GetAgentRequest) Reset() { *m = GetAgentRequest{} }
|
||||
func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAgentRequest) ProtoMessage() {}
|
||||
func (*GetAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} }
|
||||
func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetAgentRequest) ProtoMessage() {}
|
||||
func (*GetAgentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{1}
|
||||
}
|
||||
func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetAgentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GetAgentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetAgentRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *GetAgentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetAgentRequest.Size(m)
|
||||
}
|
||||
func (m *GetAgentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetAgentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetAgentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -273,18 +242,40 @@ func (m *GetAgentRequest) GetParent() string {
|
||||
type SearchAgentsRequest struct {
|
||||
// Required. The project to list agents from.
|
||||
// Format: `projects/<Project ID or '-'>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
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" json:"page_size,omitempty"`
|
||||
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" json:"page_token,omitempty"`
|
||||
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 *SearchAgentsRequest) Reset() { *m = SearchAgentsRequest{} }
|
||||
func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SearchAgentsRequest) ProtoMessage() {}
|
||||
func (*SearchAgentsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *SearchAgentsRequest) Reset() { *m = SearchAgentsRequest{} }
|
||||
func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*SearchAgentsRequest) ProtoMessage() {}
|
||||
func (*SearchAgentsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{2}
|
||||
}
|
||||
func (m *SearchAgentsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SearchAgentsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SearchAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SearchAgentsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SearchAgentsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SearchAgentsRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *SearchAgentsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_SearchAgentsRequest.Size(m)
|
||||
}
|
||||
func (m *SearchAgentsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SearchAgentsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SearchAgentsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *SearchAgentsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -311,16 +302,38 @@ func (m *SearchAgentsRequest) GetPageToken() string {
|
||||
type SearchAgentsResponse struct {
|
||||
// The list of agents. There will be a maximum number of items returned based
|
||||
// on the page_size field in the request.
|
||||
Agents []*Agent `protobuf:"bytes,1,rep,name=agents" json:"agents,omitempty"`
|
||||
Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,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" json:"next_page_token,omitempty"`
|
||||
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 *SearchAgentsResponse) Reset() { *m = SearchAgentsResponse{} }
|
||||
func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SearchAgentsResponse) ProtoMessage() {}
|
||||
func (*SearchAgentsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||
func (m *SearchAgentsResponse) Reset() { *m = SearchAgentsResponse{} }
|
||||
func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*SearchAgentsResponse) ProtoMessage() {}
|
||||
func (*SearchAgentsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{3}
|
||||
}
|
||||
func (m *SearchAgentsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SearchAgentsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SearchAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SearchAgentsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SearchAgentsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SearchAgentsResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *SearchAgentsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_SearchAgentsResponse.Size(m)
|
||||
}
|
||||
func (m *SearchAgentsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SearchAgentsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SearchAgentsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *SearchAgentsResponse) GetAgents() []*Agent {
|
||||
if m != nil {
|
||||
@ -340,13 +353,35 @@ func (m *SearchAgentsResponse) GetNextPageToken() string {
|
||||
type TrainAgentRequest struct {
|
||||
// Required. The project that the agent to train is associated with.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
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 *TrainAgentRequest) Reset() { *m = TrainAgentRequest{} }
|
||||
func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*TrainAgentRequest) ProtoMessage() {}
|
||||
func (*TrainAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
||||
func (m *TrainAgentRequest) Reset() { *m = TrainAgentRequest{} }
|
||||
func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*TrainAgentRequest) ProtoMessage() {}
|
||||
func (*TrainAgentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{4}
|
||||
}
|
||||
func (m *TrainAgentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TrainAgentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TrainAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TrainAgentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TrainAgentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TrainAgentRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *TrainAgentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_TrainAgentRequest.Size(m)
|
||||
}
|
||||
func (m *TrainAgentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TrainAgentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TrainAgentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *TrainAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -359,17 +394,41 @@ func (m *TrainAgentRequest) GetParent() string {
|
||||
type ExportAgentRequest struct {
|
||||
// Required. The project that the agent to export is associated with.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// Optional. The Google Cloud Storage URI to export the agent to.
|
||||
// Note: The URI must start with
|
||||
// "gs://". If left unspecified, the serialized agent is returned inline.
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri" json:"agent_uri,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Optional. The
|
||||
// [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
||||
// URI to export the agent to.
|
||||
// The format of this URI must be `gs://<bucket-name>/<object-name>`.
|
||||
// If left unspecified, the serialized agent is returned inline.
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3" json:"agent_uri,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ExportAgentRequest) Reset() { *m = ExportAgentRequest{} }
|
||||
func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAgentRequest) ProtoMessage() {}
|
||||
func (*ExportAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
||||
func (m *ExportAgentRequest) Reset() { *m = ExportAgentRequest{} }
|
||||
func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAgentRequest) ProtoMessage() {}
|
||||
func (*ExportAgentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{5}
|
||||
}
|
||||
func (m *ExportAgentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ExportAgentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ExportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ExportAgentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ExportAgentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportAgentRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ExportAgentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ExportAgentRequest.Size(m)
|
||||
}
|
||||
func (m *ExportAgentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ExportAgentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ExportAgentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ExportAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
@ -392,26 +451,50 @@ type ExportAgentResponse struct {
|
||||
// Types that are valid to be assigned to Agent:
|
||||
// *ExportAgentResponse_AgentUri
|
||||
// *ExportAgentResponse_AgentContent
|
||||
Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"`
|
||||
Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ExportAgentResponse) Reset() { *m = ExportAgentResponse{} }
|
||||
func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAgentResponse) ProtoMessage() {}
|
||||
func (*ExportAgentResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
||||
func (m *ExportAgentResponse) Reset() { *m = ExportAgentResponse{} }
|
||||
func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ExportAgentResponse) ProtoMessage() {}
|
||||
func (*ExportAgentResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{6}
|
||||
}
|
||||
func (m *ExportAgentResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ExportAgentResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ExportAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ExportAgentResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ExportAgentResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ExportAgentResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *ExportAgentResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ExportAgentResponse.Size(m)
|
||||
}
|
||||
func (m *ExportAgentResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ExportAgentResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ExportAgentResponse proto.InternalMessageInfo
|
||||
|
||||
type isExportAgentResponse_Agent interface {
|
||||
isExportAgentResponse_Agent()
|
||||
}
|
||||
|
||||
type ExportAgentResponse_AgentUri struct {
|
||||
AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,oneof"`
|
||||
AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ExportAgentResponse_AgentContent struct {
|
||||
AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {}
|
||||
func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {}
|
||||
|
||||
func (*ExportAgentResponse_AgentContent) isExportAgentResponse_Agent() {}
|
||||
|
||||
func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent {
|
||||
@ -487,11 +570,11 @@ func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
|
||||
// agent
|
||||
switch x := m.Agent.(type) {
|
||||
case *ExportAgentResponse_AgentUri:
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentUri)))
|
||||
n += len(x.AgentUri)
|
||||
case *ExportAgentResponse_AgentContent:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentContent)))
|
||||
n += len(x.AgentContent)
|
||||
case nil:
|
||||
@ -505,32 +588,63 @@ func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) {
|
||||
type ImportAgentRequest struct {
|
||||
// Required. The project that the agent to import is associated with.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The agent to import.
|
||||
//
|
||||
// Types that are valid to be assigned to Agent:
|
||||
// *ImportAgentRequest_AgentUri
|
||||
// *ImportAgentRequest_AgentContent
|
||||
Agent isImportAgentRequest_Agent `protobuf_oneof:"agent"`
|
||||
Agent isImportAgentRequest_Agent `protobuf_oneof:"agent"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ImportAgentRequest) Reset() { *m = ImportAgentRequest{} }
|
||||
func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ImportAgentRequest) ProtoMessage() {}
|
||||
func (*ImportAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
||||
func (m *ImportAgentRequest) Reset() { *m = ImportAgentRequest{} }
|
||||
func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ImportAgentRequest) ProtoMessage() {}
|
||||
func (*ImportAgentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{7}
|
||||
}
|
||||
func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ImportAgentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ImportAgentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ImportAgentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ImportAgentRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ImportAgentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ImportAgentRequest.Size(m)
|
||||
}
|
||||
func (m *ImportAgentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ImportAgentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ImportAgentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ImportAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isImportAgentRequest_Agent interface {
|
||||
isImportAgentRequest_Agent()
|
||||
}
|
||||
|
||||
type ImportAgentRequest_AgentUri struct {
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,oneof"`
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
|
||||
}
|
||||
|
||||
type ImportAgentRequest_AgentContent struct {
|
||||
AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {}
|
||||
func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {}
|
||||
|
||||
func (*ImportAgentRequest_AgentContent) isImportAgentRequest_Agent() {}
|
||||
|
||||
func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
|
||||
@ -540,13 +654,6 @@ func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ImportAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ImportAgentRequest) GetAgentUri() string {
|
||||
if x, ok := m.GetAgent().(*ImportAgentRequest_AgentUri); ok {
|
||||
return x.AgentUri
|
||||
@ -613,11 +720,11 @@ func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
|
||||
// agent
|
||||
switch x := m.Agent.(type) {
|
||||
case *ImportAgentRequest_AgentUri:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentUri)))
|
||||
n += len(x.AgentUri)
|
||||
case *ImportAgentRequest_AgentContent:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentContent)))
|
||||
n += len(x.AgentContent)
|
||||
case nil:
|
||||
@ -631,32 +738,63 @@ func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) {
|
||||
type RestoreAgentRequest struct {
|
||||
// Required. The project that the agent to restore is associated with.
|
||||
// Format: `projects/<Project ID>`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// Required. The agent to restore.
|
||||
//
|
||||
// Types that are valid to be assigned to Agent:
|
||||
// *RestoreAgentRequest_AgentUri
|
||||
// *RestoreAgentRequest_AgentContent
|
||||
Agent isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
|
||||
Agent isRestoreAgentRequest_Agent `protobuf_oneof:"agent"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *RestoreAgentRequest) Reset() { *m = RestoreAgentRequest{} }
|
||||
func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RestoreAgentRequest) ProtoMessage() {}
|
||||
func (*RestoreAgentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
||||
func (m *RestoreAgentRequest) Reset() { *m = RestoreAgentRequest{} }
|
||||
func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RestoreAgentRequest) ProtoMessage() {}
|
||||
func (*RestoreAgentRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_agent_d116f64d830b765d, []int{8}
|
||||
}
|
||||
func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RestoreAgentRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RestoreAgentRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RestoreAgentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RestoreAgentRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *RestoreAgentRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_RestoreAgentRequest.Size(m)
|
||||
}
|
||||
func (m *RestoreAgentRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RestoreAgentRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RestoreAgentRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *RestoreAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isRestoreAgentRequest_Agent interface {
|
||||
isRestoreAgentRequest_Agent()
|
||||
}
|
||||
|
||||
type RestoreAgentRequest_AgentUri struct {
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,oneof"`
|
||||
AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RestoreAgentRequest_AgentContent struct {
|
||||
AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {}
|
||||
func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {}
|
||||
|
||||
func (*RestoreAgentRequest_AgentContent) isRestoreAgentRequest_Agent() {}
|
||||
|
||||
func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
|
||||
@ -666,13 +804,6 @@ func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RestoreAgentRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RestoreAgentRequest) GetAgentUri() string {
|
||||
if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentUri); ok {
|
||||
return x.AgentUri
|
||||
@ -739,11 +870,11 @@ func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) {
|
||||
// agent
|
||||
switch x := m.Agent.(type) {
|
||||
case *RestoreAgentRequest_AgentUri:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentUri)))
|
||||
n += len(x.AgentUri)
|
||||
case *RestoreAgentRequest_AgentContent:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.AgentContent)))
|
||||
n += len(x.AgentContent)
|
||||
case nil:
|
||||
@ -774,8 +905,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for Agents service
|
||||
|
||||
// AgentsClient is the client API for Agents service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type AgentsClient interface {
|
||||
// Retrieves the specified agent.
|
||||
GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error)
|
||||
@ -792,13 +924,13 @@ type AgentsClient interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Exports the specified agent to a ZIP file.
|
||||
//
|
||||
//
|
||||
// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Imports the specified agent from a ZIP file.
|
||||
//
|
||||
// Uploads new intents and entity types without deleting the existing ones.
|
||||
@ -808,7 +940,7 @@ type AgentsClient interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
// Restores the specified agent from a ZIP file.
|
||||
//
|
||||
// Replaces the current agent version with a new one. All the intents and
|
||||
@ -817,7 +949,7 @@ type AgentsClient interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
|
||||
RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
type agentsClient struct {
|
||||
@ -830,7 +962,7 @@ func NewAgentsClient(cc *grpc.ClientConn) AgentsClient {
|
||||
|
||||
func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) {
|
||||
out := new(Agent)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/GetAgent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -839,51 +971,50 @@ func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts .
|
||||
|
||||
func (c *agentsClient) SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) {
|
||||
out := new(SearchAgentsResponse)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/SearchAgents", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, c.cc, opts...)
|
||||
func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/TrainAgent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, c.cc, opts...)
|
||||
func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ExportAgent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, c.cc, opts...)
|
||||
func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/ImportAgent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
|
||||
out := new(google_longrunning.Operation)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, c.cc, opts...)
|
||||
func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
|
||||
out := new(longrunning.Operation)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Agents/RestoreAgent", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// Server API for Agents service
|
||||
|
||||
// AgentsServer is the server API for Agents service.
|
||||
type AgentsServer interface {
|
||||
// Retrieves the specified agent.
|
||||
GetAgent(context.Context, *GetAgentRequest) (*Agent, error)
|
||||
@ -900,13 +1031,13 @@ type AgentsServer interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
TrainAgent(context.Context, *TrainAgentRequest) (*google_longrunning.Operation, error)
|
||||
TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error)
|
||||
// Exports the specified agent to a ZIP file.
|
||||
//
|
||||
//
|
||||
// Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
ExportAgent(context.Context, *ExportAgentRequest) (*google_longrunning.Operation, error)
|
||||
ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error)
|
||||
// Imports the specified agent from a ZIP file.
|
||||
//
|
||||
// Uploads new intents and entity types without deleting the existing ones.
|
||||
@ -916,7 +1047,7 @@ type AgentsServer interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
ImportAgent(context.Context, *ImportAgentRequest) (*google_longrunning.Operation, error)
|
||||
ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error)
|
||||
// Restores the specified agent from a ZIP file.
|
||||
//
|
||||
// Replaces the current agent version with a new one. All the intents and
|
||||
@ -925,7 +1056,7 @@ type AgentsServer interface {
|
||||
//
|
||||
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty],
|
||||
// metadata: [google.protobuf.Struct][google.protobuf.Struct]>
|
||||
RestoreAgent(context.Context, *RestoreAgentRequest) (*google_longrunning.Operation, error)
|
||||
RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error)
|
||||
}
|
||||
|
||||
func RegisterAgentsServer(s *grpc.Server, srv AgentsServer) {
|
||||
@ -1073,9 +1204,11 @@ var _Agents_serviceDesc = grpc.ServiceDesc{
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/agent.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor0) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/agent.proto", fileDescriptor_agent_d116f64d830b765d)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_agent_d116f64d830b765d = []byte{
|
||||
// 975 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xdc, 0x44,
|
||||
0x14, 0xae, 0x37, 0x4d, 0xb2, 0xfb, 0x92, 0xb4, 0xe9, 0x84, 0x06, 0x6b, 0xdb, 0xa8, 0x8b, 0x4b,
|
||||
|
357
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go
generated
vendored
Normal file
357
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go
generated
vendored
Normal file
@ -0,0 +1,357 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/audio_config.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// 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_audio_config_b255710fcad33f7d, []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_audio_config_b255710fcad33f7d, []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_audio_config_b255710fcad33f7d, []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 (dst *VoiceSelectionParams) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_VoiceSelectionParams.Merge(dst, 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_audio_config_b255710fcad33f7d, []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 (dst *SynthesizeSpeechConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SynthesizeSpeechConfig.Merge(dst, 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_audio_config_b255710fcad33f7d, []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 (dst *OutputAudioConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OutputAudioConfig.Merge(dst, 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.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")
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value)
|
||||
proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/audio_config.proto", fileDescriptor_audio_config_b255710fcad33f7d)
|
||||
}
|
||||
|
||||
var fileDescriptor_audio_config_b255710fcad33f7d = []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, 0x90,
|
||||
0x67, 0x0c, 0x24, 0xcf, 0x86, 0x59, 0x13, 0xf5, 0xdd, 0xf8, 0x09, 0xe0, 0xa6, 0xf3, 0x91, 0xa7,
|
||||
0x33, 0x9a, 0xb0, 0x4b, 0xea, 0x44, 0x94, 0xba, 0xb3, 0x9e, 0x1c, 0x0f, 0xed, 0xc3, 0xd5, 0x24,
|
||||
0xa2, 0xe4, 0x1d, 0xe3, 0x3e, 0x8e, 0x49, 0xaa, 0xa4, 0x00, 0xfb, 0xce, 0x9f, 0xa2, 0x4d, 0x52,
|
||||
0x8a, 0x36, 0x60, 0x25, 0x62, 0xa9, 0x3b, 0x93, 0x62, 0x80, 0xad, 0x16, 0xe8, 0x01, 0xac, 0x5e,
|
||||
0x88, 0x60, 0x1e, 0x52, 0xec, 0x13, 0xc6, 0xb1, 0x37, 0xa9, 0x95, 0x15, 0x57, 0x55, 0x07, 0x84,
|
||||
0xf1, 0xfe, 0x04, 0x3d, 0x82, 0x88, 0x4e, 0xa7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x5e, 0xeb, 0x04, 0x00, 0x00,
|
||||
}
|
482
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/context.pb.go
generated
vendored
482
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/context.pb.go
generated
vendored
@ -1,15 +1,15 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/context.proto
|
||||
|
||||
package dialogflow
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
|
||||
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
|
||||
import google_protobuf4 "github.com/golang/protobuf/ptypes/struct"
|
||||
import field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -21,32 +21,59 @@ 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/runtimes/<Runtime ID>/sessions/<Session
|
||||
// ID>/contexts/<Context ID>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// The Context ID is always converted to lowercase.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// 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" json:"lifespan_count,omitempty"`
|
||||
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 *google_protobuf4.Struct `protobuf:"bytes,3,opt,name=parameters" json:"parameters,omitempty"`
|
||||
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 fileDescriptor1, []int{0} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *Context) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Context.Merge(dst, 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 {
|
||||
@ -62,7 +89,7 @@ func (m *Context) GetLifespanCount() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Context) GetParameters() *google_protobuf4.Struct {
|
||||
func (m *Context) GetParameters() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Parameters
|
||||
}
|
||||
@ -73,21 +100,44 @@ func (m *Context) GetParameters() *google_protobuf4.Struct {
|
||||
type ListContextsRequest struct {
|
||||
// Required. The session to list all contexts from.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// `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" json:"page_size,omitempty"`
|
||||
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" json:"page_token,omitempty"`
|
||||
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 fileDescriptor1, []int{1} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *ListContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsRequest.Merge(dst, 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 {
|
||||
@ -114,16 +164,38 @@ func (m *ListContextsRequest) GetPageToken() string {
|
||||
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" json:"contexts,omitempty"`
|
||||
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" json:"next_page_token,omitempty"`
|
||||
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 fileDescriptor1, []int{2} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *ListContextsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListContextsResponse.Merge(dst, 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 {
|
||||
@ -143,17 +215,39 @@ func (m *ListContextsResponse) GetNextPageToken() string {
|
||||
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/runtimes/<Runtime ID>/sessions/<Session
|
||||
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
||||
// be available soon. If <Runtime ID> is not specified, we assume default
|
||||
// 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// 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 fileDescriptor1, []int{3} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *GetContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetContextRequest.Merge(dst, 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 {
|
||||
@ -166,18 +260,41 @@ func (m *GetContextRequest) GetName() string {
|
||||
type CreateContextRequest struct {
|
||||
// Required. The session to create a context for.
|
||||
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
||||
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// `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" json:"context,omitempty"`
|
||||
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 fileDescriptor1, []int{4} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *CreateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateContextRequest.Merge(dst, 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 {
|
||||
@ -196,15 +313,37 @@ func (m *CreateContextRequest) GetContext() *Context {
|
||||
// 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" json:"context,omitempty"`
|
||||
Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
|
||||
// Optional. The mask to control which fields get updated.
|
||||
UpdateMask *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
|
||||
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 fileDescriptor1, []int{5} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *UpdateContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateContextRequest.Merge(dst, 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 {
|
||||
@ -213,7 +352,7 @@ func (m *UpdateContextRequest) GetContext() *Context {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateContextRequest) GetUpdateMask() *google_protobuf3.FieldMask {
|
||||
func (m *UpdateContextRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
@ -224,17 +363,39 @@ func (m *UpdateContextRequest) GetUpdateMask() *google_protobuf3.FieldMask {
|
||||
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/runtimes/<Runtime ID>/sessions/<Session
|
||||
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
|
||||
// be available soon. If <Runtime ID> is not specified, we assume default
|
||||
// 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// 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 fileDescriptor1, []int{6} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *DeleteContextRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteContextRequest.Merge(dst, 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 {
|
||||
@ -247,16 +408,38 @@ func (m *DeleteContextRequest) GetName() string {
|
||||
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/runtimes/<Runtime ID>/sessions/<Session ID>`. Note: Runtimes are
|
||||
// under construction and will be available soon. If <Runtime ID> is not
|
||||
// specified we assume default 'sandbox' runtime.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// 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 fileDescriptor1, []int{7} }
|
||||
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_context_1af894e4ed9b5507, []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 (dst *DeleteAllContextsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteAllContextsRequest.Merge(dst, 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 {
|
||||
@ -284,8 +467,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for Contexts service
|
||||
|
||||
// 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)
|
||||
@ -296,9 +480,9 @@ type ContextsClient interface {
|
||||
// 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) (*google_protobuf2.Empty, error)
|
||||
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) (*google_protobuf2.Empty, error)
|
||||
DeleteAllContexts(ctx context.Context, in *DeleteAllContextsRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type contextsClient struct {
|
||||
@ -311,7 +495,7 @@ func NewContextsClient(cc *grpc.ClientConn) ContextsClient {
|
||||
|
||||
func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsRequest, opts ...grpc.CallOption) (*ListContextsResponse, error) {
|
||||
out := new(ListContextsResponse)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/ListContexts", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -320,7 +504,7 @@ func (c *contextsClient) ListContexts(ctx context.Context, in *ListContextsReque
|
||||
|
||||
func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/GetContext", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/GetContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -329,7 +513,7 @@ func (c *contextsClient) GetContext(ctx context.Context, in *GetContextRequest,
|
||||
|
||||
func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/CreateContext", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -338,33 +522,32 @@ func (c *contextsClient) CreateContext(ctx context.Context, in *CreateContextReq
|
||||
|
||||
func (c *contextsClient) UpdateContext(ctx context.Context, in *UpdateContextRequest, opts ...grpc.CallOption) (*Context, error) {
|
||||
out := new(Context)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/UpdateContext", in, out, c.cc, opts...)
|
||||
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) (*google_protobuf2.Empty, error) {
|
||||
out := new(google_protobuf2.Empty)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteContext", in, out, c.cc, opts...)
|
||||
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) (*google_protobuf2.Empty, error) {
|
||||
out := new(google_protobuf2.Empty)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.Contexts/DeleteAllContexts", in, out, c.cc, opts...)
|
||||
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
|
||||
}
|
||||
|
||||
// Server API for Contexts service
|
||||
|
||||
// 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)
|
||||
@ -375,9 +558,9 @@ type ContextsServer interface {
|
||||
// Updates the specified context.
|
||||
UpdateContext(context.Context, *UpdateContextRequest) (*Context, error)
|
||||
// Deletes the specified context.
|
||||
DeleteContext(context.Context, *DeleteContextRequest) (*google_protobuf2.Empty, error)
|
||||
DeleteContext(context.Context, *DeleteContextRequest) (*empty.Empty, error)
|
||||
// Deletes all active contexts in the specified session.
|
||||
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*google_protobuf2.Empty, error)
|
||||
DeleteAllContexts(context.Context, *DeleteAllContextsRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterContextsServer(s *grpc.Server, srv ContextsServer) {
|
||||
@ -525,58 +708,61 @@ var _Contexts_serviceDesc = grpc.ServiceDesc{
|
||||
Metadata: "google/cloud/dialogflow/v2beta1/context.proto",
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/context.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 793 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6f, 0xd3, 0x48,
|
||||
0x14, 0xd7, 0xb8, 0xbb, 0xfd, 0x98, 0x34, 0xbb, 0xea, 0x6c, 0xd4, 0x8d, 0xd2, 0xae, 0x1a, 0x79,
|
||||
0xb5, 0x4b, 0x14, 0x09, 0x5b, 0x98, 0x2f, 0x41, 0x05, 0x52, 0x9b, 0xd0, 0xaa, 0x52, 0x91, 0xaa,
|
||||
0xb4, 0x70, 0xe8, 0x25, 0x9a, 0x26, 0x2f, 0x96, 0xa9, 0x33, 0x63, 0x3c, 0x13, 0x28, 0x45, 0x39,
|
||||
0xf0, 0x71, 0xe1, 0xc4, 0x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82, 0x20, 0xb9, 0x8e, 0xb1, 0x47, 0x7d, 0xda, 0x04, 0x09, 0xbe, 0xc8, 0x4e, 0xe4, 0x51,
|
||||
0x21, 0x65, 0xfd, 0x6d, 0x28, 0xd9, 0xf1, 0xc6, 0xc6, 0x76, 0xb8, 0x71, 0xa5, 0x07, 0xaa, 0x3b,
|
||||
0xf8, 0xaf, 0x4d, 0x47, 0x48, 0x45, 0x41, 0x54, 0xe0, 0x61, 0x0b, 0x84, 0x24, 0xf3, 0x78, 0xd2,
|
||||
0xa3, 0x3e, 0x30, 0xa9, 0xc8, 0xa8, 0x37, 0xb2, 0x80, 0x67, 0x3c, 0x6a, 0x43, 0x55, 0x38, 0x87,
|
||||
0xa0, 0x98, 0x4c, 0x07, 0x81, 0x6d, 0xe7, 0x10, 0xc8, 0x3f, 0x01, 0x09, 0x1b, 0xaa, 0x92, 0xef,
|
||||
0x03, 0x0b, 0x49, 0xcc, 0x54, 0x42, 0xf8, 0x4e, 0x10, 0xd0, 0x5f, 0x22, 0x9c, 0xe9, 0xdf, 0x4b,
|
||||
0x78, 0x9c, 0x09, 0x20, 0x65, 0x3c, 0xad, 0xce, 0x4b, 0x64, 0x51, 0x7e, 0xa2, 0x90, 0xb2, 0x0a,
|
||||
0xc6, 0x90, 0x13, 0x33, 0x54, 0x91, 0x4a, 0x27, 0x93, 0xfc, 0x8f, 0xff, 0x64, 0x70, 0x20, 0xab,
|
||||
0x3d, 0x14, 0xb4, 0x90, 0x42, 0x3a, 0x08, 0x6f, 0x75, 0x68, 0x5c, 0xc0, 0x73, 0xeb, 0x10, 0x93,
|
||||
0x88, 0xf5, 0x26, 0xb4, 0x5e, 0xf7, 0x71, 0xa6, 0xe4, 0x03, 0x95, 0x70, 0x02, 0x7b, 0x5a, 0x6f,
|
||||
0x56, 0xf1, 0x94, 0x22, 0x13, 0x6e, 0x3c, 0x8e, 0x8a, 0x38, 0x51, 0x7f, 0x87, 0x70, 0xe6, 0x9e,
|
||||
0x57, 0x1f,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12,
|
||||
0xe5, 0x2e, 0x89, 0xfb, 0x51, 0xd2, 0xde, 0x64, 0x58, 0xff, 0xf2, 0x8f, 0x00, 0x00, 0x00, 0xff,
|
||||
0xff, 0x61, 0xec, 0x01, 0x66, 0x8a, 0x0a, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/context.proto", fileDescriptor_context_1af894e4ed9b5507)
|
||||
}
|
||||
|
||||
var fileDescriptor_context_1af894e4ed9b5507 = []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, 0xde, 0xfa, 0x6f, 0xf4,
|
||||
0xd8, 0x7f, 0xa1, 0xff, 0x40, 0x6f, 0xed, 0xa1, 0x50, 0x24, 0x8d, 0x2c, 0x3b, 0x56, 0x6a, 0x2b,
|
||||
0xe4, 0x64, 0x69, 0xe6, 0x7b, 0x6f, 0xbe, 0xef, 0xcd, 0xf7, 0x9e, 0x85, 0x7f, 0xb5, 0x39, 0xb7,
|
||||
0x5d, 0x30, 0x9b, 0x2e, 0xef, 0xb6, 0xcc, 0x96, 0x43, 0x5d, 0x6e, 0xb7, 0x5d,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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, 0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d, 0x5e, 0x21, 0xeb, 0xff, 0x44, 0x54, 0xfc,
|
||||
0x7f, 0x9b, 0xc5, 0x25, 0x49, 0x7d, 0x6e, 0x59, 0xdb, 0xe3, 0xa6, 0xca, 0x64, 0x9b, 0xa4, 0x4e,
|
||||
0xef, 0x11, 0xce, 0x0d, 0x8c, 0xaf, 0x31, 0xea, 0x94, 0x36, 0xee, 0x8a, 0x0b, 0x43, 0xe3, 0xf2,
|
||||
0x72, 0xf0, 0x31, 0x90, 0xf4, 0x4c, 0xe5, 0xdc, 0x3d, 0x53, 0xb9, 0xe0, 0x9e, 0xf9, 0x88, 0xf0,
|
||||
0xfc, 0xd0, 0x18, 0x26, 0xff, 0x8c, 0xa9, 0x7b, 0x78, 0x74, 0x67, 0xd3, 0x9e, 0x6d, 0x5e, 0x56,
|
||||
0x2e, 0xb6, 0x41, 0x56, 0x4f, 0x10, 0xfe, 0xb1, 0xc9, 0x3b, 0xa3, 0xb4, 0xae, 0xce, 0x29, 0x8d,
|
||||
0x9b, 0x81, 0xa2, 0x4d, 0xb4, 0x73, 0x45, 0x05, 0xd8, 0xdc, 0xa5, 0xcc, 0x36, 0xb8, 0x6f, 0x9b,
|
||||
0x36, 0xb0, 0x50, 0xaf, 0x19, 0x6d, 0x51, 0xcf, 0x11, 0x67, 0x7e, 0x77, 0xae, 0x24, 0x4b, 0x1f,
|
||||
0x10, 0x3a, 0xd6, 0xb4, 0xda, 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,
|
||||
}
|
||||
|
830
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/document.pb.go
generated
vendored
Normal file
830
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/document.pb.go
generated
vendored
Normal file
@ -0,0 +1,830 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/document.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/golang/protobuf/ptypes/empty"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import longrunning "google.golang.org/genproto/googleapis/longrunning"
|
||||
import _ "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
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_document_3131c12790f8bf44, []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_document_3131c12790f8bf44, []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_document_3131c12790f8bf44, []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 (dst *Document) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Document.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *ListDocumentsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDocumentsRequest.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *ListDocumentsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListDocumentsResponse.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *GetDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetDocumentRequest.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *CreateDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateDocumentRequest.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *DeleteDocumentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteDocumentRequest.Merge(dst, 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_document_3131c12790f8bf44, []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 (dst *KnowledgeOperationMetadata) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KnowledgeOperationMetadata.Merge(dst, 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.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")
|
||||
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)
|
||||
}
|
||||
|
||||
// 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_document_3131c12790f8bf44)
|
||||
}
|
||||
|
||||
var fileDescriptor_document_3131c12790f8bf44 = []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, 0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
|
||||
0x5e, 0xbf, 0xef, 0x09, 0x99, 0xf5, 0x20, 0x6c, 0xfa, 0xe5, 0x98, 0x0a, 0x89, 0xdf, 0x80, 0x95,
|
||||
0x80, 0x84, 0x11, 0x93, 0x64, 0xca, 0xa9, 0x15, 0x0d, 0x31, 0x20, 0x2e, 0x75, 0x84, 0x77, 0x9a,
|
||||
0x0c, 0x79, 0xd9, 0x2e, 0x46, 0x8e, 0x3d, 0xef, 0x94, 0xe2, 0x1b, 0x00, 0x71, 0x50, 0xf2, 0x63,
|
||||
0xca, 0xd2, 0x11, 0xc7, 0xe9, 0xfd, 0xc8, 0xa1, 0x7e, 0x8f, 0x60, 0x7d, 0xe6, 0x61, 0x22, 0xe0,
|
||||
0x4c, 0x50, 0xdc, 0x81, 0xb5, 0x4c, 0x93, 0xa2, 0x86, 0x36, 0x0a, 0x9b, 0xa5, 0xe6, 0x3b, 0x97,
|
||||
0x9e, 0xbb, 0x3d, 0xa9, 0xc5, 0x6f, 0xc3, 0x55, 0x46, 0xbf, 0x92, 0xce, 0x19, 0x1a, 0x89, 0x12,
|
||||
0xca, 0x91, 0xbb, 0x97, 0x53, 0xd9, 0x04, 0xdc, 0xa1, 0x39, 0x91, 0xac, 0xe9, 0x39, 0xc2, 0x52,
|
||||
0x9f, 0xc0, 0xfa, 0x56, 0x48, 0x89, 0xa4, 0xb3, 0xc9, 0xe7, 0x4d, 0xc8, 0x84, 0x62, 0xc6, 0x27,
|
||||
0x7e, 0xf6, 0x0b, 0xb5, 0x92, 0x97, 0xaa, 0xef, 0xc2, 0xba, 0x41, 0x7d, 0xfa, 0xfc, 0x73, 0xe7,
|
||||
0x91, 0xfc, 0x0d, 0x41, 0x3d, 0x57, 0xc7, 0x6e, 0x76, 0x7b, 0x9f, 0x52, 0x49, 0x86, 0x44, 0x12,
|
||||
0xfc, 0x08, 0x96, 0x85, 0x24, 0x32, 0xa9, 0xa9, 0x34, 0x5b, 0x0b, 0xf9, 0x9c, 0x8f, 0xa5, 0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3b, 0xf3, 0x7f, 0xa4,
|
||||
0xe5, 0x3a, 0x56, 0x7f, 0x4a, 0x9a, 0xfd, 0x01, 0xa9, 0x2f, 0xbb, 0xe0, 0x0f, 0xf3, 0x23, 0x3d,
|
||||
0xe8, 0xaa, 0xaf, 0xb6, 0xea, 0x09, 0x14, 0xfe, 0x0b, 0x41, 0x65, 0xfa, 0xe0, 0x2f, 0x31, 0x81,
|
||||
0xb9, 0x6f, 0x88, 0x45, 0x13, 0xc8, 0xd6, 0xdd, 0x78, 0xf9, 0x75, 0x37, 0x5e, 0x6d, 0xdd, 0xed,
|
||||
0x5f, 0x11, 0xdc, 0x1e, 0xf0, 0xd1, 0xa2, 0xfe, 0xda, 0xe5, 0xac, 0xb5, 0x5e, 0xf4, 0x15, 0xd0,
|
||||
0x43, 0x07, 0xdd, 0xb4, 0xc2, 0xe5, 0x3e, 0x61, 0xae, 0xc6, 0x43, 0x57, 0x77, 0x29, 0x8b, 0xbf,
|
||||
0x11, 0xf4, 0x24, 0x44, 0x02, 0x4f, 0x9c, 0xfb, 0xe5, 0xf3, 0xd1, 0xc4, 0xf5, 0x2f, 0x42, 0x3f,
|
||||
0x2b, 0x8a, 0xb1, 0xfd, 0x8b, 0x72, 0xb3, 0x93, 0x60, 0x6e, 0xc5, 0x2c, 0x8c, 0x09, 0x8b, 0x87,
|
||||
0x49, 0xd1, 0xe1, 0x4a, 0x8c, 0x7f, 0xe7, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xc6, 0x50,
|
||||
0x98, 0x58, 0x09, 0x00, 0x00,
|
||||
}
|
662
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go
generated
vendored
662
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2155
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/intent.pb.go
generated
vendored
2155
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/intent.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
567
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/knowledge_base.pb.go
generated
vendored
Normal file
567
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/knowledge_base.pb.go
generated
vendored
Normal file
@ -0,0 +1,567 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/knowledge_base.proto
|
||||
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import _ "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
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_knowledge_base_5078794a2722dd36, []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 (dst *KnowledgeBase) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_KnowledgeBase.Merge(dst, 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_knowledge_base_5078794a2722dd36, []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 (dst *ListKnowledgeBasesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListKnowledgeBasesRequest.Merge(dst, 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_knowledge_base_5078794a2722dd36, []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 (dst *ListKnowledgeBasesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListKnowledgeBasesResponse.Merge(dst, 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_knowledge_base_5078794a2722dd36, []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 (dst *GetKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetKnowledgeBaseRequest.Merge(dst, 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_knowledge_base_5078794a2722dd36, []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 (dst *CreateKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateKnowledgeBaseRequest.Merge(dst, 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_knowledge_base_5078794a2722dd36, []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 (dst *DeleteKnowledgeBaseRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteKnowledgeBaseRequest.Merge(dst, 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_knowledge_base_5078794a2722dd36)
|
||||
}
|
||||
|
||||
var fileDescriptor_knowledge_base_5078794a2722dd36 = []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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e, 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,
|
||||
}
|
1273
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session.pb.go
generated
vendored
1273
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/session.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,14 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/session_entity_type.proto
|
||||
|
||||
package dialogflow
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import empty "github.com/golang/protobuf/ptypes/empty"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf2 "github.com/golang/protobuf/ptypes/empty"
|
||||
import google_protobuf3 "google.golang.org/genproto/protobuf/field_mask"
|
||||
import field_mask "google.golang.org/genproto/protobuf/field_mask"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
@ -20,6 +20,12 @@ 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
|
||||
|
||||
@ -53,7 +59,7 @@ func (x SessionEntityType_EntityOverrideMode) String() string {
|
||||
return proto.EnumName(SessionEntityType_EntityOverrideMode_name, int32(x))
|
||||
}
|
||||
func (SessionEntityType_EntityOverrideMode) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor5, []int{0, 0}
|
||||
return fileDescriptor_session_entity_type_0a5ede95d4809454, []int{0, 0}
|
||||
}
|
||||
|
||||
// Represents a session entity type.
|
||||
@ -67,23 +73,45 @@ 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/runtimes/<Runtime ID>sessions/<Session
|
||||
// ID>/entityTypes/<Entity Type Display Name>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// `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,enum=google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode" json:"entity_override_mode,omitempty"`
|
||||
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" json:"entities,omitempty"`
|
||||
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 fileDescriptor5, []int{0} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *SessionEntityType) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SessionEntityType.Merge(dst, 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 {
|
||||
@ -110,21 +138,44 @@ func (m *SessionEntityType) GetEntities() []*EntityType_Entity {
|
||||
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/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// `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" json:"page_size,omitempty"`
|
||||
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" json:"page_token,omitempty"`
|
||||
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 fileDescriptor5, []int{1} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *ListSessionEntityTypesRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesRequest.Merge(dst, 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 {
|
||||
@ -151,16 +202,38 @@ func (m *ListSessionEntityTypesRequest) GetPageToken() string {
|
||||
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" json:"session_entity_types,omitempty"`
|
||||
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" json:"next_page_token,omitempty"`
|
||||
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 fileDescriptor5, []int{2} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *ListSessionEntityTypesResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListSessionEntityTypesResponse.Merge(dst, 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 {
|
||||
@ -180,17 +253,39 @@ func (m *ListSessionEntityTypesResponse) GetNextPageToken() string {
|
||||
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/runtimes/<Runtime
|
||||
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
||||
// Runtimes are under construction and will be available soon. If <Runtime ID>
|
||||
// is not specified, we assume default 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// 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 fileDescriptor5, []int{3} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *GetSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetSessionEntityTypeRequest.Merge(dst, 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 {
|
||||
@ -203,18 +298,41 @@ func (m *GetSessionEntityTypeRequest) GetName() string {
|
||||
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/runtimes/<Runtime ID>/sessions/<Session ID>`.
|
||||
// Note: Runtimes are under construction and will be available soon.
|
||||
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
|
||||
// `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" json:"session_entity_type,omitempty"`
|
||||
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 fileDescriptor5, []int{4} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *CreateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CreateSessionEntityTypeRequest.Merge(dst, 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 {
|
||||
@ -234,19 +352,41 @@ func (m *CreateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTy
|
||||
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/runtimes/<Runtime
|
||||
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
||||
// Runtimes are under construction and will be available soon. If <Runtime ID>
|
||||
// is not specified, we assume default 'sandbox' runtime.
|
||||
SessionEntityType *SessionEntityType `protobuf:"bytes,1,opt,name=session_entity_type,json=sessionEntityType" json:"session_entity_type,omitempty"`
|
||||
// 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 *google_protobuf3.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
|
||||
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 fileDescriptor5, []int{5} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *UpdateSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateSessionEntityTypeRequest.Merge(dst, 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 {
|
||||
@ -255,7 +395,7 @@ func (m *UpdateSessionEntityTypeRequest) GetSessionEntityType() *SessionEntityTy
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *google_protobuf3.FieldMask {
|
||||
func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask {
|
||||
if m != nil {
|
||||
return m.UpdateMask
|
||||
}
|
||||
@ -266,17 +406,39 @@ func (m *UpdateSessionEntityTypeRequest) GetUpdateMask() *google_protobuf3.Field
|
||||
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/runtimes/<Runtime
|
||||
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
|
||||
// Runtimes are under construction and will be available soon. If <Runtime ID>
|
||||
// is not specified, we assume default 'sandbox' runtime.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// 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 fileDescriptor5, []int{6} }
|
||||
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_session_entity_type_0a5ede95d4809454, []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 (dst *DeleteSessionEntityTypeRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_DeleteSessionEntityTypeRequest.Merge(dst, 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 {
|
||||
@ -304,8 +466,9 @@ var _ grpc.ClientConn
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// Client API for SessionEntityTypes service
|
||||
|
||||
// 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)
|
||||
@ -316,7 +479,7 @@ type SessionEntityTypesClient interface {
|
||||
// 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) (*google_protobuf2.Empty, error)
|
||||
DeleteSessionEntityType(ctx context.Context, in *DeleteSessionEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
type sessionEntityTypesClient struct {
|
||||
@ -329,7 +492,7 @@ func NewSessionEntityTypesClient(cc *grpc.ClientConn) SessionEntityTypesClient {
|
||||
|
||||
func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, in *ListSessionEntityTypesRequest, opts ...grpc.CallOption) (*ListSessionEntityTypesResponse, error) {
|
||||
out := new(ListSessionEntityTypesResponse)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/ListSessionEntityTypes", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -338,7 +501,7 @@ func (c *sessionEntityTypesClient) ListSessionEntityTypes(ctx context.Context, i
|
||||
|
||||
func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in *GetSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/GetSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -347,7 +510,7 @@ func (c *sessionEntityTypesClient) GetSessionEntityType(ctx context.Context, in
|
||||
|
||||
func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context, in *CreateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType", in, out, c.cc, opts...)
|
||||
err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/CreateSessionEntityType", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -356,24 +519,23 @@ func (c *sessionEntityTypesClient) CreateSessionEntityType(ctx context.Context,
|
||||
|
||||
func (c *sessionEntityTypesClient) UpdateSessionEntityType(ctx context.Context, in *UpdateSessionEntityTypeRequest, opts ...grpc.CallOption) (*SessionEntityType, error) {
|
||||
out := new(SessionEntityType)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/UpdateSessionEntityType", in, out, c.cc, opts...)
|
||||
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) (*google_protobuf2.Empty, error) {
|
||||
out := new(google_protobuf2.Empty)
|
||||
err := grpc.Invoke(ctx, "/google.cloud.dialogflow.v2beta1.SessionEntityTypes/DeleteSessionEntityType", in, out, c.cc, opts...)
|
||||
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
|
||||
}
|
||||
|
||||
// Server API for SessionEntityTypes service
|
||||
|
||||
// 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)
|
||||
@ -384,7 +546,7 @@ type SessionEntityTypesServer interface {
|
||||
// Updates the specified session entity type.
|
||||
UpdateSessionEntityType(context.Context, *UpdateSessionEntityTypeRequest) (*SessionEntityType, error)
|
||||
// Deletes the specified session entity type.
|
||||
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*google_protobuf2.Empty, error)
|
||||
DeleteSessionEntityType(context.Context, *DeleteSessionEntityTypeRequest) (*empty.Empty, error)
|
||||
}
|
||||
|
||||
func RegisterSessionEntityTypesServer(s *grpc.Server, srv SessionEntityTypesServer) {
|
||||
@ -511,63 +673,64 @@ var _SessionEntityTypes_serviceDesc = grpc.ServiceDesc{
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/session_entity_type.proto", fileDescriptor5)
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/session_entity_type.proto", fileDescriptor_session_entity_type_0a5ede95d4809454)
|
||||
}
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
// 863 bytes of a gzipped FileDescriptorProto
|
||||
var fileDescriptor_session_entity_type_0a5ede95d4809454 = []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, 0x38, 0xab, 0x48, 0x9b, 0x34, 0x72,
|
||||
0xd2, 0x15, 0x94, 0x83, 0xe5, 0xd4, 0xaf, 0x96, 0x69, 0xe2, 0x31, 0x9e, 0xc9, 0x2e, 0x29, 0xea,
|
||||
0xa5, 0xdc, 0xb8, 0x70, 0x40, 0xdc, 0x38, 0x71, 0xe0, 0x80, 0x04, 0xa7, 0xfe, 0x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, 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,
|
||||
}
|
||||
|
278
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/webhook.pb.go
generated
vendored
278
vendor/google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1/webhook.pb.go
generated
vendored
@ -1,40 +1,70 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/dialogflow/v2beta1/webhook.proto
|
||||
|
||||
package dialogflow
|
||||
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _struct "github.com/golang/protobuf/ptypes/struct"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf4 "github.com/golang/protobuf/ptypes/struct"
|
||||
|
||||
// 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" json:"session,omitempty"`
|
||||
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" json:"response_id,omitempty"`
|
||||
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" json:"query_result,omitempty"`
|
||||
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" json:"original_detect_intent_request,omitempty"`
|
||||
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 fileDescriptor6, []int{0} }
|
||||
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_webhook_d5d0c4a657643b71, []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 (dst *WebhookRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookRequest.Merge(dst, 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 {
|
||||
@ -57,6 +87,13 @@ func (m *WebhookRequest) GetQueryResult() *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
|
||||
@ -68,26 +105,74 @@ func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentR
|
||||
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" json:"fulfillment_text,omitempty"`
|
||||
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" json:"fulfillment_messages,omitempty"`
|
||||
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" json:"source,omitempty"`
|
||||
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
|
||||
// Optional. This value is passed directly to `QueryResult.webhook_payload`.
|
||||
Payload *google_protobuf4.Struct `protobuf:"bytes,4,opt,name=payload" json:"payload,omitempty"`
|
||||
// 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" json:"output_contexts,omitempty"`
|
||||
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" json:"followup_event_input,omitempty"`
|
||||
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 fileDescriptor6, []int{1} }
|
||||
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_webhook_d5d0c4a657643b71, []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 (dst *WebhookResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebhookResponse.Merge(dst, 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 {
|
||||
@ -110,7 +195,7 @@ func (m *WebhookResponse) GetSource() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebhookResponse) GetPayload() *google_protobuf4.Struct {
|
||||
func (m *WebhookResponse) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
@ -131,22 +216,66 @@ func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
|
||||
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. Possible values of this field correspond to
|
||||
// [Intent.Message.Platform][google.cloud.dialogflow.v2beta1.Intent.Message.Platform].
|
||||
Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"`
|
||||
// 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.
|
||||
Payload *google_protobuf4.Struct `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
|
||||
//
|
||||
// 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 fileDescriptor6, []int{2} }
|
||||
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_webhook_d5d0c4a657643b71, []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 (dst *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_OriginalDetectIntentRequest.Merge(dst, 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 {
|
||||
@ -155,7 +284,14 @@ func (m *OriginalDetectIntentRequest) GetSource() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetPayload() *google_protobuf4.Struct {
|
||||
func (m *OriginalDetectIntentRequest) GetVersion() string {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
|
||||
if m != nil {
|
||||
return m.Payload
|
||||
}
|
||||
@ -168,42 +304,48 @@ func init() {
|
||||
proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor6) }
|
||||
|
||||
var fileDescriptor6 = []byte{
|
||||
// 538 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0xd3, 0x30,
|
||||
0x14, 0x56, 0x52, 0xd8, 0x34, 0x77, 0x5a, 0x91, 0x99, 0x20, 0xda, 0x10, 0xad, 0xca, 0xa5, 0x88,
|
||||
0x91, 0x68, 0xe5, 0x08, 0xa7, 0xad, 0x80, 0x7a, 0x40, 0xdb, 0x02, 0x02, 0x09, 0x09, 0x45, 0x6e,
|
||||
0xe2, 0x66, 0x16, 0xae, 0x5f, 0x1a, 0xdb, 0xeb, 0x76, 0xe4, 0x87, 0x20, 0x21, 0x8e, 0xfb, 0x85,
|
||||
0x1c, 0x51, 0x6c, 0x87, 0xf4, 0x52, 0xb2, 0xe3, 0x7b, 0xfe, 0xbe, 0xef, 0x7d, 0xfe, 0xfc, 0x8c,
|
||||
0x5e, 0xe6, 0x00, 0x39, 0xa7, 0x51, 0xca, 0x41, 0x67, 0x51, 0xc6, 0x08, 0x87, 0x7c, 0xce, 0x61,
|
||||
0x15, 0x5d, 0x8d, 0x67, 0x54, 0x91, 0xe3, 0x68, 0x45, 0x67, 0x97, 0x00, 0xdf, 0xc3, 0xa2, 0x04,
|
||||
0x05, 0xb8, 0x6f, 0xe1, 0xa1, 0x81, 0x87, 0x0d, 0x3c, 0x74, 0xf0, 0x83, 0x27, 0x4e, 0x8f, 0x14,
|
||||
0x2c, 0x22, 0x42, 0x80, 0x22, 0x8a, 0x81, 0x90, 0x96, 0x7e, 0xd0, 0x3a, 0x2d, 0x05, 0xa1, 0xe8,
|
||||
0xb5, 0x72, 0xf0, 0xa3, 0x36, 0x38, 0x13, 0x8a, 0x0a, 0x75, 0x57, 0x71, 0x49, 0xa5, 0x64, 0x20,
|
||||
0x1c, 0xbc, 0x76, 0x6a, 0xaa, 0x99, 0x9e, 0x47, 0x52, 0x95, 0x3a, 0x75, 0x62, 0xc3, 0x5f, 0x3e,
|
||||
0xda, 0xfb, 0x62, 0xaf, 0x1e, 0xd3, 0xa5, 0xa6, 0x52, 0xe1, 0x00, 0x6d, 0x3b, 0x85, 0xe0, 0xde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0x92, 0x99,
|
||||
0xa7, 0xec, 0x8e, 0x1f, 0xd7, 0xe3, 0xea, 0x6d, 0x08, 0x3f, 0x9a, 0x6d, 0x88, 0x6b, 0x1c, 0xbe,
|
||||
0x40, 0x3d, 0xd0, 0xaa, 0xd0, 0x2a, 0x71, 0x3b, 0x2a, 0x83, 0xfb, 0xc6, 0xe9, 0xa8, 0xd5, 0xe9,
|
||||
0xa9, 0x25, 0xc4, 0x7b, 0x56, 0xc0, 0x95, 0x12, 0x7f, 0x43, 0xfb, 0x73, 0xe0, 0x1c, 0x56, 0xba,
|
||||
0x48, 0xe8, 0x55, 0x15, 0x02, 0x13, 0x85, 0x56, 0xc1, 0x96, 0xb1, 0xf4, 0xa2, 0x55, 0xf7, 0x6d,
|
||||
0xc5, 0x99, 0x56, 0x94, 0x18, 0xd7, 0x42, 0x4d, 0x6f, 0x78, 0x89, 0x0e, 0xff, 0xf3, 0xb6, 0x6b,
|
||||
0xd9, 0x78, 0x9b, 0xb2, 0xe9, 0xdc, 0x2d, 0x9b, 0x93, 0x5b, 0x0f, 0x3d, 0x4b, 0x61, 0xd1, 0x66,
|
||||
0xf8, 0x64, 0xd7, 0xad, 0xcb, 0x79, 0x25, 0x74, 0xee, 0x7d, 0x9d, 0x3a, 0x42, 0x0e, 0x9c, 0x88,
|
||||
0x3c, 0x84, 0x32, 0x8f, 0x72, 0x2a, 0xcc, 0x98, 0xc8, 0x1e, 0x91, 0x82, 0xc9, 0x8d, 0x1f, 0xfa,
|
||||
0x75, 0xd3, 0xfa, 0xe3, 0x79, 0xbf, 0x7d, 0x7f, 0xf2, 0xee, 0xd6, 0xef, 0xbf, 0xb7, 0x9a, 0xa7,
|
||||
0xc6, 0xc4, 0xa4, 0x31, 0xf1, 0xd9, 0x92, 0x66, 0x5b, 0x46, 0xff, 0xd5, 0xdf, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0x52, 0x6e, 0x3d, 0x85, 0xfa, 0x04, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor_webhook_d5d0c4a657643b71)
|
||||
}
|
||||
|
||||
var fileDescriptor_webhook_d5d0c4a657643b71 = []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, 0x14, 0x0a, 0x2e, 0x94, 0x2b, 0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, 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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user