1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/dialogflow/v2/entity_type.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 empty "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 field_mask "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// Represents kinds of entities. 32type EntityType_Kind int32 33 34const ( 35 // Not specified. This value should be never used. 36 EntityType_KIND_UNSPECIFIED EntityType_Kind = 0 37 // Map entity types allow mapping of a group of synonyms to a canonical 38 // value. 39 EntityType_KIND_MAP EntityType_Kind = 1 40 // List entity types contain a set of entries that do not map to canonical 41 // values. However, list entity types can contain references to other entity 42 // types (with or without aliases). 43 EntityType_KIND_LIST EntityType_Kind = 2 44) 45 46var EntityType_Kind_name = map[int32]string{ 47 0: "KIND_UNSPECIFIED", 48 1: "KIND_MAP", 49 2: "KIND_LIST", 50} 51var EntityType_Kind_value = map[string]int32{ 52 "KIND_UNSPECIFIED": 0, 53 "KIND_MAP": 1, 54 "KIND_LIST": 2, 55} 56 57func (x EntityType_Kind) String() string { 58 return proto.EnumName(EntityType_Kind_name, int32(x)) 59} 60func (EntityType_Kind) EnumDescriptor() ([]byte, []int) { 61 return fileDescriptor_entity_type_5022cc8f1b023825, []int{0, 0} 62} 63 64// Represents different entity type expansion modes. Automated expansion 65// allows an agent to recognize values that have not been explicitly listed in 66// the entity (for example, new kinds of shopping list items). 67type EntityType_AutoExpansionMode int32 68 69const ( 70 // Auto expansion disabled for the entity. 71 EntityType_AUTO_EXPANSION_MODE_UNSPECIFIED EntityType_AutoExpansionMode = 0 72 // Allows an agent to recognize values that have not been explicitly 73 // listed in the entity. 74 EntityType_AUTO_EXPANSION_MODE_DEFAULT EntityType_AutoExpansionMode = 1 75) 76 77var EntityType_AutoExpansionMode_name = map[int32]string{ 78 0: "AUTO_EXPANSION_MODE_UNSPECIFIED", 79 1: "AUTO_EXPANSION_MODE_DEFAULT", 80} 81var EntityType_AutoExpansionMode_value = map[string]int32{ 82 "AUTO_EXPANSION_MODE_UNSPECIFIED": 0, 83 "AUTO_EXPANSION_MODE_DEFAULT": 1, 84} 85 86func (x EntityType_AutoExpansionMode) String() string { 87 return proto.EnumName(EntityType_AutoExpansionMode_name, int32(x)) 88} 89func (EntityType_AutoExpansionMode) EnumDescriptor() ([]byte, []int) { 90 return fileDescriptor_entity_type_5022cc8f1b023825, []int{0, 1} 91} 92 93// Represents an entity type. 94// Entity types serve as a tool for extracting parameter values from natural 95// language queries. 96type EntityType struct { 97 // Required for all methods except `create` (`create` populates the name 98 // automatically. 99 // The unique identifier of the entity type. Format: 100 // `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. 101 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 102 // Required. The name of the entity. 103 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 104 // Required. Indicates the kind of entity type. 105 Kind EntityType_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=google.cloud.dialogflow.v2.EntityType_Kind" json:"kind,omitempty"` 106 // Optional. Indicates whether the entity type can be automatically 107 // expanded. 108 AutoExpansionMode EntityType_AutoExpansionMode `protobuf:"varint,4,opt,name=auto_expansion_mode,json=autoExpansionMode,proto3,enum=google.cloud.dialogflow.v2.EntityType_AutoExpansionMode" json:"auto_expansion_mode,omitempty"` 109 // Optional. The collection of entities associated with the entity type. 110 Entities []*EntityType_Entity `protobuf:"bytes,6,rep,name=entities,proto3" json:"entities,omitempty"` 111 XXX_NoUnkeyedLiteral struct{} `json:"-"` 112 XXX_unrecognized []byte `json:"-"` 113 XXX_sizecache int32 `json:"-"` 114} 115 116func (m *EntityType) Reset() { *m = EntityType{} } 117func (m *EntityType) String() string { return proto.CompactTextString(m) } 118func (*EntityType) ProtoMessage() {} 119func (*EntityType) Descriptor() ([]byte, []int) { 120 return fileDescriptor_entity_type_5022cc8f1b023825, []int{0} 121} 122func (m *EntityType) XXX_Unmarshal(b []byte) error { 123 return xxx_messageInfo_EntityType.Unmarshal(m, b) 124} 125func (m *EntityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 126 return xxx_messageInfo_EntityType.Marshal(b, m, deterministic) 127} 128func (dst *EntityType) XXX_Merge(src proto.Message) { 129 xxx_messageInfo_EntityType.Merge(dst, src) 130} 131func (m *EntityType) XXX_Size() int { 132 return xxx_messageInfo_EntityType.Size(m) 133} 134func (m *EntityType) XXX_DiscardUnknown() { 135 xxx_messageInfo_EntityType.DiscardUnknown(m) 136} 137 138var xxx_messageInfo_EntityType proto.InternalMessageInfo 139 140func (m *EntityType) GetName() string { 141 if m != nil { 142 return m.Name 143 } 144 return "" 145} 146 147func (m *EntityType) GetDisplayName() string { 148 if m != nil { 149 return m.DisplayName 150 } 151 return "" 152} 153 154func (m *EntityType) GetKind() EntityType_Kind { 155 if m != nil { 156 return m.Kind 157 } 158 return EntityType_KIND_UNSPECIFIED 159} 160 161func (m *EntityType) GetAutoExpansionMode() EntityType_AutoExpansionMode { 162 if m != nil { 163 return m.AutoExpansionMode 164 } 165 return EntityType_AUTO_EXPANSION_MODE_UNSPECIFIED 166} 167 168func (m *EntityType) GetEntities() []*EntityType_Entity { 169 if m != nil { 170 return m.Entities 171 } 172 return nil 173} 174 175// Optional. Represents an entity. 176type EntityType_Entity struct { 177 // Required. 178 // For `KIND_MAP` entity types: 179 // A canonical name to be used in place of synonyms. 180 // For `KIND_LIST` entity types: 181 // A string that can contain references to other entity types (with or 182 // without aliases). 183 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 184 // Required. A collection of synonyms. For `KIND_LIST` entity types this 185 // must contain exactly one synonym equal to `value`. 186 Synonyms []string `protobuf:"bytes,2,rep,name=synonyms,proto3" json:"synonyms,omitempty"` 187 XXX_NoUnkeyedLiteral struct{} `json:"-"` 188 XXX_unrecognized []byte `json:"-"` 189 XXX_sizecache int32 `json:"-"` 190} 191 192func (m *EntityType_Entity) Reset() { *m = EntityType_Entity{} } 193func (m *EntityType_Entity) String() string { return proto.CompactTextString(m) } 194func (*EntityType_Entity) ProtoMessage() {} 195func (*EntityType_Entity) Descriptor() ([]byte, []int) { 196 return fileDescriptor_entity_type_5022cc8f1b023825, []int{0, 0} 197} 198func (m *EntityType_Entity) XXX_Unmarshal(b []byte) error { 199 return xxx_messageInfo_EntityType_Entity.Unmarshal(m, b) 200} 201func (m *EntityType_Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 202 return xxx_messageInfo_EntityType_Entity.Marshal(b, m, deterministic) 203} 204func (dst *EntityType_Entity) XXX_Merge(src proto.Message) { 205 xxx_messageInfo_EntityType_Entity.Merge(dst, src) 206} 207func (m *EntityType_Entity) XXX_Size() int { 208 return xxx_messageInfo_EntityType_Entity.Size(m) 209} 210func (m *EntityType_Entity) XXX_DiscardUnknown() { 211 xxx_messageInfo_EntityType_Entity.DiscardUnknown(m) 212} 213 214var xxx_messageInfo_EntityType_Entity proto.InternalMessageInfo 215 216func (m *EntityType_Entity) GetValue() string { 217 if m != nil { 218 return m.Value 219 } 220 return "" 221} 222 223func (m *EntityType_Entity) GetSynonyms() []string { 224 if m != nil { 225 return m.Synonyms 226 } 227 return nil 228} 229 230// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. 231type ListEntityTypesRequest struct { 232 // Required. The agent to list all entity types from. 233 // Format: `projects/<Project ID>/agent`. 234 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 235 // Optional. The language to list entity synonyms for. If not specified, 236 // the agent's default language is used. 237 // [More than a dozen 238 // languages](https://dialogflow.com/docs/reference/language) are supported. 239 // Note: languages must be enabled in the agent, before they can be used. 240 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 241 // Optional. The maximum number of items to return in a single page. By 242 // default 100 and at most 1000. 243 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 244 // Optional. The next_page_token value returned from a previous list request. 245 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 246 XXX_NoUnkeyedLiteral struct{} `json:"-"` 247 XXX_unrecognized []byte `json:"-"` 248 XXX_sizecache int32 `json:"-"` 249} 250 251func (m *ListEntityTypesRequest) Reset() { *m = ListEntityTypesRequest{} } 252func (m *ListEntityTypesRequest) String() string { return proto.CompactTextString(m) } 253func (*ListEntityTypesRequest) ProtoMessage() {} 254func (*ListEntityTypesRequest) Descriptor() ([]byte, []int) { 255 return fileDescriptor_entity_type_5022cc8f1b023825, []int{1} 256} 257func (m *ListEntityTypesRequest) XXX_Unmarshal(b []byte) error { 258 return xxx_messageInfo_ListEntityTypesRequest.Unmarshal(m, b) 259} 260func (m *ListEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 261 return xxx_messageInfo_ListEntityTypesRequest.Marshal(b, m, deterministic) 262} 263func (dst *ListEntityTypesRequest) XXX_Merge(src proto.Message) { 264 xxx_messageInfo_ListEntityTypesRequest.Merge(dst, src) 265} 266func (m *ListEntityTypesRequest) XXX_Size() int { 267 return xxx_messageInfo_ListEntityTypesRequest.Size(m) 268} 269func (m *ListEntityTypesRequest) XXX_DiscardUnknown() { 270 xxx_messageInfo_ListEntityTypesRequest.DiscardUnknown(m) 271} 272 273var xxx_messageInfo_ListEntityTypesRequest proto.InternalMessageInfo 274 275func (m *ListEntityTypesRequest) GetParent() string { 276 if m != nil { 277 return m.Parent 278 } 279 return "" 280} 281 282func (m *ListEntityTypesRequest) GetLanguageCode() string { 283 if m != nil { 284 return m.LanguageCode 285 } 286 return "" 287} 288 289func (m *ListEntityTypesRequest) GetPageSize() int32 { 290 if m != nil { 291 return m.PageSize 292 } 293 return 0 294} 295 296func (m *ListEntityTypesRequest) GetPageToken() string { 297 if m != nil { 298 return m.PageToken 299 } 300 return "" 301} 302 303// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes]. 304type ListEntityTypesResponse struct { 305 // The list of agent entity types. There will be a maximum number of items 306 // returned based on the page_size field in the request. 307 EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` 308 // Token to retrieve the next page of results, or empty if there are no 309 // more results in the list. 310 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 311 XXX_NoUnkeyedLiteral struct{} `json:"-"` 312 XXX_unrecognized []byte `json:"-"` 313 XXX_sizecache int32 `json:"-"` 314} 315 316func (m *ListEntityTypesResponse) Reset() { *m = ListEntityTypesResponse{} } 317func (m *ListEntityTypesResponse) String() string { return proto.CompactTextString(m) } 318func (*ListEntityTypesResponse) ProtoMessage() {} 319func (*ListEntityTypesResponse) Descriptor() ([]byte, []int) { 320 return fileDescriptor_entity_type_5022cc8f1b023825, []int{2} 321} 322func (m *ListEntityTypesResponse) XXX_Unmarshal(b []byte) error { 323 return xxx_messageInfo_ListEntityTypesResponse.Unmarshal(m, b) 324} 325func (m *ListEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 326 return xxx_messageInfo_ListEntityTypesResponse.Marshal(b, m, deterministic) 327} 328func (dst *ListEntityTypesResponse) XXX_Merge(src proto.Message) { 329 xxx_messageInfo_ListEntityTypesResponse.Merge(dst, src) 330} 331func (m *ListEntityTypesResponse) XXX_Size() int { 332 return xxx_messageInfo_ListEntityTypesResponse.Size(m) 333} 334func (m *ListEntityTypesResponse) XXX_DiscardUnknown() { 335 xxx_messageInfo_ListEntityTypesResponse.DiscardUnknown(m) 336} 337 338var xxx_messageInfo_ListEntityTypesResponse proto.InternalMessageInfo 339 340func (m *ListEntityTypesResponse) GetEntityTypes() []*EntityType { 341 if m != nil { 342 return m.EntityTypes 343 } 344 return nil 345} 346 347func (m *ListEntityTypesResponse) GetNextPageToken() string { 348 if m != nil { 349 return m.NextPageToken 350 } 351 return "" 352} 353 354// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType]. 355type GetEntityTypeRequest struct { 356 // Required. The name of the entity type. 357 // Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`. 358 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 359 // Optional. The language to retrieve entity synonyms for. If not specified, 360 // the agent's default language is used. 361 // [More than a dozen 362 // languages](https://dialogflow.com/docs/reference/language) are supported. 363 // Note: languages must be enabled in the agent, before they can be used. 364 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 365 XXX_NoUnkeyedLiteral struct{} `json:"-"` 366 XXX_unrecognized []byte `json:"-"` 367 XXX_sizecache int32 `json:"-"` 368} 369 370func (m *GetEntityTypeRequest) Reset() { *m = GetEntityTypeRequest{} } 371func (m *GetEntityTypeRequest) String() string { return proto.CompactTextString(m) } 372func (*GetEntityTypeRequest) ProtoMessage() {} 373func (*GetEntityTypeRequest) Descriptor() ([]byte, []int) { 374 return fileDescriptor_entity_type_5022cc8f1b023825, []int{3} 375} 376func (m *GetEntityTypeRequest) XXX_Unmarshal(b []byte) error { 377 return xxx_messageInfo_GetEntityTypeRequest.Unmarshal(m, b) 378} 379func (m *GetEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 380 return xxx_messageInfo_GetEntityTypeRequest.Marshal(b, m, deterministic) 381} 382func (dst *GetEntityTypeRequest) XXX_Merge(src proto.Message) { 383 xxx_messageInfo_GetEntityTypeRequest.Merge(dst, src) 384} 385func (m *GetEntityTypeRequest) XXX_Size() int { 386 return xxx_messageInfo_GetEntityTypeRequest.Size(m) 387} 388func (m *GetEntityTypeRequest) XXX_DiscardUnknown() { 389 xxx_messageInfo_GetEntityTypeRequest.DiscardUnknown(m) 390} 391 392var xxx_messageInfo_GetEntityTypeRequest proto.InternalMessageInfo 393 394func (m *GetEntityTypeRequest) GetName() string { 395 if m != nil { 396 return m.Name 397 } 398 return "" 399} 400 401func (m *GetEntityTypeRequest) GetLanguageCode() string { 402 if m != nil { 403 return m.LanguageCode 404 } 405 return "" 406} 407 408// The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType]. 409type CreateEntityTypeRequest struct { 410 // Required. The agent to create a entity type for. 411 // Format: `projects/<Project ID>/agent`. 412 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 413 // Required. The entity type to create. 414 EntityType *EntityType `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` 415 // Optional. The language of entity synonyms defined in `entity_type`. If not 416 // specified, the agent's default language is used. 417 // [More than a dozen 418 // languages](https://dialogflow.com/docs/reference/language) are supported. 419 // Note: languages must be enabled in the agent, before they can be used. 420 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 421 XXX_NoUnkeyedLiteral struct{} `json:"-"` 422 XXX_unrecognized []byte `json:"-"` 423 XXX_sizecache int32 `json:"-"` 424} 425 426func (m *CreateEntityTypeRequest) Reset() { *m = CreateEntityTypeRequest{} } 427func (m *CreateEntityTypeRequest) String() string { return proto.CompactTextString(m) } 428func (*CreateEntityTypeRequest) ProtoMessage() {} 429func (*CreateEntityTypeRequest) Descriptor() ([]byte, []int) { 430 return fileDescriptor_entity_type_5022cc8f1b023825, []int{4} 431} 432func (m *CreateEntityTypeRequest) XXX_Unmarshal(b []byte) error { 433 return xxx_messageInfo_CreateEntityTypeRequest.Unmarshal(m, b) 434} 435func (m *CreateEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 436 return xxx_messageInfo_CreateEntityTypeRequest.Marshal(b, m, deterministic) 437} 438func (dst *CreateEntityTypeRequest) XXX_Merge(src proto.Message) { 439 xxx_messageInfo_CreateEntityTypeRequest.Merge(dst, src) 440} 441func (m *CreateEntityTypeRequest) XXX_Size() int { 442 return xxx_messageInfo_CreateEntityTypeRequest.Size(m) 443} 444func (m *CreateEntityTypeRequest) XXX_DiscardUnknown() { 445 xxx_messageInfo_CreateEntityTypeRequest.DiscardUnknown(m) 446} 447 448var xxx_messageInfo_CreateEntityTypeRequest proto.InternalMessageInfo 449 450func (m *CreateEntityTypeRequest) GetParent() string { 451 if m != nil { 452 return m.Parent 453 } 454 return "" 455} 456 457func (m *CreateEntityTypeRequest) GetEntityType() *EntityType { 458 if m != nil { 459 return m.EntityType 460 } 461 return nil 462} 463 464func (m *CreateEntityTypeRequest) GetLanguageCode() string { 465 if m != nil { 466 return m.LanguageCode 467 } 468 return "" 469} 470 471// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]. 472type UpdateEntityTypeRequest struct { 473 // Required. The entity type to update. 474 // Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`. 475 EntityType *EntityType `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` 476 // Optional. The language of entity synonyms defined in `entity_type`. If not 477 // specified, the agent's default language is used. 478 // [More than a dozen 479 // languages](https://dialogflow.com/docs/reference/language) are supported. 480 // Note: languages must be enabled in the agent, before they can be used. 481 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 482 // Optional. The mask to control which fields get updated. 483 UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 484 XXX_NoUnkeyedLiteral struct{} `json:"-"` 485 XXX_unrecognized []byte `json:"-"` 486 XXX_sizecache int32 `json:"-"` 487} 488 489func (m *UpdateEntityTypeRequest) Reset() { *m = UpdateEntityTypeRequest{} } 490func (m *UpdateEntityTypeRequest) String() string { return proto.CompactTextString(m) } 491func (*UpdateEntityTypeRequest) ProtoMessage() {} 492func (*UpdateEntityTypeRequest) Descriptor() ([]byte, []int) { 493 return fileDescriptor_entity_type_5022cc8f1b023825, []int{5} 494} 495func (m *UpdateEntityTypeRequest) XXX_Unmarshal(b []byte) error { 496 return xxx_messageInfo_UpdateEntityTypeRequest.Unmarshal(m, b) 497} 498func (m *UpdateEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 499 return xxx_messageInfo_UpdateEntityTypeRequest.Marshal(b, m, deterministic) 500} 501func (dst *UpdateEntityTypeRequest) XXX_Merge(src proto.Message) { 502 xxx_messageInfo_UpdateEntityTypeRequest.Merge(dst, src) 503} 504func (m *UpdateEntityTypeRequest) XXX_Size() int { 505 return xxx_messageInfo_UpdateEntityTypeRequest.Size(m) 506} 507func (m *UpdateEntityTypeRequest) XXX_DiscardUnknown() { 508 xxx_messageInfo_UpdateEntityTypeRequest.DiscardUnknown(m) 509} 510 511var xxx_messageInfo_UpdateEntityTypeRequest proto.InternalMessageInfo 512 513func (m *UpdateEntityTypeRequest) GetEntityType() *EntityType { 514 if m != nil { 515 return m.EntityType 516 } 517 return nil 518} 519 520func (m *UpdateEntityTypeRequest) GetLanguageCode() string { 521 if m != nil { 522 return m.LanguageCode 523 } 524 return "" 525} 526 527func (m *UpdateEntityTypeRequest) GetUpdateMask() *field_mask.FieldMask { 528 if m != nil { 529 return m.UpdateMask 530 } 531 return nil 532} 533 534// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType]. 535type DeleteEntityTypeRequest struct { 536 // Required. The name of the entity type to delete. 537 // Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`. 538 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 539 XXX_NoUnkeyedLiteral struct{} `json:"-"` 540 XXX_unrecognized []byte `json:"-"` 541 XXX_sizecache int32 `json:"-"` 542} 543 544func (m *DeleteEntityTypeRequest) Reset() { *m = DeleteEntityTypeRequest{} } 545func (m *DeleteEntityTypeRequest) String() string { return proto.CompactTextString(m) } 546func (*DeleteEntityTypeRequest) ProtoMessage() {} 547func (*DeleteEntityTypeRequest) Descriptor() ([]byte, []int) { 548 return fileDescriptor_entity_type_5022cc8f1b023825, []int{6} 549} 550func (m *DeleteEntityTypeRequest) XXX_Unmarshal(b []byte) error { 551 return xxx_messageInfo_DeleteEntityTypeRequest.Unmarshal(m, b) 552} 553func (m *DeleteEntityTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 554 return xxx_messageInfo_DeleteEntityTypeRequest.Marshal(b, m, deterministic) 555} 556func (dst *DeleteEntityTypeRequest) XXX_Merge(src proto.Message) { 557 xxx_messageInfo_DeleteEntityTypeRequest.Merge(dst, src) 558} 559func (m *DeleteEntityTypeRequest) XXX_Size() int { 560 return xxx_messageInfo_DeleteEntityTypeRequest.Size(m) 561} 562func (m *DeleteEntityTypeRequest) XXX_DiscardUnknown() { 563 xxx_messageInfo_DeleteEntityTypeRequest.DiscardUnknown(m) 564} 565 566var xxx_messageInfo_DeleteEntityTypeRequest proto.InternalMessageInfo 567 568func (m *DeleteEntityTypeRequest) GetName() string { 569 if m != nil { 570 return m.Name 571 } 572 return "" 573} 574 575// The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. 576type BatchUpdateEntityTypesRequest struct { 577 // Required. The name of the agent to update or create entity types in. 578 // Format: `projects/<Project ID>/agent`. 579 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 580 // Required. The source of the entity type batch. 581 // 582 // For each entity type in the batch: 583 // * If `name` is specified, we update an existing entity type. 584 // * If `name` is not specified, we create a new entity type. 585 // 586 // Types that are valid to be assigned to EntityTypeBatch: 587 // *BatchUpdateEntityTypesRequest_EntityTypeBatchUri 588 // *BatchUpdateEntityTypesRequest_EntityTypeBatchInline 589 EntityTypeBatch isBatchUpdateEntityTypesRequest_EntityTypeBatch `protobuf_oneof:"entity_type_batch"` 590 // Optional. The language of entity synonyms defined in `entity_types`. If not 591 // specified, the agent's default language is used. 592 // [More than a dozen 593 // languages](https://dialogflow.com/docs/reference/language) are supported. 594 // Note: languages must be enabled in the agent, before they can be used. 595 LanguageCode string `protobuf:"bytes,4,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 596 // Optional. The mask to control which fields get updated. 597 UpdateMask *field_mask.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 598 XXX_NoUnkeyedLiteral struct{} `json:"-"` 599 XXX_unrecognized []byte `json:"-"` 600 XXX_sizecache int32 `json:"-"` 601} 602 603func (m *BatchUpdateEntityTypesRequest) Reset() { *m = BatchUpdateEntityTypesRequest{} } 604func (m *BatchUpdateEntityTypesRequest) String() string { return proto.CompactTextString(m) } 605func (*BatchUpdateEntityTypesRequest) ProtoMessage() {} 606func (*BatchUpdateEntityTypesRequest) Descriptor() ([]byte, []int) { 607 return fileDescriptor_entity_type_5022cc8f1b023825, []int{7} 608} 609func (m *BatchUpdateEntityTypesRequest) XXX_Unmarshal(b []byte) error { 610 return xxx_messageInfo_BatchUpdateEntityTypesRequest.Unmarshal(m, b) 611} 612func (m *BatchUpdateEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 613 return xxx_messageInfo_BatchUpdateEntityTypesRequest.Marshal(b, m, deterministic) 614} 615func (dst *BatchUpdateEntityTypesRequest) XXX_Merge(src proto.Message) { 616 xxx_messageInfo_BatchUpdateEntityTypesRequest.Merge(dst, src) 617} 618func (m *BatchUpdateEntityTypesRequest) XXX_Size() int { 619 return xxx_messageInfo_BatchUpdateEntityTypesRequest.Size(m) 620} 621func (m *BatchUpdateEntityTypesRequest) XXX_DiscardUnknown() { 622 xxx_messageInfo_BatchUpdateEntityTypesRequest.DiscardUnknown(m) 623} 624 625var xxx_messageInfo_BatchUpdateEntityTypesRequest proto.InternalMessageInfo 626 627func (m *BatchUpdateEntityTypesRequest) GetParent() string { 628 if m != nil { 629 return m.Parent 630 } 631 return "" 632} 633 634type isBatchUpdateEntityTypesRequest_EntityTypeBatch interface { 635 isBatchUpdateEntityTypesRequest_EntityTypeBatch() 636} 637 638type BatchUpdateEntityTypesRequest_EntityTypeBatchUri struct { 639 EntityTypeBatchUri string `protobuf:"bytes,2,opt,name=entity_type_batch_uri,json=entityTypeBatchUri,proto3,oneof"` 640} 641 642type BatchUpdateEntityTypesRequest_EntityTypeBatchInline struct { 643 EntityTypeBatchInline *EntityTypeBatch `protobuf:"bytes,3,opt,name=entity_type_batch_inline,json=entityTypeBatchInline,proto3,oneof"` 644} 645 646func (*BatchUpdateEntityTypesRequest_EntityTypeBatchUri) isBatchUpdateEntityTypesRequest_EntityTypeBatch() { 647} 648 649func (*BatchUpdateEntityTypesRequest_EntityTypeBatchInline) isBatchUpdateEntityTypesRequest_EntityTypeBatch() { 650} 651 652func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatch() isBatchUpdateEntityTypesRequest_EntityTypeBatch { 653 if m != nil { 654 return m.EntityTypeBatch 655 } 656 return nil 657} 658 659func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatchUri() string { 660 if x, ok := m.GetEntityTypeBatch().(*BatchUpdateEntityTypesRequest_EntityTypeBatchUri); ok { 661 return x.EntityTypeBatchUri 662 } 663 return "" 664} 665 666func (m *BatchUpdateEntityTypesRequest) GetEntityTypeBatchInline() *EntityTypeBatch { 667 if x, ok := m.GetEntityTypeBatch().(*BatchUpdateEntityTypesRequest_EntityTypeBatchInline); ok { 668 return x.EntityTypeBatchInline 669 } 670 return nil 671} 672 673func (m *BatchUpdateEntityTypesRequest) GetLanguageCode() string { 674 if m != nil { 675 return m.LanguageCode 676 } 677 return "" 678} 679 680func (m *BatchUpdateEntityTypesRequest) GetUpdateMask() *field_mask.FieldMask { 681 if m != nil { 682 return m.UpdateMask 683 } 684 return nil 685} 686 687// XXX_OneofFuncs is for the internal use of the proto package. 688func (*BatchUpdateEntityTypesRequest) 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{}) { 689 return _BatchUpdateEntityTypesRequest_OneofMarshaler, _BatchUpdateEntityTypesRequest_OneofUnmarshaler, _BatchUpdateEntityTypesRequest_OneofSizer, []interface{}{ 690 (*BatchUpdateEntityTypesRequest_EntityTypeBatchUri)(nil), 691 (*BatchUpdateEntityTypesRequest_EntityTypeBatchInline)(nil), 692 } 693} 694 695func _BatchUpdateEntityTypesRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 696 m := msg.(*BatchUpdateEntityTypesRequest) 697 // entity_type_batch 698 switch x := m.EntityTypeBatch.(type) { 699 case *BatchUpdateEntityTypesRequest_EntityTypeBatchUri: 700 b.EncodeVarint(2<<3 | proto.WireBytes) 701 b.EncodeStringBytes(x.EntityTypeBatchUri) 702 case *BatchUpdateEntityTypesRequest_EntityTypeBatchInline: 703 b.EncodeVarint(3<<3 | proto.WireBytes) 704 if err := b.EncodeMessage(x.EntityTypeBatchInline); err != nil { 705 return err 706 } 707 case nil: 708 default: 709 return fmt.Errorf("BatchUpdateEntityTypesRequest.EntityTypeBatch has unexpected type %T", x) 710 } 711 return nil 712} 713 714func _BatchUpdateEntityTypesRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 715 m := msg.(*BatchUpdateEntityTypesRequest) 716 switch tag { 717 case 2: // entity_type_batch.entity_type_batch_uri 718 if wire != proto.WireBytes { 719 return true, proto.ErrInternalBadWireType 720 } 721 x, err := b.DecodeStringBytes() 722 m.EntityTypeBatch = &BatchUpdateEntityTypesRequest_EntityTypeBatchUri{x} 723 return true, err 724 case 3: // entity_type_batch.entity_type_batch_inline 725 if wire != proto.WireBytes { 726 return true, proto.ErrInternalBadWireType 727 } 728 msg := new(EntityTypeBatch) 729 err := b.DecodeMessage(msg) 730 m.EntityTypeBatch = &BatchUpdateEntityTypesRequest_EntityTypeBatchInline{msg} 731 return true, err 732 default: 733 return false, nil 734 } 735} 736 737func _BatchUpdateEntityTypesRequest_OneofSizer(msg proto.Message) (n int) { 738 m := msg.(*BatchUpdateEntityTypesRequest) 739 // entity_type_batch 740 switch x := m.EntityTypeBatch.(type) { 741 case *BatchUpdateEntityTypesRequest_EntityTypeBatchUri: 742 n += 1 // tag and wire 743 n += proto.SizeVarint(uint64(len(x.EntityTypeBatchUri))) 744 n += len(x.EntityTypeBatchUri) 745 case *BatchUpdateEntityTypesRequest_EntityTypeBatchInline: 746 s := proto.Size(x.EntityTypeBatchInline) 747 n += 1 // tag and wire 748 n += proto.SizeVarint(uint64(s)) 749 n += s 750 case nil: 751 default: 752 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 753 } 754 return n 755} 756 757// The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]. 758type BatchUpdateEntityTypesResponse struct { 759 // The collection of updated or created entity types. 760 EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` 761 XXX_NoUnkeyedLiteral struct{} `json:"-"` 762 XXX_unrecognized []byte `json:"-"` 763 XXX_sizecache int32 `json:"-"` 764} 765 766func (m *BatchUpdateEntityTypesResponse) Reset() { *m = BatchUpdateEntityTypesResponse{} } 767func (m *BatchUpdateEntityTypesResponse) String() string { return proto.CompactTextString(m) } 768func (*BatchUpdateEntityTypesResponse) ProtoMessage() {} 769func (*BatchUpdateEntityTypesResponse) Descriptor() ([]byte, []int) { 770 return fileDescriptor_entity_type_5022cc8f1b023825, []int{8} 771} 772func (m *BatchUpdateEntityTypesResponse) XXX_Unmarshal(b []byte) error { 773 return xxx_messageInfo_BatchUpdateEntityTypesResponse.Unmarshal(m, b) 774} 775func (m *BatchUpdateEntityTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 776 return xxx_messageInfo_BatchUpdateEntityTypesResponse.Marshal(b, m, deterministic) 777} 778func (dst *BatchUpdateEntityTypesResponse) XXX_Merge(src proto.Message) { 779 xxx_messageInfo_BatchUpdateEntityTypesResponse.Merge(dst, src) 780} 781func (m *BatchUpdateEntityTypesResponse) XXX_Size() int { 782 return xxx_messageInfo_BatchUpdateEntityTypesResponse.Size(m) 783} 784func (m *BatchUpdateEntityTypesResponse) XXX_DiscardUnknown() { 785 xxx_messageInfo_BatchUpdateEntityTypesResponse.DiscardUnknown(m) 786} 787 788var xxx_messageInfo_BatchUpdateEntityTypesResponse proto.InternalMessageInfo 789 790func (m *BatchUpdateEntityTypesResponse) GetEntityTypes() []*EntityType { 791 if m != nil { 792 return m.EntityTypes 793 } 794 return nil 795} 796 797// The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes]. 798type BatchDeleteEntityTypesRequest struct { 799 // Required. The name of the agent to delete all entities types for. Format: 800 // `projects/<Project ID>/agent`. 801 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 802 // Required. The names entity types to delete. All names must point to the 803 // same agent as `parent`. 804 EntityTypeNames []string `protobuf:"bytes,2,rep,name=entity_type_names,json=entityTypeNames,proto3" json:"entity_type_names,omitempty"` 805 XXX_NoUnkeyedLiteral struct{} `json:"-"` 806 XXX_unrecognized []byte `json:"-"` 807 XXX_sizecache int32 `json:"-"` 808} 809 810func (m *BatchDeleteEntityTypesRequest) Reset() { *m = BatchDeleteEntityTypesRequest{} } 811func (m *BatchDeleteEntityTypesRequest) String() string { return proto.CompactTextString(m) } 812func (*BatchDeleteEntityTypesRequest) ProtoMessage() {} 813func (*BatchDeleteEntityTypesRequest) Descriptor() ([]byte, []int) { 814 return fileDescriptor_entity_type_5022cc8f1b023825, []int{9} 815} 816func (m *BatchDeleteEntityTypesRequest) XXX_Unmarshal(b []byte) error { 817 return xxx_messageInfo_BatchDeleteEntityTypesRequest.Unmarshal(m, b) 818} 819func (m *BatchDeleteEntityTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 820 return xxx_messageInfo_BatchDeleteEntityTypesRequest.Marshal(b, m, deterministic) 821} 822func (dst *BatchDeleteEntityTypesRequest) XXX_Merge(src proto.Message) { 823 xxx_messageInfo_BatchDeleteEntityTypesRequest.Merge(dst, src) 824} 825func (m *BatchDeleteEntityTypesRequest) XXX_Size() int { 826 return xxx_messageInfo_BatchDeleteEntityTypesRequest.Size(m) 827} 828func (m *BatchDeleteEntityTypesRequest) XXX_DiscardUnknown() { 829 xxx_messageInfo_BatchDeleteEntityTypesRequest.DiscardUnknown(m) 830} 831 832var xxx_messageInfo_BatchDeleteEntityTypesRequest proto.InternalMessageInfo 833 834func (m *BatchDeleteEntityTypesRequest) GetParent() string { 835 if m != nil { 836 return m.Parent 837 } 838 return "" 839} 840 841func (m *BatchDeleteEntityTypesRequest) GetEntityTypeNames() []string { 842 if m != nil { 843 return m.EntityTypeNames 844 } 845 return nil 846} 847 848// The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. 849type BatchCreateEntitiesRequest struct { 850 // Required. The name of the entity type to create entities in. Format: 851 // `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. 852 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 853 // Required. The collection of entities to create. 854 Entities []*EntityType_Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` 855 // Optional. The language of entity synonyms defined in `entities`. If not 856 // specified, the agent's default language is used. 857 // [More than a dozen 858 // languages](https://dialogflow.com/docs/reference/language) are supported. 859 // Note: languages must be enabled in the agent, before they can be used. 860 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 861 XXX_NoUnkeyedLiteral struct{} `json:"-"` 862 XXX_unrecognized []byte `json:"-"` 863 XXX_sizecache int32 `json:"-"` 864} 865 866func (m *BatchCreateEntitiesRequest) Reset() { *m = BatchCreateEntitiesRequest{} } 867func (m *BatchCreateEntitiesRequest) String() string { return proto.CompactTextString(m) } 868func (*BatchCreateEntitiesRequest) ProtoMessage() {} 869func (*BatchCreateEntitiesRequest) Descriptor() ([]byte, []int) { 870 return fileDescriptor_entity_type_5022cc8f1b023825, []int{10} 871} 872func (m *BatchCreateEntitiesRequest) XXX_Unmarshal(b []byte) error { 873 return xxx_messageInfo_BatchCreateEntitiesRequest.Unmarshal(m, b) 874} 875func (m *BatchCreateEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 876 return xxx_messageInfo_BatchCreateEntitiesRequest.Marshal(b, m, deterministic) 877} 878func (dst *BatchCreateEntitiesRequest) XXX_Merge(src proto.Message) { 879 xxx_messageInfo_BatchCreateEntitiesRequest.Merge(dst, src) 880} 881func (m *BatchCreateEntitiesRequest) XXX_Size() int { 882 return xxx_messageInfo_BatchCreateEntitiesRequest.Size(m) 883} 884func (m *BatchCreateEntitiesRequest) XXX_DiscardUnknown() { 885 xxx_messageInfo_BatchCreateEntitiesRequest.DiscardUnknown(m) 886} 887 888var xxx_messageInfo_BatchCreateEntitiesRequest proto.InternalMessageInfo 889 890func (m *BatchCreateEntitiesRequest) GetParent() string { 891 if m != nil { 892 return m.Parent 893 } 894 return "" 895} 896 897func (m *BatchCreateEntitiesRequest) GetEntities() []*EntityType_Entity { 898 if m != nil { 899 return m.Entities 900 } 901 return nil 902} 903 904func (m *BatchCreateEntitiesRequest) GetLanguageCode() string { 905 if m != nil { 906 return m.LanguageCode 907 } 908 return "" 909} 910 911// The response message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities]. 912type BatchUpdateEntitiesRequest struct { 913 // Required. The name of the entity type to update the entities in. Format: 914 // `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. 915 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 916 // Required. The collection of new entities to replace the existing entities. 917 Entities []*EntityType_Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` 918 // Optional. The language of entity synonyms defined in `entities`. If not 919 // specified, the agent's default language is used. 920 // [More than a dozen 921 // languages](https://dialogflow.com/docs/reference/language) are supported. 922 // Note: languages must be enabled in the agent, before they can be used. 923 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 924 // Optional. The mask to control which fields get updated. 925 UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 926 XXX_NoUnkeyedLiteral struct{} `json:"-"` 927 XXX_unrecognized []byte `json:"-"` 928 XXX_sizecache int32 `json:"-"` 929} 930 931func (m *BatchUpdateEntitiesRequest) Reset() { *m = BatchUpdateEntitiesRequest{} } 932func (m *BatchUpdateEntitiesRequest) String() string { return proto.CompactTextString(m) } 933func (*BatchUpdateEntitiesRequest) ProtoMessage() {} 934func (*BatchUpdateEntitiesRequest) Descriptor() ([]byte, []int) { 935 return fileDescriptor_entity_type_5022cc8f1b023825, []int{11} 936} 937func (m *BatchUpdateEntitiesRequest) XXX_Unmarshal(b []byte) error { 938 return xxx_messageInfo_BatchUpdateEntitiesRequest.Unmarshal(m, b) 939} 940func (m *BatchUpdateEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 941 return xxx_messageInfo_BatchUpdateEntitiesRequest.Marshal(b, m, deterministic) 942} 943func (dst *BatchUpdateEntitiesRequest) XXX_Merge(src proto.Message) { 944 xxx_messageInfo_BatchUpdateEntitiesRequest.Merge(dst, src) 945} 946func (m *BatchUpdateEntitiesRequest) XXX_Size() int { 947 return xxx_messageInfo_BatchUpdateEntitiesRequest.Size(m) 948} 949func (m *BatchUpdateEntitiesRequest) XXX_DiscardUnknown() { 950 xxx_messageInfo_BatchUpdateEntitiesRequest.DiscardUnknown(m) 951} 952 953var xxx_messageInfo_BatchUpdateEntitiesRequest proto.InternalMessageInfo 954 955func (m *BatchUpdateEntitiesRequest) GetParent() string { 956 if m != nil { 957 return m.Parent 958 } 959 return "" 960} 961 962func (m *BatchUpdateEntitiesRequest) GetEntities() []*EntityType_Entity { 963 if m != nil { 964 return m.Entities 965 } 966 return nil 967} 968 969func (m *BatchUpdateEntitiesRequest) GetLanguageCode() string { 970 if m != nil { 971 return m.LanguageCode 972 } 973 return "" 974} 975 976func (m *BatchUpdateEntitiesRequest) GetUpdateMask() *field_mask.FieldMask { 977 if m != nil { 978 return m.UpdateMask 979 } 980 return nil 981} 982 983// The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities]. 984type BatchDeleteEntitiesRequest struct { 985 // Required. The name of the entity type to delete entries for. Format: 986 // `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. 987 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 988 // Required. The canonical `values` of the entities to delete. Note that 989 // these are not fully-qualified names, i.e. they don't start with 990 // `projects/<Project ID>`. 991 EntityValues []string `protobuf:"bytes,2,rep,name=entity_values,json=entityValues,proto3" json:"entity_values,omitempty"` 992 // Optional. The language of entity synonyms defined in `entities`. If not 993 // specified, the agent's default language is used. 994 // [More than a dozen 995 // languages](https://dialogflow.com/docs/reference/language) are supported. 996 // Note: languages must be enabled in the agent, before they can be used. 997 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 998 XXX_NoUnkeyedLiteral struct{} `json:"-"` 999 XXX_unrecognized []byte `json:"-"` 1000 XXX_sizecache int32 `json:"-"` 1001} 1002 1003func (m *BatchDeleteEntitiesRequest) Reset() { *m = BatchDeleteEntitiesRequest{} } 1004func (m *BatchDeleteEntitiesRequest) String() string { return proto.CompactTextString(m) } 1005func (*BatchDeleteEntitiesRequest) ProtoMessage() {} 1006func (*BatchDeleteEntitiesRequest) Descriptor() ([]byte, []int) { 1007 return fileDescriptor_entity_type_5022cc8f1b023825, []int{12} 1008} 1009func (m *BatchDeleteEntitiesRequest) XXX_Unmarshal(b []byte) error { 1010 return xxx_messageInfo_BatchDeleteEntitiesRequest.Unmarshal(m, b) 1011} 1012func (m *BatchDeleteEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1013 return xxx_messageInfo_BatchDeleteEntitiesRequest.Marshal(b, m, deterministic) 1014} 1015func (dst *BatchDeleteEntitiesRequest) XXX_Merge(src proto.Message) { 1016 xxx_messageInfo_BatchDeleteEntitiesRequest.Merge(dst, src) 1017} 1018func (m *BatchDeleteEntitiesRequest) XXX_Size() int { 1019 return xxx_messageInfo_BatchDeleteEntitiesRequest.Size(m) 1020} 1021func (m *BatchDeleteEntitiesRequest) XXX_DiscardUnknown() { 1022 xxx_messageInfo_BatchDeleteEntitiesRequest.DiscardUnknown(m) 1023} 1024 1025var xxx_messageInfo_BatchDeleteEntitiesRequest proto.InternalMessageInfo 1026 1027func (m *BatchDeleteEntitiesRequest) GetParent() string { 1028 if m != nil { 1029 return m.Parent 1030 } 1031 return "" 1032} 1033 1034func (m *BatchDeleteEntitiesRequest) GetEntityValues() []string { 1035 if m != nil { 1036 return m.EntityValues 1037 } 1038 return nil 1039} 1040 1041func (m *BatchDeleteEntitiesRequest) GetLanguageCode() string { 1042 if m != nil { 1043 return m.LanguageCode 1044 } 1045 return "" 1046} 1047 1048// This message is a wrapper around a collection of entity types. 1049type EntityTypeBatch struct { 1050 // A collection of entity types. 1051 EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` 1052 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1053 XXX_unrecognized []byte `json:"-"` 1054 XXX_sizecache int32 `json:"-"` 1055} 1056 1057func (m *EntityTypeBatch) Reset() { *m = EntityTypeBatch{} } 1058func (m *EntityTypeBatch) String() string { return proto.CompactTextString(m) } 1059func (*EntityTypeBatch) ProtoMessage() {} 1060func (*EntityTypeBatch) Descriptor() ([]byte, []int) { 1061 return fileDescriptor_entity_type_5022cc8f1b023825, []int{13} 1062} 1063func (m *EntityTypeBatch) XXX_Unmarshal(b []byte) error { 1064 return xxx_messageInfo_EntityTypeBatch.Unmarshal(m, b) 1065} 1066func (m *EntityTypeBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1067 return xxx_messageInfo_EntityTypeBatch.Marshal(b, m, deterministic) 1068} 1069func (dst *EntityTypeBatch) XXX_Merge(src proto.Message) { 1070 xxx_messageInfo_EntityTypeBatch.Merge(dst, src) 1071} 1072func (m *EntityTypeBatch) XXX_Size() int { 1073 return xxx_messageInfo_EntityTypeBatch.Size(m) 1074} 1075func (m *EntityTypeBatch) XXX_DiscardUnknown() { 1076 xxx_messageInfo_EntityTypeBatch.DiscardUnknown(m) 1077} 1078 1079var xxx_messageInfo_EntityTypeBatch proto.InternalMessageInfo 1080 1081func (m *EntityTypeBatch) GetEntityTypes() []*EntityType { 1082 if m != nil { 1083 return m.EntityTypes 1084 } 1085 return nil 1086} 1087 1088func init() { 1089 proto.RegisterType((*EntityType)(nil), "google.cloud.dialogflow.v2.EntityType") 1090 proto.RegisterType((*EntityType_Entity)(nil), "google.cloud.dialogflow.v2.EntityType.Entity") 1091 proto.RegisterType((*ListEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.ListEntityTypesRequest") 1092 proto.RegisterType((*ListEntityTypesResponse)(nil), "google.cloud.dialogflow.v2.ListEntityTypesResponse") 1093 proto.RegisterType((*GetEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.GetEntityTypeRequest") 1094 proto.RegisterType((*CreateEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.CreateEntityTypeRequest") 1095 proto.RegisterType((*UpdateEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.UpdateEntityTypeRequest") 1096 proto.RegisterType((*DeleteEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.DeleteEntityTypeRequest") 1097 proto.RegisterType((*BatchUpdateEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest") 1098 proto.RegisterType((*BatchUpdateEntityTypesResponse)(nil), "google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse") 1099 proto.RegisterType((*BatchDeleteEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest") 1100 proto.RegisterType((*BatchCreateEntitiesRequest)(nil), "google.cloud.dialogflow.v2.BatchCreateEntitiesRequest") 1101 proto.RegisterType((*BatchUpdateEntitiesRequest)(nil), "google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest") 1102 proto.RegisterType((*BatchDeleteEntitiesRequest)(nil), "google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest") 1103 proto.RegisterType((*EntityTypeBatch)(nil), "google.cloud.dialogflow.v2.EntityTypeBatch") 1104 proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_Kind", EntityType_Kind_name, EntityType_Kind_value) 1105 proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_AutoExpansionMode", EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value) 1106} 1107 1108// Reference imports to suppress errors if they are not otherwise used. 1109var _ context.Context 1110var _ grpc.ClientConn 1111 1112// This is a compile-time assertion to ensure that this generated file 1113// is compatible with the grpc package it is being compiled against. 1114const _ = grpc.SupportPackageIsVersion4 1115 1116// EntityTypesClient is the client API for EntityTypes service. 1117// 1118// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1119type EntityTypesClient interface { 1120 // Returns the list of all entity types in the specified agent. 1121 ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) 1122 // Retrieves the specified entity type. 1123 GetEntityType(ctx context.Context, in *GetEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) 1124 // Creates an entity type in the specified agent. 1125 CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) 1126 // Updates the specified entity type. 1127 UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) 1128 // Deletes the specified entity type. 1129 DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) 1130 // Updates/Creates multiple entity types in the specified agent. 1131 // 1132 // Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], 1133 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1134 BatchUpdateEntityTypes(ctx context.Context, in *BatchUpdateEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1135 // Deletes entity types in the specified agent. 1136 // 1137 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1138 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1139 BatchDeleteEntityTypes(ctx context.Context, in *BatchDeleteEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1140 // Creates multiple new entities in the specified entity type (extends the 1141 // existing collection of entries). 1142 // 1143 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> 1144 BatchCreateEntities(ctx context.Context, in *BatchCreateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1145 // Updates entities in the specified entity type (replaces the existing 1146 // collection of entries). 1147 // 1148 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1149 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1150 BatchUpdateEntities(ctx context.Context, in *BatchUpdateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1151 // Deletes entities in the specified entity type. 1152 // 1153 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1154 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1155 BatchDeleteEntities(ctx context.Context, in *BatchDeleteEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1156} 1157 1158type entityTypesClient struct { 1159 cc *grpc.ClientConn 1160} 1161 1162func NewEntityTypesClient(cc *grpc.ClientConn) EntityTypesClient { 1163 return &entityTypesClient{cc} 1164} 1165 1166func (c *entityTypesClient) ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) { 1167 out := new(ListEntityTypesResponse) 1168 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/ListEntityTypes", in, out, opts...) 1169 if err != nil { 1170 return nil, err 1171 } 1172 return out, nil 1173} 1174 1175func (c *entityTypesClient) GetEntityType(ctx context.Context, in *GetEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) { 1176 out := new(EntityType) 1177 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/GetEntityType", in, out, opts...) 1178 if err != nil { 1179 return nil, err 1180 } 1181 return out, nil 1182} 1183 1184func (c *entityTypesClient) CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) { 1185 out := new(EntityType) 1186 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/CreateEntityType", in, out, opts...) 1187 if err != nil { 1188 return nil, err 1189 } 1190 return out, nil 1191} 1192 1193func (c *entityTypesClient) UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) { 1194 out := new(EntityType) 1195 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/UpdateEntityType", in, out, opts...) 1196 if err != nil { 1197 return nil, err 1198 } 1199 return out, nil 1200} 1201 1202func (c *entityTypesClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 1203 out := new(empty.Empty) 1204 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/DeleteEntityType", in, out, opts...) 1205 if err != nil { 1206 return nil, err 1207 } 1208 return out, nil 1209} 1210 1211func (c *entityTypesClient) BatchUpdateEntityTypes(ctx context.Context, in *BatchUpdateEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1212 out := new(longrunning.Operation) 1213 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntityTypes", in, out, opts...) 1214 if err != nil { 1215 return nil, err 1216 } 1217 return out, nil 1218} 1219 1220func (c *entityTypesClient) BatchDeleteEntityTypes(ctx context.Context, in *BatchDeleteEntityTypesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1221 out := new(longrunning.Operation) 1222 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntityTypes", in, out, opts...) 1223 if err != nil { 1224 return nil, err 1225 } 1226 return out, nil 1227} 1228 1229func (c *entityTypesClient) BatchCreateEntities(ctx context.Context, in *BatchCreateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1230 out := new(longrunning.Operation) 1231 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/BatchCreateEntities", in, out, opts...) 1232 if err != nil { 1233 return nil, err 1234 } 1235 return out, nil 1236} 1237 1238func (c *entityTypesClient) BatchUpdateEntities(ctx context.Context, in *BatchUpdateEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1239 out := new(longrunning.Operation) 1240 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntities", in, out, opts...) 1241 if err != nil { 1242 return nil, err 1243 } 1244 return out, nil 1245} 1246 1247func (c *entityTypesClient) BatchDeleteEntities(ctx context.Context, in *BatchDeleteEntitiesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1248 out := new(longrunning.Operation) 1249 err := c.cc.Invoke(ctx, "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntities", in, out, opts...) 1250 if err != nil { 1251 return nil, err 1252 } 1253 return out, nil 1254} 1255 1256// EntityTypesServer is the server API for EntityTypes service. 1257type EntityTypesServer interface { 1258 // Returns the list of all entity types in the specified agent. 1259 ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) 1260 // Retrieves the specified entity type. 1261 GetEntityType(context.Context, *GetEntityTypeRequest) (*EntityType, error) 1262 // Creates an entity type in the specified agent. 1263 CreateEntityType(context.Context, *CreateEntityTypeRequest) (*EntityType, error) 1264 // Updates the specified entity type. 1265 UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error) 1266 // Deletes the specified entity type. 1267 DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*empty.Empty, error) 1268 // Updates/Creates multiple entity types in the specified agent. 1269 // 1270 // Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse], 1271 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1272 BatchUpdateEntityTypes(context.Context, *BatchUpdateEntityTypesRequest) (*longrunning.Operation, error) 1273 // Deletes entity types in the specified agent. 1274 // 1275 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1276 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1277 BatchDeleteEntityTypes(context.Context, *BatchDeleteEntityTypesRequest) (*longrunning.Operation, error) 1278 // Creates multiple new entities in the specified entity type (extends the 1279 // existing collection of entries). 1280 // 1281 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty]> 1282 BatchCreateEntities(context.Context, *BatchCreateEntitiesRequest) (*longrunning.Operation, error) 1283 // Updates entities in the specified entity type (replaces the existing 1284 // collection of entries). 1285 // 1286 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1287 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1288 BatchUpdateEntities(context.Context, *BatchUpdateEntitiesRequest) (*longrunning.Operation, error) 1289 // Deletes entities in the specified entity type. 1290 // 1291 // Operation <response: [google.protobuf.Empty][google.protobuf.Empty], 1292 // metadata: [google.protobuf.Struct][google.protobuf.Struct]> 1293 BatchDeleteEntities(context.Context, *BatchDeleteEntitiesRequest) (*longrunning.Operation, error) 1294} 1295 1296func RegisterEntityTypesServer(s *grpc.Server, srv EntityTypesServer) { 1297 s.RegisterService(&_EntityTypes_serviceDesc, srv) 1298} 1299 1300func _EntityTypes_ListEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1301 in := new(ListEntityTypesRequest) 1302 if err := dec(in); err != nil { 1303 return nil, err 1304 } 1305 if interceptor == nil { 1306 return srv.(EntityTypesServer).ListEntityTypes(ctx, in) 1307 } 1308 info := &grpc.UnaryServerInfo{ 1309 Server: srv, 1310 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/ListEntityTypes", 1311 } 1312 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1313 return srv.(EntityTypesServer).ListEntityTypes(ctx, req.(*ListEntityTypesRequest)) 1314 } 1315 return interceptor(ctx, in, info, handler) 1316} 1317 1318func _EntityTypes_GetEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1319 in := new(GetEntityTypeRequest) 1320 if err := dec(in); err != nil { 1321 return nil, err 1322 } 1323 if interceptor == nil { 1324 return srv.(EntityTypesServer).GetEntityType(ctx, in) 1325 } 1326 info := &grpc.UnaryServerInfo{ 1327 Server: srv, 1328 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/GetEntityType", 1329 } 1330 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1331 return srv.(EntityTypesServer).GetEntityType(ctx, req.(*GetEntityTypeRequest)) 1332 } 1333 return interceptor(ctx, in, info, handler) 1334} 1335 1336func _EntityTypes_CreateEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1337 in := new(CreateEntityTypeRequest) 1338 if err := dec(in); err != nil { 1339 return nil, err 1340 } 1341 if interceptor == nil { 1342 return srv.(EntityTypesServer).CreateEntityType(ctx, in) 1343 } 1344 info := &grpc.UnaryServerInfo{ 1345 Server: srv, 1346 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/CreateEntityType", 1347 } 1348 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1349 return srv.(EntityTypesServer).CreateEntityType(ctx, req.(*CreateEntityTypeRequest)) 1350 } 1351 return interceptor(ctx, in, info, handler) 1352} 1353 1354func _EntityTypes_UpdateEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1355 in := new(UpdateEntityTypeRequest) 1356 if err := dec(in); err != nil { 1357 return nil, err 1358 } 1359 if interceptor == nil { 1360 return srv.(EntityTypesServer).UpdateEntityType(ctx, in) 1361 } 1362 info := &grpc.UnaryServerInfo{ 1363 Server: srv, 1364 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/UpdateEntityType", 1365 } 1366 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1367 return srv.(EntityTypesServer).UpdateEntityType(ctx, req.(*UpdateEntityTypeRequest)) 1368 } 1369 return interceptor(ctx, in, info, handler) 1370} 1371 1372func _EntityTypes_DeleteEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1373 in := new(DeleteEntityTypeRequest) 1374 if err := dec(in); err != nil { 1375 return nil, err 1376 } 1377 if interceptor == nil { 1378 return srv.(EntityTypesServer).DeleteEntityType(ctx, in) 1379 } 1380 info := &grpc.UnaryServerInfo{ 1381 Server: srv, 1382 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/DeleteEntityType", 1383 } 1384 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1385 return srv.(EntityTypesServer).DeleteEntityType(ctx, req.(*DeleteEntityTypeRequest)) 1386 } 1387 return interceptor(ctx, in, info, handler) 1388} 1389 1390func _EntityTypes_BatchUpdateEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1391 in := new(BatchUpdateEntityTypesRequest) 1392 if err := dec(in); err != nil { 1393 return nil, err 1394 } 1395 if interceptor == nil { 1396 return srv.(EntityTypesServer).BatchUpdateEntityTypes(ctx, in) 1397 } 1398 info := &grpc.UnaryServerInfo{ 1399 Server: srv, 1400 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntityTypes", 1401 } 1402 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1403 return srv.(EntityTypesServer).BatchUpdateEntityTypes(ctx, req.(*BatchUpdateEntityTypesRequest)) 1404 } 1405 return interceptor(ctx, in, info, handler) 1406} 1407 1408func _EntityTypes_BatchDeleteEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1409 in := new(BatchDeleteEntityTypesRequest) 1410 if err := dec(in); err != nil { 1411 return nil, err 1412 } 1413 if interceptor == nil { 1414 return srv.(EntityTypesServer).BatchDeleteEntityTypes(ctx, in) 1415 } 1416 info := &grpc.UnaryServerInfo{ 1417 Server: srv, 1418 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntityTypes", 1419 } 1420 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1421 return srv.(EntityTypesServer).BatchDeleteEntityTypes(ctx, req.(*BatchDeleteEntityTypesRequest)) 1422 } 1423 return interceptor(ctx, in, info, handler) 1424} 1425 1426func _EntityTypes_BatchCreateEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1427 in := new(BatchCreateEntitiesRequest) 1428 if err := dec(in); err != nil { 1429 return nil, err 1430 } 1431 if interceptor == nil { 1432 return srv.(EntityTypesServer).BatchCreateEntities(ctx, in) 1433 } 1434 info := &grpc.UnaryServerInfo{ 1435 Server: srv, 1436 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/BatchCreateEntities", 1437 } 1438 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1439 return srv.(EntityTypesServer).BatchCreateEntities(ctx, req.(*BatchCreateEntitiesRequest)) 1440 } 1441 return interceptor(ctx, in, info, handler) 1442} 1443 1444func _EntityTypes_BatchUpdateEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1445 in := new(BatchUpdateEntitiesRequest) 1446 if err := dec(in); err != nil { 1447 return nil, err 1448 } 1449 if interceptor == nil { 1450 return srv.(EntityTypesServer).BatchUpdateEntities(ctx, in) 1451 } 1452 info := &grpc.UnaryServerInfo{ 1453 Server: srv, 1454 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/BatchUpdateEntities", 1455 } 1456 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1457 return srv.(EntityTypesServer).BatchUpdateEntities(ctx, req.(*BatchUpdateEntitiesRequest)) 1458 } 1459 return interceptor(ctx, in, info, handler) 1460} 1461 1462func _EntityTypes_BatchDeleteEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1463 in := new(BatchDeleteEntitiesRequest) 1464 if err := dec(in); err != nil { 1465 return nil, err 1466 } 1467 if interceptor == nil { 1468 return srv.(EntityTypesServer).BatchDeleteEntities(ctx, in) 1469 } 1470 info := &grpc.UnaryServerInfo{ 1471 Server: srv, 1472 FullMethod: "/google.cloud.dialogflow.v2.EntityTypes/BatchDeleteEntities", 1473 } 1474 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1475 return srv.(EntityTypesServer).BatchDeleteEntities(ctx, req.(*BatchDeleteEntitiesRequest)) 1476 } 1477 return interceptor(ctx, in, info, handler) 1478} 1479 1480var _EntityTypes_serviceDesc = grpc.ServiceDesc{ 1481 ServiceName: "google.cloud.dialogflow.v2.EntityTypes", 1482 HandlerType: (*EntityTypesServer)(nil), 1483 Methods: []grpc.MethodDesc{ 1484 { 1485 MethodName: "ListEntityTypes", 1486 Handler: _EntityTypes_ListEntityTypes_Handler, 1487 }, 1488 { 1489 MethodName: "GetEntityType", 1490 Handler: _EntityTypes_GetEntityType_Handler, 1491 }, 1492 { 1493 MethodName: "CreateEntityType", 1494 Handler: _EntityTypes_CreateEntityType_Handler, 1495 }, 1496 { 1497 MethodName: "UpdateEntityType", 1498 Handler: _EntityTypes_UpdateEntityType_Handler, 1499 }, 1500 { 1501 MethodName: "DeleteEntityType", 1502 Handler: _EntityTypes_DeleteEntityType_Handler, 1503 }, 1504 { 1505 MethodName: "BatchUpdateEntityTypes", 1506 Handler: _EntityTypes_BatchUpdateEntityTypes_Handler, 1507 }, 1508 { 1509 MethodName: "BatchDeleteEntityTypes", 1510 Handler: _EntityTypes_BatchDeleteEntityTypes_Handler, 1511 }, 1512 { 1513 MethodName: "BatchCreateEntities", 1514 Handler: _EntityTypes_BatchCreateEntities_Handler, 1515 }, 1516 { 1517 MethodName: "BatchUpdateEntities", 1518 Handler: _EntityTypes_BatchUpdateEntities_Handler, 1519 }, 1520 { 1521 MethodName: "BatchDeleteEntities", 1522 Handler: _EntityTypes_BatchDeleteEntities_Handler, 1523 }, 1524 }, 1525 Streams: []grpc.StreamDesc{}, 1526 Metadata: "google/cloud/dialogflow/v2/entity_type.proto", 1527} 1528 1529func init() { 1530 proto.RegisterFile("google/cloud/dialogflow/v2/entity_type.proto", fileDescriptor_entity_type_5022cc8f1b023825) 1531} 1532 1533var fileDescriptor_entity_type_5022cc8f1b023825 = []byte{ 1534 // 1233 bytes of a gzipped FileDescriptorProto 1535 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0xcf, 0x6f, 0xe3, 0x44, 1536 0x14, 0xc7, 0x3b, 0x69, 0x5a, 0xb5, 0x2f, 0xed, 0x36, 0x9d, 0x76, 0xdb, 0xc8, 0xdd, 0xee, 0x16, 1537 0x57, 0x5a, 0x95, 0x2e, 0x1b, 0x43, 0xaa, 0x45, 0xbb, 0x5d, 0x01, 0xdb, 0x36, 0x69, 0x37, 0xf4, 1538 0x57, 0xe4, 0xb6, 0x2b, 0x40, 0x48, 0x96, 0x9b, 0x4c, 0xb3, 0xa6, 0xce, 0x8c, 0x89, 0xed, 0xb2, 1539 0x59, 0xb4, 0x1c, 0xe0, 0x08, 0x17, 0xe0, 0x8a, 0x40, 0x42, 0x9c, 0x90, 0x10, 0x17, 0x2e, 0x88, 1540 0x2b, 0x37, 0x8e, 0xfc, 0x05, 0x48, 0xfc, 0x11, 0x1c, 0x91, 0xc7, 0x76, 0xed, 0x38, 0x4e, 0xe2, 1541 0x8a, 0xb2, 0xda, 0x5b, 0x3c, 0xf3, 0xfc, 0xde, 0xe7, 0xfd, 0x98, 0xf9, 0xd6, 0x85, 0x57, 0xea, 1542 0x8c, 0xd5, 0x75, 0x22, 0x55, 0x75, 0x66, 0xd7, 0xa4, 0x9a, 0xa6, 0xea, 0xac, 0x7e, 0xa2, 0xb3, 1543 0x8f, 0xa4, 0xb3, 0x82, 0x44, 0xa8, 0xa5, 0x59, 0x2d, 0xc5, 0x6a, 0x19, 0x24, 0x6f, 0x34, 0x99, 1544 0xc5, 0xb0, 0xe0, 0x5a, 0xe7, 0xb9, 0x75, 0x3e, 0xb0, 0xce, 0x9f, 0x15, 0x84, 0x6b, 0x9e, 0x27, 1545 0xd5, 0xd0, 0x24, 0x95, 0x52, 0x66, 0xa9, 0x96, 0xc6, 0xa8, 0xe9, 0xbe, 0x29, 0x2c, 0x7a, 0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0x0c, 0xc9, 0x23, 0xce, 0xc2, 0x81, 0xf6, 0x94, 0xe0, 0x79, 0x00, 0xbe, 0x69, 0xb1, 1569 0x53, 0x42, 0x79, 0xcb, 0x47, 0x65, 0x6e, 0x7e, 0xe8, 0x2c, 0x88, 0x5f, 0x20, 0x98, 0xed, 0x60, 1570 0x32, 0x0d, 0x46, 0x4d, 0xa7, 0x99, 0x63, 0xa1, 0xe3, 0x68, 0xe6, 0x10, 0x6f, 0xe8, 0xcd, 0x64, 1571 0x0d, 0x95, 0x33, 0x24, 0x70, 0x89, 0x6f, 0xc2, 0x04, 0x25, 0x4f, 0x2c, 0x25, 0x84, 0xe2, 0x66, 1572 0x32, 0xee, 0x2c, 0x57, 0xce, 0x71, 0xf6, 0x61, 0x7a, 0x8b, 0x84, 0x60, 0xfc, 0xfa, 0xc4, 0x9d, 1573 0x9c, 0x24, 0xb5, 0x11, 0xbf, 0x43, 0x30, 0xbb, 0xd1, 0x24, 0xaa, 0x45, 0x3a, 0x9d, 0x76, 0x2b, 1574 0xfa, 0x16, 0x64, 0x42, 0x79, 0x73, 0xb7, 0xc9, 0xd3, 0x86, 0x20, 0xed, 0x4e, 0xc2, 0xc1, 0x18, 1575 0xc2, 0xdf, 0x11, 0xcc, 0x1e, 0x19, 0xb5, 0x58, 0xc2, 0x08, 0x09, 0xba, 0x3c, 0x92, 0xb8, 0x39, 1576 0xba, 0x0f, 0x19, 0x9b, 0x83, 0xf0, 0x0b, 0x8e, 0xc3, 0x66, 0x0a, 0x82, 0x1f, 0xcd, 0xbf, 0xe1, 1577 0xf2, 0x9b, 0xce, 0x1d, 0xb8, 0xab, 0x9a, 0xa7, 0x32, 0xb8, 0xe6, 0xce, 0x6f, 0xf1, 0x36, 0xcc, 1578 0x16, 0x89, 0x4e, 0xe2, 0xb2, 0x88, 0x69, 0x9e, 0xf8, 0x47, 0x0a, 0xe6, 0xd7, 0x55, 0xab, 0xfa, 1579 0x38, 0x9a, 0x7a, 0xdf, 0x23, 0x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