1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364
|
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/appengine/v1/appengine.proto
// DO NOT EDIT!
package google_appengine_v1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
import _ "google.golang.org/genproto/googleapis/iam/v1"
import _ "google.golang.org/genproto/googleapis/iam/v1"
import google_longrunning "google.golang.org/genproto/googleapis/longrunning"
import _ "github.com/golang/protobuf/ptypes/empty"
import google_protobuf5 "google.golang.org/genproto/protobuf"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Fields that should be returned when [Version][google.appengine.v1.Version] resources
// are retreived.
type VersionView int32
const (
// Basic version information including scaling and inbound services,
// but not detailed deployment information.
VersionView_BASIC VersionView = 0
// The information from `BASIC`, plus detailed information about the
// deployment. This format is required when creating resources, but
// is not returned in `Get` or `List` by default.
VersionView_FULL VersionView = 1
)
var VersionView_name = map[int32]string{
0: "BASIC",
1: "FULL",
}
var VersionView_value = map[string]int32{
"BASIC": 0,
"FULL": 1,
}
func (x VersionView) String() string {
return proto.EnumName(VersionView_name, int32(x))
}
func (VersionView) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
// Request message for `Applications.GetApplication`.
type GetApplicationRequest struct {
// Name of the Application resource to get. Example: `apps/myapp`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *GetApplicationRequest) Reset() { *m = GetApplicationRequest{} }
func (m *GetApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*GetApplicationRequest) ProtoMessage() {}
func (*GetApplicationRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *GetApplicationRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for 'Applications.RepairApplication'.
type RepairApplicationRequest struct {
// Name of the application to repair. Example: `apps/myapp`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *RepairApplicationRequest) Reset() { *m = RepairApplicationRequest{} }
func (m *RepairApplicationRequest) String() string { return proto.CompactTextString(m) }
func (*RepairApplicationRequest) ProtoMessage() {}
func (*RepairApplicationRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *RepairApplicationRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Services.ListServices`.
type ListServicesRequest struct {
// Name of the parent Application resource. Example: `apps/myapp`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// Maximum results to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// Continuation token for fetching the next page of results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListServicesRequest) Reset() { *m = ListServicesRequest{} }
func (m *ListServicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListServicesRequest) ProtoMessage() {}
func (*ListServicesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *ListServicesRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListServicesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListServicesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response message for `Services.ListServices`.
type ListServicesResponse struct {
// The services belonging to the requested application.
Services []*Service `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"`
// Continuation token for fetching the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListServicesResponse) Reset() { *m = ListServicesResponse{} }
func (m *ListServicesResponse) String() string { return proto.CompactTextString(m) }
func (*ListServicesResponse) ProtoMessage() {}
func (*ListServicesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *ListServicesResponse) GetServices() []*Service {
if m != nil {
return m.Services
}
return nil
}
func (m *ListServicesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request message for `Services.GetService`.
type GetServiceRequest struct {
// Name of the resource requested. Example: `apps/myapp/services/default`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *GetServiceRequest) Reset() { *m = GetServiceRequest{} }
func (m *GetServiceRequest) String() string { return proto.CompactTextString(m) }
func (*GetServiceRequest) ProtoMessage() {}
func (*GetServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *GetServiceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Services.UpdateService`.
type UpdateServiceRequest struct {
// Name of the resource to update. Example: `apps/myapp/services/default`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// A Service resource containing the updated service. Only fields set in the
// field mask will be updated.
Service *Service `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
// Standard field mask for the set of fields to be updated.
UpdateMask *google_protobuf5.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
// Set to `true` to gradually shift traffic from one version to another
// single version. By default, traffic is shifted immediately.
// For gradual traffic migration, the target version
// must be located within instances that are configured for both
// [warmup requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype)
// and
// [automatic scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling).
// You must specify the
// [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby)
// field in the Service resource. Gradual traffic migration is not
// supported in the App Engine flexible environment. For examples, see
// [Migrating and Splitting Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic).
MigrateTraffic bool `protobuf:"varint,4,opt,name=migrate_traffic,json=migrateTraffic" json:"migrate_traffic,omitempty"`
}
func (m *UpdateServiceRequest) Reset() { *m = UpdateServiceRequest{} }
func (m *UpdateServiceRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateServiceRequest) ProtoMessage() {}
func (*UpdateServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *UpdateServiceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *UpdateServiceRequest) GetService() *Service {
if m != nil {
return m.Service
}
return nil
}
func (m *UpdateServiceRequest) GetUpdateMask() *google_protobuf5.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
func (m *UpdateServiceRequest) GetMigrateTraffic() bool {
if m != nil {
return m.MigrateTraffic
}
return false
}
// Request message for `Services.DeleteService`.
type DeleteServiceRequest struct {
// Name of the resource requested. Example: `apps/myapp/services/default`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DeleteServiceRequest) Reset() { *m = DeleteServiceRequest{} }
func (m *DeleteServiceRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteServiceRequest) ProtoMessage() {}
func (*DeleteServiceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *DeleteServiceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Versions.ListVersions`.
type ListVersionsRequest struct {
// Name of the parent Service resource. Example:
// `apps/myapp/services/default`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// Controls the set of fields returned in the `List` response.
View VersionView `protobuf:"varint,2,opt,name=view,enum=google.appengine.v1.VersionView" json:"view,omitempty"`
// Maximum results to return per page.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// Continuation token for fetching the next page of results.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListVersionsRequest) Reset() { *m = ListVersionsRequest{} }
func (m *ListVersionsRequest) String() string { return proto.CompactTextString(m) }
func (*ListVersionsRequest) ProtoMessage() {}
func (*ListVersionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *ListVersionsRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListVersionsRequest) GetView() VersionView {
if m != nil {
return m.View
}
return VersionView_BASIC
}
func (m *ListVersionsRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListVersionsRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response message for `Versions.ListVersions`.
type ListVersionsResponse struct {
// The versions belonging to the requested service.
Versions []*Version `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
// Continuation token for fetching the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListVersionsResponse) Reset() { *m = ListVersionsResponse{} }
func (m *ListVersionsResponse) String() string { return proto.CompactTextString(m) }
func (*ListVersionsResponse) ProtoMessage() {}
func (*ListVersionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
func (m *ListVersionsResponse) GetVersions() []*Version {
if m != nil {
return m.Versions
}
return nil
}
func (m *ListVersionsResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request message for `Versions.GetVersion`.
type GetVersionRequest struct {
// Name of the resource requested. Example:
// `apps/myapp/services/default/versions/v1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Controls the set of fields returned in the `Get` response.
View VersionView `protobuf:"varint,2,opt,name=view,enum=google.appengine.v1.VersionView" json:"view,omitempty"`
}
func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} }
func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) }
func (*GetVersionRequest) ProtoMessage() {}
func (*GetVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
func (m *GetVersionRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GetVersionRequest) GetView() VersionView {
if m != nil {
return m.View
}
return VersionView_BASIC
}
// Request message for `Versions.CreateVersion`.
type CreateVersionRequest struct {
// Name of the parent resource to create this version under. Example:
// `apps/myapp/services/default`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// Application deployment configuration.
Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
}
func (m *CreateVersionRequest) Reset() { *m = CreateVersionRequest{} }
func (m *CreateVersionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateVersionRequest) ProtoMessage() {}
func (*CreateVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
func (m *CreateVersionRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateVersionRequest) GetVersion() *Version {
if m != nil {
return m.Version
}
return nil
}
// Request message for `Versions.UpdateVersion`.
type UpdateVersionRequest struct {
// Name of the resource to update. Example:
// `apps/myapp/services/default/versions/1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// A Version containing the updated resource. Only fields set in the field
// mask will be updated.
Version *Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
// Standard field mask for the set of fields to be updated.
UpdateMask *google_protobuf5.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}
func (m *UpdateVersionRequest) Reset() { *m = UpdateVersionRequest{} }
func (m *UpdateVersionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateVersionRequest) ProtoMessage() {}
func (*UpdateVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
func (m *UpdateVersionRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *UpdateVersionRequest) GetVersion() *Version {
if m != nil {
return m.Version
}
return nil
}
func (m *UpdateVersionRequest) GetUpdateMask() *google_protobuf5.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// Request message for `Versions.DeleteVersion`.
type DeleteVersionRequest struct {
// Name of the resource requested. Example:
// `apps/myapp/services/default/versions/v1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DeleteVersionRequest) Reset() { *m = DeleteVersionRequest{} }
func (m *DeleteVersionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteVersionRequest) ProtoMessage() {}
func (*DeleteVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
func (m *DeleteVersionRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Instances.ListInstances`.
type ListInstancesRequest struct {
// Name of the parent Version resource. Example:
// `apps/myapp/services/default/versions/v1`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// Maximum results to return per page.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// Continuation token for fetching the next page of results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListInstancesRequest) Reset() { *m = ListInstancesRequest{} }
func (m *ListInstancesRequest) String() string { return proto.CompactTextString(m) }
func (*ListInstancesRequest) ProtoMessage() {}
func (*ListInstancesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
func (m *ListInstancesRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *ListInstancesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListInstancesRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response message for `Instances.ListInstances`.
type ListInstancesResponse struct {
// The instances belonging to the requested version.
Instances []*Instance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
// Continuation token for fetching the next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListInstancesResponse) Reset() { *m = ListInstancesResponse{} }
func (m *ListInstancesResponse) String() string { return proto.CompactTextString(m) }
func (*ListInstancesResponse) ProtoMessage() {}
func (*ListInstancesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} }
func (m *ListInstancesResponse) GetInstances() []*Instance {
if m != nil {
return m.Instances
}
return nil
}
func (m *ListInstancesResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request message for `Instances.GetInstance`.
type GetInstanceRequest struct {
// Name of the resource requested. Example:
// `apps/myapp/services/default/versions/v1/instances/instance-1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *GetInstanceRequest) Reset() { *m = GetInstanceRequest{} }
func (m *GetInstanceRequest) String() string { return proto.CompactTextString(m) }
func (*GetInstanceRequest) ProtoMessage() {}
func (*GetInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} }
func (m *GetInstanceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Instances.DeleteInstance`.
type DeleteInstanceRequest struct {
// Name of the resource requested. Example:
// `apps/myapp/services/default/versions/v1/instances/instance-1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DeleteInstanceRequest) Reset() { *m = DeleteInstanceRequest{} }
func (m *DeleteInstanceRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteInstanceRequest) ProtoMessage() {}
func (*DeleteInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{16} }
func (m *DeleteInstanceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request message for `Instances.DebugInstance`.
type DebugInstanceRequest struct {
// Name of the resource requested. Example:
// `apps/myapp/services/default/versions/v1/instances/instance-1`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DebugInstanceRequest) Reset() { *m = DebugInstanceRequest{} }
func (m *DebugInstanceRequest) String() string { return proto.CompactTextString(m) }
func (*DebugInstanceRequest) ProtoMessage() {}
func (*DebugInstanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{17} }
func (m *DebugInstanceRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*GetApplicationRequest)(nil), "google.appengine.v1.GetApplicationRequest")
proto.RegisterType((*RepairApplicationRequest)(nil), "google.appengine.v1.RepairApplicationRequest")
proto.RegisterType((*ListServicesRequest)(nil), "google.appengine.v1.ListServicesRequest")
proto.RegisterType((*ListServicesResponse)(nil), "google.appengine.v1.ListServicesResponse")
proto.RegisterType((*GetServiceRequest)(nil), "google.appengine.v1.GetServiceRequest")
proto.RegisterType((*UpdateServiceRequest)(nil), "google.appengine.v1.UpdateServiceRequest")
proto.RegisterType((*DeleteServiceRequest)(nil), "google.appengine.v1.DeleteServiceRequest")
proto.RegisterType((*ListVersionsRequest)(nil), "google.appengine.v1.ListVersionsRequest")
proto.RegisterType((*ListVersionsResponse)(nil), "google.appengine.v1.ListVersionsResponse")
proto.RegisterType((*GetVersionRequest)(nil), "google.appengine.v1.GetVersionRequest")
proto.RegisterType((*CreateVersionRequest)(nil), "google.appengine.v1.CreateVersionRequest")
proto.RegisterType((*UpdateVersionRequest)(nil), "google.appengine.v1.UpdateVersionRequest")
proto.RegisterType((*DeleteVersionRequest)(nil), "google.appengine.v1.DeleteVersionRequest")
proto.RegisterType((*ListInstancesRequest)(nil), "google.appengine.v1.ListInstancesRequest")
proto.RegisterType((*ListInstancesResponse)(nil), "google.appengine.v1.ListInstancesResponse")
proto.RegisterType((*GetInstanceRequest)(nil), "google.appengine.v1.GetInstanceRequest")
proto.RegisterType((*DeleteInstanceRequest)(nil), "google.appengine.v1.DeleteInstanceRequest")
proto.RegisterType((*DebugInstanceRequest)(nil), "google.appengine.v1.DebugInstanceRequest")
proto.RegisterEnum("google.appengine.v1.VersionView", VersionView_name, VersionView_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Instances service
type InstancesClient interface {
// Lists the instances of a version.
ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
// Gets instance information.
GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
// Stops a running instance.
DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Enables debugging on a VM instance. This allows you to use the SSH
// command to connect to the virtual machine where the instance lives.
// While in "debug mode", the instance continues to serve live traffic.
// You should delete the instance when you are done debugging and then
// allow the system to take over and determine if another instance
// should be started.
//
// Only applicable for instances in App Engine flexible environment.
DebugInstance(ctx context.Context, in *DebugInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}
type instancesClient struct {
cc *grpc.ClientConn
}
func NewInstancesClient(cc *grpc.ClientConn) InstancesClient {
return &instancesClient{cc}
}
func (c *instancesClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) {
out := new(ListInstancesResponse)
err := grpc.Invoke(ctx, "/google.appengine.v1.Instances/ListInstances", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *instancesClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) {
out := new(Instance)
err := grpc.Invoke(ctx, "/google.appengine.v1.Instances/GetInstance", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *instancesClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Instances/DeleteInstance", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *instancesClient) DebugInstance(ctx context.Context, in *DebugInstanceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Instances/DebugInstance", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Instances service
type InstancesServer interface {
// Lists the instances of a version.
ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
// Gets instance information.
GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
// Stops a running instance.
DeleteInstance(context.Context, *DeleteInstanceRequest) (*google_longrunning.Operation, error)
// Enables debugging on a VM instance. This allows you to use the SSH
// command to connect to the virtual machine where the instance lives.
// While in "debug mode", the instance continues to serve live traffic.
// You should delete the instance when you are done debugging and then
// allow the system to take over and determine if another instance
// should be started.
//
// Only applicable for instances in App Engine flexible environment.
DebugInstance(context.Context, *DebugInstanceRequest) (*google_longrunning.Operation, error)
}
func RegisterInstancesServer(s *grpc.Server, srv InstancesServer) {
s.RegisterService(&_Instances_serviceDesc, srv)
}
func _Instances_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListInstancesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InstancesServer).ListInstances(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Instances/ListInstances",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InstancesServer).ListInstances(ctx, req.(*ListInstancesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Instances_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetInstanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InstancesServer).GetInstance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Instances/GetInstance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InstancesServer).GetInstance(ctx, req.(*GetInstanceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Instances_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteInstanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InstancesServer).DeleteInstance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Instances/DeleteInstance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InstancesServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Instances_DebugInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DebugInstanceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InstancesServer).DebugInstance(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Instances/DebugInstance",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InstancesServer).DebugInstance(ctx, req.(*DebugInstanceRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Instances_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.appengine.v1.Instances",
HandlerType: (*InstancesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListInstances",
Handler: _Instances_ListInstances_Handler,
},
{
MethodName: "GetInstance",
Handler: _Instances_GetInstance_Handler,
},
{
MethodName: "DeleteInstance",
Handler: _Instances_DeleteInstance_Handler,
},
{
MethodName: "DebugInstance",
Handler: _Instances_DebugInstance_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google.golang.org/genproto/googleapis/appengine/v1/appengine.proto",
}
// Client API for Versions service
type VersionsClient interface {
// Lists the versions of a service.
ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
// Gets the specified Version resource.
// By default, only a `BASIC_VIEW` will be returned.
// Specify the `FULL_VIEW` parameter to get the full resource.
GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error)
// Deploys code and resource files to a new version.
CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Updates the specified Version resource.
// You can specify the following fields depending on the App Engine
// environment and type of scaling that the version resource uses:
//
// * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
// For Version resources that use basic scaling, manual scaling, or run in
// the App Engine flexible environment.
// * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class):
// For Version resources that run in the App Engine standard environment.
// * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
// For Version resources that use automatic scaling and run in the App
// Engine standard environment.
// * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
// For Version resources that use automatic scaling and run in the App
// Engine standard environment.
UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Deletes an existing Version resource.
DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}
type versionsClient struct {
cc *grpc.ClientConn
}
func NewVersionsClient(cc *grpc.ClientConn) VersionsClient {
return &versionsClient{cc}
}
func (c *versionsClient) ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error) {
out := new(ListVersionsResponse)
err := grpc.Invoke(ctx, "/google.appengine.v1.Versions/ListVersions", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *versionsClient) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error) {
out := new(Version)
err := grpc.Invoke(ctx, "/google.appengine.v1.Versions/GetVersion", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *versionsClient) CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Versions/CreateVersion", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *versionsClient) UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Versions/UpdateVersion", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *versionsClient) DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Versions/DeleteVersion", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Versions service
type VersionsServer interface {
// Lists the versions of a service.
ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
// Gets the specified Version resource.
// By default, only a `BASIC_VIEW` will be returned.
// Specify the `FULL_VIEW` parameter to get the full resource.
GetVersion(context.Context, *GetVersionRequest) (*Version, error)
// Deploys code and resource files to a new version.
CreateVersion(context.Context, *CreateVersionRequest) (*google_longrunning.Operation, error)
// Updates the specified Version resource.
// You can specify the following fields depending on the App Engine
// environment and type of scaling that the version resource uses:
//
// * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status):
// For Version resources that use basic scaling, manual scaling, or run in
// the App Engine flexible environment.
// * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class):
// For Version resources that run in the App Engine standard environment.
// * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
// For Version resources that use automatic scaling and run in the App
// Engine standard environment.
// * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling):
// For Version resources that use automatic scaling and run in the App
// Engine standard environment.
UpdateVersion(context.Context, *UpdateVersionRequest) (*google_longrunning.Operation, error)
// Deletes an existing Version resource.
DeleteVersion(context.Context, *DeleteVersionRequest) (*google_longrunning.Operation, error)
}
func RegisterVersionsServer(s *grpc.Server, srv VersionsServer) {
s.RegisterService(&_Versions_serviceDesc, srv)
}
func _Versions_ListVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListVersionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VersionsServer).ListVersions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Versions/ListVersions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VersionsServer).ListVersions(ctx, req.(*ListVersionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Versions_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VersionsServer).GetVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Versions/GetVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VersionsServer).GetVersion(ctx, req.(*GetVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Versions_CreateVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VersionsServer).CreateVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Versions/CreateVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VersionsServer).CreateVersion(ctx, req.(*CreateVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Versions_UpdateVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VersionsServer).UpdateVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Versions/UpdateVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VersionsServer).UpdateVersion(ctx, req.(*UpdateVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Versions_DeleteVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteVersionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VersionsServer).DeleteVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Versions/DeleteVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VersionsServer).DeleteVersion(ctx, req.(*DeleteVersionRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Versions_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.appengine.v1.Versions",
HandlerType: (*VersionsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListVersions",
Handler: _Versions_ListVersions_Handler,
},
{
MethodName: "GetVersion",
Handler: _Versions_GetVersion_Handler,
},
{
MethodName: "CreateVersion",
Handler: _Versions_CreateVersion_Handler,
},
{
MethodName: "UpdateVersion",
Handler: _Versions_UpdateVersion_Handler,
},
{
MethodName: "DeleteVersion",
Handler: _Versions_DeleteVersion_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google.golang.org/genproto/googleapis/appengine/v1/appengine.proto",
}
// Client API for Services service
type ServicesClient interface {
// Lists all the services in the application.
ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
// Gets the current configuration of the specified service.
GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error)
// Updates the configuration of the specified service.
UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
// Deletes the specified service and all enclosed versions.
DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}
type servicesClient struct {
cc *grpc.ClientConn
}
func NewServicesClient(cc *grpc.ClientConn) ServicesClient {
return &servicesClient{cc}
}
func (c *servicesClient) ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) {
out := new(ListServicesResponse)
err := grpc.Invoke(ctx, "/google.appengine.v1.Services/ListServices", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error) {
out := new(Service)
err := grpc.Invoke(ctx, "/google.appengine.v1.Services/GetService", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) UpdateService(ctx context.Context, in *UpdateServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Services/UpdateService", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *servicesClient) DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Services/DeleteService", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Services service
type ServicesServer interface {
// Lists all the services in the application.
ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
// Gets the current configuration of the specified service.
GetService(context.Context, *GetServiceRequest) (*Service, error)
// Updates the configuration of the specified service.
UpdateService(context.Context, *UpdateServiceRequest) (*google_longrunning.Operation, error)
// Deletes the specified service and all enclosed versions.
DeleteService(context.Context, *DeleteServiceRequest) (*google_longrunning.Operation, error)
}
func RegisterServicesServer(s *grpc.Server, srv ServicesServer) {
s.RegisterService(&_Services_serviceDesc, srv)
}
func _Services_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListServicesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).ListServices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Services/ListServices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).ListServices(ctx, req.(*ListServicesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).GetService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Services/GetService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).GetService(ctx, req.(*GetServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_UpdateService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).UpdateService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Services/UpdateService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).UpdateService(ctx, req.(*UpdateServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Services_DeleteService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteServiceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServicesServer).DeleteService(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Services/DeleteService",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServicesServer).DeleteService(ctx, req.(*DeleteServiceRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Services_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.appengine.v1.Services",
HandlerType: (*ServicesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListServices",
Handler: _Services_ListServices_Handler,
},
{
MethodName: "GetService",
Handler: _Services_GetService_Handler,
},
{
MethodName: "UpdateService",
Handler: _Services_UpdateService_Handler,
},
{
MethodName: "DeleteService",
Handler: _Services_DeleteService_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google.golang.org/genproto/googleapis/appengine/v1/appengine.proto",
}
// Client API for Applications service
type ApplicationsClient interface {
// Gets information about an application.
GetApplication(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*Application, error)
// Recreates the required App Engine features for the application in your
// project, for example a Cloud Storage bucket or App Engine service account.
// Use this method if you receive an error message about a missing feature,
// for example "*Error retrieving the App Engine service account*".
RepairApplication(ctx context.Context, in *RepairApplicationRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
}
type applicationsClient struct {
cc *grpc.ClientConn
}
func NewApplicationsClient(cc *grpc.ClientConn) ApplicationsClient {
return &applicationsClient{cc}
}
func (c *applicationsClient) GetApplication(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*Application, error) {
out := new(Application)
err := grpc.Invoke(ctx, "/google.appengine.v1.Applications/GetApplication", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *applicationsClient) RepairApplication(ctx context.Context, in *RepairApplicationRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error) {
out := new(google_longrunning.Operation)
err := grpc.Invoke(ctx, "/google.appengine.v1.Applications/RepairApplication", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Applications service
type ApplicationsServer interface {
// Gets information about an application.
GetApplication(context.Context, *GetApplicationRequest) (*Application, error)
// Recreates the required App Engine features for the application in your
// project, for example a Cloud Storage bucket or App Engine service account.
// Use this method if you receive an error message about a missing feature,
// for example "*Error retrieving the App Engine service account*".
RepairApplication(context.Context, *RepairApplicationRequest) (*google_longrunning.Operation, error)
}
func RegisterApplicationsServer(s *grpc.Server, srv ApplicationsServer) {
s.RegisterService(&_Applications_serviceDesc, srv)
}
func _Applications_GetApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsServer).GetApplication(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Applications/GetApplication",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsServer).GetApplication(ctx, req.(*GetApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Applications_RepairApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RepairApplicationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationsServer).RepairApplication(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.appengine.v1.Applications/RepairApplication",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationsServer).RepairApplication(ctx, req.(*RepairApplicationRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Applications_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.appengine.v1.Applications",
HandlerType: (*ApplicationsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetApplication",
Handler: _Applications_GetApplication_Handler,
},
{
MethodName: "RepairApplication",
Handler: _Applications_RepairApplication_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google.golang.org/genproto/googleapis/appengine/v1/appengine.proto",
}
func init() {
proto.RegisterFile("google.golang.org/genproto/googleapis/appengine/v1/appengine.proto", fileDescriptor1)
}
var fileDescriptor1 = []byte{
// 1160 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x57, 0x5f, 0x6f, 0xdb, 0x54,
0x14, 0xc7, 0x6d, 0xba, 0xa5, 0xa7, 0x6b, 0xb7, 0xde, 0xb6, 0x10, 0xcc, 0x8a, 0x22, 0x83, 0x96,
0xd4, 0xd5, 0x62, 0xcd, 0x1d, 0xd3, 0x96, 0x6a, 0x88, 0x76, 0xd5, 0xaa, 0x4a, 0x45, 0x54, 0xee,
0xb6, 0x37, 0x54, 0xb9, 0xe9, 0x8d, 0xb9, 0x34, 0xb1, 0x8d, 0xed, 0x64, 0xed, 0x20, 0x42, 0x62,
0x12, 0x02, 0x1e, 0x37, 0x1e, 0x78, 0x40, 0xda, 0x03, 0x5f, 0x86, 0x77, 0xbe, 0x00, 0x0f, 0x7c,
0x10, 0xe4, 0xeb, 0x7b, 0xed, 0xd8, 0xf1, 0x3f, 0x32, 0xf1, 0x12, 0xc5, 0xd7, 0xe7, 0xcf, 0xef,
0xfc, 0xce, 0xcf, 0x3e, 0xc7, 0xb0, 0x6b, 0x58, 0x96, 0xd1, 0xc3, 0x2d, 0xc3, 0xea, 0xe9, 0xa6,
0xd1, 0xb2, 0x1c, 0x43, 0x31, 0xb0, 0x69, 0x3b, 0x96, 0x67, 0x29, 0xc1, 0x2d, 0xdd, 0x26, 0x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