1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/dialogflow/v2/agent.proto 3 4package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import _ "github.com/golang/protobuf/ptypes/empty" 10import _ "github.com/golang/protobuf/ptypes/struct" 11import _ "google.golang.org/genproto/googleapis/api/annotations" 12import longrunning "google.golang.org/genproto/googleapis/longrunning" 13import _ "google.golang.org/genproto/protobuf/field_mask" 14 15import ( 16 context "golang.org/x/net/context" 17 grpc "google.golang.org/grpc" 18) 19 20// Reference imports to suppress errors if they are not otherwise used. 21var _ = proto.Marshal 22var _ = fmt.Errorf 23var _ = math.Inf 24 25// This is a compile-time assertion to ensure that this generated file 26// is compatible with the proto package it is being compiled against. 27// A compilation error at this line likely means your copy of the 28// proto package needs to be updated. 29const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 30 31// Match mode determines how intents are detected from user queries. 32type Agent_MatchMode int32 33 34const ( 35 // Not specified. 36 Agent_MATCH_MODE_UNSPECIFIED Agent_MatchMode = 0 37 // Best for agents with a small number of examples in intents and/or wide 38 // use of templates syntax and composite entities. 39 Agent_MATCH_MODE_HYBRID Agent_MatchMode = 1 40 // Can be used for agents with a large number of examples in intents, 41 // especially the ones using @sys.any or very large developer entities. 42 Agent_MATCH_MODE_ML_ONLY Agent_MatchMode = 2 43) 44 45var Agent_MatchMode_name = map[int32]string{ 46 0: "MATCH_MODE_UNSPECIFIED", 47 1: "MATCH_MODE_HYBRID", 48 2: "MATCH_MODE_ML_ONLY", 49} 50var Agent_MatchMode_value = map[string]int32{ 51 "MATCH_MODE_UNSPECIFIED": 0, 52 "MATCH_MODE_HYBRID": 1, 53 "MATCH_MODE_ML_ONLY": 2, 54} 55 56func (x Agent_MatchMode) String() string { 57 return proto.EnumName(Agent_MatchMode_name, int32(x)) 58} 59func (Agent_MatchMode) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{0, 0} 61} 62 63// Represents a conversational agent. 64type Agent struct { 65 // Required. The project of this agent. 66 // Format: `projects/<Project ID>`. 67 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 68 // Required. The name of this agent. 69 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 70 // Required. The default language of the agent as a language tag. See 71 // [Language Support](https://dialogflow.com/docs/reference/language) for a 72 // list of the currently supported language codes. 73 // This field cannot be set by the `Update` method. 74 DefaultLanguageCode string `protobuf:"bytes,3,opt,name=default_language_code,json=defaultLanguageCode,proto3" json:"default_language_code,omitempty"` 75 // Optional. The list of all languages supported by this agent (except for the 76 // `default_language_code`). 77 SupportedLanguageCodes []string `protobuf:"bytes,4,rep,name=supported_language_codes,json=supportedLanguageCodes,proto3" json:"supported_language_codes,omitempty"` 78 // Required. The time zone of this agent from the 79 // [time zone database](https://www.iana.org/time-zones), e.g., 80 // America/New_York, Europe/Paris. 81 TimeZone string `protobuf:"bytes,5,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` 82 // Optional. The description of this agent. 83 // The maximum length is 500 characters. If exceeded, the request is rejected. 84 Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` 85 // Optional. The URI of the agent's avatar. 86 // Avatars are used throughout the Dialogflow console and in the self-hosted 87 // [Web Demo](https://dialogflow.com/docs/integrations/web-demo) integration. 88 AvatarUri string `protobuf:"bytes,7,opt,name=avatar_uri,json=avatarUri,proto3" json:"avatar_uri,omitempty"` 89 // Optional. Determines whether this agent should log conversation queries. 90 EnableLogging bool `protobuf:"varint,8,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"` 91 // Optional. Determines how intents are detected from user queries. 92 MatchMode Agent_MatchMode `protobuf:"varint,9,opt,name=match_mode,json=matchMode,proto3,enum=google.cloud.dialogflow.v2.Agent_MatchMode" json:"match_mode,omitempty"` 93 // Optional. To filter out false positive results and still get variety in 94 // matched natural language inputs for your agent, you can tune the machine 95 // learning classification threshold. If the returned score value is less than 96 // the threshold value, then a fallback intent is be triggered or, if there 97 // are no fallback intents defined, no intent will be triggered. The score 98 // values range from 0.0 (completely uncertain) to 1.0 (completely certain). 99 // If set to 0.0, the default of 0.3 is used. 100 ClassificationThreshold float32 `protobuf:"fixed32,10,opt,name=classification_threshold,json=classificationThreshold,proto3" json:"classification_threshold,omitempty"` 101 XXX_NoUnkeyedLiteral struct{} `json:"-"` 102 XXX_unrecognized []byte `json:"-"` 103 XXX_sizecache int32 `json:"-"` 104} 105 106func (m *Agent) Reset() { *m = Agent{} } 107func (m *Agent) String() string { return proto.CompactTextString(m) } 108func (*Agent) ProtoMessage() {} 109func (*Agent) Descriptor() ([]byte, []int) { 110 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{0} 111} 112func (m *Agent) XXX_Unmarshal(b []byte) error { 113 return xxx_messageInfo_Agent.Unmarshal(m, b) 114} 115func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 return xxx_messageInfo_Agent.Marshal(b, m, deterministic) 117} 118func (dst *Agent) XXX_Merge(src proto.Message) { 119 xxx_messageInfo_Agent.Merge(dst, src) 120} 121func (m *Agent) XXX_Size() int { 122 return xxx_messageInfo_Agent.Size(m) 123} 124func (m *Agent) XXX_DiscardUnknown() { 125 xxx_messageInfo_Agent.DiscardUnknown(m) 126} 127 128var xxx_messageInfo_Agent proto.InternalMessageInfo 129 130func (m *Agent) GetParent() string { 131 if m != nil { 132 return m.Parent 133 } 134 return "" 135} 136 137func (m *Agent) GetDisplayName() string { 138 if m != nil { 139 return m.DisplayName 140 } 141 return "" 142} 143 144func (m *Agent) GetDefaultLanguageCode() string { 145 if m != nil { 146 return m.DefaultLanguageCode 147 } 148 return "" 149} 150 151func (m *Agent) GetSupportedLanguageCodes() []string { 152 if m != nil { 153 return m.SupportedLanguageCodes 154 } 155 return nil 156} 157 158func (m *Agent) GetTimeZone() string { 159 if m != nil { 160 return m.TimeZone 161 } 162 return "" 163} 164 165func (m *Agent) GetDescription() string { 166 if m != nil { 167 return m.Description 168 } 169 return "" 170} 171 172func (m *Agent) GetAvatarUri() string { 173 if m != nil { 174 return m.AvatarUri 175 } 176 return "" 177} 178 179func (m *Agent) GetEnableLogging() bool { 180 if m != nil { 181 return m.EnableLogging 182 } 183 return false 184} 185 186func (m *Agent) GetMatchMode() Agent_MatchMode { 187 if m != nil { 188 return m.MatchMode 189 } 190 return Agent_MATCH_MODE_UNSPECIFIED 191} 192 193func (m *Agent) GetClassificationThreshold() float32 { 194 if m != nil { 195 return m.ClassificationThreshold 196 } 197 return 0 198} 199 200// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent]. 201type GetAgentRequest struct { 202 // Required. The project that the agent to fetch is associated with. 203 // Format: `projects/<Project ID>`. 204 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 205 XXX_NoUnkeyedLiteral struct{} `json:"-"` 206 XXX_unrecognized []byte `json:"-"` 207 XXX_sizecache int32 `json:"-"` 208} 209 210func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} } 211func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) } 212func (*GetAgentRequest) ProtoMessage() {} 213func (*GetAgentRequest) Descriptor() ([]byte, []int) { 214 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{1} 215} 216func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error { 217 return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b) 218} 219func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 220 return xxx_messageInfo_GetAgentRequest.Marshal(b, m, deterministic) 221} 222func (dst *GetAgentRequest) XXX_Merge(src proto.Message) { 223 xxx_messageInfo_GetAgentRequest.Merge(dst, src) 224} 225func (m *GetAgentRequest) XXX_Size() int { 226 return xxx_messageInfo_GetAgentRequest.Size(m) 227} 228func (m *GetAgentRequest) XXX_DiscardUnknown() { 229 xxx_messageInfo_GetAgentRequest.DiscardUnknown(m) 230} 231 232var xxx_messageInfo_GetAgentRequest proto.InternalMessageInfo 233 234func (m *GetAgentRequest) GetParent() string { 235 if m != nil { 236 return m.Parent 237 } 238 return "" 239} 240 241// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. 242type SearchAgentsRequest struct { 243 // Required. The project to list agents from. 244 // Format: `projects/<Project ID or '-'>`. 245 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 246 // Optional. The maximum number of items to return in a single page. By 247 // default 100 and at most 1000. 248 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 249 // Optional. The next_page_token value returned from a previous list request. 250 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 251 XXX_NoUnkeyedLiteral struct{} `json:"-"` 252 XXX_unrecognized []byte `json:"-"` 253 XXX_sizecache int32 `json:"-"` 254} 255 256func (m *SearchAgentsRequest) Reset() { *m = SearchAgentsRequest{} } 257func (m *SearchAgentsRequest) String() string { return proto.CompactTextString(m) } 258func (*SearchAgentsRequest) ProtoMessage() {} 259func (*SearchAgentsRequest) Descriptor() ([]byte, []int) { 260 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{2} 261} 262func (m *SearchAgentsRequest) XXX_Unmarshal(b []byte) error { 263 return xxx_messageInfo_SearchAgentsRequest.Unmarshal(m, b) 264} 265func (m *SearchAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 266 return xxx_messageInfo_SearchAgentsRequest.Marshal(b, m, deterministic) 267} 268func (dst *SearchAgentsRequest) XXX_Merge(src proto.Message) { 269 xxx_messageInfo_SearchAgentsRequest.Merge(dst, src) 270} 271func (m *SearchAgentsRequest) XXX_Size() int { 272 return xxx_messageInfo_SearchAgentsRequest.Size(m) 273} 274func (m *SearchAgentsRequest) XXX_DiscardUnknown() { 275 xxx_messageInfo_SearchAgentsRequest.DiscardUnknown(m) 276} 277 278var xxx_messageInfo_SearchAgentsRequest proto.InternalMessageInfo 279 280func (m *SearchAgentsRequest) GetParent() string { 281 if m != nil { 282 return m.Parent 283 } 284 return "" 285} 286 287func (m *SearchAgentsRequest) GetPageSize() int32 { 288 if m != nil { 289 return m.PageSize 290 } 291 return 0 292} 293 294func (m *SearchAgentsRequest) GetPageToken() string { 295 if m != nil { 296 return m.PageToken 297 } 298 return "" 299} 300 301// The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents]. 302type SearchAgentsResponse struct { 303 // The list of agents. There will be a maximum number of items returned based 304 // on the page_size field in the request. 305 Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` 306 // Token to retrieve the next page of results, or empty if there are no 307 // more results in the list. 308 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 309 XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 XXX_unrecognized []byte `json:"-"` 311 XXX_sizecache int32 `json:"-"` 312} 313 314func (m *SearchAgentsResponse) Reset() { *m = SearchAgentsResponse{} } 315func (m *SearchAgentsResponse) String() string { return proto.CompactTextString(m) } 316func (*SearchAgentsResponse) ProtoMessage() {} 317func (*SearchAgentsResponse) Descriptor() ([]byte, []int) { 318 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{3} 319} 320func (m *SearchAgentsResponse) XXX_Unmarshal(b []byte) error { 321 return xxx_messageInfo_SearchAgentsResponse.Unmarshal(m, b) 322} 323func (m *SearchAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 324 return xxx_messageInfo_SearchAgentsResponse.Marshal(b, m, deterministic) 325} 326func (dst *SearchAgentsResponse) XXX_Merge(src proto.Message) { 327 xxx_messageInfo_SearchAgentsResponse.Merge(dst, src) 328} 329func (m *SearchAgentsResponse) XXX_Size() int { 330 return xxx_messageInfo_SearchAgentsResponse.Size(m) 331} 332func (m *SearchAgentsResponse) XXX_DiscardUnknown() { 333 xxx_messageInfo_SearchAgentsResponse.DiscardUnknown(m) 334} 335 336var xxx_messageInfo_SearchAgentsResponse proto.InternalMessageInfo 337 338func (m *SearchAgentsResponse) GetAgents() []*Agent { 339 if m != nil { 340 return m.Agents 341 } 342 return nil 343} 344 345func (m *SearchAgentsResponse) GetNextPageToken() string { 346 if m != nil { 347 return m.NextPageToken 348 } 349 return "" 350} 351 352// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent]. 353type TrainAgentRequest struct { 354 // Required. The project that the agent to train is associated with. 355 // Format: `projects/<Project ID>`. 356 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 357 XXX_NoUnkeyedLiteral struct{} `json:"-"` 358 XXX_unrecognized []byte `json:"-"` 359 XXX_sizecache int32 `json:"-"` 360} 361 362func (m *TrainAgentRequest) Reset() { *m = TrainAgentRequest{} } 363func (m *TrainAgentRequest) String() string { return proto.CompactTextString(m) } 364func (*TrainAgentRequest) ProtoMessage() {} 365func (*TrainAgentRequest) Descriptor() ([]byte, []int) { 366 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{4} 367} 368func (m *TrainAgentRequest) XXX_Unmarshal(b []byte) error { 369 return xxx_messageInfo_TrainAgentRequest.Unmarshal(m, b) 370} 371func (m *TrainAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 372 return xxx_messageInfo_TrainAgentRequest.Marshal(b, m, deterministic) 373} 374func (dst *TrainAgentRequest) XXX_Merge(src proto.Message) { 375 xxx_messageInfo_TrainAgentRequest.Merge(dst, src) 376} 377func (m *TrainAgentRequest) XXX_Size() int { 378 return xxx_messageInfo_TrainAgentRequest.Size(m) 379} 380func (m *TrainAgentRequest) XXX_DiscardUnknown() { 381 xxx_messageInfo_TrainAgentRequest.DiscardUnknown(m) 382} 383 384var xxx_messageInfo_TrainAgentRequest proto.InternalMessageInfo 385 386func (m *TrainAgentRequest) GetParent() string { 387 if m != nil { 388 return m.Parent 389 } 390 return "" 391} 392 393// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. 394type ExportAgentRequest struct { 395 // Required. The project that the agent to export is associated with. 396 // Format: `projects/<Project ID>`. 397 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 398 // Optional. The Google Cloud Storage URI to export the agent to. 399 // Note: The URI must start with 400 // "gs://". If left unspecified, the serialized agent is returned inline. 401 AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3" json:"agent_uri,omitempty"` 402 XXX_NoUnkeyedLiteral struct{} `json:"-"` 403 XXX_unrecognized []byte `json:"-"` 404 XXX_sizecache int32 `json:"-"` 405} 406 407func (m *ExportAgentRequest) Reset() { *m = ExportAgentRequest{} } 408func (m *ExportAgentRequest) String() string { return proto.CompactTextString(m) } 409func (*ExportAgentRequest) ProtoMessage() {} 410func (*ExportAgentRequest) Descriptor() ([]byte, []int) { 411 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{5} 412} 413func (m *ExportAgentRequest) XXX_Unmarshal(b []byte) error { 414 return xxx_messageInfo_ExportAgentRequest.Unmarshal(m, b) 415} 416func (m *ExportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 417 return xxx_messageInfo_ExportAgentRequest.Marshal(b, m, deterministic) 418} 419func (dst *ExportAgentRequest) XXX_Merge(src proto.Message) { 420 xxx_messageInfo_ExportAgentRequest.Merge(dst, src) 421} 422func (m *ExportAgentRequest) XXX_Size() int { 423 return xxx_messageInfo_ExportAgentRequest.Size(m) 424} 425func (m *ExportAgentRequest) XXX_DiscardUnknown() { 426 xxx_messageInfo_ExportAgentRequest.DiscardUnknown(m) 427} 428 429var xxx_messageInfo_ExportAgentRequest proto.InternalMessageInfo 430 431func (m *ExportAgentRequest) GetParent() string { 432 if m != nil { 433 return m.Parent 434 } 435 return "" 436} 437 438func (m *ExportAgentRequest) GetAgentUri() string { 439 if m != nil { 440 return m.AgentUri 441 } 442 return "" 443} 444 445// The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent]. 446type ExportAgentResponse struct { 447 // Required. The exported agent. 448 // 449 // Types that are valid to be assigned to Agent: 450 // *ExportAgentResponse_AgentUri 451 // *ExportAgentResponse_AgentContent 452 Agent isExportAgentResponse_Agent `protobuf_oneof:"agent"` 453 XXX_NoUnkeyedLiteral struct{} `json:"-"` 454 XXX_unrecognized []byte `json:"-"` 455 XXX_sizecache int32 `json:"-"` 456} 457 458func (m *ExportAgentResponse) Reset() { *m = ExportAgentResponse{} } 459func (m *ExportAgentResponse) String() string { return proto.CompactTextString(m) } 460func (*ExportAgentResponse) ProtoMessage() {} 461func (*ExportAgentResponse) Descriptor() ([]byte, []int) { 462 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{6} 463} 464func (m *ExportAgentResponse) XXX_Unmarshal(b []byte) error { 465 return xxx_messageInfo_ExportAgentResponse.Unmarshal(m, b) 466} 467func (m *ExportAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 468 return xxx_messageInfo_ExportAgentResponse.Marshal(b, m, deterministic) 469} 470func (dst *ExportAgentResponse) XXX_Merge(src proto.Message) { 471 xxx_messageInfo_ExportAgentResponse.Merge(dst, src) 472} 473func (m *ExportAgentResponse) XXX_Size() int { 474 return xxx_messageInfo_ExportAgentResponse.Size(m) 475} 476func (m *ExportAgentResponse) XXX_DiscardUnknown() { 477 xxx_messageInfo_ExportAgentResponse.DiscardUnknown(m) 478} 479 480var xxx_messageInfo_ExportAgentResponse proto.InternalMessageInfo 481 482type isExportAgentResponse_Agent interface { 483 isExportAgentResponse_Agent() 484} 485 486type ExportAgentResponse_AgentUri struct { 487 AgentUri string `protobuf:"bytes,1,opt,name=agent_uri,json=agentUri,proto3,oneof"` 488} 489 490type ExportAgentResponse_AgentContent struct { 491 AgentContent []byte `protobuf:"bytes,2,opt,name=agent_content,json=agentContent,proto3,oneof"` 492} 493 494func (*ExportAgentResponse_AgentUri) isExportAgentResponse_Agent() {} 495 496func (*ExportAgentResponse_AgentContent) isExportAgentResponse_Agent() {} 497 498func (m *ExportAgentResponse) GetAgent() isExportAgentResponse_Agent { 499 if m != nil { 500 return m.Agent 501 } 502 return nil 503} 504 505func (m *ExportAgentResponse) GetAgentUri() string { 506 if x, ok := m.GetAgent().(*ExportAgentResponse_AgentUri); ok { 507 return x.AgentUri 508 } 509 return "" 510} 511 512func (m *ExportAgentResponse) GetAgentContent() []byte { 513 if x, ok := m.GetAgent().(*ExportAgentResponse_AgentContent); ok { 514 return x.AgentContent 515 } 516 return nil 517} 518 519// XXX_OneofFuncs is for the internal use of the proto package. 520func (*ExportAgentResponse) 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{}) { 521 return _ExportAgentResponse_OneofMarshaler, _ExportAgentResponse_OneofUnmarshaler, _ExportAgentResponse_OneofSizer, []interface{}{ 522 (*ExportAgentResponse_AgentUri)(nil), 523 (*ExportAgentResponse_AgentContent)(nil), 524 } 525} 526 527func _ExportAgentResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 528 m := msg.(*ExportAgentResponse) 529 // agent 530 switch x := m.Agent.(type) { 531 case *ExportAgentResponse_AgentUri: 532 b.EncodeVarint(1<<3 | proto.WireBytes) 533 b.EncodeStringBytes(x.AgentUri) 534 case *ExportAgentResponse_AgentContent: 535 b.EncodeVarint(2<<3 | proto.WireBytes) 536 b.EncodeRawBytes(x.AgentContent) 537 case nil: 538 default: 539 return fmt.Errorf("ExportAgentResponse.Agent has unexpected type %T", x) 540 } 541 return nil 542} 543 544func _ExportAgentResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 545 m := msg.(*ExportAgentResponse) 546 switch tag { 547 case 1: // agent.agent_uri 548 if wire != proto.WireBytes { 549 return true, proto.ErrInternalBadWireType 550 } 551 x, err := b.DecodeStringBytes() 552 m.Agent = &ExportAgentResponse_AgentUri{x} 553 return true, err 554 case 2: // agent.agent_content 555 if wire != proto.WireBytes { 556 return true, proto.ErrInternalBadWireType 557 } 558 x, err := b.DecodeRawBytes(true) 559 m.Agent = &ExportAgentResponse_AgentContent{x} 560 return true, err 561 default: 562 return false, nil 563 } 564} 565 566func _ExportAgentResponse_OneofSizer(msg proto.Message) (n int) { 567 m := msg.(*ExportAgentResponse) 568 // agent 569 switch x := m.Agent.(type) { 570 case *ExportAgentResponse_AgentUri: 571 n += 1 // tag and wire 572 n += proto.SizeVarint(uint64(len(x.AgentUri))) 573 n += len(x.AgentUri) 574 case *ExportAgentResponse_AgentContent: 575 n += 1 // tag and wire 576 n += proto.SizeVarint(uint64(len(x.AgentContent))) 577 n += len(x.AgentContent) 578 case nil: 579 default: 580 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 581 } 582 return n 583} 584 585// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent]. 586type ImportAgentRequest struct { 587 // Required. The project that the agent to import is associated with. 588 // Format: `projects/<Project ID>`. 589 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 590 // Required. The agent to import. 591 // 592 // Types that are valid to be assigned to Agent: 593 // *ImportAgentRequest_AgentUri 594 // *ImportAgentRequest_AgentContent 595 Agent isImportAgentRequest_Agent `protobuf_oneof:"agent"` 596 XXX_NoUnkeyedLiteral struct{} `json:"-"` 597 XXX_unrecognized []byte `json:"-"` 598 XXX_sizecache int32 `json:"-"` 599} 600 601func (m *ImportAgentRequest) Reset() { *m = ImportAgentRequest{} } 602func (m *ImportAgentRequest) String() string { return proto.CompactTextString(m) } 603func (*ImportAgentRequest) ProtoMessage() {} 604func (*ImportAgentRequest) Descriptor() ([]byte, []int) { 605 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{7} 606} 607func (m *ImportAgentRequest) XXX_Unmarshal(b []byte) error { 608 return xxx_messageInfo_ImportAgentRequest.Unmarshal(m, b) 609} 610func (m *ImportAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 611 return xxx_messageInfo_ImportAgentRequest.Marshal(b, m, deterministic) 612} 613func (dst *ImportAgentRequest) XXX_Merge(src proto.Message) { 614 xxx_messageInfo_ImportAgentRequest.Merge(dst, src) 615} 616func (m *ImportAgentRequest) XXX_Size() int { 617 return xxx_messageInfo_ImportAgentRequest.Size(m) 618} 619func (m *ImportAgentRequest) XXX_DiscardUnknown() { 620 xxx_messageInfo_ImportAgentRequest.DiscardUnknown(m) 621} 622 623var xxx_messageInfo_ImportAgentRequest proto.InternalMessageInfo 624 625func (m *ImportAgentRequest) GetParent() string { 626 if m != nil { 627 return m.Parent 628 } 629 return "" 630} 631 632type isImportAgentRequest_Agent interface { 633 isImportAgentRequest_Agent() 634} 635 636type ImportAgentRequest_AgentUri struct { 637 AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"` 638} 639 640type ImportAgentRequest_AgentContent struct { 641 AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"` 642} 643 644func (*ImportAgentRequest_AgentUri) isImportAgentRequest_Agent() {} 645 646func (*ImportAgentRequest_AgentContent) isImportAgentRequest_Agent() {} 647 648func (m *ImportAgentRequest) GetAgent() isImportAgentRequest_Agent { 649 if m != nil { 650 return m.Agent 651 } 652 return nil 653} 654 655func (m *ImportAgentRequest) GetAgentUri() string { 656 if x, ok := m.GetAgent().(*ImportAgentRequest_AgentUri); ok { 657 return x.AgentUri 658 } 659 return "" 660} 661 662func (m *ImportAgentRequest) GetAgentContent() []byte { 663 if x, ok := m.GetAgent().(*ImportAgentRequest_AgentContent); ok { 664 return x.AgentContent 665 } 666 return nil 667} 668 669// XXX_OneofFuncs is for the internal use of the proto package. 670func (*ImportAgentRequest) 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{}) { 671 return _ImportAgentRequest_OneofMarshaler, _ImportAgentRequest_OneofUnmarshaler, _ImportAgentRequest_OneofSizer, []interface{}{ 672 (*ImportAgentRequest_AgentUri)(nil), 673 (*ImportAgentRequest_AgentContent)(nil), 674 } 675} 676 677func _ImportAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 678 m := msg.(*ImportAgentRequest) 679 // agent 680 switch x := m.Agent.(type) { 681 case *ImportAgentRequest_AgentUri: 682 b.EncodeVarint(2<<3 | proto.WireBytes) 683 b.EncodeStringBytes(x.AgentUri) 684 case *ImportAgentRequest_AgentContent: 685 b.EncodeVarint(3<<3 | proto.WireBytes) 686 b.EncodeRawBytes(x.AgentContent) 687 case nil: 688 default: 689 return fmt.Errorf("ImportAgentRequest.Agent has unexpected type %T", x) 690 } 691 return nil 692} 693 694func _ImportAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 695 m := msg.(*ImportAgentRequest) 696 switch tag { 697 case 2: // agent.agent_uri 698 if wire != proto.WireBytes { 699 return true, proto.ErrInternalBadWireType 700 } 701 x, err := b.DecodeStringBytes() 702 m.Agent = &ImportAgentRequest_AgentUri{x} 703 return true, err 704 case 3: // agent.agent_content 705 if wire != proto.WireBytes { 706 return true, proto.ErrInternalBadWireType 707 } 708 x, err := b.DecodeRawBytes(true) 709 m.Agent = &ImportAgentRequest_AgentContent{x} 710 return true, err 711 default: 712 return false, nil 713 } 714} 715 716func _ImportAgentRequest_OneofSizer(msg proto.Message) (n int) { 717 m := msg.(*ImportAgentRequest) 718 // agent 719 switch x := m.Agent.(type) { 720 case *ImportAgentRequest_AgentUri: 721 n += 1 // tag and wire 722 n += proto.SizeVarint(uint64(len(x.AgentUri))) 723 n += len(x.AgentUri) 724 case *ImportAgentRequest_AgentContent: 725 n += 1 // tag and wire 726 n += proto.SizeVarint(uint64(len(x.AgentContent))) 727 n += len(x.AgentContent) 728 case nil: 729 default: 730 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 731 } 732 return n 733} 734 735// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent]. 736type RestoreAgentRequest struct { 737 // Required. The project that the agent to restore is associated with. 738 // Format: `projects/<Project ID>`. 739 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 740 // Required. The agent to restore. 741 // 742 // Types that are valid to be assigned to Agent: 743 // *RestoreAgentRequest_AgentUri 744 // *RestoreAgentRequest_AgentContent 745 Agent isRestoreAgentRequest_Agent `protobuf_oneof:"agent"` 746 XXX_NoUnkeyedLiteral struct{} `json:"-"` 747 XXX_unrecognized []byte `json:"-"` 748 XXX_sizecache int32 `json:"-"` 749} 750 751func (m *RestoreAgentRequest) Reset() { *m = RestoreAgentRequest{} } 752func (m *RestoreAgentRequest) String() string { return proto.CompactTextString(m) } 753func (*RestoreAgentRequest) ProtoMessage() {} 754func (*RestoreAgentRequest) Descriptor() ([]byte, []int) { 755 return fileDescriptor_agent_6cbd45e0738ac4ce, []int{8} 756} 757func (m *RestoreAgentRequest) XXX_Unmarshal(b []byte) error { 758 return xxx_messageInfo_RestoreAgentRequest.Unmarshal(m, b) 759} 760func (m *RestoreAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 761 return xxx_messageInfo_RestoreAgentRequest.Marshal(b, m, deterministic) 762} 763func (dst *RestoreAgentRequest) XXX_Merge(src proto.Message) { 764 xxx_messageInfo_RestoreAgentRequest.Merge(dst, src) 765} 766func (m *RestoreAgentRequest) XXX_Size() int { 767 return xxx_messageInfo_RestoreAgentRequest.Size(m) 768} 769func (m *RestoreAgentRequest) XXX_DiscardUnknown() { 770 xxx_messageInfo_RestoreAgentRequest.DiscardUnknown(m) 771} 772 773var xxx_messageInfo_RestoreAgentRequest proto.InternalMessageInfo 774 775func (m *RestoreAgentRequest) GetParent() string { 776 if m != nil { 777 return m.Parent 778 } 779 return "" 780} 781 782type isRestoreAgentRequest_Agent interface { 783 isRestoreAgentRequest_Agent() 784} 785 786type RestoreAgentRequest_AgentUri struct { 787 AgentUri string `protobuf:"bytes,2,opt,name=agent_uri,json=agentUri,proto3,oneof"` 788} 789 790type RestoreAgentRequest_AgentContent struct { 791 AgentContent []byte `protobuf:"bytes,3,opt,name=agent_content,json=agentContent,proto3,oneof"` 792} 793 794func (*RestoreAgentRequest_AgentUri) isRestoreAgentRequest_Agent() {} 795 796func (*RestoreAgentRequest_AgentContent) isRestoreAgentRequest_Agent() {} 797 798func (m *RestoreAgentRequest) GetAgent() isRestoreAgentRequest_Agent { 799 if m != nil { 800 return m.Agent 801 } 802 return nil 803} 804 805func (m *RestoreAgentRequest) GetAgentUri() string { 806 if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentUri); ok { 807 return x.AgentUri 808 } 809 return "" 810} 811 812func (m *RestoreAgentRequest) GetAgentContent() []byte { 813 if x, ok := m.GetAgent().(*RestoreAgentRequest_AgentContent); ok { 814 return x.AgentContent 815 } 816 return nil 817} 818 819// XXX_OneofFuncs is for the internal use of the proto package. 820func (*RestoreAgentRequest) 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{}) { 821 return _RestoreAgentRequest_OneofMarshaler, _RestoreAgentRequest_OneofUnmarshaler, _RestoreAgentRequest_OneofSizer, []interface{}{ 822 (*RestoreAgentRequest_AgentUri)(nil), 823 (*RestoreAgentRequest_AgentContent)(nil), 824 } 825} 826 827func _RestoreAgentRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 828 m := msg.(*RestoreAgentRequest) 829 // agent 830 switch x := m.Agent.(type) { 831 case *RestoreAgentRequest_AgentUri: 832 b.EncodeVarint(2<<3 | proto.WireBytes) 833 b.EncodeStringBytes(x.AgentUri) 834 case *RestoreAgentRequest_AgentContent: 835 b.EncodeVarint(3<<3 | proto.WireBytes) 836 b.EncodeRawBytes(x.AgentContent) 837 case nil: 838 default: 839 return fmt.Errorf("RestoreAgentRequest.Agent has unexpected type %T", x) 840 } 841 return nil 842} 843 844func _RestoreAgentRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 845 m := msg.(*RestoreAgentRequest) 846 switch tag { 847 case 2: // agent.agent_uri 848 if wire != proto.WireBytes { 849 return true, proto.ErrInternalBadWireType 850 } 851 x, err := b.DecodeStringBytes() 852 m.Agent = &RestoreAgentRequest_AgentUri{x} 853 return true, err 854 case 3: // agent.agent_content 855 if wire != proto.WireBytes { 856 return true, proto.ErrInternalBadWireType 857 } 858 x, err := b.DecodeRawBytes(true) 859 m.Agent = &RestoreAgentRequest_AgentContent{x} 860 return true, err 861 default: 862 return false, nil 863 } 864} 865 866func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) { 867 m := msg.(*RestoreAgentRequest) 868 // agent 869 switch x := m.Agent.(type) { 870 case *RestoreAgentRequest_AgentUri: 871 n += 1 // tag and wire 872 n += proto.SizeVarint(uint64(len(x.AgentUri))) 873 n += len(x.AgentUri) 874 case *RestoreAgentRequest_AgentContent: 875 n += 1 // tag and wire 876 n += proto.SizeVarint(uint64(len(x.AgentContent))) 877 n += len(x.AgentContent) 878 case nil: 879 default: 880 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 881 } 882 return n 883} 884 885func init() { 886 proto.RegisterType((*Agent)(nil), "google.cloud.dialogflow.v2.Agent") 887 proto.RegisterType((*GetAgentRequest)(nil), "google.cloud.dialogflow.v2.GetAgentRequest") 888 proto.RegisterType((*SearchAgentsRequest)(nil), "google.cloud.dialogflow.v2.SearchAgentsRequest") 889 proto.RegisterType((*SearchAgentsResponse)(nil), "google.cloud.dialogflow.v2.SearchAgentsResponse") 890 proto.RegisterType((*TrainAgentRequest)(nil), "google.cloud.dialogflow.v2.TrainAgentRequest") 891 proto.RegisterType((*ExportAgentRequest)(nil), "google.cloud.dialogflow.v2.ExportAgentRequest") 892 proto.RegisterType((*ExportAgentResponse)(nil), "google.cloud.dialogflow.v2.ExportAgentResponse") 893 proto.RegisterType((*ImportAgentRequest)(nil), "google.cloud.dialogflow.v2.ImportAgentRequest") 894 proto.RegisterType((*RestoreAgentRequest)(nil), "google.cloud.dialogflow.v2.RestoreAgentRequest") 895 proto.RegisterEnum("google.cloud.dialogflow.v2.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value) 896} 897 898// Reference imports to suppress errors if they are not otherwise used. 899var _ context.Context 900var _ grpc.ClientConn 901 902// This is a compile-time assertion to ensure that this generated file 903// is compatible with the grpc package it is being compiled against. 904const _ = grpc.SupportPackageIsVersion4 905 906// AgentsClient is the client API for Agents service. 907// 908// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 909type AgentsClient interface { 910 // Retrieves the specified agent. 911 GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) 912 // Returns the list of agents. 913 // 914 // Since there is at most one conversational agent per project, this method is 915 // useful primarily for listing all agents across projects the caller has 916 // access to. One can achieve that with a wildcard project collection id "-". 917 // Refer to [List 918 // Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections). 919 SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) 920 // Trains the specified agent. 921 // 922 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 923 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 924 TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 925 // Exports the specified agent to a ZIP file. 926 // 927 // Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], 928 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 929 ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 930 // Imports the specified agent from a ZIP file. 931 // 932 // Uploads new intents and entity types without deleting the existing ones. 933 // Intents and entity types with the same name are replaced with the new 934 // versions from ImportAgentRequest. 935 // 936 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 937 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 938 ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 939 // Restores the specified agent from a ZIP file. 940 // 941 // Replaces the current agent version with a new one. All the intents and 942 // entity types in the older version are deleted. 943 // 944 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 945 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 946 RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 947} 948 949type agentsClient struct { 950 cc *grpc.ClientConn 951} 952 953func NewAgentsClient(cc *grpc.ClientConn) AgentsClient { 954 return &agentsClient{cc} 955} 956 957func (c *agentsClient) GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*Agent, error) { 958 out := new(Agent) 959 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/GetAgent", in, out, opts...) 960 if err != nil { 961 return nil, err 962 } 963 return out, nil 964} 965 966func (c *agentsClient) SearchAgents(ctx context.Context, in *SearchAgentsRequest, opts ...grpc.CallOption) (*SearchAgentsResponse, error) { 967 out := new(SearchAgentsResponse) 968 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/SearchAgents", in, out, opts...) 969 if err != nil { 970 return nil, err 971 } 972 return out, nil 973} 974 975func (c *agentsClient) TrainAgent(ctx context.Context, in *TrainAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 976 out := new(longrunning.Operation) 977 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/TrainAgent", in, out, opts...) 978 if err != nil { 979 return nil, err 980 } 981 return out, nil 982} 983 984func (c *agentsClient) ExportAgent(ctx context.Context, in *ExportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 985 out := new(longrunning.Operation) 986 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/ExportAgent", in, out, opts...) 987 if err != nil { 988 return nil, err 989 } 990 return out, nil 991} 992 993func (c *agentsClient) ImportAgent(ctx context.Context, in *ImportAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 994 out := new(longrunning.Operation) 995 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/ImportAgent", in, out, opts...) 996 if err != nil { 997 return nil, err 998 } 999 return out, nil 1000} 1001 1002func (c *agentsClient) RestoreAgent(ctx context.Context, in *RestoreAgentRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1003 out := new(longrunning.Operation) 1004 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.Agents/RestoreAgent", in, out, opts...) 1005 if err != nil { 1006 return nil, err 1007 } 1008 return out, nil 1009} 1010 1011// AgentsServer is the server API for Agents service. 1012type AgentsServer interface { 1013 // Retrieves the specified agent. 1014 GetAgent(context.Context, *GetAgentRequest) (*Agent, error) 1015 // Returns the list of agents. 1016 // 1017 // Since there is at most one conversational agent per project, this method is 1018 // useful primarily for listing all agents across projects the caller has 1019 // access to. One can achieve that with a wildcard project collection id "-". 1020 // Refer to [List 1021 // Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections). 1022 SearchAgents(context.Context, *SearchAgentsRequest) (*SearchAgentsResponse, error) 1023 // Trains the specified agent. 1024 // 1025 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1026 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1027 TrainAgent(context.Context, *TrainAgentRequest) (*longrunning.Operation, error) 1028 // Exports the specified agent to a ZIP file. 1029 // 1030 // Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], 1031 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1032 ExportAgent(context.Context, *ExportAgentRequest) (*longrunning.Operation, error) 1033 // Imports the specified agent from a ZIP file. 1034 // 1035 // Uploads new intents and entity types without deleting the existing ones. 1036 // Intents and entity types with the same name are replaced with the new 1037 // versions from ImportAgentRequest. 1038 // 1039 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1040 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1041 ImportAgent(context.Context, *ImportAgentRequest) (*longrunning.Operation, error) 1042 // Restores the specified agent from a ZIP file. 1043 // 1044 // Replaces the current agent version with a new one. All the intents and 1045 // entity types in the older version are deleted. 1046 // 1047 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1048 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1049 RestoreAgent(context.Context, *RestoreAgentRequest) (*longrunning.Operation, error) 1050} 1051 1052func RegisterAgentsServer(s *grpc.Server, srv AgentsServer) { 1053 s.RegisterService(&_Agents_serviceDesc, srv) 1054} 1055 1056func _Agents_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1057 in := new(GetAgentRequest) 1058 if err := dec(in); err != nil { 1059 return nil, err 1060 } 1061 if interceptor == nil { 1062 return srv.(AgentsServer).GetAgent(ctx, in) 1063 } 1064 info := &grpc.UnaryServerInfo{ 1065 Server: srv, 1066 FullMethod: "/google.cloud.dialogflow.v2.Agents/GetAgent", 1067 } 1068 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1069 return srv.(AgentsServer).GetAgent(ctx, req.(*GetAgentRequest)) 1070 } 1071 return interceptor(ctx, in, info, handler) 1072} 1073 1074func _Agents_SearchAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1075 in := new(SearchAgentsRequest) 1076 if err := dec(in); err != nil { 1077 return nil, err 1078 } 1079 if interceptor == nil { 1080 return srv.(AgentsServer).SearchAgents(ctx, in) 1081 } 1082 info := &grpc.UnaryServerInfo{ 1083 Server: srv, 1084 FullMethod: "/google.cloud.dialogflow.v2.Agents/SearchAgents", 1085 } 1086 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1087 return srv.(AgentsServer).SearchAgents(ctx, req.(*SearchAgentsRequest)) 1088 } 1089 return interceptor(ctx, in, info, handler) 1090} 1091 1092func _Agents_TrainAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1093 in := new(TrainAgentRequest) 1094 if err := dec(in); err != nil { 1095 return nil, err 1096 } 1097 if interceptor == nil { 1098 return srv.(AgentsServer).TrainAgent(ctx, in) 1099 } 1100 info := &grpc.UnaryServerInfo{ 1101 Server: srv, 1102 FullMethod: "/google.cloud.dialogflow.v2.Agents/TrainAgent", 1103 } 1104 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1105 return srv.(AgentsServer).TrainAgent(ctx, req.(*TrainAgentRequest)) 1106 } 1107 return interceptor(ctx, in, info, handler) 1108} 1109 1110func _Agents_ExportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1111 in := new(ExportAgentRequest) 1112 if err := dec(in); err != nil { 1113 return nil, err 1114 } 1115 if interceptor == nil { 1116 return srv.(AgentsServer).ExportAgent(ctx, in) 1117 } 1118 info := &grpc.UnaryServerInfo{ 1119 Server: srv, 1120 FullMethod: "/google.cloud.dialogflow.v2.Agents/ExportAgent", 1121 } 1122 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1123 return srv.(AgentsServer).ExportAgent(ctx, req.(*ExportAgentRequest)) 1124 } 1125 return interceptor(ctx, in, info, handler) 1126} 1127 1128func _Agents_ImportAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1129 in := new(ImportAgentRequest) 1130 if err := dec(in); err != nil { 1131 return nil, err 1132 } 1133 if interceptor == nil { 1134 return srv.(AgentsServer).ImportAgent(ctx, in) 1135 } 1136 info := &grpc.UnaryServerInfo{ 1137 Server: srv, 1138 FullMethod: "/google.cloud.dialogflow.v2.Agents/ImportAgent", 1139 } 1140 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1141 return srv.(AgentsServer).ImportAgent(ctx, req.(*ImportAgentRequest)) 1142 } 1143 return interceptor(ctx, in, info, handler) 1144} 1145 1146func _Agents_RestoreAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1147 in := new(RestoreAgentRequest) 1148 if err := dec(in); err != nil { 1149 return nil, err 1150 } 1151 if interceptor == nil { 1152 return srv.(AgentsServer).RestoreAgent(ctx, in) 1153 } 1154 info := &grpc.UnaryServerInfo{ 1155 Server: srv, 1156 FullMethod: "/google.cloud.dialogflow.v2.Agents/RestoreAgent", 1157 } 1158 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1159 return srv.(AgentsServer).RestoreAgent(ctx, req.(*RestoreAgentRequest)) 1160 } 1161 return interceptor(ctx, in, info, handler) 1162} 1163 1164var _Agents_serviceDesc = grpc.ServiceDesc{ 1165 ServiceName: "google.cloud.dialogflow.v2.Agents", 1166 HandlerType: (*AgentsServer)(nil), 1167 Methods: []grpc.MethodDesc{ 1168 { 1169 MethodName: "GetAgent", 1170 Handler: _Agents_GetAgent_Handler, 1171 }, 1172 { 1173 MethodName: "SearchAgents", 1174 Handler: _Agents_SearchAgents_Handler, 1175 }, 1176 { 1177 MethodName: "TrainAgent", 1178 Handler: _Agents_TrainAgent_Handler, 1179 }, 1180 { 1181 MethodName: "ExportAgent", 1182 Handler: _Agents_ExportAgent_Handler, 1183 }, 1184 { 1185 MethodName: "ImportAgent", 1186 Handler: _Agents_ImportAgent_Handler, 1187 }, 1188 { 1189 MethodName: "RestoreAgent", 1190 Handler: _Agents_RestoreAgent_Handler, 1191 }, 1192 }, 1193 Streams: []grpc.StreamDesc{}, 1194 Metadata: "google/cloud/dialogflow/v2/agent.proto", 1195} 1196 1197func init() { 1198 proto.RegisterFile("google/cloud/dialogflow/v2/agent.proto", fileDescriptor_agent_6cbd45e0738ac4ce) 1199} 1200 1201var fileDescriptor_agent_6cbd45e0738ac4ce = []byte{ 1202 // 965 bytes of a gzipped FileDescriptorProto 1203 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x41, 0x6f, 0xdc, 0x44, 1204 0x14, 0xae, 0x37, 0xcd, 0x76, 0xf7, 0x25, 0x69, 0xd3, 0x09, 0x0d, 0xd6, 0xb6, 0x81, 0xad, 0x4b, 1205 0xa2, 0x6d, 0x0a, 0x76, 0xb5, 0x5c, 0x20, 0x88, 0x43, 0x93, 0x4d, 0x9b, 0xa0, 0x6c, 0x12, 0x39, 1206 0x49, 0xa5, 0xf6, 0x62, 0x4d, 0xec, 0x59, 0x67, 0xa8, 0x3d, 0x63, 0x3c, 0xb3, 0xa1, 0x49, 0xe1, 1207 0x00, 0x47, 0x24, 0x24, 0x24, 0xb8, 0x70, 0x42, 0xe2, 0xc8, 0xdf, 0xe1, 0x2f, 0x70, 0xe6, 0xcc, 1208 0x11, 0xcd, 0xd8, 0x9b, 0xf5, 0x26, 0xa9, 0x37, 0x07, 0x24, 0x6e, 0xf6, 0xfb, 0xbe, 0xf7, 0xde, 1209 0x37, 0x33, 0xdf, 0xd3, 0x0c, 0x2c, 0x85, 0x9c, 0x87, 0x11, 0x71, 0xfc, 0x88, 0xf7, 0x03, 0x27, 1210 0xa0, 0x38, 0xe2, 0x61, 0x2f, 0xe2, 0x5f, 0x3b, 0xc7, 0x6d, 0x07, 0x87, 0x84, 0x49, 0x3b, 0x49, 1211 0xb9, 0xe4, 0xa8, 0x91, 0xf1, 0x6c, 0xcd, 0xb3, 0x87, 0x3c, 0xfb, 0xb8, 0xdd, 0xb8, 0x97, 0xd7, 1212 0xc0, 0x09, 0x75, 0x30, 0x63, 0x5c, 0x62, 0x49, 0x39, 0x13, 0x59, 0x66, 0xe3, 0x41, 0x8e, 0x46, 1213 0x9c, 0x85, 0x69, 0x9f, 0x31, 0xca, 0x42, 0x87, 0x27, 0x24, 0x1d, 0x21, 0xdd, 0xcd, 0x49, 0xfa, 1214 0xef, 0xb0, 0xdf, 0x73, 0x48, 0x9c, 0xc8, 0x93, 0x1c, 0x6c, 0x9e, 0x07, 0x7b, 0x94, 0x44, 0x81, 1215 0x17, 0x63, 0xf1, 0x2a, 0x67, 0xdc, 0x3b, 0xcf, 0x10, 0x32, 0xed, 0xfb, 0xb9, 0x76, 0xeb, 0x97, 1216 0xeb, 0x30, 0xf9, 0x44, 0xad, 0x05, 0xcd, 0x43, 0x35, 0xc1, 0x29, 0x61, 0xd2, 0x34, 0x9a, 0x46, 1217 0xab, 0xee, 0xe6, 0x7f, 0xe8, 0x3e, 0x4c, 0x07, 0x54, 0x24, 0x11, 0x3e, 0xf1, 0x18, 0x8e, 0x89, 1218 0x59, 0xd1, 0xe8, 0x54, 0x1e, 0xdb, 0xc6, 0x31, 0x41, 0x6d, 0xb8, 0x13, 0x90, 0x1e, 0xee, 0x47, 1219 0xd2, 0x8b, 0x30, 0x0b, 0xfb, 0x38, 0x24, 0x9e, 0xcf, 0x03, 0x62, 0x4e, 0x68, 0xee, 0x5c, 0x0e, 1220 0x6e, 0xe5, 0xd8, 0x1a, 0x0f, 0x08, 0xfa, 0x04, 0x4c, 0xd1, 0x4f, 0x12, 0x9e, 0x4a, 0x12, 0x8c, 1221 0x66, 0x09, 0xf3, 0x7a, 0x73, 0xa2, 0x55, 0x77, 0xe7, 0xcf, 0xf0, 0x62, 0xa2, 0x40, 0x77, 0xa1, 1222 0x2e, 0x69, 0x4c, 0xbc, 0x53, 0xce, 0x88, 0x39, 0xa9, 0x3b, 0xd4, 0x54, 0xe0, 0x25, 0x67, 0x04, 1223 0x35, 0x61, 0x2a, 0x20, 0xc2, 0x4f, 0x69, 0xa2, 0xb6, 0xd0, 0xac, 0xe6, 0x62, 0x87, 0x21, 0xb4, 1224 0x00, 0x80, 0x8f, 0xb1, 0xc4, 0xa9, 0xd7, 0x4f, 0xa9, 0x79, 0x43, 0x13, 0xea, 0x59, 0xe4, 0x20, 1225 0xa5, 0x68, 0x11, 0x6e, 0x12, 0x86, 0x0f, 0x23, 0xe2, 0x45, 0x3c, 0x0c, 0x29, 0x0b, 0xcd, 0x5a, 1226 0xd3, 0x68, 0xd5, 0xdc, 0x99, 0x2c, 0xba, 0x95, 0x05, 0xd1, 0x17, 0x00, 0x31, 0x96, 0xfe, 0x91, 1227 0x17, 0xab, 0x75, 0xd6, 0x9b, 0x46, 0xeb, 0x66, 0xfb, 0x91, 0xfd, 0x76, 0x23, 0xd8, 0x7a, 0x93, 1228 0xed, 0xae, 0xca, 0xe9, 0xf2, 0x80, 0xb8, 0xf5, 0x78, 0xf0, 0x89, 0x3e, 0x05, 0xd3, 0x8f, 0xb0, 1229 0x10, 0xb4, 0x47, 0x7d, 0x7d, 0xf2, 0x9e, 0x3c, 0x4a, 0x89, 0x38, 0xe2, 0x51, 0x60, 0x42, 0xd3, 1230 0x68, 0x55, 0xdc, 0x77, 0x47, 0xf1, 0xfd, 0x01, 0x6c, 0x3d, 0x87, 0xfa, 0x59, 0x49, 0xd4, 0x80, 1231 0xf9, 0xee, 0x93, 0xfd, 0xb5, 0x0d, 0xaf, 0xbb, 0xd3, 0x59, 0xf7, 0x0e, 0xb6, 0xf7, 0x76, 0xd7, 1232 0xd7, 0x36, 0x9f, 0x6e, 0xae, 0x77, 0x66, 0xaf, 0xa1, 0x3b, 0x70, 0xbb, 0x80, 0x6d, 0xbc, 0x58, 1233 0x75, 0x37, 0x3b, 0xb3, 0x06, 0x9a, 0x07, 0x54, 0x08, 0x77, 0xb7, 0xbc, 0x9d, 0xed, 0xad, 0x17, 1234 0xb3, 0x15, 0xeb, 0x21, 0xdc, 0x7a, 0x46, 0xa4, 0xd6, 0xec, 0x92, 0xaf, 0xfa, 0x44, 0xbc, 0xd5, 1235 0x1f, 0x16, 0x85, 0xb9, 0x3d, 0x82, 0x53, 0xff, 0x48, 0xb3, 0xc5, 0x18, 0xba, 0x3a, 0xbd, 0x44, 1236 0x9d, 0xb4, 0xa0, 0xa7, 0x99, 0x97, 0x26, 0xdd, 0x9a, 0x0a, 0xec, 0xd1, 0x53, 0xa2, 0xce, 0x46, 1237 0x83, 0x92, 0xbf, 0x22, 0x2c, 0x77, 0x8f, 0xa6, 0xef, 0xab, 0x80, 0x75, 0x02, 0xef, 0x8c, 0xb6, 1238 0x12, 0x09, 0x67, 0x42, 0x6d, 0x60, 0x55, 0xcf, 0xa3, 0x30, 0x8d, 0xe6, 0x44, 0x6b, 0xaa, 0x7d, 1239 0x7f, 0xec, 0x41, 0xb8, 0x79, 0x02, 0x5a, 0x82, 0x5b, 0x8c, 0xbc, 0x96, 0x5e, 0xa1, 0x6d, 0x66, 1240 0xf0, 0x19, 0x15, 0xde, 0x3d, 0x6b, 0xfd, 0x08, 0x6e, 0xef, 0xa7, 0x98, 0xb2, 0x2b, 0x6d, 0xc9, 1241 0x26, 0xa0, 0xf5, 0xd7, 0xca, 0xba, 0x57, 0x61, 0xab, 0x1d, 0xd1, 0x62, 0xb4, 0x1f, 0xb3, 0xe6, 1242 0x35, 0x1d, 0x38, 0x48, 0xa9, 0x15, 0xc0, 0xdc, 0x48, 0xa9, 0x7c, 0xc5, 0x0b, 0xc5, 0x1c, 0x5d, 1243 0x6e, 0xe3, 0xda, 0x30, 0x0b, 0x2d, 0xc2, 0x4c, 0x06, 0xfb, 0x9c, 0x49, 0xd5, 0x51, 0x95, 0x9d, 1244 0xde, 0xb8, 0xe6, 0x4e, 0xeb, 0xf0, 0x5a, 0x16, 0x5d, 0xbd, 0x01, 0x93, 0xfa, 0xdf, 0x7a, 0x03, 1245 0x68, 0x33, 0xbe, 0xb2, 0xe0, 0x85, 0x0b, 0x82, 0xcb, 0x9b, 0x4f, 0x94, 0x37, 0xff, 0x06, 0xe6, 1246 0x5c, 0x22, 0x24, 0x4f, 0xc9, 0xff, 0xd0, 0xbd, 0xfd, 0x77, 0x15, 0xaa, 0x99, 0x9d, 0xd0, 0x77, 1247 0x06, 0xd4, 0x06, 0xae, 0x47, 0xa5, 0xc3, 0x7c, 0x6e, 0x36, 0x1a, 0xe3, 0x0d, 0x67, 0x2d, 0x7e, 1248 0xff, 0xe7, 0x5f, 0x3f, 0x57, 0xde, 0x47, 0x0b, 0xea, 0xf6, 0x78, 0x93, 0xad, 0xe5, 0xf3, 0x24, 1249 0xe5, 0x5f, 0x12, 0x5f, 0x0a, 0x67, 0xf9, 0xdb, 0xec, 0x46, 0x41, 0xbf, 0x19, 0x30, 0x5d, 0xf4, 1250 0x38, 0x72, 0xca, 0x4a, 0x5f, 0x32, 0x78, 0x8d, 0xc7, 0x57, 0x4f, 0xc8, 0xcc, 0x64, 0x7d, 0xa8, 1251 0xa5, 0x2d, 0xa1, 0x0f, 0x4a, 0xa5, 0xad, 0x08, 0x9d, 0x8b, 0x7e, 0x30, 0x00, 0x86, 0xa3, 0x80, 1252 0x3e, 0x2a, 0x6b, 0x77, 0x61, 0x64, 0x1a, 0x0b, 0x03, 0x7a, 0xe1, 0xca, 0xb3, 0x77, 0x06, 0x57, 1253 0x9e, 0x65, 0x6b, 0x29, 0x2d, 0xeb, 0x41, 0xb9, 0x14, 0xa9, 0xea, 0xae, 0x18, 0xcb, 0xe8, 0x47, 1254 0x03, 0xa6, 0x0a, 0xf3, 0x81, 0xec, 0x32, 0x35, 0x17, 0x67, 0x72, 0x9c, 0x1c, 0x47, 0xcb, 0x79, 1255 0x68, 0x8d, 0xd9, 0x19, 0xa2, 0x0b, 0x0f, 0xf4, 0x14, 0x26, 0xa9, 0x5c, 0xcf, 0xc5, 0x91, 0xfb, 1256 0x8f, 0xf4, 0xd0, 0x78, 0xa0, 0xe7, 0x27, 0x03, 0xa6, 0x8b, 0xc3, 0x55, 0x6e, 0xa7, 0x4b, 0xc6, 1257 0x70, 0x9c, 0xa2, 0xc7, 0x5a, 0xd1, 0xb2, 0xb5, 0x58, 0xae, 0x28, 0xcd, 0x2a, 0xaf, 0x18, 0xcb, 1258 0xab, 0xbf, 0x1a, 0xf0, 0x9e, 0xcf, 0xe3, 0x12, 0x1d, 0xab, 0xa0, 0x15, 0xec, 0xaa, 0x07, 0xca, 1259 0xae, 0xf1, 0xb2, 0x93, 0x33, 0x43, 0xae, 0x9e, 0x09, 0x36, 0x4f, 0x43, 0x27, 0x24, 0x4c, 0x3f, 1260 0x5f, 0x9c, 0x0c, 0xc2, 0x09, 0x15, 0x97, 0xbd, 0xd2, 0x3e, 0x1b, 0xfe, 0xfd, 0x63, 0x18, 0xbf, 1261 0x57, 0x2a, 0x9d, 0xa7, 0x7f, 0x54, 0x1a, 0xcf, 0xb2, 0x72, 0x6b, 0xba, 0x71, 0x67, 0xd8, 0xf8, 1262 0x79, 0xfb, 0xb0, 0xaa, 0xab, 0x7e, 0xfc, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x51, 0x9d, 0x2a, 1263 0xd4, 0xfa, 0x09, 0x00, 0x00, 1264} 1265