Skip to content

Commit 6485221

Browse files
committed
updating aep-lib-go
1 parent e6313e1 commit 6485221

12 files changed

Lines changed: 723 additions & 700 deletions

example/bookstore/v1/bookstore.pb.go

Lines changed: 630 additions & 626 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/bookstore/v1/bookstore.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/bookstore/v1/bookstore.proto

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
syntax = "proto3";
22

3+
// this file is generated.
34
package example.bookstore.v1;
45

56
import "aep/api/operation.proto";
@@ -271,11 +272,11 @@ message Book {
271272

272273
// A Author.
273274
message Author {
274-
// Field for firstName.
275-
string firstName = 1;
275+
// Field for first_name.
276+
string first_name = 1 [json_name = "first_name"];
276277

277-
// Field for lastName.
278-
string lastName = 2;
278+
// Field for last_name.
279+
string last_name = 2 [json_name = "last_name"];
279280
}
280281

281282
// Field for isbn.
@@ -308,8 +309,11 @@ message BookEdition {
308309
singular: "book-edition"
309310
};
310311

311-
// Field for displayname.
312-
string displayname = 1 [(google.api.field_behavior) = REQUIRED];
312+
// Field for display_name.
313+
string display_name = 1 [
314+
json_name = "display_name",
315+
(google.api.field_behavior) = REQUIRED
316+
];
313317

314318
// Field for path.
315319
string path = 10018;
@@ -421,7 +425,7 @@ message UpdateBookRequest {
421425
Book book = 10015 [(google.api.field_behavior) = REQUIRED];
422426

423427
// The update mask for the resource
424-
google.protobuf.FieldMask update_mask = 10012;
428+
google.protobuf.FieldMask update_mask = 10012 [json_name = "update_mask"];
425429
}
426430

427431
// Request message for the DeleteBook method
@@ -445,10 +449,10 @@ message ListBooksRequest {
445449
];
446450

447451
// The page token indicating the starting point of the page
448-
string page_token = 10010;
452+
string page_token = 10010 [json_name = "page_token"];
449453

450454
// The maximum number of resources to return in a single page.
451-
int32 max_page_size = 10017;
455+
int32 max_page_size = 10017 [json_name = "max_page_size"];
452456
}
453457

454458
// Response message for the Listbook method
@@ -457,7 +461,7 @@ message ListBooksResponse {
457461
repeated Book results = 10016;
458462

459463
// The page token indicating the ending point of this response.
460-
string next_page_token = 10011;
464+
string next_page_token = 10011 [json_name = "next_page_token"];
461465

462466
// A list of books that were not reachable.
463467
repeated Book unreachable = 10019;
@@ -500,7 +504,10 @@ message CreateBookEditionRequest {
500504
string id = 10014;
501505

502506
// The resource to perform the operation on.
503-
BookEdition book_edition = 10015 [(google.api.field_behavior) = REQUIRED];
507+
BookEdition book_edition = 10015 [
508+
json_name = "book_edition",
509+
(google.api.field_behavior) = REQUIRED
510+
];
504511
}
505512

506513
// Request message for the Getbook-edition method
@@ -530,10 +537,10 @@ message ListBookEditionsRequest {
530537
];
531538

532539
// The page token indicating the starting point of the page
533-
string page_token = 10010;
540+
string page_token = 10010 [json_name = "page_token"];
534541

535542
// The maximum number of resources to return in a single page.
536-
int32 max_page_size = 10017;
543+
int32 max_page_size = 10017 [json_name = "max_page_size"];
537544
}
538545

539546
// Response message for the Listbook-edition method
@@ -542,7 +549,7 @@ message ListBookEditionsResponse {
542549
repeated BookEdition results = 10016;
543550

544551
// The page token indicating the ending point of this response.
545-
string next_page_token = 10011;
552+
string next_page_token = 10011 [json_name = "next_page_token"];
546553
}
547554

548555
// A Create request for a isbn resource.
@@ -578,10 +585,10 @@ message ListIsbnsRequest {
578585
];
579586

580587
// The page token indicating the starting point of the page
581-
string page_token = 10010;
588+
string page_token = 10010 [json_name = "page_token"];
582589

583590
// The maximum number of resources to return in a single page.
584-
int32 max_page_size = 10017;
591+
int32 max_page_size = 10017 [json_name = "max_page_size"];
585592
}
586593

587594
// Response message for the Listisbn method
@@ -590,7 +597,7 @@ message ListIsbnsResponse {
590597
repeated Isbn results = 10016;
591598

592599
// The page token indicating the ending point of this response.
593-
string next_page_token = 10011;
600+
string next_page_token = 10011 [json_name = "next_page_token"];
594601
}
595602

596603
// A Create request for a item resource.
@@ -629,7 +636,7 @@ message UpdateItemRequest {
629636
Item item = 10015 [(google.api.field_behavior) = REQUIRED];
630637

631638
// The update mask for the resource
632-
google.protobuf.FieldMask update_mask = 10012;
639+
google.protobuf.FieldMask update_mask = 10012 [json_name = "update_mask"];
633640
}
634641

635642
// Request message for the DeleteItem method
@@ -650,10 +657,10 @@ message ListItemsRequest {
650657
];
651658

652659
// The page token indicating the starting point of the page
653-
string page_token = 10010;
660+
string page_token = 10010 [json_name = "page_token"];
654661

655662
// The maximum number of resources to return in a single page.
656-
int32 max_page_size = 10017;
663+
int32 max_page_size = 10017 [json_name = "max_page_size"];
657664

658665
// The number of resources to skip before returning the first resource in the page.
659666
int32 skip = 10021;
@@ -668,13 +675,13 @@ message ListItemsResponse {
668675
repeated Item results = 10016;
669676

670677
// The page token indicating the ending point of this response.
671-
string next_page_token = 10011;
678+
string next_page_token = 10011 [json_name = "next_page_token"];
672679
}
673680

674681
// Request message for the move method
675682
message MoveItemRequest {
676683
// Field for target_store.
677-
string target_store = 1;
684+
string target_store = 1 [json_name = "target_store"];
678685

679686
// The globally unique identifier for the resource
680687
string path = 10018 [
@@ -719,7 +726,7 @@ message UpdatePublisherRequest {
719726
Publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED];
720727

721728
// The update mask for the resource
722-
google.protobuf.FieldMask update_mask = 10012;
729+
google.protobuf.FieldMask update_mask = 10012 [json_name = "update_mask"];
723730
}
724731

725732
// Request message for the DeletePublisher method
@@ -743,10 +750,10 @@ message ListPublishersRequest {
743750
];
744751

745752
// The page token indicating the starting point of the page
746-
string page_token = 10010;
753+
string page_token = 10010 [json_name = "page_token"];
747754

748755
// The maximum number of resources to return in a single page.
749-
int32 max_page_size = 10017;
756+
int32 max_page_size = 10017 [json_name = "max_page_size"];
750757

751758
// The number of resources to skip before returning the first resource in the page.
752759
int32 skip = 10021;
@@ -761,7 +768,7 @@ message ListPublishersResponse {
761768
repeated Publisher results = 10016;
762769

763770
// The page token indicating the ending point of this response.
764-
string next_page_token = 10011;
771+
string next_page_token = 10011 [json_name = "next_page_token"];
765772
}
766773

767774
// Request message for the Applypublisher method
@@ -812,7 +819,7 @@ message UpdateStoreRequest {
812819
Store store = 10015 [(google.api.field_behavior) = REQUIRED];
813820

814821
// The update mask for the resource
815-
google.protobuf.FieldMask update_mask = 10012;
822+
google.protobuf.FieldMask update_mask = 10012 [json_name = "update_mask"];
816823
}
817824

818825
// Request message for the DeleteStore method
@@ -836,10 +843,10 @@ message ListStoresRequest {
836843
];
837844

838845
// The page token indicating the starting point of the page
839-
string page_token = 10010;
846+
string page_token = 10010 [json_name = "page_token"];
840847

841848
// The maximum number of resources to return in a single page.
842-
int32 max_page_size = 10017;
849+
int32 max_page_size = 10017 [json_name = "max_page_size"];
843850

844851
// The number of resources to skip before returning the first resource in the page.
845852
int32 skip = 10021;
@@ -854,5 +861,5 @@ message ListStoresResponse {
854861
repeated Store results = 10016;
855862

856863
// The page token indicating the ending point of this response.
857-
string next_page_token = 10011;
864+
string next_page_token = 10011 [json_name = "next_page_token"];
858865
}

0 commit comments

Comments
 (0)