diff --git a/cmd/root.go b/cmd/root.go index f993420..3b2231b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -74,7 +74,7 @@ func ProcessInput(inputFile, outputFilePrefix string) error { return fmt.Errorf("error parsing service: %w", err) } proto, err := proto.WriteServiceToProto(ps, outputDir) - if(err != nil) { + if err != nil { return fmt.Errorf("error writing service proto %w", err) } protoFile := fmt.Sprintf("%s.proto", outputFilePrefix) @@ -93,6 +93,16 @@ func ProcessInput(inputFile, outputFilePrefix string) error { return fmt.Errorf("error writing file: %w", err) } fmt.Printf("output openapi file: %s\n", openapiFile) + yamlOpenAPI, err := yaml.JSONToYAML(openapi) + if err != nil { + return fmt.Errorf("error converting openapi json to yaml: %w", err) + } + yamlOpenAPIFile := fmt.Sprintf("%s_openapi.yaml", outputFilePrefix) + err = WriteFile(yamlOpenAPIFile, yamlOpenAPI) + if err != nil { + return fmt.Errorf("error writing yaml file: %w", err) + } + fmt.Printf("output openapi yaml file: %s\n", yamlOpenAPIFile) return nil } diff --git a/example/bookstore/v1/bookstore.pb.go b/example/bookstore/v1/bookstore.pb.go index 4defd3f..071d556 100644 --- a/example/bookstore/v1/bookstore.pb.go +++ b/example/bookstore/v1/bookstore.pb.go @@ -23,7 +23,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// A Book. +// A book. type Book struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -126,13 +126,13 @@ func (x *Book) GetId() string { return "" } -// A Create request for a Book resource. -type CreateBookRequest struct { +// A Create request for a book resource. +type CreatebookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A field for the parent of Book + // A field for the parent of book Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` @@ -140,8 +140,8 @@ type CreateBookRequest struct { Book *Book `protobuf:"bytes,10015,opt,name=book,proto3" json:"book,omitempty"` } -func (x *CreateBookRequest) Reset() { - *x = CreateBookRequest{} +func (x *CreatebookRequest) Reset() { + *x = CreatebookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -149,13 +149,13 @@ func (x *CreateBookRequest) Reset() { } } -func (x *CreateBookRequest) String() string { +func (x *CreatebookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateBookRequest) ProtoMessage() {} +func (*CreatebookRequest) ProtoMessage() {} -func (x *CreateBookRequest) ProtoReflect() protoreflect.Message { +func (x *CreatebookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -167,34 +167,34 @@ func (x *CreateBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateBookRequest.ProtoReflect.Descriptor instead. -func (*CreateBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CreatebookRequest.ProtoReflect.Descriptor instead. +func (*CreatebookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{1} } -func (x *CreateBookRequest) GetParent() string { +func (x *CreatebookRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *CreateBookRequest) GetId() string { +func (x *CreatebookRequest) GetId() string { if x != nil { return x.Id } return "" } -func (x *CreateBookRequest) GetBook() *Book { +func (x *CreatebookRequest) GetBook() *Book { if x != nil { return x.Book } return nil } -// Request message for the GetBook method -type GetBookRequest struct { +// Request message for the Getbook method +type GetbookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -203,8 +203,8 @@ type GetBookRequest struct { Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` } -func (x *GetBookRequest) Reset() { - *x = GetBookRequest{} +func (x *GetbookRequest) Reset() { + *x = GetbookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -212,13 +212,13 @@ func (x *GetBookRequest) Reset() { } } -func (x *GetBookRequest) String() string { +func (x *GetbookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetBookRequest) ProtoMessage() {} +func (*GetbookRequest) ProtoMessage() {} -func (x *GetBookRequest) ProtoReflect() protoreflect.Message { +func (x *GetbookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -230,20 +230,20 @@ func (x *GetBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetBookRequest.ProtoReflect.Descriptor instead. -func (*GetBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetbookRequest.ProtoReflect.Descriptor instead. +func (*GetbookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{2} } -func (x *GetBookRequest) GetPath() string { +func (x *GetbookRequest) GetPath() string { if x != nil { return x.Path } return "" } -// Request message for the UpdateBook method -type UpdateBookRequest struct { +// Request message for the Updatebook method +type UpdatebookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -256,8 +256,8 @@ type UpdateBookRequest struct { UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,10012,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } -func (x *UpdateBookRequest) Reset() { - *x = UpdateBookRequest{} +func (x *UpdatebookRequest) Reset() { + *x = UpdatebookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -265,13 +265,13 @@ func (x *UpdateBookRequest) Reset() { } } -func (x *UpdateBookRequest) String() string { +func (x *UpdatebookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateBookRequest) ProtoMessage() {} +func (*UpdatebookRequest) ProtoMessage() {} -func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message { +func (x *UpdatebookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -283,34 +283,34 @@ func (x *UpdateBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateBookRequest.ProtoReflect.Descriptor instead. -func (*UpdateBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdatebookRequest.ProtoReflect.Descriptor instead. +func (*UpdatebookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{3} } -func (x *UpdateBookRequest) GetPath() string { +func (x *UpdatebookRequest) GetPath() string { if x != nil { return x.Path } return "" } -func (x *UpdateBookRequest) GetBook() *Book { +func (x *UpdatebookRequest) GetBook() *Book { if x != nil { return x.Book } return nil } -func (x *UpdateBookRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatebookRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } -// Request message for the DeleteBook method -type DeleteBookRequest struct { +// Request message for the Deletebook method +type DeletebookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -319,8 +319,8 @@ type DeleteBookRequest struct { Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` } -func (x *DeleteBookRequest) Reset() { - *x = DeleteBookRequest{} +func (x *DeletebookRequest) Reset() { + *x = DeletebookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -328,13 +328,13 @@ func (x *DeleteBookRequest) Reset() { } } -func (x *DeleteBookRequest) String() string { +func (x *DeletebookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteBookRequest) ProtoMessage() {} +func (*DeletebookRequest) ProtoMessage() {} -func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message { +func (x *DeletebookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -346,25 +346,25 @@ func (x *DeleteBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteBookRequest.ProtoReflect.Descriptor instead. -func (*DeleteBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DeletebookRequest.ProtoReflect.Descriptor instead. +func (*DeletebookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{4} } -func (x *DeleteBookRequest) GetPath() string { +func (x *DeletebookRequest) GetPath() string { if x != nil { return x.Path } return "" } -// Request message for the ListBook method -type ListBookRequest struct { +// Request message for the Listbook method +type ListbookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A field for the parent of Book + // A field for the parent of book Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -372,8 +372,8 @@ type ListBookRequest struct { MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` } -func (x *ListBookRequest) Reset() { - *x = ListBookRequest{} +func (x *ListbookRequest) Reset() { + *x = ListbookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -381,13 +381,13 @@ func (x *ListBookRequest) Reset() { } } -func (x *ListBookRequest) String() string { +func (x *ListbookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListBookRequest) ProtoMessage() {} +func (*ListbookRequest) ProtoMessage() {} -func (x *ListBookRequest) ProtoReflect() protoreflect.Message { +func (x *ListbookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -399,34 +399,34 @@ func (x *ListBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListBookRequest.ProtoReflect.Descriptor instead. -func (*ListBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListbookRequest.ProtoReflect.Descriptor instead. +func (*ListbookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{5} } -func (x *ListBookRequest) GetParent() string { +func (x *ListbookRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *ListBookRequest) GetPageToken() string { +func (x *ListbookRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } -func (x *ListBookRequest) GetMaxPageSize() int32 { +func (x *ListbookRequest) GetMaxPageSize() int32 { if x != nil { return x.MaxPageSize } return 0 } -// Response message for the ListBook method -type ListBookResponse struct { +// Response message for the Listbook method +type ListbookResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -437,8 +437,8 @@ type ListBookResponse struct { NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (x *ListBookResponse) Reset() { - *x = ListBookResponse{} +func (x *ListbookResponse) Reset() { + *x = ListbookResponse{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -446,13 +446,13 @@ func (x *ListBookResponse) Reset() { } } -func (x *ListBookResponse) String() string { +func (x *ListbookResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListBookResponse) ProtoMessage() {} +func (*ListbookResponse) ProtoMessage() {} -func (x *ListBookResponse) ProtoReflect() protoreflect.Message { +func (x *ListbookResponse) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -464,27 +464,27 @@ func (x *ListBookResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListBookResponse.ProtoReflect.Descriptor instead. -func (*ListBookResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListbookResponse.ProtoReflect.Descriptor instead. +func (*ListbookResponse) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{6} } -func (x *ListBookResponse) GetResults() []*Book { +func (x *ListbookResponse) GetResults() []*Book { if x != nil { return x.Results } return nil } -func (x *ListBookResponse) GetNextPageToken() string { +func (x *ListbookResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } -// Request message for the ApplyBook method -type ApplyBookRequest struct { +// Request message for the Applybook method +type ApplybookRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -495,8 +495,8 @@ type ApplyBookRequest struct { Book *Book `protobuf:"bytes,10015,opt,name=book,proto3" json:"book,omitempty"` } -func (x *ApplyBookRequest) Reset() { - *x = ApplyBookRequest{} +func (x *ApplybookRequest) Reset() { + *x = ApplybookRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -504,13 +504,13 @@ func (x *ApplyBookRequest) Reset() { } } -func (x *ApplyBookRequest) String() string { +func (x *ApplybookRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ApplyBookRequest) ProtoMessage() {} +func (*ApplybookRequest) ProtoMessage() {} -func (x *ApplyBookRequest) ProtoReflect() protoreflect.Message { +func (x *ApplybookRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -522,26 +522,26 @@ func (x *ApplyBookRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ApplyBookRequest.ProtoReflect.Descriptor instead. -func (*ApplyBookRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ApplybookRequest.ProtoReflect.Descriptor instead. +func (*ApplybookRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{7} } -func (x *ApplyBookRequest) GetPath() string { +func (x *ApplybookRequest) GetPath() string { if x != nil { return x.Path } return "" } -func (x *ApplyBookRequest) GetBook() *Book { +func (x *ApplybookRequest) GetBook() *Book { if x != nil { return x.Book } return nil } -// A Publisher. +// A publisher. type Publisher struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -608,13 +608,13 @@ func (x *Publisher) GetId() string { return "" } -// A Create request for a Publisher resource. -type CreatePublisherRequest struct { +// A Create request for a publisher resource. +type CreatepublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A field for the parent of Publisher + // A field for the parent of publisher Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // An id that uniquely identifies the resource within the collection Id string `protobuf:"bytes,10014,opt,name=id,proto3" json:"id,omitempty"` @@ -622,8 +622,8 @@ type CreatePublisherRequest struct { Publisher *Publisher `protobuf:"bytes,10015,opt,name=publisher,proto3" json:"publisher,omitempty"` } -func (x *CreatePublisherRequest) Reset() { - *x = CreatePublisherRequest{} +func (x *CreatepublisherRequest) Reset() { + *x = CreatepublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -631,13 +631,13 @@ func (x *CreatePublisherRequest) Reset() { } } -func (x *CreatePublisherRequest) String() string { +func (x *CreatepublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreatePublisherRequest) ProtoMessage() {} +func (*CreatepublisherRequest) ProtoMessage() {} -func (x *CreatePublisherRequest) ProtoReflect() protoreflect.Message { +func (x *CreatepublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -649,34 +649,34 @@ func (x *CreatePublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreatePublisherRequest.ProtoReflect.Descriptor instead. -func (*CreatePublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CreatepublisherRequest.ProtoReflect.Descriptor instead. +func (*CreatepublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{9} } -func (x *CreatePublisherRequest) GetParent() string { +func (x *CreatepublisherRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *CreatePublisherRequest) GetId() string { +func (x *CreatepublisherRequest) GetId() string { if x != nil { return x.Id } return "" } -func (x *CreatePublisherRequest) GetPublisher() *Publisher { +func (x *CreatepublisherRequest) GetPublisher() *Publisher { if x != nil { return x.Publisher } return nil } -// Request message for the GetPublisher method -type GetPublisherRequest struct { +// Request message for the Getpublisher method +type GetpublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -685,8 +685,8 @@ type GetPublisherRequest struct { Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` } -func (x *GetPublisherRequest) Reset() { - *x = GetPublisherRequest{} +func (x *GetpublisherRequest) Reset() { + *x = GetpublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -694,13 +694,13 @@ func (x *GetPublisherRequest) Reset() { } } -func (x *GetPublisherRequest) String() string { +func (x *GetpublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetPublisherRequest) ProtoMessage() {} +func (*GetpublisherRequest) ProtoMessage() {} -func (x *GetPublisherRequest) ProtoReflect() protoreflect.Message { +func (x *GetpublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -712,20 +712,20 @@ func (x *GetPublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetPublisherRequest.ProtoReflect.Descriptor instead. -func (*GetPublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetpublisherRequest.ProtoReflect.Descriptor instead. +func (*GetpublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{10} } -func (x *GetPublisherRequest) GetPath() string { +func (x *GetpublisherRequest) GetPath() string { if x != nil { return x.Path } return "" } -// Request message for the UpdatePublisher method -type UpdatePublisherRequest struct { +// Request message for the Updatepublisher method +type UpdatepublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -738,8 +738,8 @@ type UpdatePublisherRequest struct { UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,10012,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } -func (x *UpdatePublisherRequest) Reset() { - *x = UpdatePublisherRequest{} +func (x *UpdatepublisherRequest) Reset() { + *x = UpdatepublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -747,13 +747,13 @@ func (x *UpdatePublisherRequest) Reset() { } } -func (x *UpdatePublisherRequest) String() string { +func (x *UpdatepublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdatePublisherRequest) ProtoMessage() {} +func (*UpdatepublisherRequest) ProtoMessage() {} -func (x *UpdatePublisherRequest) ProtoReflect() protoreflect.Message { +func (x *UpdatepublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -765,34 +765,34 @@ func (x *UpdatePublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdatePublisherRequest.ProtoReflect.Descriptor instead. -func (*UpdatePublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdatepublisherRequest.ProtoReflect.Descriptor instead. +func (*UpdatepublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{11} } -func (x *UpdatePublisherRequest) GetPath() string { +func (x *UpdatepublisherRequest) GetPath() string { if x != nil { return x.Path } return "" } -func (x *UpdatePublisherRequest) GetPublisher() *Publisher { +func (x *UpdatepublisherRequest) GetPublisher() *Publisher { if x != nil { return x.Publisher } return nil } -func (x *UpdatePublisherRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *UpdatepublisherRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { return x.UpdateMask } return nil } -// Request message for the DeletePublisher method -type DeletePublisherRequest struct { +// Request message for the Deletepublisher method +type DeletepublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -801,8 +801,8 @@ type DeletePublisherRequest struct { Path string `protobuf:"bytes,10018,opt,name=path,proto3" json:"path,omitempty"` } -func (x *DeletePublisherRequest) Reset() { - *x = DeletePublisherRequest{} +func (x *DeletepublisherRequest) Reset() { + *x = DeletepublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -810,13 +810,13 @@ func (x *DeletePublisherRequest) Reset() { } } -func (x *DeletePublisherRequest) String() string { +func (x *DeletepublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeletePublisherRequest) ProtoMessage() {} +func (*DeletepublisherRequest) ProtoMessage() {} -func (x *DeletePublisherRequest) ProtoReflect() protoreflect.Message { +func (x *DeletepublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -828,25 +828,25 @@ func (x *DeletePublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeletePublisherRequest.ProtoReflect.Descriptor instead. -func (*DeletePublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DeletepublisherRequest.ProtoReflect.Descriptor instead. +func (*DeletepublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{12} } -func (x *DeletePublisherRequest) GetPath() string { +func (x *DeletepublisherRequest) GetPath() string { if x != nil { return x.Path } return "" } -// Request message for the ListPublisher method -type ListPublisherRequest struct { +// Request message for the Listpublisher method +type ListpublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A field for the parent of Publisher + // A field for the parent of publisher Parent string `protobuf:"bytes,10013,opt,name=parent,proto3" json:"parent,omitempty"` // The page token indicating the starting point of the page PageToken string `protobuf:"bytes,10010,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -854,8 +854,8 @@ type ListPublisherRequest struct { MaxPageSize int32 `protobuf:"varint,10017,opt,name=max_page_size,json=maxPageSize,proto3" json:"max_page_size,omitempty"` } -func (x *ListPublisherRequest) Reset() { - *x = ListPublisherRequest{} +func (x *ListpublisherRequest) Reset() { + *x = ListpublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -863,13 +863,13 @@ func (x *ListPublisherRequest) Reset() { } } -func (x *ListPublisherRequest) String() string { +func (x *ListpublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListPublisherRequest) ProtoMessage() {} +func (*ListpublisherRequest) ProtoMessage() {} -func (x *ListPublisherRequest) ProtoReflect() protoreflect.Message { +func (x *ListpublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -881,34 +881,34 @@ func (x *ListPublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListPublisherRequest.ProtoReflect.Descriptor instead. -func (*ListPublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListpublisherRequest.ProtoReflect.Descriptor instead. +func (*ListpublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{13} } -func (x *ListPublisherRequest) GetParent() string { +func (x *ListpublisherRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *ListPublisherRequest) GetPageToken() string { +func (x *ListpublisherRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } -func (x *ListPublisherRequest) GetMaxPageSize() int32 { +func (x *ListpublisherRequest) GetMaxPageSize() int32 { if x != nil { return x.MaxPageSize } return 0 } -// Response message for the ListPublisher method -type ListPublisherResponse struct { +// Response message for the Listpublisher method +type ListpublisherResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -919,8 +919,8 @@ type ListPublisherResponse struct { NextPageToken string `protobuf:"bytes,10011,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } -func (x *ListPublisherResponse) Reset() { - *x = ListPublisherResponse{} +func (x *ListpublisherResponse) Reset() { + *x = ListpublisherResponse{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -928,13 +928,13 @@ func (x *ListPublisherResponse) Reset() { } } -func (x *ListPublisherResponse) String() string { +func (x *ListpublisherResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListPublisherResponse) ProtoMessage() {} +func (*ListpublisherResponse) ProtoMessage() {} -func (x *ListPublisherResponse) ProtoReflect() protoreflect.Message { +func (x *ListpublisherResponse) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -946,27 +946,27 @@ func (x *ListPublisherResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListPublisherResponse.ProtoReflect.Descriptor instead. -func (*ListPublisherResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListpublisherResponse.ProtoReflect.Descriptor instead. +func (*ListpublisherResponse) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{14} } -func (x *ListPublisherResponse) GetResults() []*Publisher { +func (x *ListpublisherResponse) GetResults() []*Publisher { if x != nil { return x.Results } return nil } -func (x *ListPublisherResponse) GetNextPageToken() string { +func (x *ListpublisherResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } -// Request message for the ApplyPublisher method -type ApplyPublisherRequest struct { +// Request message for the Applypublisher method +type ApplypublisherRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -977,8 +977,8 @@ type ApplyPublisherRequest struct { Publisher *Publisher `protobuf:"bytes,10015,opt,name=publisher,proto3" json:"publisher,omitempty"` } -func (x *ApplyPublisherRequest) Reset() { - *x = ApplyPublisherRequest{} +func (x *ApplypublisherRequest) Reset() { + *x = ApplypublisherRequest{} if protoimpl.UnsafeEnabled { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -986,13 +986,13 @@ func (x *ApplyPublisherRequest) Reset() { } } -func (x *ApplyPublisherRequest) String() string { +func (x *ApplypublisherRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ApplyPublisherRequest) ProtoMessage() {} +func (*ApplypublisherRequest) ProtoMessage() {} -func (x *ApplyPublisherRequest) ProtoReflect() protoreflect.Message { +func (x *ApplypublisherRequest) ProtoReflect() protoreflect.Message { mi := &file_example_bookstore_v1_bookstore_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1004,19 +1004,19 @@ func (x *ApplyPublisherRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ApplyPublisherRequest.ProtoReflect.Descriptor instead. -func (*ApplyPublisherRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ApplypublisherRequest.ProtoReflect.Descriptor instead. +func (*ApplypublisherRequest) Descriptor() ([]byte, []int) { return file_example_bookstore_v1_bookstore_proto_rawDescGZIP(), []int{15} } -func (x *ApplyPublisherRequest) GetPath() string { +func (x *ApplypublisherRequest) GetPath() string { if x != nil { return x.Path } return "" } -func (x *ApplyPublisherRequest) GetPublisher() *Publisher { +func (x *ApplypublisherRequest) GetPublisher() *Publisher { if x != nil { return x.Publisher } @@ -1099,9 +1099,9 @@ var file_example_bookstore_v1_bookstore_proto_rawDesc = []byte{ 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, - 0x02, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x39, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x02, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x39, 0x0a, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x69, 0x73, 0x62, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x69, 0x73, 0x62, 0x6e, 0x12, 0x19, 0x0a, 0x05, 0x70, @@ -1117,36 +1117,36 @@ var file_example_bookstore_v1_bookstore_proto_rawDesc = []byte{ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7b, 0x0a, - 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x9d, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x0f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x9e, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, - 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x42, + 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x49, 0x0a, 0x0e, 0x47, 0x65, - 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, + 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, - 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x6f, 0x6f, 0x6b, 0x52, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xc0, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, + 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x78, - 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x04, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, - 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x42, + 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x3c, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x9c, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x4c, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, + 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, - 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x6f, 0x6f, 0x6b, - 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x77, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, + 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, + 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x77, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x9d, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, @@ -1154,61 +1154,61 @@ var file_example_bookstore_v1_bookstore_proto_rawDesc = []byte{ 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0xa1, 0x4e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, - 0x72, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x72, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0xa0, 0x4e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, - 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, + 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x9b, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x6f, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x53, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x53, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x90, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x0f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x91, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8f, 0x01, 0x0a, - 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x9d, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x0f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x9e, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x43, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x42, 0x03, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x53, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, + 0x0a, 0x13, 0x47, 0x65, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x22, 0xd9, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, + 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x22, 0xd9, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x75, 0x62, + 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x9c, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, - 0x56, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x56, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x65, 0x78, 0x61, 0x6d, - 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, - 0x72, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x7c, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, + 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x72, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x7c, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x9d, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, @@ -1216,126 +1216,126 @@ var file_example_bookstore_v1_bookstore_proto_rawDesc = []byte{ 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0xa1, 0x4e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x7c, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x7c, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0xa0, 0x4e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x9b, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x15, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x75, 0x62, + 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x15, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa2, 0x4e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, - 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x75, 0x62, 0x6c, + 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x9f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x32, 0x88, 0x0d, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x8b, - 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, + 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, + 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x38, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x62, 0x6f, 0x6f, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x78, 0x0a, 0x07, - 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x24, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x47, 0x65, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x24, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x65, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0xda, 0x41, 0x04, 0x70, 0x61, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x2b, 0xda, 0x41, 0x04, 0x70, 0x61, 0x74, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, + 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x61, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x22, 0x3d, 0xda, 0x41, 0x10, 0x62, + 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x3d, 0xda, 0x41, 0x10, 0x62, 0x6f, 0x6f, 0x6b, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x32, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7a, 0x0a, 0x0a, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0xda, 0x41, 0x04, 0x70, 0x61, 0x74, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x2a, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x6f, 0x6f, - 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, + 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x25, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, - 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, + 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, - 0x12, 0x7b, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x26, 0x2e, + 0x12, 0x7b, 0x0a, 0x09, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x6f, 0x6f, 0x6b, 0x12, 0x26, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x62, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, - 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, + 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x04, 0x62, 0x6f, 0x6f, 0x6b, 0x1a, 0x1c, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9c, 0x01, - 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x3a, 0xda, 0x41, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x7d, 0x12, 0x7f, 0x0a, 0x0c, - 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x65, + 0x47, 0x65, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x23, 0xda, 0x41, 0x04, 0x70, 0x61, 0x74, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa1, 0x01, - 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x3f, 0xda, 0x41, 0x15, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x32, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, - 0x7d, 0x12, 0x7c, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x7d, 0x12, 0x7c, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x74, 0x65, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x23, 0xda, 0x41, 0x04, 0x70, 0x61, 0x74, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x2a, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, - 0x8f, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x8f, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, - 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x2b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x79, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x62, 0x6f, 0x6f, 0x6b, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x3a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x1a, 0x14, 0x2f, 0x7b, 0x70, 0x61, 0x74, 0x68, 0x3d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x0c, 0x5a, 0x0a, 0x2f, @@ -1357,62 +1357,62 @@ func file_example_bookstore_v1_bookstore_proto_rawDescGZIP() []byte { var file_example_bookstore_v1_bookstore_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_example_bookstore_v1_bookstore_proto_goTypes = []interface{}{ - (*Book)(nil), // 0: example.bookstore.v1.Book - (*CreateBookRequest)(nil), // 1: example.bookstore.v1.CreateBookRequest - (*GetBookRequest)(nil), // 2: example.bookstore.v1.GetBookRequest - (*UpdateBookRequest)(nil), // 3: example.bookstore.v1.UpdateBookRequest - (*DeleteBookRequest)(nil), // 4: example.bookstore.v1.DeleteBookRequest - (*ListBookRequest)(nil), // 5: example.bookstore.v1.ListBookRequest - (*ListBookResponse)(nil), // 6: example.bookstore.v1.ListBookResponse - (*ApplyBookRequest)(nil), // 7: example.bookstore.v1.ApplyBookRequest - (*Publisher)(nil), // 8: example.bookstore.v1.Publisher - (*CreatePublisherRequest)(nil), // 9: example.bookstore.v1.CreatePublisherRequest - (*GetPublisherRequest)(nil), // 10: example.bookstore.v1.GetPublisherRequest - (*UpdatePublisherRequest)(nil), // 11: example.bookstore.v1.UpdatePublisherRequest - (*DeletePublisherRequest)(nil), // 12: example.bookstore.v1.DeletePublisherRequest - (*ListPublisherRequest)(nil), // 13: example.bookstore.v1.ListPublisherRequest - (*ListPublisherResponse)(nil), // 14: example.bookstore.v1.ListPublisherResponse - (*ApplyPublisherRequest)(nil), // 15: example.bookstore.v1.ApplyPublisherRequest - (*Book_Author)(nil), // 16: example.bookstore.v1.Book.Author + (*Book)(nil), // 0: example.bookstore.v1.book + (*CreatebookRequest)(nil), // 1: example.bookstore.v1.CreatebookRequest + (*GetbookRequest)(nil), // 2: example.bookstore.v1.GetbookRequest + (*UpdatebookRequest)(nil), // 3: example.bookstore.v1.UpdatebookRequest + (*DeletebookRequest)(nil), // 4: example.bookstore.v1.DeletebookRequest + (*ListbookRequest)(nil), // 5: example.bookstore.v1.ListbookRequest + (*ListbookResponse)(nil), // 6: example.bookstore.v1.ListbookResponse + (*ApplybookRequest)(nil), // 7: example.bookstore.v1.ApplybookRequest + (*Publisher)(nil), // 8: example.bookstore.v1.publisher + (*CreatepublisherRequest)(nil), // 9: example.bookstore.v1.CreatepublisherRequest + (*GetpublisherRequest)(nil), // 10: example.bookstore.v1.GetpublisherRequest + (*UpdatepublisherRequest)(nil), // 11: example.bookstore.v1.UpdatepublisherRequest + (*DeletepublisherRequest)(nil), // 12: example.bookstore.v1.DeletepublisherRequest + (*ListpublisherRequest)(nil), // 13: example.bookstore.v1.ListpublisherRequest + (*ListpublisherResponse)(nil), // 14: example.bookstore.v1.ListpublisherResponse + (*ApplypublisherRequest)(nil), // 15: example.bookstore.v1.ApplypublisherRequest + (*Book_Author)(nil), // 16: example.bookstore.v1.book.Author (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask (*emptypb.Empty)(nil), // 18: google.protobuf.Empty } var file_example_bookstore_v1_bookstore_proto_depIdxs = []int32{ - 16, // 0: example.bookstore.v1.Book.author:type_name -> example.bookstore.v1.Book.Author - 0, // 1: example.bookstore.v1.CreateBookRequest.book:type_name -> example.bookstore.v1.Book - 0, // 2: example.bookstore.v1.UpdateBookRequest.book:type_name -> example.bookstore.v1.Book - 17, // 3: example.bookstore.v1.UpdateBookRequest.update_mask:type_name -> google.protobuf.FieldMask - 0, // 4: example.bookstore.v1.ListBookResponse.results:type_name -> example.bookstore.v1.Book - 0, // 5: example.bookstore.v1.ApplyBookRequest.book:type_name -> example.bookstore.v1.Book - 8, // 6: example.bookstore.v1.CreatePublisherRequest.publisher:type_name -> example.bookstore.v1.Publisher - 8, // 7: example.bookstore.v1.UpdatePublisherRequest.publisher:type_name -> example.bookstore.v1.Publisher - 17, // 8: example.bookstore.v1.UpdatePublisherRequest.update_mask:type_name -> google.protobuf.FieldMask - 8, // 9: example.bookstore.v1.ListPublisherResponse.results:type_name -> example.bookstore.v1.Publisher - 8, // 10: example.bookstore.v1.ApplyPublisherRequest.publisher:type_name -> example.bookstore.v1.Publisher - 1, // 11: example.bookstore.v1.Bookstore.CreateBook:input_type -> example.bookstore.v1.CreateBookRequest - 2, // 12: example.bookstore.v1.Bookstore.GetBook:input_type -> example.bookstore.v1.GetBookRequest - 3, // 13: example.bookstore.v1.Bookstore.UpdateBook:input_type -> example.bookstore.v1.UpdateBookRequest - 4, // 14: example.bookstore.v1.Bookstore.DeleteBook:input_type -> example.bookstore.v1.DeleteBookRequest - 5, // 15: example.bookstore.v1.Bookstore.ListBook:input_type -> example.bookstore.v1.ListBookRequest - 7, // 16: example.bookstore.v1.Bookstore.ApplyBook:input_type -> example.bookstore.v1.ApplyBookRequest - 9, // 17: example.bookstore.v1.Bookstore.CreatePublisher:input_type -> example.bookstore.v1.CreatePublisherRequest - 10, // 18: example.bookstore.v1.Bookstore.GetPublisher:input_type -> example.bookstore.v1.GetPublisherRequest - 11, // 19: example.bookstore.v1.Bookstore.UpdatePublisher:input_type -> example.bookstore.v1.UpdatePublisherRequest - 12, // 20: example.bookstore.v1.Bookstore.DeletePublisher:input_type -> example.bookstore.v1.DeletePublisherRequest - 13, // 21: example.bookstore.v1.Bookstore.ListPublisher:input_type -> example.bookstore.v1.ListPublisherRequest - 15, // 22: example.bookstore.v1.Bookstore.ApplyPublisher:input_type -> example.bookstore.v1.ApplyPublisherRequest - 0, // 23: example.bookstore.v1.Bookstore.CreateBook:output_type -> example.bookstore.v1.Book - 0, // 24: example.bookstore.v1.Bookstore.GetBook:output_type -> example.bookstore.v1.Book - 0, // 25: example.bookstore.v1.Bookstore.UpdateBook:output_type -> example.bookstore.v1.Book - 18, // 26: example.bookstore.v1.Bookstore.DeleteBook:output_type -> google.protobuf.Empty - 6, // 27: example.bookstore.v1.Bookstore.ListBook:output_type -> example.bookstore.v1.ListBookResponse - 0, // 28: example.bookstore.v1.Bookstore.ApplyBook:output_type -> example.bookstore.v1.Book - 8, // 29: example.bookstore.v1.Bookstore.CreatePublisher:output_type -> example.bookstore.v1.Publisher - 8, // 30: example.bookstore.v1.Bookstore.GetPublisher:output_type -> example.bookstore.v1.Publisher - 8, // 31: example.bookstore.v1.Bookstore.UpdatePublisher:output_type -> example.bookstore.v1.Publisher - 18, // 32: example.bookstore.v1.Bookstore.DeletePublisher:output_type -> google.protobuf.Empty - 14, // 33: example.bookstore.v1.Bookstore.ListPublisher:output_type -> example.bookstore.v1.ListPublisherResponse - 8, // 34: example.bookstore.v1.Bookstore.ApplyPublisher:output_type -> example.bookstore.v1.Publisher + 16, // 0: example.bookstore.v1.book.author:type_name -> example.bookstore.v1.book.Author + 0, // 1: example.bookstore.v1.CreatebookRequest.book:type_name -> example.bookstore.v1.book + 0, // 2: example.bookstore.v1.UpdatebookRequest.book:type_name -> example.bookstore.v1.book + 17, // 3: example.bookstore.v1.UpdatebookRequest.update_mask:type_name -> google.protobuf.FieldMask + 0, // 4: example.bookstore.v1.ListbookResponse.results:type_name -> example.bookstore.v1.book + 0, // 5: example.bookstore.v1.ApplybookRequest.book:type_name -> example.bookstore.v1.book + 8, // 6: example.bookstore.v1.CreatepublisherRequest.publisher:type_name -> example.bookstore.v1.publisher + 8, // 7: example.bookstore.v1.UpdatepublisherRequest.publisher:type_name -> example.bookstore.v1.publisher + 17, // 8: example.bookstore.v1.UpdatepublisherRequest.update_mask:type_name -> google.protobuf.FieldMask + 8, // 9: example.bookstore.v1.ListpublisherResponse.results:type_name -> example.bookstore.v1.publisher + 8, // 10: example.bookstore.v1.ApplypublisherRequest.publisher:type_name -> example.bookstore.v1.publisher + 1, // 11: example.bookstore.v1.Bookstore.Createbook:input_type -> example.bookstore.v1.CreatebookRequest + 2, // 12: example.bookstore.v1.Bookstore.Getbook:input_type -> example.bookstore.v1.GetbookRequest + 3, // 13: example.bookstore.v1.Bookstore.Updatebook:input_type -> example.bookstore.v1.UpdatebookRequest + 4, // 14: example.bookstore.v1.Bookstore.Deletebook:input_type -> example.bookstore.v1.DeletebookRequest + 5, // 15: example.bookstore.v1.Bookstore.Listbook:input_type -> example.bookstore.v1.ListbookRequest + 7, // 16: example.bookstore.v1.Bookstore.Applybook:input_type -> example.bookstore.v1.ApplybookRequest + 9, // 17: example.bookstore.v1.Bookstore.Createpublisher:input_type -> example.bookstore.v1.CreatepublisherRequest + 10, // 18: example.bookstore.v1.Bookstore.Getpublisher:input_type -> example.bookstore.v1.GetpublisherRequest + 11, // 19: example.bookstore.v1.Bookstore.Updatepublisher:input_type -> example.bookstore.v1.UpdatepublisherRequest + 12, // 20: example.bookstore.v1.Bookstore.Deletepublisher:input_type -> example.bookstore.v1.DeletepublisherRequest + 13, // 21: example.bookstore.v1.Bookstore.Listpublisher:input_type -> example.bookstore.v1.ListpublisherRequest + 15, // 22: example.bookstore.v1.Bookstore.Applypublisher:input_type -> example.bookstore.v1.ApplypublisherRequest + 0, // 23: example.bookstore.v1.Bookstore.Createbook:output_type -> example.bookstore.v1.book + 0, // 24: example.bookstore.v1.Bookstore.Getbook:output_type -> example.bookstore.v1.book + 0, // 25: example.bookstore.v1.Bookstore.Updatebook:output_type -> example.bookstore.v1.book + 18, // 26: example.bookstore.v1.Bookstore.Deletebook:output_type -> google.protobuf.Empty + 6, // 27: example.bookstore.v1.Bookstore.Listbook:output_type -> example.bookstore.v1.ListbookResponse + 0, // 28: example.bookstore.v1.Bookstore.Applybook:output_type -> example.bookstore.v1.book + 8, // 29: example.bookstore.v1.Bookstore.Createpublisher:output_type -> example.bookstore.v1.publisher + 8, // 30: example.bookstore.v1.Bookstore.Getpublisher:output_type -> example.bookstore.v1.publisher + 8, // 31: example.bookstore.v1.Bookstore.Updatepublisher:output_type -> example.bookstore.v1.publisher + 18, // 32: example.bookstore.v1.Bookstore.Deletepublisher:output_type -> google.protobuf.Empty + 14, // 33: example.bookstore.v1.Bookstore.Listpublisher:output_type -> example.bookstore.v1.ListpublisherResponse + 8, // 34: example.bookstore.v1.Bookstore.Applypublisher:output_type -> example.bookstore.v1.publisher 23, // [23:35] is the sub-list for method output_type 11, // [11:23] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name @@ -1439,7 +1439,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateBookRequest); i { + switch v := v.(*CreatebookRequest); i { case 0: return &v.state case 1: @@ -1451,7 +1451,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBookRequest); i { + switch v := v.(*GetbookRequest); i { case 0: return &v.state case 1: @@ -1463,7 +1463,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateBookRequest); i { + switch v := v.(*UpdatebookRequest); i { case 0: return &v.state case 1: @@ -1475,7 +1475,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteBookRequest); i { + switch v := v.(*DeletebookRequest); i { case 0: return &v.state case 1: @@ -1487,7 +1487,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListBookRequest); i { + switch v := v.(*ListbookRequest); i { case 0: return &v.state case 1: @@ -1499,7 +1499,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListBookResponse); i { + switch v := v.(*ListbookResponse); i { case 0: return &v.state case 1: @@ -1511,7 +1511,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyBookRequest); i { + switch v := v.(*ApplybookRequest); i { case 0: return &v.state case 1: @@ -1535,7 +1535,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePublisherRequest); i { + switch v := v.(*CreatepublisherRequest); i { case 0: return &v.state case 1: @@ -1547,7 +1547,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPublisherRequest); i { + switch v := v.(*GetpublisherRequest); i { case 0: return &v.state case 1: @@ -1559,7 +1559,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdatePublisherRequest); i { + switch v := v.(*UpdatepublisherRequest); i { case 0: return &v.state case 1: @@ -1571,7 +1571,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeletePublisherRequest); i { + switch v := v.(*DeletepublisherRequest); i { case 0: return &v.state case 1: @@ -1583,7 +1583,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPublisherRequest); i { + switch v := v.(*ListpublisherRequest); i { case 0: return &v.state case 1: @@ -1595,7 +1595,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPublisherResponse); i { + switch v := v.(*ListpublisherResponse); i { case 0: return &v.state case 1: @@ -1607,7 +1607,7 @@ func file_example_bookstore_v1_bookstore_proto_init() { } } file_example_bookstore_v1_bookstore_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyPublisherRequest); i { + switch v := v.(*ApplypublisherRequest); i { case 0: return &v.state case 1: diff --git a/example/bookstore/v1/bookstore.pb.gw.go b/example/bookstore/v1/bookstore.pb.gw.go index 05c2ba5..6641051 100644 --- a/example/bookstore/v1/bookstore.pb.gw.go +++ b/example/bookstore/v1/bookstore.pb.gw.go @@ -32,11 +32,11 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_Bookstore_CreateBook_0 = &utilities.DoubleArray{Encoding: map[string]int{"book": 0, "parent": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} + filter_Bookstore_Createbook_0 = &utilities.DoubleArray{Encoding: map[string]int{"book": 0, "parent": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} ) -func request_Bookstore_CreateBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateBookRequest +func request_Bookstore_Createbook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatebookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -67,17 +67,17 @@ func request_Bookstore_CreateBook_0(ctx context.Context, marshaler runtime.Marsh if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_CreateBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Createbook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.CreateBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Createbook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_CreateBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateBookRequest +func local_request_Bookstore_Createbook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatebookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -108,17 +108,17 @@ func local_request_Bookstore_CreateBook_0(ctx context.Context, marshaler runtime if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_CreateBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Createbook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreateBook(ctx, &protoReq) + msg, err := server.Createbook(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_GetBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBookRequest +func request_Bookstore_Getbook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetbookRequest var metadata runtime.ServerMetadata var ( @@ -138,13 +138,13 @@ func request_Bookstore_GetBook_0(ctx context.Context, marshaler runtime.Marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.GetBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Getbook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_GetBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetBookRequest +func local_request_Bookstore_Getbook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetbookRequest var metadata runtime.ServerMetadata var ( @@ -164,17 +164,17 @@ func local_request_Bookstore_GetBook_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.GetBook(ctx, &protoReq) + msg, err := server.Getbook(ctx, &protoReq) return msg, metadata, err } var ( - filter_Bookstore_UpdateBook_0 = &utilities.DoubleArray{Encoding: map[string]int{"book": 0, "path": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} + filter_Bookstore_Updatebook_0 = &utilities.DoubleArray{Encoding: map[string]int{"book": 0, "path": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} ) -func request_Bookstore_UpdateBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateBookRequest +func request_Bookstore_Updatebook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatebookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -212,17 +212,17 @@ func request_Bookstore_UpdateBook_0(ctx context.Context, marshaler runtime.Marsh if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_UpdateBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Updatebook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.UpdateBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Updatebook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_UpdateBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateBookRequest +func local_request_Bookstore_Updatebook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatebookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -260,17 +260,17 @@ func local_request_Bookstore_UpdateBook_0(ctx context.Context, marshaler runtime if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_UpdateBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Updatebook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.UpdateBook(ctx, &protoReq) + msg, err := server.Updatebook(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_DeleteBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteBookRequest +func request_Bookstore_Deletebook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeletebookRequest var metadata runtime.ServerMetadata var ( @@ -290,13 +290,13 @@ func request_Bookstore_DeleteBook_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.DeleteBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Deletebook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_DeleteBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeleteBookRequest +func local_request_Bookstore_Deletebook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeletebookRequest var metadata runtime.ServerMetadata var ( @@ -316,17 +316,17 @@ func local_request_Bookstore_DeleteBook_0(ctx context.Context, marshaler runtime return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.DeleteBook(ctx, &protoReq) + msg, err := server.Deletebook(ctx, &protoReq) return msg, metadata, err } var ( - filter_Bookstore_ListBook_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_Bookstore_Listbook_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) -func request_Bookstore_ListBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListBookRequest +func request_Bookstore_Listbook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListbookRequest var metadata runtime.ServerMetadata var ( @@ -349,17 +349,17 @@ func request_Bookstore_ListBook_0(ctx context.Context, marshaler runtime.Marshal if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_ListBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Listbook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Listbook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_ListBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListBookRequest +func local_request_Bookstore_Listbook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListbookRequest var metadata runtime.ServerMetadata var ( @@ -382,17 +382,17 @@ func local_request_Bookstore_ListBook_0(ctx context.Context, marshaler runtime.M if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_ListBook_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Listbook_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListBook(ctx, &protoReq) + msg, err := server.Listbook(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_ApplyBook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplyBookRequest +func request_Bookstore_Applybook_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplybookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -420,13 +420,13 @@ func request_Bookstore_ApplyBook_0(ctx context.Context, marshaler runtime.Marsha return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.ApplyBook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Applybook(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_ApplyBook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplyBookRequest +func local_request_Bookstore_Applybook_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplybookRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -454,17 +454,17 @@ func local_request_Bookstore_ApplyBook_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.ApplyBook(ctx, &protoReq) + msg, err := server.Applybook(ctx, &protoReq) return msg, metadata, err } var ( - filter_Bookstore_CreatePublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"publisher": 0, "parent": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} + filter_Bookstore_Createpublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"publisher": 0, "parent": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} ) -func request_Bookstore_CreatePublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreatePublisherRequest +func request_Bookstore_Createpublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatepublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -495,17 +495,17 @@ func request_Bookstore_CreatePublisher_0(ctx context.Context, marshaler runtime. if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_CreatePublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Createpublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.CreatePublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Createpublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_CreatePublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreatePublisherRequest +func local_request_Bookstore_Createpublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CreatepublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -536,17 +536,17 @@ func local_request_Bookstore_CreatePublisher_0(ctx context.Context, marshaler ru if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_CreatePublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Createpublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.CreatePublisher(ctx, &protoReq) + msg, err := server.Createpublisher(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_GetPublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPublisherRequest +func request_Bookstore_Getpublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetpublisherRequest var metadata runtime.ServerMetadata var ( @@ -566,13 +566,13 @@ func request_Bookstore_GetPublisher_0(ctx context.Context, marshaler runtime.Mar return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.GetPublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Getpublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_GetPublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetPublisherRequest +func local_request_Bookstore_Getpublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetpublisherRequest var metadata runtime.ServerMetadata var ( @@ -592,17 +592,17 @@ func local_request_Bookstore_GetPublisher_0(ctx context.Context, marshaler runti return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.GetPublisher(ctx, &protoReq) + msg, err := server.Getpublisher(ctx, &protoReq) return msg, metadata, err } var ( - filter_Bookstore_UpdatePublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"publisher": 0, "path": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} + filter_Bookstore_Updatepublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"publisher": 0, "path": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} ) -func request_Bookstore_UpdatePublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdatePublisherRequest +func request_Bookstore_Updatepublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatepublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -640,17 +640,17 @@ func request_Bookstore_UpdatePublisher_0(ctx context.Context, marshaler runtime. if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_UpdatePublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Updatepublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.UpdatePublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Updatepublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_UpdatePublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdatePublisherRequest +func local_request_Bookstore_Updatepublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdatepublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -688,17 +688,17 @@ func local_request_Bookstore_UpdatePublisher_0(ctx context.Context, marshaler ru if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_UpdatePublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Updatepublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.UpdatePublisher(ctx, &protoReq) + msg, err := server.Updatepublisher(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_DeletePublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeletePublisherRequest +func request_Bookstore_Deletepublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeletepublisherRequest var metadata runtime.ServerMetadata var ( @@ -718,13 +718,13 @@ func request_Bookstore_DeletePublisher_0(ctx context.Context, marshaler runtime. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.DeletePublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Deletepublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_DeletePublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DeletePublisherRequest +func local_request_Bookstore_Deletepublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DeletepublisherRequest var metadata runtime.ServerMetadata var ( @@ -744,17 +744,17 @@ func local_request_Bookstore_DeletePublisher_0(ctx context.Context, marshaler ru return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.DeletePublisher(ctx, &protoReq) + msg, err := server.Deletepublisher(ctx, &protoReq) return msg, metadata, err } var ( - filter_Bookstore_ListPublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} + filter_Bookstore_Listpublisher_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) -func request_Bookstore_ListPublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListPublisherRequest +func request_Bookstore_Listpublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListpublisherRequest var metadata runtime.ServerMetadata var ( @@ -777,17 +777,17 @@ func request_Bookstore_ListPublisher_0(ctx context.Context, marshaler runtime.Ma if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_ListPublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Listpublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.ListPublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Listpublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_ListPublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ListPublisherRequest +func local_request_Bookstore_Listpublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ListpublisherRequest var metadata runtime.ServerMetadata var ( @@ -810,17 +810,17 @@ func local_request_Bookstore_ListPublisher_0(ctx context.Context, marshaler runt if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_ListPublisher_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Bookstore_Listpublisher_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.ListPublisher(ctx, &protoReq) + msg, err := server.Listpublisher(ctx, &protoReq) return msg, metadata, err } -func request_Bookstore_ApplyPublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplyPublisherRequest +func request_Bookstore_Applypublisher_0(ctx context.Context, marshaler runtime.Marshaler, client BookstoreClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplypublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -848,13 +848,13 @@ func request_Bookstore_ApplyPublisher_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := client.ApplyPublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Applypublisher(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Bookstore_ApplyPublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplyPublisherRequest +func local_request_Bookstore_Applypublisher_0(ctx context.Context, marshaler runtime.Marshaler, server BookstoreServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ApplypublisherRequest var metadata runtime.ServerMetadata newReader, berr := utilities.IOReaderFactory(req.Body) @@ -882,7 +882,7 @@ func local_request_Bookstore_ApplyPublisher_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "path", err) } - msg, err := server.ApplyPublisher(ctx, &protoReq) + msg, err := server.Applypublisher(ctx, &protoReq) return msg, metadata, err } @@ -893,7 +893,7 @@ func local_request_Bookstore_ApplyPublisher_0(ctx context.Context, marshaler run // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBookstoreHandlerFromEndpoint instead. func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BookstoreServer) error { - mux.Handle("POST", pattern_Bookstore_CreateBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Bookstore_Createbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -901,12 +901,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/CreateBook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Createbook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_CreateBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Createbook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -914,11 +914,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_CreateBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Createbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_GetBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Getbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -926,12 +926,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/GetBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Getbook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_GetBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Getbook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -939,11 +939,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_GetBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Getbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PATCH", pattern_Bookstore_UpdateBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PATCH", pattern_Bookstore_Updatebook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -951,12 +951,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/UpdateBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Updatebook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_UpdateBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Updatebook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -964,11 +964,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_UpdateBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Updatebook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_Bookstore_DeleteBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_Bookstore_Deletebook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -976,12 +976,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/DeleteBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Deletebook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_DeleteBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Deletebook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -989,11 +989,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_DeleteBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Deletebook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_ListBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Listbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1001,12 +1001,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ListBook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Listbook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_ListBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Listbook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1014,11 +1014,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_ListBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Listbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PUT", pattern_Bookstore_ApplyBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PUT", pattern_Bookstore_Applybook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1026,12 +1026,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ApplyBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Applybook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_ApplyBook_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Applybook_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1039,11 +1039,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_ApplyBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Applybook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Bookstore_CreatePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Bookstore_Createpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1051,12 +1051,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/CreatePublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Createpublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_CreatePublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Createpublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1064,11 +1064,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_CreatePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Createpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_GetPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Getpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1076,12 +1076,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/GetPublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Getpublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_GetPublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Getpublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1089,11 +1089,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_GetPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Getpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PATCH", pattern_Bookstore_UpdatePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PATCH", pattern_Bookstore_Updatepublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1101,12 +1101,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/UpdatePublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Updatepublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_UpdatePublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Updatepublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1114,11 +1114,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_UpdatePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Updatepublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_Bookstore_DeletePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_Bookstore_Deletepublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1126,12 +1126,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/DeletePublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Deletepublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_DeletePublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Deletepublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1139,11 +1139,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_DeletePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Deletepublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_ListPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Listpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1151,12 +1151,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ListPublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Listpublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_ListPublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Listpublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1164,11 +1164,11 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_ListPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Listpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PUT", pattern_Bookstore_ApplyPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PUT", pattern_Bookstore_Applypublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -1176,12 +1176,12 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ApplyPublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Applypublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Bookstore_ApplyPublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Bookstore_Applypublisher_0(annotatedContext, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { @@ -1189,7 +1189,7 @@ func RegisterBookstoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, return } - forward_Bookstore_ApplyPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Applypublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1234,267 +1234,267 @@ func RegisterBookstoreHandler(ctx context.Context, mux *runtime.ServeMux, conn * // "BookstoreClient" to call the correct interceptors. func RegisterBookstoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BookstoreClient) error { - mux.Handle("POST", pattern_Bookstore_CreateBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Bookstore_Createbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/CreateBook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Createbook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_CreateBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Createbook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_CreateBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Createbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_GetBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Getbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/GetBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Getbook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_GetBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Getbook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_GetBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Getbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PATCH", pattern_Bookstore_UpdateBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PATCH", pattern_Bookstore_Updatebook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/UpdateBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Updatebook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_UpdateBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Updatebook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_UpdateBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Updatebook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_Bookstore_DeleteBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_Bookstore_Deletebook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/DeleteBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Deletebook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_DeleteBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Deletebook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_DeleteBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Deletebook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_ListBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Listbook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ListBook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Listbook", runtime.WithHTTPPathPattern("/{parent=publishers/*}/books")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_ListBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Listbook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_ListBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Listbook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PUT", pattern_Bookstore_ApplyBook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PUT", pattern_Bookstore_Applybook_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ApplyBook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Applybook", runtime.WithHTTPPathPattern("/{path=publishers/*/books/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_ApplyBook_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Applybook_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_ApplyBook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Applybook_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("POST", pattern_Bookstore_CreatePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_Bookstore_Createpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/CreatePublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Createpublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_CreatePublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Createpublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_CreatePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Createpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_GetPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Getpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/GetPublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Getpublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_GetPublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Getpublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_GetPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Getpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PATCH", pattern_Bookstore_UpdatePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PATCH", pattern_Bookstore_Updatepublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/UpdatePublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Updatepublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_UpdatePublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Updatepublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_UpdatePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Updatepublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("DELETE", pattern_Bookstore_DeletePublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("DELETE", pattern_Bookstore_Deletepublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/DeletePublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Deletepublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_DeletePublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Deletepublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_DeletePublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Deletepublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Bookstore_ListPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Bookstore_Listpublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ListPublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Listpublisher", runtime.WithHTTPPathPattern("/{parent=publishers}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_ListPublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Listpublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_ListPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Listpublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("PUT", pattern_Bookstore_ApplyPublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("PUT", pattern_Bookstore_Applypublisher_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/ApplyPublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/example.bookstore.v1.Bookstore/Applypublisher", runtime.WithHTTPPathPattern("/{path=publishers/*}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Bookstore_ApplyPublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Bookstore_Applypublisher_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_Bookstore_ApplyPublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Bookstore_Applypublisher_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1502,53 +1502,53 @@ func RegisterBookstoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, } var ( - pattern_Bookstore_CreateBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1, 2, 2}, []string{"publishers", "parent", "books"}, "")) + pattern_Bookstore_Createbook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1, 2, 2}, []string{"publishers", "parent", "books"}, "")) - pattern_Bookstore_GetBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) + pattern_Bookstore_Getbook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) - pattern_Bookstore_UpdateBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) + pattern_Bookstore_Updatebook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) - pattern_Bookstore_DeleteBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) + pattern_Bookstore_Deletebook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) - pattern_Bookstore_ListBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1, 2, 2}, []string{"publishers", "parent", "books"}, "")) + pattern_Bookstore_Listbook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1, 2, 2}, []string{"publishers", "parent", "books"}, "")) - pattern_Bookstore_ApplyBook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) + pattern_Bookstore_Applybook_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 2, 1, 1, 0, 4, 4, 5, 2}, []string{"publishers", "books", "path"}, "")) - pattern_Bookstore_CreatePublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 4, 1, 5, 1}, []string{"publishers", "parent"}, "")) + pattern_Bookstore_Createpublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 4, 1, 5, 1}, []string{"publishers", "parent"}, "")) - pattern_Bookstore_GetPublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) + pattern_Bookstore_Getpublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) - pattern_Bookstore_UpdatePublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) + pattern_Bookstore_Updatepublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) - pattern_Bookstore_DeletePublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) + pattern_Bookstore_Deletepublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) - pattern_Bookstore_ListPublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 4, 1, 5, 1}, []string{"publishers", "parent"}, "")) + pattern_Bookstore_Listpublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 4, 1, 5, 1}, []string{"publishers", "parent"}, "")) - pattern_Bookstore_ApplyPublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) + pattern_Bookstore_Applypublisher_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 2, 5, 1}, []string{"publishers", "path"}, "")) ) var ( - forward_Bookstore_CreateBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Createbook_0 = runtime.ForwardResponseMessage - forward_Bookstore_GetBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Getbook_0 = runtime.ForwardResponseMessage - forward_Bookstore_UpdateBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Updatebook_0 = runtime.ForwardResponseMessage - forward_Bookstore_DeleteBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Deletebook_0 = runtime.ForwardResponseMessage - forward_Bookstore_ListBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Listbook_0 = runtime.ForwardResponseMessage - forward_Bookstore_ApplyBook_0 = runtime.ForwardResponseMessage + forward_Bookstore_Applybook_0 = runtime.ForwardResponseMessage - forward_Bookstore_CreatePublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Createpublisher_0 = runtime.ForwardResponseMessage - forward_Bookstore_GetPublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Getpublisher_0 = runtime.ForwardResponseMessage - forward_Bookstore_UpdatePublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Updatepublisher_0 = runtime.ForwardResponseMessage - forward_Bookstore_DeletePublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Deletepublisher_0 = runtime.ForwardResponseMessage - forward_Bookstore_ListPublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Listpublisher_0 = runtime.ForwardResponseMessage - forward_Bookstore_ApplyPublisher_0 = runtime.ForwardResponseMessage + forward_Bookstore_Applypublisher_0 = runtime.ForwardResponseMessage ) diff --git a/example/bookstore/v1/bookstore.proto b/example/bookstore/v1/bookstore.proto index 65d404d..da0fbef 100644 --- a/example/bookstore/v1/bookstore.proto +++ b/example/bookstore/v1/bookstore.proto @@ -18,8 +18,8 @@ option go_package = "/bookstore"; // A service. service Bookstore { - // An aep-compliant Create method for Book. - rpc CreateBook ( CreateBookRequest ) returns ( Book ) { + // An aep-compliant Create method for book. + rpc Createbook ( CreatebookRequest ) returns ( book ) { option (google.api.http) = { post: "/{parent=publishers/*}/books", body: "book" @@ -28,15 +28,15 @@ service Bookstore { option (google.api.method_signature) = "parent,book"; } - // An aep-compliant Get method for Book. - rpc GetBook ( GetBookRequest ) returns ( Book ) { + // An aep-compliant Get method for book. + rpc Getbook ( GetbookRequest ) returns ( book ) { option (google.api.http) = { get: "/{path=publishers/*/books/*}" }; option (google.api.method_signature) = "path"; } - // An aep-compliant Update method for Book. - rpc UpdateBook ( UpdateBookRequest ) returns ( Book ) { + // An aep-compliant Update method for book. + rpc Updatebook ( UpdatebookRequest ) returns ( book ) { option (google.api.http) = { patch: "/{path=publishers/*/books/*}", body: "book" @@ -45,30 +45,30 @@ service Bookstore { option (google.api.method_signature) = "book,update_mask"; } - // An aep-compliant Delete method for Book. - rpc DeleteBook ( DeleteBookRequest ) returns ( google.protobuf.Empty ) { + // An aep-compliant Delete method for book. + rpc Deletebook ( DeletebookRequest ) returns ( google.protobuf.Empty ) { option (google.api.http) = { delete: "/{path=publishers/*/books/*}" }; option (google.api.method_signature) = "path"; } // An aep-compliant List method for books. - rpc ListBook ( ListBookRequest ) returns ( ListBookResponse ) { + rpc Listbook ( ListbookRequest ) returns ( ListbookResponse ) { option (google.api.http) = { get: "/{parent=publishers/*}/books" }; option (google.api.method_signature) = "parent"; } // An aep-compliant Apply method for books. - rpc ApplyBook ( ApplyBookRequest ) returns ( Book ) { + rpc Applybook ( ApplybookRequest ) returns ( book ) { option (google.api.http) = { put: "/{path=publishers/*/books/*}", body: "book" }; } - // An aep-compliant Create method for Publisher. - rpc CreatePublisher ( CreatePublisherRequest ) returns ( Publisher ) { + // An aep-compliant Create method for publisher. + rpc Createpublisher ( CreatepublisherRequest ) returns ( publisher ) { option (google.api.http) = { post: "/{parent=publishers}", body: "publisher" @@ -77,15 +77,15 @@ service Bookstore { option (google.api.method_signature) = "parent,publisher"; } - // An aep-compliant Get method for Publisher. - rpc GetPublisher ( GetPublisherRequest ) returns ( Publisher ) { + // An aep-compliant Get method for publisher. + rpc Getpublisher ( GetpublisherRequest ) returns ( publisher ) { option (google.api.http) = { get: "/{path=publishers/*}" }; option (google.api.method_signature) = "path"; } - // An aep-compliant Update method for Publisher. - rpc UpdatePublisher ( UpdatePublisherRequest ) returns ( Publisher ) { + // An aep-compliant Update method for publisher. + rpc Updatepublisher ( UpdatepublisherRequest ) returns ( publisher ) { option (google.api.http) = { patch: "/{path=publishers/*}", body: "publisher" @@ -94,28 +94,28 @@ service Bookstore { option (google.api.method_signature) = "publisher,update_mask"; } - // An aep-compliant Delete method for Publisher. - rpc DeletePublisher ( DeletePublisherRequest ) returns ( google.protobuf.Empty ) { + // An aep-compliant Delete method for publisher. + rpc Deletepublisher ( DeletepublisherRequest ) returns ( google.protobuf.Empty ) { option (google.api.http) = { delete: "/{path=publishers/*}" }; option (google.api.method_signature) = "path"; } // An aep-compliant List method for publishers. - rpc ListPublisher ( ListPublisherRequest ) returns ( ListPublisherResponse ) { + rpc Listpublisher ( ListpublisherRequest ) returns ( ListpublisherResponse ) { option (google.api.http) = { get: "/{parent=publishers}" }; option (google.api.method_signature) = "parent"; } // An aep-compliant Apply method for publishers. - rpc ApplyPublisher ( ApplyPublisherRequest ) returns ( Publisher ) { + rpc Applypublisher ( ApplypublisherRequest ) returns ( publisher ) { option (google.api.http) = { put: "/{path=publishers/*}", body: "publisher" }; } } -// A Book. -message Book { +// A book. +message book { // A Author. message Author { // Field for firstName. @@ -147,9 +147,9 @@ message Book { string id = 10001; } -// A Create request for a Book resource. -message CreateBookRequest { - // A field for the parent of Book +// A Create request for a book resource. +message CreatebookRequest { + // A field for the parent of book string parent = 10013 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { } @@ -159,45 +159,45 @@ message CreateBookRequest { string id = 10014; // The resource to perform the operation on. - Book book = 10015 [(google.api.field_behavior) = REQUIRED]; + book book = 10015 [(google.api.field_behavior) = REQUIRED]; } -// Request message for the GetBook method -message GetBookRequest { +// Request message for the Getbook method +message GetbookRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Book" } + (google.api.resource_reference) = { type: "bookstore.example.com/book" } ]; } -// Request message for the UpdateBook method -message UpdateBookRequest { +// Request message for the Updatebook method +message UpdatebookRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Book" } + (google.api.resource_reference) = { type: "bookstore.example.com/book" } ]; // The resource to perform the operation on. - Book book = 10015 [(google.api.field_behavior) = REQUIRED]; + book book = 10015 [(google.api.field_behavior) = REQUIRED]; // The update mask for the resource google.protobuf.FieldMask update_mask = 10012; } -// Request message for the DeleteBook method -message DeleteBookRequest { +// Request message for the Deletebook method +message DeletebookRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Book" } + (google.api.resource_reference) = { type: "bookstore.example.com/book" } ]; } -// Request message for the ListBook method -message ListBookRequest { - // A field for the parent of Book +// Request message for the Listbook method +message ListbookRequest { + // A field for the parent of book string parent = 10013 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { } @@ -210,29 +210,29 @@ message ListBookRequest { int32 max_page_size = 10017; } -// Response message for the ListBook method -message ListBookResponse { +// Response message for the Listbook method +message ListbookResponse { // A list of books - repeated Book results = 10016; + repeated book results = 10016; // The page token indicating the ending point of this response. string next_page_token = 10011; } -// Request message for the ApplyBook method -message ApplyBookRequest { +// Request message for the Applybook method +message ApplybookRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Book" } + (google.api.resource_reference) = { type: "bookstore.example.com/book" } ]; // The resource to perform the operation on. - Book book = 10015 [(google.api.field_behavior) = REQUIRED]; + book book = 10015 [(google.api.field_behavior) = REQUIRED]; } -// A Publisher. -message Publisher { +// A publisher. +message publisher { // Field for description. string description = 1; @@ -243,9 +243,9 @@ message Publisher { string id = 10001; } -// A Create request for a Publisher resource. -message CreatePublisherRequest { - // A field for the parent of Publisher +// A Create request for a publisher resource. +message CreatepublisherRequest { + // A field for the parent of publisher string parent = 10013 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { } @@ -255,45 +255,45 @@ message CreatePublisherRequest { string id = 10014; // The resource to perform the operation on. - Publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; + publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; } -// Request message for the GetPublisher method -message GetPublisherRequest { +// Request message for the Getpublisher method +message GetpublisherRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Publisher" } + (google.api.resource_reference) = { type: "bookstore.example.com/publisher" } ]; } -// Request message for the UpdatePublisher method -message UpdatePublisherRequest { +// Request message for the Updatepublisher method +message UpdatepublisherRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Publisher" } + (google.api.resource_reference) = { type: "bookstore.example.com/publisher" } ]; // The resource to perform the operation on. - Publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; + publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; // The update mask for the resource google.protobuf.FieldMask update_mask = 10012; } -// Request message for the DeletePublisher method -message DeletePublisherRequest { +// Request message for the Deletepublisher method +message DeletepublisherRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Publisher" } + (google.api.resource_reference) = { type: "bookstore.example.com/publisher" } ]; } -// Request message for the ListPublisher method -message ListPublisherRequest { - // A field for the parent of Publisher +// Request message for the Listpublisher method +message ListpublisherRequest { + // A field for the parent of publisher string parent = 10013 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { } @@ -306,23 +306,23 @@ message ListPublisherRequest { int32 max_page_size = 10017; } -// Response message for the ListPublisher method -message ListPublisherResponse { +// Response message for the Listpublisher method +message ListpublisherResponse { // A list of publishers - repeated Publisher results = 10016; + repeated publisher results = 10016; // The page token indicating the ending point of this response. string next_page_token = 10011; } -// Request message for the ApplyPublisher method -message ApplyPublisherRequest { +// Request message for the Applypublisher method +message ApplypublisherRequest { // The globally unique identifier for the resource string path = 10018 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bookstore.example.com/Publisher" } + (google.api.resource_reference) = { type: "bookstore.example.com/publisher" } ]; // The resource to perform the operation on. - Publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; + publisher publisher = 10015 [(google.api.field_behavior) = REQUIRED]; } diff --git a/example/bookstore/v1/bookstore.swagger.json b/example/bookstore/v1/bookstore.swagger.json index 79cee1b..0e2028e 100644 --- a/example/bookstore/v1/bookstore.swagger.json +++ b/example/bookstore/v1/bookstore.swagger.json @@ -19,12 +19,12 @@ "/{parent}": { "get": { "summary": "An aep-compliant List method for publishers.", - "operationId": "Bookstore_ListPublisher", + "operationId": "Bookstore_Listpublisher", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1ListPublisherResponse" + "$ref": "#/definitions/v1ListpublisherResponse" } }, "default": { @@ -37,7 +37,7 @@ "parameters": [ { "name": "parent", - "description": "A field for the parent of Publisher", + "description": "A field for the parent of publisher", "in": "path", "required": true, "type": "string", @@ -64,13 +64,13 @@ ] }, "post": { - "summary": "An aep-compliant Create method for Publisher.", - "operationId": "Bookstore_CreatePublisher", + "summary": "An aep-compliant Create method for publisher.", + "operationId": "Bookstore_Createpublisher", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Publisher" + "$ref": "#/definitions/v1publisher" } }, "default": { @@ -83,7 +83,7 @@ "parameters": [ { "name": "parent", - "description": "A field for the parent of Publisher", + "description": "A field for the parent of publisher", "in": "path", "required": true, "type": "string", @@ -95,7 +95,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Publisher", + "$ref": "#/definitions/v1publisher", "required": [ "publisher" ] @@ -117,12 +117,12 @@ "/{parent}/books": { "get": { "summary": "An aep-compliant List method for books.", - "operationId": "Bookstore_ListBook", + "operationId": "Bookstore_Listbook", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1ListBookResponse" + "$ref": "#/definitions/v1ListbookResponse" } }, "default": { @@ -135,7 +135,7 @@ "parameters": [ { "name": "parent", - "description": "A field for the parent of Book", + "description": "A field for the parent of book", "in": "path", "required": true, "type": "string", @@ -162,13 +162,13 @@ ] }, "post": { - "summary": "An aep-compliant Create method for Book.", - "operationId": "Bookstore_CreateBook", + "summary": "An aep-compliant Create method for book.", + "operationId": "Bookstore_Createbook", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Book" + "$ref": "#/definitions/v1book" } }, "default": { @@ -181,7 +181,7 @@ "parameters": [ { "name": "parent", - "description": "A field for the parent of Book", + "description": "A field for the parent of book", "in": "path", "required": true, "type": "string", @@ -193,7 +193,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Book", + "$ref": "#/definitions/v1book", "required": [ "book" ] @@ -214,13 +214,13 @@ }, "/{path_1}": { "get": { - "summary": "An aep-compliant Get method for Publisher.", - "operationId": "Bookstore_GetPublisher", + "summary": "An aep-compliant Get method for publisher.", + "operationId": "Bookstore_Getpublisher", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Publisher" + "$ref": "#/definitions/v1publisher" } }, "default": { @@ -245,8 +245,8 @@ ] }, "delete": { - "summary": "An aep-compliant Delete method for Publisher.", - "operationId": "Bookstore_DeletePublisher", + "summary": "An aep-compliant Delete method for publisher.", + "operationId": "Bookstore_Deletepublisher", "responses": { "200": { "description": "A successful response.", @@ -278,12 +278,12 @@ }, "put": { "summary": "An aep-compliant Apply method for publishers.", - "operationId": "Bookstore_ApplyPublisher", + "operationId": "Bookstore_Applypublisher", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Publisher" + "$ref": "#/definitions/v1publisher" } }, "default": { @@ -308,7 +308,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Publisher", + "$ref": "#/definitions/v1publisher", "required": [ "publisher" ] @@ -320,13 +320,13 @@ ] }, "patch": { - "summary": "An aep-compliant Update method for Publisher.", - "operationId": "Bookstore_UpdatePublisher", + "summary": "An aep-compliant Update method for publisher.", + "operationId": "Bookstore_Updatepublisher", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Publisher" + "$ref": "#/definitions/v1publisher" } }, "default": { @@ -351,7 +351,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Publisher", + "$ref": "#/definitions/v1publisher", "required": [ "publisher" ] @@ -365,13 +365,13 @@ }, "/{path}": { "get": { - "summary": "An aep-compliant Get method for Book.", - "operationId": "Bookstore_GetBook", + "summary": "An aep-compliant Get method for book.", + "operationId": "Bookstore_Getbook", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Book" + "$ref": "#/definitions/v1book" } }, "default": { @@ -396,8 +396,8 @@ ] }, "delete": { - "summary": "An aep-compliant Delete method for Book.", - "operationId": "Bookstore_DeleteBook", + "summary": "An aep-compliant Delete method for book.", + "operationId": "Bookstore_Deletebook", "responses": { "200": { "description": "A successful response.", @@ -429,12 +429,12 @@ }, "put": { "summary": "An aep-compliant Apply method for books.", - "operationId": "Bookstore_ApplyBook", + "operationId": "Bookstore_Applybook", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Book" + "$ref": "#/definitions/v1book" } }, "default": { @@ -459,7 +459,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Book", + "$ref": "#/definitions/v1book", "required": [ "book" ] @@ -471,13 +471,13 @@ ] }, "patch": { - "summary": "An aep-compliant Update method for Book.", - "operationId": "Bookstore_UpdateBook", + "summary": "An aep-compliant Update method for book.", + "operationId": "Bookstore_Updatebook", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/v1Book" + "$ref": "#/definitions/v1book" } }, "default": { @@ -502,7 +502,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1Book", + "$ref": "#/definitions/v1book", "required": [ "book" ] @@ -516,7 +516,7 @@ } }, "definitions": { - "BookAuthor": { + "bookAuthor": { "type": "object", "properties": { "firstName": { @@ -558,14 +558,50 @@ } } }, - "v1Book": { + "v1ListbookResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1book" + }, + "title": "A list of books" + }, + "nextPageToken": { + "type": "string", + "description": "The page token indicating the ending point of this response." + } + }, + "title": "Response message for the Listbook method" + }, + "v1ListpublisherResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/v1publisher" + }, + "title": "A list of publishers" + }, + "nextPageToken": { + "type": "string", + "description": "The page token indicating the ending point of this response." + } + }, + "title": "Response message for the Listpublisher method" + }, + "v1book": { "type": "object", "properties": { "author": { "type": "array", "items": { "type": "object", - "$ref": "#/definitions/BookAuthor" + "$ref": "#/definitions/bookAuthor" }, "description": "Field for author." }, @@ -599,50 +635,14 @@ "description": "Field for id." } }, - "description": "A Book.", + "description": "A book.", "required": [ "isbn", "price", "published" ] }, - "v1ListBookResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1Book" - }, - "title": "A list of books" - }, - "nextPageToken": { - "type": "string", - "description": "The page token indicating the ending point of this response." - } - }, - "title": "Response message for the ListBook method" - }, - "v1ListPublisherResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/v1Publisher" - }, - "title": "A list of publishers" - }, - "nextPageToken": { - "type": "string", - "description": "The page token indicating the ending point of this response." - } - }, - "title": "Response message for the ListPublisher method" - }, - "v1Publisher": { + "v1publisher": { "type": "object", "properties": { "description": { @@ -658,7 +658,7 @@ "description": "Field for id." } }, - "description": "A Publisher." + "description": "A publisher." } } } diff --git a/example/bookstore/v1/bookstore.yaml b/example/bookstore/v1/bookstore.yaml index 8f8a1d3..442d67a 100644 --- a/example/bookstore/v1/bookstore.yaml +++ b/example/bookstore/v1/bookstore.yaml @@ -3,7 +3,7 @@ name: "bookstore.example.com" url: "http://localhost:8081" resources: # example of a simple resource - - kind: "Publisher" + - kind: "publisher" plural: "publishers" properties: description: @@ -17,12 +17,12 @@ resources: list: {} apply: {} # example of a child resource - - kind: "Book" + - kind: "book" plural: "books" # the parents should specify the parents of the resource. It takes in the # kind. parents: - - "Publisher" + - "publisher" properties: isbn: array_type: diff --git a/example/bookstore/v1/bookstore_grpc.pb.go b/example/bookstore/v1/bookstore_grpc.pb.go index 5a1ae9a..e18f585 100644 --- a/example/bookstore/v1/bookstore_grpc.pb.go +++ b/example/bookstore/v1/bookstore_grpc.pb.go @@ -20,48 +20,48 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Bookstore_CreateBook_FullMethodName = "/example.bookstore.v1.Bookstore/CreateBook" - Bookstore_GetBook_FullMethodName = "/example.bookstore.v1.Bookstore/GetBook" - Bookstore_UpdateBook_FullMethodName = "/example.bookstore.v1.Bookstore/UpdateBook" - Bookstore_DeleteBook_FullMethodName = "/example.bookstore.v1.Bookstore/DeleteBook" - Bookstore_ListBook_FullMethodName = "/example.bookstore.v1.Bookstore/ListBook" - Bookstore_ApplyBook_FullMethodName = "/example.bookstore.v1.Bookstore/ApplyBook" - Bookstore_CreatePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/CreatePublisher" - Bookstore_GetPublisher_FullMethodName = "/example.bookstore.v1.Bookstore/GetPublisher" - Bookstore_UpdatePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/UpdatePublisher" - Bookstore_DeletePublisher_FullMethodName = "/example.bookstore.v1.Bookstore/DeletePublisher" - Bookstore_ListPublisher_FullMethodName = "/example.bookstore.v1.Bookstore/ListPublisher" - Bookstore_ApplyPublisher_FullMethodName = "/example.bookstore.v1.Bookstore/ApplyPublisher" + Bookstore_Createbook_FullMethodName = "/example.bookstore.v1.Bookstore/Createbook" + Bookstore_Getbook_FullMethodName = "/example.bookstore.v1.Bookstore/Getbook" + Bookstore_Updatebook_FullMethodName = "/example.bookstore.v1.Bookstore/Updatebook" + Bookstore_Deletebook_FullMethodName = "/example.bookstore.v1.Bookstore/Deletebook" + Bookstore_Listbook_FullMethodName = "/example.bookstore.v1.Bookstore/Listbook" + Bookstore_Applybook_FullMethodName = "/example.bookstore.v1.Bookstore/Applybook" + Bookstore_Createpublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Createpublisher" + Bookstore_Getpublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Getpublisher" + Bookstore_Updatepublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Updatepublisher" + Bookstore_Deletepublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Deletepublisher" + Bookstore_Listpublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Listpublisher" + Bookstore_Applypublisher_FullMethodName = "/example.bookstore.v1.Bookstore/Applypublisher" ) // BookstoreClient is the client API for Bookstore service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type BookstoreClient interface { - // An aep-compliant Create method for Book. - CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) - // An aep-compliant Get method for Book. - GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error) - // An aep-compliant Update method for Book. - UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error) - // An aep-compliant Delete method for Book. - DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // An aep-compliant Create method for book. + Createbook(ctx context.Context, in *CreatebookRequest, opts ...grpc.CallOption) (*Book, error) + // An aep-compliant Get method for book. + Getbook(ctx context.Context, in *GetbookRequest, opts ...grpc.CallOption) (*Book, error) + // An aep-compliant Update method for book. + Updatebook(ctx context.Context, in *UpdatebookRequest, opts ...grpc.CallOption) (*Book, error) + // An aep-compliant Delete method for book. + Deletebook(ctx context.Context, in *DeletebookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // An aep-compliant List method for books. - ListBook(ctx context.Context, in *ListBookRequest, opts ...grpc.CallOption) (*ListBookResponse, error) + Listbook(ctx context.Context, in *ListbookRequest, opts ...grpc.CallOption) (*ListbookResponse, error) // An aep-compliant Apply method for books. - ApplyBook(ctx context.Context, in *ApplyBookRequest, opts ...grpc.CallOption) (*Book, error) - // An aep-compliant Create method for Publisher. - CreatePublisher(ctx context.Context, in *CreatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) - // An aep-compliant Get method for Publisher. - GetPublisher(ctx context.Context, in *GetPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) - // An aep-compliant Update method for Publisher. - UpdatePublisher(ctx context.Context, in *UpdatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) - // An aep-compliant Delete method for Publisher. - DeletePublisher(ctx context.Context, in *DeletePublisherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Applybook(ctx context.Context, in *ApplybookRequest, opts ...grpc.CallOption) (*Book, error) + // An aep-compliant Create method for publisher. + Createpublisher(ctx context.Context, in *CreatepublisherRequest, opts ...grpc.CallOption) (*Publisher, error) + // An aep-compliant Get method for publisher. + Getpublisher(ctx context.Context, in *GetpublisherRequest, opts ...grpc.CallOption) (*Publisher, error) + // An aep-compliant Update method for publisher. + Updatepublisher(ctx context.Context, in *UpdatepublisherRequest, opts ...grpc.CallOption) (*Publisher, error) + // An aep-compliant Delete method for publisher. + Deletepublisher(ctx context.Context, in *DeletepublisherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // An aep-compliant List method for publishers. - ListPublisher(ctx context.Context, in *ListPublisherRequest, opts ...grpc.CallOption) (*ListPublisherResponse, error) + Listpublisher(ctx context.Context, in *ListpublisherRequest, opts ...grpc.CallOption) (*ListpublisherResponse, error) // An aep-compliant Apply method for publishers. - ApplyPublisher(ctx context.Context, in *ApplyPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) + Applypublisher(ctx context.Context, in *ApplypublisherRequest, opts ...grpc.CallOption) (*Publisher, error) } type bookstoreClient struct { @@ -72,108 +72,108 @@ func NewBookstoreClient(cc grpc.ClientConnInterface) BookstoreClient { return &bookstoreClient{cc} } -func (c *bookstoreClient) CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) { +func (c *bookstoreClient) Createbook(ctx context.Context, in *CreatebookRequest, opts ...grpc.CallOption) (*Book, error) { out := new(Book) - err := c.cc.Invoke(ctx, Bookstore_CreateBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Createbook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) GetBook(ctx context.Context, in *GetBookRequest, opts ...grpc.CallOption) (*Book, error) { +func (c *bookstoreClient) Getbook(ctx context.Context, in *GetbookRequest, opts ...grpc.CallOption) (*Book, error) { out := new(Book) - err := c.cc.Invoke(ctx, Bookstore_GetBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Getbook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error) { +func (c *bookstoreClient) Updatebook(ctx context.Context, in *UpdatebookRequest, opts ...grpc.CallOption) (*Book, error) { out := new(Book) - err := c.cc.Invoke(ctx, Bookstore_UpdateBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Updatebook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) DeleteBook(ctx context.Context, in *DeleteBookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *bookstoreClient) Deletebook(ctx context.Context, in *DeletebookRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Bookstore_DeleteBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Deletebook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) ListBook(ctx context.Context, in *ListBookRequest, opts ...grpc.CallOption) (*ListBookResponse, error) { - out := new(ListBookResponse) - err := c.cc.Invoke(ctx, Bookstore_ListBook_FullMethodName, in, out, opts...) +func (c *bookstoreClient) Listbook(ctx context.Context, in *ListbookRequest, opts ...grpc.CallOption) (*ListbookResponse, error) { + out := new(ListbookResponse) + err := c.cc.Invoke(ctx, Bookstore_Listbook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) ApplyBook(ctx context.Context, in *ApplyBookRequest, opts ...grpc.CallOption) (*Book, error) { +func (c *bookstoreClient) Applybook(ctx context.Context, in *ApplybookRequest, opts ...grpc.CallOption) (*Book, error) { out := new(Book) - err := c.cc.Invoke(ctx, Bookstore_ApplyBook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Applybook_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) CreatePublisher(ctx context.Context, in *CreatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { +func (c *bookstoreClient) Createpublisher(ctx context.Context, in *CreatepublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { out := new(Publisher) - err := c.cc.Invoke(ctx, Bookstore_CreatePublisher_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Createpublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) GetPublisher(ctx context.Context, in *GetPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { +func (c *bookstoreClient) Getpublisher(ctx context.Context, in *GetpublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { out := new(Publisher) - err := c.cc.Invoke(ctx, Bookstore_GetPublisher_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Getpublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) UpdatePublisher(ctx context.Context, in *UpdatePublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { +func (c *bookstoreClient) Updatepublisher(ctx context.Context, in *UpdatepublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { out := new(Publisher) - err := c.cc.Invoke(ctx, Bookstore_UpdatePublisher_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Updatepublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) DeletePublisher(ctx context.Context, in *DeletePublisherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *bookstoreClient) Deletepublisher(ctx context.Context, in *DeletepublisherRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Bookstore_DeletePublisher_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Deletepublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) ListPublisher(ctx context.Context, in *ListPublisherRequest, opts ...grpc.CallOption) (*ListPublisherResponse, error) { - out := new(ListPublisherResponse) - err := c.cc.Invoke(ctx, Bookstore_ListPublisher_FullMethodName, in, out, opts...) +func (c *bookstoreClient) Listpublisher(ctx context.Context, in *ListpublisherRequest, opts ...grpc.CallOption) (*ListpublisherResponse, error) { + out := new(ListpublisherResponse) + err := c.cc.Invoke(ctx, Bookstore_Listpublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *bookstoreClient) ApplyPublisher(ctx context.Context, in *ApplyPublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { +func (c *bookstoreClient) Applypublisher(ctx context.Context, in *ApplypublisherRequest, opts ...grpc.CallOption) (*Publisher, error) { out := new(Publisher) - err := c.cc.Invoke(ctx, Bookstore_ApplyPublisher_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Bookstore_Applypublisher_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -184,30 +184,30 @@ func (c *bookstoreClient) ApplyPublisher(ctx context.Context, in *ApplyPublisher // All implementations must embed UnimplementedBookstoreServer // for forward compatibility type BookstoreServer interface { - // An aep-compliant Create method for Book. - CreateBook(context.Context, *CreateBookRequest) (*Book, error) - // An aep-compliant Get method for Book. - GetBook(context.Context, *GetBookRequest) (*Book, error) - // An aep-compliant Update method for Book. - UpdateBook(context.Context, *UpdateBookRequest) (*Book, error) - // An aep-compliant Delete method for Book. - DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error) + // An aep-compliant Create method for book. + Createbook(context.Context, *CreatebookRequest) (*Book, error) + // An aep-compliant Get method for book. + Getbook(context.Context, *GetbookRequest) (*Book, error) + // An aep-compliant Update method for book. + Updatebook(context.Context, *UpdatebookRequest) (*Book, error) + // An aep-compliant Delete method for book. + Deletebook(context.Context, *DeletebookRequest) (*emptypb.Empty, error) // An aep-compliant List method for books. - ListBook(context.Context, *ListBookRequest) (*ListBookResponse, error) + Listbook(context.Context, *ListbookRequest) (*ListbookResponse, error) // An aep-compliant Apply method for books. - ApplyBook(context.Context, *ApplyBookRequest) (*Book, error) - // An aep-compliant Create method for Publisher. - CreatePublisher(context.Context, *CreatePublisherRequest) (*Publisher, error) - // An aep-compliant Get method for Publisher. - GetPublisher(context.Context, *GetPublisherRequest) (*Publisher, error) - // An aep-compliant Update method for Publisher. - UpdatePublisher(context.Context, *UpdatePublisherRequest) (*Publisher, error) - // An aep-compliant Delete method for Publisher. - DeletePublisher(context.Context, *DeletePublisherRequest) (*emptypb.Empty, error) + Applybook(context.Context, *ApplybookRequest) (*Book, error) + // An aep-compliant Create method for publisher. + Createpublisher(context.Context, *CreatepublisherRequest) (*Publisher, error) + // An aep-compliant Get method for publisher. + Getpublisher(context.Context, *GetpublisherRequest) (*Publisher, error) + // An aep-compliant Update method for publisher. + Updatepublisher(context.Context, *UpdatepublisherRequest) (*Publisher, error) + // An aep-compliant Delete method for publisher. + Deletepublisher(context.Context, *DeletepublisherRequest) (*emptypb.Empty, error) // An aep-compliant List method for publishers. - ListPublisher(context.Context, *ListPublisherRequest) (*ListPublisherResponse, error) + Listpublisher(context.Context, *ListpublisherRequest) (*ListpublisherResponse, error) // An aep-compliant Apply method for publishers. - ApplyPublisher(context.Context, *ApplyPublisherRequest) (*Publisher, error) + Applypublisher(context.Context, *ApplypublisherRequest) (*Publisher, error) mustEmbedUnimplementedBookstoreServer() } @@ -215,41 +215,41 @@ type BookstoreServer interface { type UnimplementedBookstoreServer struct { } -func (UnimplementedBookstoreServer) CreateBook(context.Context, *CreateBookRequest) (*Book, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateBook not implemented") +func (UnimplementedBookstoreServer) Createbook(context.Context, *CreatebookRequest) (*Book, error) { + return nil, status.Errorf(codes.Unimplemented, "method Createbook not implemented") } -func (UnimplementedBookstoreServer) GetBook(context.Context, *GetBookRequest) (*Book, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBook not implemented") +func (UnimplementedBookstoreServer) Getbook(context.Context, *GetbookRequest) (*Book, error) { + return nil, status.Errorf(codes.Unimplemented, "method Getbook not implemented") } -func (UnimplementedBookstoreServer) UpdateBook(context.Context, *UpdateBookRequest) (*Book, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateBook not implemented") +func (UnimplementedBookstoreServer) Updatebook(context.Context, *UpdatebookRequest) (*Book, error) { + return nil, status.Errorf(codes.Unimplemented, "method Updatebook not implemented") } -func (UnimplementedBookstoreServer) DeleteBook(context.Context, *DeleteBookRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteBook not implemented") +func (UnimplementedBookstoreServer) Deletebook(context.Context, *DeletebookRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deletebook not implemented") } -func (UnimplementedBookstoreServer) ListBook(context.Context, *ListBookRequest) (*ListBookResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListBook not implemented") +func (UnimplementedBookstoreServer) Listbook(context.Context, *ListbookRequest) (*ListbookResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Listbook not implemented") } -func (UnimplementedBookstoreServer) ApplyBook(context.Context, *ApplyBookRequest) (*Book, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyBook not implemented") +func (UnimplementedBookstoreServer) Applybook(context.Context, *ApplybookRequest) (*Book, error) { + return nil, status.Errorf(codes.Unimplemented, "method Applybook not implemented") } -func (UnimplementedBookstoreServer) CreatePublisher(context.Context, *CreatePublisherRequest) (*Publisher, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePublisher not implemented") +func (UnimplementedBookstoreServer) Createpublisher(context.Context, *CreatepublisherRequest) (*Publisher, error) { + return nil, status.Errorf(codes.Unimplemented, "method Createpublisher not implemented") } -func (UnimplementedBookstoreServer) GetPublisher(context.Context, *GetPublisherRequest) (*Publisher, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublisher not implemented") +func (UnimplementedBookstoreServer) Getpublisher(context.Context, *GetpublisherRequest) (*Publisher, error) { + return nil, status.Errorf(codes.Unimplemented, "method Getpublisher not implemented") } -func (UnimplementedBookstoreServer) UpdatePublisher(context.Context, *UpdatePublisherRequest) (*Publisher, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePublisher not implemented") +func (UnimplementedBookstoreServer) Updatepublisher(context.Context, *UpdatepublisherRequest) (*Publisher, error) { + return nil, status.Errorf(codes.Unimplemented, "method Updatepublisher not implemented") } -func (UnimplementedBookstoreServer) DeletePublisher(context.Context, *DeletePublisherRequest) (*emptypb.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeletePublisher not implemented") +func (UnimplementedBookstoreServer) Deletepublisher(context.Context, *DeletepublisherRequest) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Deletepublisher not implemented") } -func (UnimplementedBookstoreServer) ListPublisher(context.Context, *ListPublisherRequest) (*ListPublisherResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPublisher not implemented") +func (UnimplementedBookstoreServer) Listpublisher(context.Context, *ListpublisherRequest) (*ListpublisherResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Listpublisher not implemented") } -func (UnimplementedBookstoreServer) ApplyPublisher(context.Context, *ApplyPublisherRequest) (*Publisher, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplyPublisher not implemented") +func (UnimplementedBookstoreServer) Applypublisher(context.Context, *ApplypublisherRequest) (*Publisher, error) { + return nil, status.Errorf(codes.Unimplemented, "method Applypublisher not implemented") } func (UnimplementedBookstoreServer) mustEmbedUnimplementedBookstoreServer() {} @@ -264,218 +264,218 @@ func RegisterBookstoreServer(s grpc.ServiceRegistrar, srv BookstoreServer) { s.RegisterService(&Bookstore_ServiceDesc, srv) } -func _Bookstore_CreateBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateBookRequest) +func _Bookstore_Createbook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatebookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).CreateBook(ctx, in) + return srv.(BookstoreServer).Createbook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_CreateBook_FullMethodName, + FullMethod: Bookstore_Createbook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).CreateBook(ctx, req.(*CreateBookRequest)) + return srv.(BookstoreServer).Createbook(ctx, req.(*CreatebookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_GetBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBookRequest) +func _Bookstore_Getbook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetbookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).GetBook(ctx, in) + return srv.(BookstoreServer).Getbook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_GetBook_FullMethodName, + FullMethod: Bookstore_Getbook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).GetBook(ctx, req.(*GetBookRequest)) + return srv.(BookstoreServer).Getbook(ctx, req.(*GetbookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_UpdateBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateBookRequest) +func _Bookstore_Updatebook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatebookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).UpdateBook(ctx, in) + return srv.(BookstoreServer).Updatebook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_UpdateBook_FullMethodName, + FullMethod: Bookstore_Updatebook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).UpdateBook(ctx, req.(*UpdateBookRequest)) + return srv.(BookstoreServer).Updatebook(ctx, req.(*UpdatebookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_DeleteBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteBookRequest) +func _Bookstore_Deletebook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletebookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).DeleteBook(ctx, in) + return srv.(BookstoreServer).Deletebook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_DeleteBook_FullMethodName, + FullMethod: Bookstore_Deletebook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).DeleteBook(ctx, req.(*DeleteBookRequest)) + return srv.(BookstoreServer).Deletebook(ctx, req.(*DeletebookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_ListBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListBookRequest) +func _Bookstore_Listbook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListbookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).ListBook(ctx, in) + return srv.(BookstoreServer).Listbook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_ListBook_FullMethodName, + FullMethod: Bookstore_Listbook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).ListBook(ctx, req.(*ListBookRequest)) + return srv.(BookstoreServer).Listbook(ctx, req.(*ListbookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_ApplyBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyBookRequest) +func _Bookstore_Applybook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplybookRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).ApplyBook(ctx, in) + return srv.(BookstoreServer).Applybook(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_ApplyBook_FullMethodName, + FullMethod: Bookstore_Applybook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).ApplyBook(ctx, req.(*ApplyBookRequest)) + return srv.(BookstoreServer).Applybook(ctx, req.(*ApplybookRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_CreatePublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreatePublisherRequest) +func _Bookstore_Createpublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreatepublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).CreatePublisher(ctx, in) + return srv.(BookstoreServer).Createpublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_CreatePublisher_FullMethodName, + FullMethod: Bookstore_Createpublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).CreatePublisher(ctx, req.(*CreatePublisherRequest)) + return srv.(BookstoreServer).Createpublisher(ctx, req.(*CreatepublisherRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_GetPublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetPublisherRequest) +func _Bookstore_Getpublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetpublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).GetPublisher(ctx, in) + return srv.(BookstoreServer).Getpublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_GetPublisher_FullMethodName, + FullMethod: Bookstore_Getpublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).GetPublisher(ctx, req.(*GetPublisherRequest)) + return srv.(BookstoreServer).Getpublisher(ctx, req.(*GetpublisherRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_UpdatePublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdatePublisherRequest) +func _Bookstore_Updatepublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatepublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).UpdatePublisher(ctx, in) + return srv.(BookstoreServer).Updatepublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_UpdatePublisher_FullMethodName, + FullMethod: Bookstore_Updatepublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).UpdatePublisher(ctx, req.(*UpdatePublisherRequest)) + return srv.(BookstoreServer).Updatepublisher(ctx, req.(*UpdatepublisherRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_DeletePublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeletePublisherRequest) +func _Bookstore_Deletepublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeletepublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).DeletePublisher(ctx, in) + return srv.(BookstoreServer).Deletepublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_DeletePublisher_FullMethodName, + FullMethod: Bookstore_Deletepublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).DeletePublisher(ctx, req.(*DeletePublisherRequest)) + return srv.(BookstoreServer).Deletepublisher(ctx, req.(*DeletepublisherRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_ListPublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPublisherRequest) +func _Bookstore_Listpublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListpublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).ListPublisher(ctx, in) + return srv.(BookstoreServer).Listpublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_ListPublisher_FullMethodName, + FullMethod: Bookstore_Listpublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).ListPublisher(ctx, req.(*ListPublisherRequest)) + return srv.(BookstoreServer).Listpublisher(ctx, req.(*ListpublisherRequest)) } return interceptor(ctx, in, info, handler) } -func _Bookstore_ApplyPublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplyPublisherRequest) +func _Bookstore_Applypublisher_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ApplypublisherRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(BookstoreServer).ApplyPublisher(ctx, in) + return srv.(BookstoreServer).Applypublisher(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Bookstore_ApplyPublisher_FullMethodName, + FullMethod: Bookstore_Applypublisher_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BookstoreServer).ApplyPublisher(ctx, req.(*ApplyPublisherRequest)) + return srv.(BookstoreServer).Applypublisher(ctx, req.(*ApplypublisherRequest)) } return interceptor(ctx, in, info, handler) } @@ -488,52 +488,52 @@ var Bookstore_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*BookstoreServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "CreateBook", - Handler: _Bookstore_CreateBook_Handler, + MethodName: "Createbook", + Handler: _Bookstore_Createbook_Handler, }, { - MethodName: "GetBook", - Handler: _Bookstore_GetBook_Handler, + MethodName: "Getbook", + Handler: _Bookstore_Getbook_Handler, }, { - MethodName: "UpdateBook", - Handler: _Bookstore_UpdateBook_Handler, + MethodName: "Updatebook", + Handler: _Bookstore_Updatebook_Handler, }, { - MethodName: "DeleteBook", - Handler: _Bookstore_DeleteBook_Handler, + MethodName: "Deletebook", + Handler: _Bookstore_Deletebook_Handler, }, { - MethodName: "ListBook", - Handler: _Bookstore_ListBook_Handler, + MethodName: "Listbook", + Handler: _Bookstore_Listbook_Handler, }, { - MethodName: "ApplyBook", - Handler: _Bookstore_ApplyBook_Handler, + MethodName: "Applybook", + Handler: _Bookstore_Applybook_Handler, }, { - MethodName: "CreatePublisher", - Handler: _Bookstore_CreatePublisher_Handler, + MethodName: "Createpublisher", + Handler: _Bookstore_Createpublisher_Handler, }, { - MethodName: "GetPublisher", - Handler: _Bookstore_GetPublisher_Handler, + MethodName: "Getpublisher", + Handler: _Bookstore_Getpublisher_Handler, }, { - MethodName: "UpdatePublisher", - Handler: _Bookstore_UpdatePublisher_Handler, + MethodName: "Updatepublisher", + Handler: _Bookstore_Updatepublisher_Handler, }, { - MethodName: "DeletePublisher", - Handler: _Bookstore_DeletePublisher_Handler, + MethodName: "Deletepublisher", + Handler: _Bookstore_Deletepublisher_Handler, }, { - MethodName: "ListPublisher", - Handler: _Bookstore_ListPublisher_Handler, + MethodName: "Listpublisher", + Handler: _Bookstore_Listpublisher_Handler, }, { - MethodName: "ApplyPublisher", - Handler: _Bookstore_ApplyPublisher_Handler, + MethodName: "Applypublisher", + Handler: _Bookstore_Applypublisher_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/example/bookstore/v1/bookstore_openapi.json b/example/bookstore/v1/bookstore_openapi.json index 36feca1..84ee604 100644 --- a/example/bookstore/v1/bookstore_openapi.json +++ b/example/bookstore/v1/bookstore_openapi.json @@ -19,7 +19,7 @@ "200": { "schema": { "items": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } } @@ -30,7 +30,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } }, @@ -39,7 +39,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } }, { @@ -73,7 +73,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } }, @@ -91,7 +91,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } }, @@ -107,7 +107,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } ] @@ -116,7 +116,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } }, @@ -125,7 +125,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Publisher" + "$ref": "#/components/schemas/publisher" } } ] @@ -137,7 +137,7 @@ "200": { "schema": { "items": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } } @@ -156,7 +156,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } }, @@ -172,7 +172,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } }, { @@ -213,7 +213,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } }, @@ -238,7 +238,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } }, @@ -261,7 +261,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } ] @@ -270,7 +270,7 @@ "responses": { "200": { "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } }, @@ -286,7 +286,7 @@ "in": "body", "name": "body", "schema": { - "$ref": "#/components/schemas/Book" + "$ref": "#/components/schemas/book" } } ] @@ -295,7 +295,7 @@ }, "components": { "schemas": { - "Book": { + "book": { "type": "object", "required": [ "isbn", @@ -337,17 +337,17 @@ } }, "x-aep-resource": { - "singular": "Book", + "singular": "book", "plural": "books", "patterns": [ "/publishers/{publisher_id}/books/{book_id}" ], "parents": [ - "Publisher" + "publisher" ] } }, - "Publisher": { + "publisher": { "type": "object", "properties": { "description": { @@ -364,7 +364,7 @@ } }, "x-aep-resource": { - "singular": "Publisher", + "singular": "publisher", "plural": "publishers", "patterns": [ "/publishers/{publisher_id}" diff --git a/example/bookstore/v1/bookstore_openapi.yaml b/example/bookstore/v1/bookstore_openapi.yaml new file mode 100644 index 0000000..1eb9b92 --- /dev/null +++ b/example/bookstore/v1/bookstore_openapi.yaml @@ -0,0 +1,235 @@ +components: + schemas: + book: + properties: + author: + items: + type: object + type: array + edition: + format: int32 + type: integer + id: + readOnly: true + type: string + x-terraform-id: true + isbn: + items: + type: string + type: array + path: + readOnly: true + type: string + price: + format: float + type: number + published: + type: boolean + required: + - isbn + - price + - published + type: object + x-aep-resource: + parents: + - publisher + patterns: + - /publishers/{publisher_id}/books/{book_id} + plural: books + singular: book + publisher: + properties: + description: + type: string + id: + readOnly: true + type: string + x-terraform-id: true + path: + readOnly: true + type: string + type: object + x-aep-resource: + patterns: + - /publishers/{publisher_id} + plural: publishers + singular: publisher +info: + title: bookstore.example.com + version: version not set +paths: + /publishers: + get: + parameters: [] + responses: + "200": + schema: + items: + $ref: '#/components/schemas/publisher' + post: + parameters: + - in: body + name: body + schema: + $ref: '#/components/schemas/publisher' + - in: query + name: id + required: true + schema: {} + type: string + responses: + "200": + schema: + $ref: '#/components/schemas/publisher' + /publishers/{publisher_id}: + delete: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + responses: + "200": + schema: {} + get: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + responses: + "200": + schema: + $ref: '#/components/schemas/publisher' + patch: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: body + name: body + schema: + $ref: '#/components/schemas/publisher' + responses: + "200": + schema: + $ref: '#/components/schemas/publisher' + put: + parameters: + - in: body + name: body + schema: + $ref: '#/components/schemas/publisher' + responses: + "200": + schema: + $ref: '#/components/schemas/publisher' + /publishers/{publisher_id}/books: + get: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + responses: + "200": + schema: + items: + $ref: '#/components/schemas/book' + post: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: body + name: body + schema: + $ref: '#/components/schemas/book' + - in: query + name: id + required: true + schema: {} + type: string + responses: + "200": + schema: + $ref: '#/components/schemas/book' + /publishers/{publisher_id}/books/{book_id}: + delete: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: path + name: book_id + required: true + schema: {} + type: string + responses: + "200": + schema: {} + get: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: path + name: book_id + required: true + schema: {} + type: string + responses: + "200": + schema: + $ref: '#/components/schemas/book' + patch: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: path + name: book_id + required: true + schema: {} + type: string + - in: body + name: body + schema: + $ref: '#/components/schemas/book' + responses: + "200": + schema: + $ref: '#/components/schemas/book' + put: + parameters: + - in: path + name: publisher_id + required: true + schema: {} + type: string + - in: body + name: body + schema: + $ref: '#/components/schemas/book' + responses: + "200": + schema: + $ref: '#/components/schemas/book' +schemes: +- http +servers: +- url: http://localhost:8081 +swagger: "2.0" diff --git a/validator/validator.go b/validator/validator.go index 24eff00..97cd404 100644 --- a/validator/validator.go +++ b/validator/validator.go @@ -10,7 +10,7 @@ import ( ) const ( - RESOURCE_KIND_REGEX_STRING = "[A-Z]+[a-zA-Z0-9]*" + RESOURCE_KIND_REGEX_STRING = "[a-z]+[a-zA-Z0-9]*" ) var RESOURCE_KIND_REGEX regexp.Regexp diff --git a/writer/openapi/openapi.go b/writer/openapi/openapi.go index 114970b..ce6ce7d 100644 --- a/writer/openapi/openapi.go +++ b/writer/openapi/openapi.go @@ -80,7 +80,20 @@ func convertToOpenAPI(service *parser.ParsedService) (*OpenAPI, error) { if r.Methods.List != nil { listPath := fmt.Sprintf("%s/%s", pwp.Pattern, lowerizer.String(r.Plural)) addMethodToPath(paths, listPath, "get", MethodInfo{ - Parameters: pwp.Params, + Parameters: append(pwp.Params, + ParameterInfo{ + In: "query", + Name: "max_page_size", + Required: true, + Type: "integer", + }, + ParameterInfo{ + In: "query", + Name: "page_token", + Required: true, + Type: "string", + }, + ), Responses: Responses{ "200": ResponseInfo{ Schema: Schema{